Remove vestiges of fts-lgpl module.
[pspp] / ChangeLog
1 2010-03-29  Bruno Haible  <bruno@clisp.org>
2
3         Remove vestiges of fts-lgpl module.
4         * lib/fts_.h: Assume GNULIB_FTS is 1.
5         * lib/fts.c: Likewise.
6         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7
8 2010-03-28  Bruno Haible  <bruno@clisp.org>
9
10         Fix definition of tests witness macro.
11         * gnulib-tool (func_import): Fix definition of witness macro.
12
13 2010-03-28  Bruno Haible  <bruno@clisp.org>
14
15         Fix ioctl's protoype on glibc systems.
16         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
20         signature. If not, arrange to replace the ioctl function.
21         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22         REPLACE_IOCTL.
23         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25         Reported by Ludovic Courtès <ludo@gnu.org>.
26
27 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
28
29         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31         made it so grep -r --include=GLOB* ... did not work.
32
33 2010-03-26  Jim Meyering  <meyering@redhat.com>
34             Eric Blake  <eblake@redhat.com>
35
36         maint.mk: prohibit use of test's -o and -a operators
37         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
38
39 2010-03-28  Bruno Haible  <bruno@clisp.org>
40
41         Remove unused GNULIB_XYZ macro definitions.
42         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
43         invocation.
44
45 2010-03-28  Bruno Haible  <bruno@clisp.org>
46
47         Mark privileged tests modules.
48         * modules/idpriv-drop-tests (Status): New section.
49         * modules/idpriv-droptemp-tests (Status): New section.
50
51 2010-03-28  Bruno Haible  <bruno@clisp.org>
52
53         Split C++ tests into separate tests modules.
54         * modules/dirent-c++-tests: New file, extracted from
55         modules/dirent-tests.
56         * modules/dirent-tests: Depend on it.
57         * modules/fcntl-h-c++-tests: New file, extracted from
58         modules/fcntl-h-tests.
59         * modules/fcntl-h-tests: Depend on it.
60         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
61         * modules/glob-tests: Depend on it.
62         * modules/iconv-h-c++-tests: New file, extracted from
63         modules/iconv-h-tests.
64         * modules/iconv-h-tests: Depend on it.
65         * modules/langinfo-c++-tests: New file, extracted from
66         modules/langinfo-tests.
67         * modules/langinfo-tests: Depend on it.
68         * modules/locale-c++-tests: New file, extracted from
69         modules/locale-tests.
70         * modules/locale-tests: Depend on it.
71         * modules/math-c++-tests: New file, extracted from modules/math-tests.
72         * modules/math-tests: Depend on it.
73         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
74         * modules/pty-tests: Depend on it.
75         * modules/search-c++-tests: New file, extracted from
76         modules/search-tests.
77         * modules/search-tests: Depend on it.
78         * modules/signal-c++-tests: New file, extracted from
79         modules/signal-tests.
80         * modules/signal-tests: Depend on it.
81         * modules/spawn-c++-tests: New file, extracted from
82         modules/spawn-tests.
83         * modules/spawn-tests: Depend on it.
84         * modules/stdio-c++-tests: New file, extracted from
85         modules/stdio-tests.
86         * modules/stdio-tests: Depend on it.
87         * modules/stdlib-c++-tests: New file, extracted from
88         modules/stdlib-tests.
89         * modules/stdlib-tests: Depend on it.
90         * modules/string-c++-tests: New file, extracted from
91         modules/string-tests.
92         * modules/string-tests: Depend on it.
93         * modules/sys_ioctl-c++-tests: New file, extracted from
94         modules/sys_ioctl-tests.
95         * modules/sys_ioctl-tests: Depend on it.
96         * modules/sys_select-c++-tests: New file, extracted from
97         modules/sys_select-tests.
98         * modules/sys_select-tests: Depend on it.
99         * modules/sys_socket-c++-tests: New file, extracted from
100         modules/sys_socket-tests.
101         * modules/sys_socket-tests: Depend on it.
102         * modules/sys_stat-c++-tests: New file, extracted from
103         modules/sys_stat-tests.
104         * modules/sys_stat-tests: Depend on it.
105         * modules/sys_time-c++-tests: New file, extracted from
106         modules/sys_time-tests.
107         * modules/sys_time-tests: Depend on it.
108         * modules/time-c++-tests: New file, extracted from modules/time-tests.
109         * modules/time-tests: Depend on it.
110         * modules/unistd-c++-tests: New file, extracted from
111         modules/unistd-tests.
112         * modules/unistd-tests: Depend on it.
113         * modules/wchar-c++-tests: New file, extracted from
114         modules/wchar-tests.
115         * modules/wchar-tests: Depend on it.
116         * modules/wctype-c++-tests: New file, extracted from
117         modules/wctype-tests.
118         * modules/wctype-tests: Depend on it.
119         Reported by Simon Josefsson.
120
121 2010-03-28  Bruno Haible  <bruno@clisp.org>
122
123         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
124         * gnulib-tool (func_exists_module): New function, extracted from
125         func_verify_module.
126         (func_verify_module): Use it.
127         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
128         'foo' only if 'foo' exists.
129         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
130         module.
131
132 2010-03-28  Bruno Haible  <bruno@clisp.org>
133
134         gnulib-tool: Add support for special categories of tests.
135         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
136         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
137         (func_usage): Document them.
138         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
139         inc_unportable_tests, inc_all_tests): New variables.
140         (func_acceptable): Consider these variables.
141         (func_modules_transitive_closure): Make it work when the 'Status' field
142         consists of multiple words.
143         (func_import): Store and restore the values of inc_cxx_tests,
144         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
145         inc_all_tests in gnulib-comp.m4.
146         (func_create_testdir): Set inc_all_tests to true.
147         * doc/gnulib.texi (Extra tests modules): New section.
148         Suggested by Jim Meyering.
149
150 2010-03-28  Bruno Haible  <bruno@clisp.org>
151
152         ansi-c++-opt: Allow turning off the C++ build by default.
153         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
154         gl_CXX_CHOICE_DEFAULT_NO is defined.
155         Requested by Eric Blake.
156
157 2010-03-28  Bruno Haible  <bruno@clisp.org>
158
159         unistd: Avoid #define replacements in C++ mode.
160         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
161         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
162         setsockopt, shutdown, select): In C++, attach a warning to the function
163         if possible, rather than #defining the symbol to a dysfunctional alias.
164         Reported by John W. Eaton <jwe@gnu.org>.
165
166 2010-03-28  Bruno Haible  <bruno@clisp.org>
167
168         Fix link errors on mingw.
169         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
170         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
171         $(LIBSOCKET).
172         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
173         $(LIBSOCKET).
174
175 2010-03-28  Bruno Haible  <bruno@clisp.org>
176             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
177
178         lib-ignore: Determine different options for different compilers.
179         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
180         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
181         Add comments.
182         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
183         * NEWS: Mention the change.
184
185 2010-03-27  Bruno Haible  <bruno@clisp.org>
186
187         Remove unused GNULIB_XYZ macro definitions.
188         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
189         * modules/fseek (configure.ac): Likewise.
190         * modules/ioctl (configure.ac): Likewise.
191         * modules/open (configure.ac): Likewise.
192         * modules/stdlib-safer (configure.ac): Likewise.
193
194 2010-03-27  Bruno Haible  <bruno@clisp.org>
195
196         Add a remark about certain modules.
197         * modules/malloc (Comment): New section.
198         * modules/realloc (Comment): Likewise.
199         * modules/sigpipe (Comment): Likewise.
200
201 2010-03-27  Bruno Haible  <bruno@clisp.org>
202
203         Resolve conflict between the two kinds of module indicators.
204         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
205         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
206         * modules/canonicalize (configure.ac): Invoke
207         gl_MODULE_INDICATOR_FOR_TESTS.
208         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
209         GNULIB_XYZ.
210         * tests/test-dirent-c++.cc: Likewise.
211         * tests/test-dirent-safer.c: Likewise.
212         * tests/test-dup2.c: Likewise.
213         * tests/test-fchdir.c: Likewise.
214         * tests/test-fcntl-h-c++.cc: Likewise.
215         * tests/test-getopt.c: Likewise.
216         * tests/test-getopt.h: Likewise.
217         * tests/test-langinfo-c++.cc: Likewise.
218         * tests/test-locale-c++.cc: Likewise.
219         * tests/test-math-c++.cc: Likewise.
220         * tests/test-pty-c++.cc: Likewise.
221         * tests/test-search-c++.cc: Likewise.
222         * tests/test-signal-c++.cc: Likewise.
223         * tests/test-spawn-c++.cc: Likewise.
224         * tests/test-stdio-c++.cc: Likewise.
225         * tests/test-stdlib-c++.cc: Likewise.
226         * tests/test-string-c++.cc: Likewise.
227         * tests/test-sys_ioctl-c++.cc: Likewise.
228         * tests/test-sys_select-c++.cc: Likewise.
229         * tests/test-sys_socket-c++.cc: Likewise.
230         * tests/test-sys_stat-c++.cc: Likewise.
231         * tests/test-sys_time-c++.cc: Likewise.
232         * tests/test-time-c++.cc: Likewise.
233         * tests/test-unistd-c++.cc: Likewise.
234         * tests/test-wchar-c++.cc: Likewise.
235         * tests/uninorm/test-u8-nfc.c: Likewise.
236         * tests/uninorm/test-u8-nfd.c: Likewise.
237         * tests/uninorm/test-u8-nfkc.c: Likewise.
238         * tests/uninorm/test-u8-nfkd.c: Likewise.
239         * tests/uninorm/test-u16-nfc.c: Likewise.
240         * tests/uninorm/test-u16-nfd.c: Likewise.
241         * tests/uninorm/test-u16-nfkc.c: Likewise.
242         * tests/uninorm/test-u16-nfkd.c: Likewise.
243         * tests/uninorm/test-u32-nfc.c: Likewise.
244         * tests/uninorm/test-u32-nfc-big.c: Likewise.
245         * tests/uninorm/test-u32-nfd.c: Likewise.
246         * tests/uninorm/test-u32-nfd-big.c: Likewise.
247         * tests/uninorm/test-u32-nfkc.c: Likewise.
248         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
249         * tests/uninorm/test-u32-nfkd.c: Likewise.
250         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
251         * tests/uninorm/test-u32-normalize-big.c: Likewise.
252
253 2010-03-27  Bruno Haible  <bruno@clisp.org>
254
255         Distinguish two kinds of module indicators.
256         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
257         gl_MODULE_INDICATOR.
258         (gl_MODULE_INDICATOR): New macro.
259         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
260         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
261         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
262         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
263         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
264         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
265         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
266         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
267         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
268         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
269         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
270         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
272         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
273         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
274         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
275         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
276         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
277         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
278         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
279         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
280         * modules/cloexec (configure.ac): Likewise.
281         * modules/getopt-gnu (configure.ac): Likewise.
282         * modules/uninorm/u8-normalize (configure.ac): Likewise.
283         * modules/uninorm/u16-normalize (configure.ac): Likewise.
284         * modules/uninorm/u32-normalize (configure.ac): Likewise.
285         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
286
287 2010-03-27  Bruno Haible  <bruno@clisp.org>
288
289         New module description field 'Comment'.
290         * gnulib-tool: New option --extract-comment.
291         (func_usage): Document it.
292         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
293         (func_get_comment): New function.
294         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
295
296 2010-03-27  Bruno Haible  <bruno@clisp.org>
297
298         Addendum to 2010-02-07 commit.
299         * gnulib-tool (func_usage): Document --extract-applicability option.
300
301 2010-03-27  Bruno Haible  <bruno@clisp.org>
302
303         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
304         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
305         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
306         rather than link errors.
307
308 2010-03-27  Bruno Haible  <bruno@clisp.org>
309
310         Avoid side effects from tests-related modules on the compilation of lib.
311         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
312         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
313         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
314         parameter. Emit into AM_CPPFLAGS a definition of the designated C
315         macro.
316         (func_import): Define a witness macro. Assign it a value that depends
317         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
318         tests-related modules.
319         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
320         Reported by Jim Meyering.
321
322 2010-03-27  Bruno Haible  <bruno@clisp.org>
323
324         Factorize common .m4 code.
325         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
326         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
327         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
328         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
329         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
330         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
331         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
332         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
333         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
334         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
335         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
336         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
337         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
338         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
339         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
340         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
341         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
342         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
344         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
345         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
346         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
347         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
349         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
350         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
351         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
352         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
353         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
354         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
355         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
356         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
357
358 2010-03-27  Bruno Haible  <bruno@clisp.org>
359
360         Fix a compilation error on Cygwin with g++ >= 4.3.
361         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
362         if it is undefined or if we alias it to chmod.
363         (lstat): Don't warn about the use of this function if it is undefined
364         or if we alias it to stat.
365         Reported by Simon Josefsson.
366
367 2010-03-27  Bruno Haible  <bruno@clisp.org>
368
369         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
370         * modules/getlogin (configure.ac): Update.
371
372         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
373         * modules/getlogin_r (configure.ac): Update.
374
375         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
377         * modules/inet_ntop (configure.ac): Update.
378
379         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
380         * modules/inet_pton (configure.ac): Update.
381
382         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
383         * modules/mbslen (configure.ac): Update.
384
385         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
386         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
387         * modules/forkpty (configure.ac): Update.
388         * modules/openpty (configure.ac): Update.
389
390 2010-03-26  Simon Josefsson  <simon@josefsson.org>
391
392         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
393         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
394
395 2010-03-25  Eric Blake  <eblake@redhat.com>
396
397         maint: use pragma consistently across replacement headers
398         * lib/ctype.in.h (system_header): Hoist for consistent placement.
399         * lib/dirent.in.h (system_header): Likewise.
400         * lib/errno.in.h (system_header): Likewise.
401         * lib/float.in.h (system_header): Likewise.
402         * lib/getopt.in.h (system_header): Likewise.
403         * lib/iconv.in.h (system_header): Likewise.
404         * lib/inttypes.in.h (system_header): Likewise.
405         * lib/langinfo.in.h (system_header): Likewise.
406         * lib/locale.in.h (system_header): Likewise.
407         * lib/math.in.h (system_header): Likewise.
408         * lib/netdb.in.h (system_header): Likewise.
409         * lib/netinet_in.in.h (system_header): Likewise.
410         * lib/pty.in.h (system_header): Likewise.
411         * lib/sched.in.h (system_header): Likewise.
412         * lib/se-selinux.in.h (system_header): Likewise.
413         * lib/search.in.h (system_header): Likewise.
414         * lib/spawn.in.h (system_header): Likewise.
415         * lib/stdarg.in.h (system_header): Likewise.
416         * lib/stdint.in.h (system_header): Likewise.
417         * lib/string.in.h (system_header): Likewise.
418         * lib/strings.in.h (system_header): Likewise.
419         * lib/sys_file.in.h (system_header): Likewise.
420         * lib/sys_ioctl.in.h (system_header): Likewise.
421         * lib/sys_socket.in.h (system_header): Likewise.
422         * lib/sys_times.in.h (system_header): Likewise.
423         * lib/sys_utsname.in.h (system_header): Likewise.
424         * lib/sys_wait.in.h (system_header): Likewise.
425         * lib/sysexits.in.h (system_header): Likewise.
426         * lib/unistd.in.h (system_header): Likewise.
427         * lib/wctype.in.h (system_header): Likewise.
428
429         arpa/inet: fix mingw compilation warning
430         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
431         Reported by Matthew Bolte.
432
433 2010-03-25  Bruno Haible  <bruno@clisp.org>
434
435         Avoid collision between gnulib wrapper and libintl wrapper.
436         * lib/printf.c (printf): Don't define if a printf wrapper is already
437         defined in intl/printf.c.
438         Reported by Michel Boaventura <michel@michelboaventura.com>.
439
440 2010-03-25  Bruno Haible  <bruno@clisp.org>
441
442         Use ANSI C.
443         * lib/readutmp.h (getutent): Provide ANSI C prototype.
444
445 2010-03-25  Bruno Haible  <bruno@clisp.org>
446
447         Minor formatting changes.
448         * lib/acosl.c: Insert space before function argument list.
449         * lib/argz.c: Likewise.
450         * lib/asinl.c: Likewise.
451         * lib/expl.c: Likewise.
452         * lib/gen-uni-tables.c: Likewise.
453         * lib/gettext.h: Likewise.
454         * lib/glthread/lock.h: Likewise.
455         * lib/tanl.c: Likewise.
456         * lib/uniname/uniname.c: Likewise.
457         * tests/test-idpriv-drop.c: Likewise.
458         * tests/test-idpriv-droptemp.c: Likewise.
459         * tests/test-lock.c: Likewise.
460         * tests/test-tls.c: Likewise.
461         * lib/argp-help.c: Insert space before function-like macro argument
462         list.
463         * lib/memcmp.c: Likewise.
464         * tests/test-base64.c: Likewise.
465         * lib/localename.c: Insert space before sizeof's argument list.
466         * lib/safe-alloc.h: Likewise.
467         * lib/file-set.h: Insert space before macro argument list.
468         * tests/test-argp.c: Likewise.
469         * lib/argp-namefrob.h: Insert space before function parameter list.
470         * lib/getaddrinfo.c: Likewise.
471         * lib/netdb.in.h: Likewise.
472         * lib/parse-duration.h: Likewise.
473         * lib/parse-duration.c: Likewise.
474         * lib/poll.c: Likewise.
475         * lib/select.c: Likewise.
476         * lib/trim.h: Likewise.
477         * tests/test-usleep.c: Likewise.
478         * lib/ldexpl.c: Insert space before function parameter list and before
479         function argument list.
480         * lib/logl.c: Likewise.
481         * lib/sqrtl.c: Likewise.
482         * lib/trim.c: Likewise.
483         * lib/cosl.c: Use GNU style indentation. Insert space before function
484         argument list.
485         * lib/sinl.c: Likewise.
486         * lib/tsearch.c: Insert space after 'for'.
487         Reported by Jim Meyering.
488
489 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
490
491         * maint.mk (sc_Wundef_boolean): Check for the presence of the
492         config header before grepping, as it's not present before
493         autoreconf/configure are run.  Reported by Simon Josefsson.
494
495 2010-03-23  Bruno Haible  <bruno@clisp.org>
496
497         pt_chown: Make it work with automake < 1.11.
498         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
499         Reported by Simon Josefsson.
500
501 2010-03-23  Bruno Haible  <bruno@clisp.org>
502
503         pt_chown: Don't depend on GPLed modules.
504         * lib/pt_chown.c: Don't include idpriv.h.
505         (main): Don't drop privileges.
506         * modules/pt_chown (Depends-on): Remove idpriv-drop.
507         Reported by Simon Josefsson.
508
509 2010-03-24  Simon Josefsson  <simon@josefsson.org>
510
511         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
512         suggestions from karl@freefriends.org (Karl Berry).
513
514 2010-03-22  Eric Blake  <eblake@redhat.com>
515
516         gethostname: further tweaks
517         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
518         are overriding gethostname.
519         Suggested by Bruno Haible.
520
521 2010-03-21  Bruno Haible  <bruno@clisp.org>
522
523         Fix comments.
524         * lib/forkpty.c (rpl_forkpty): Fix comment.
525         * lib/openpty.c (rpl_openpty): Likewise.
526         Reported by Eric Blake.
527
528 2010-03-22  Eric Blake  <eblake@redhat.com>
529
530         gethostname: fix build on mingw
531         * lib/unistd.in.h (includes): Work around fact that mingw
532         <winsock2.h> re-includes <unistd.h>, by avoiding any
533         redeclarations if we are being included by <winsock2.h>.
534         Reported by Matthias Bolte.
535
536 2010-03-21  Bruno Haible  <bruno@clisp.org>
537
538         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
539         * lib/forkpty.c (forkpty): New replacement function, from glibc with
540         modifications.
541         * lib/pty.in.h (forkpty): Update declaration. Add comments.
542         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
543         provide the replacement.
544         * modules/forkpty (Depends-on): Add openpty, login_tty.
545         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
546         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
547         * doc/glibc-functions/forkpty.texi: More supported platforms.
548         * config/srclist.txt: Add forkpty.c (commented).
549
550 2010-03-21  Bruno Haible  <bruno@clisp.org>
551
552         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
553         (Makefile.am): Verify that PTY_LIB is defined.
554
555         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
556
557 2010-03-21  Bruno Haible  <bruno@clisp.org>
558
559         Tests for module 'login_tty'.
560         * modules/login_tty-tests: New file.
561         * tests/test-login_tty.c: New file.
562
563         New module 'login_tty'.
564         * lib/login_tty.c: New file.
565         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
566         * modules/login_tty: New file.
567         * doc/glibc-functions/login_tty.texi: Mention the new module.
568
569 2010-03-21  Bruno Haible  <bruno@clisp.org>
570
571         login_tty: Documentation.
572         * doc/glibc-functions/login_tty.texi: New file.
573         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
574
575 2010-03-21  Bruno Haible  <bruno@clisp.org>
576
577         pty: Consistent macro naming.
578         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
579         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
580         * modules/pty (configure.ac): Update.
581
582 2010-03-21  Bruno Haible  <bruno@clisp.org>
583
584         Tests for openpty: Make stricter.
585         * tests/test-openpty.c (main): Add test of canonical processing and
586         erase.
587         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
588
589         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
590         * lib/openpty.c (openpty): New replacement function.
591         * lib/pty.in.h: Include <termios.h>.
592         (openpty): Update declaration. Add comments.
593         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
594         is not declared, arrange to provide the replacement. Check for _getpty
595         and posix_openpt.
596         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
597         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
598         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
599         * modules/pty-tests (test_pty_c___LDADD): New variable.
600         * doc/glibc-functions/openpty.texi: More supported platforms.
601
602 2010-03-21  Bruno Haible  <bruno@clisp.org>
603
604         setenv: Tweaks.
605         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
606         the test program.
607         * doc/posix-functions/setenv.texi: Update platforms list.
608
609 2010-03-21  Bruno Haible  <bruno@clisp.org>
610
611         New module 'unlockpt'.
612         * lib/unlockpt.c: New file, from glibc with modifications.
613         * m4/unlockpt.m4: New file.
614         * modules/unlockpt: New file.
615         * lib/stdlib.in.h (unlockpt): New declaration.
616         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
617         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
618         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
619         HAVE_UNLOCKPT.
620         * doc/posix-functions/unlockpt.texi: Mention the new module.
621         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
622         * config/srclist.txt: Add unlockpt.c (commented).
623
624 2010-03-21  Jim Meyering  <meyering@redhat.com>
625
626         maint.mk: prohibit inclusion of "intprops.h" without use
627         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
628
629 2010-03-21  Bruno Haible  <bruno@clisp.org>
630
631         New module 'grantpt'.
632         * lib/grantpt.c: New file, from glibc with modifications.
633         * m4/grantpt.m4: New file.
634         * modules/grantpt: New file.
635         * lib/stdlib.in.h (grantpt): New declaration.
636         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
637         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
638         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
639         HAVE_GRANTPT.
640         * doc/posix-functions/grantpt.texi: Mention the new module.
641         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
642         * config/srclist.txt: Add grantpt.c (commented).
643
644 2010-03-21  Bruno Haible  <bruno@clisp.org>
645
646         New module 'pt_chown'.
647         * lib/pt_chown.c: New file, from glibc with modifications.
648         * lib/pty-private.h: New file, from glibc with modifications.
649         * modules/pt_chown: New file.
650         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
651
652 2010-03-21  Bruno Haible  <bruno@clisp.org>
653
654         Tests for module 'ptsname'.
655         * modules/ptsname-tests: New file.
656         * tests/test-ptsname.c: New file.
657
658         New module 'ptsname'.
659         * lib/ptsname.c: New file, from glibc with modifications.
660         * m4/ptsname.m4: New file.
661         * modules/ptsname: New file.
662         * lib/stdlib.in.h (ptsname): New declaration.
663         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
664         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
665         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
666         HAVE_PTSNAME.
667         * doc/posix-functions/ptsname.texi: Mention the new module.
668         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
669         * config/srclist.txt: Add ptsname.c (commented).
670
671 2010-03-21  Bruno Haible  <bruno@clisp.org>
672
673         Tests for module 'ttyname_r'.
674         * modules/ttyname_r-tests: New file.
675         * tests/test-ttyname_r.c: New file.
676
677         New module 'ttyname_r'.
678         * lib/ttyname_r.c: New file.
679         * m4/ttyname_r.m4: New file.
680         * modules/ttyname_r: New file.
681         * lib/unistd.in.h (ttyname_r): New declaration.
682         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
683         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
684         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
685         HAVE_TTYNAME_R.
686         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
687         * doc/posix-functions/ttyname_r.texi: Mention the new module.
688
689 2010-03-20  Bruno Haible  <bruno@clisp.org>
690
691         signal: Undefine macro definitions in C++ mode.
692         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
693         sigfillset): Undefine macro definitions from the system header in C++
694         mode.
695         Reported by John W. Eaton <jwe@gnu.org>.
696
697 2010-03-20  Bruno Haible  <bruno@clisp.org>
698
699         Ensure no #include statements inside extern "C" { ... }.
700         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
701         contain #include statements.
702         * lib/time.in.h: Likewise.
703
704 2010-03-20  Bruno Haible  <bruno@clisp.org>
705
706         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
707         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
708         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
709         Reported by John W. Eaton <jwe@gnu.org>.
710
711 2010-03-20  Bruno Haible  <bruno@clisp.org>
712
713         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
714         Reported by Jim Meyering.
715
716 2010-03-20  Bruno Haible  <bruno@clisp.org>
717
718         pipe: Set errno upon failure.
719         * lib/pipe.h: Specify that when -1 is returned, errno is set.
720         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
721         errno value in error message.
722
723 2010-03-20  Bruno Haible  <bruno@clisp.org>
724             Jim Meyering  <meyering@redhat.com>
725
726         lchown: Avoid "unused variable" warning.
727         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
728
729 2010-03-20  Bruno Haible  <bruno@clisp.org>
730
731         Work around unlink() bug on MacOS X 10.5.6.
732         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
733         attempting to unlink a parent directory.
734         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
735         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
736         activate for the replacement function.
737         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
738
739 2010-03-20  Bruno Haible  <bruno@clisp.org>
740
741         Fix link errors on Solaris 8.
742         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
743         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
744
745 2010-03-19  Jim Meyering  <meyering@redhat.com>
746
747         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
748         The _LIBC implementation of build_range_exp correctly honors the
749         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
750         However, the non-_LIBC implementation would ignore that syntax-bit
751         flag and return REG_ERANGE unconditionally.
752         This change makes it honor that flag.
753         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
754         Make two pointer parameters "const".
755         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
756         (parse_bracket_exp): Update caller.
757
758         regex.m4: correct the reversed range endpoint ([b-a]) test
759         * m4/regex.m4: When requiring that [b-a] evoke failure,
760         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
761         test pass once again for x86-based systems.
762
763 2010-03-19  Bruno Haible  <bruno@clisp.org>
764
765         scandir: Fix link error on Solaris 8.
766         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
767         macros.
768
769 2010-03-19  Bruno Haible  <bruno@clisp.org>
770
771         getusershell: Fix documentation.
772         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
773         module.
774         * doc/glibc-functions/setusershell.texi: Likewise.
775
776         getusershell: Provide declaration, missing on Solaris 9.
777         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
778         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
779         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
780         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
782         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
783         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
784         HAVE_GETUSERSHELL.
785         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
786
787 2010-03-19  Bruno Haible  <bruno@clisp.org>
788
789         wctype: Provide iswblank function.
790         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
791         exists and is fine.
792         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
793         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
794         * tests/test-wctype.c (main): Re-enable the iswblank tests.
795         * doc/posix-functions/iswblank.texi: Update.
796
797 2010-03-19  Bruno Haible  <bruno@clisp.org>
798
799         Tests of module 'pty' in C++ mode.
800         * modules/pty-tests: New file.
801         * tests/test-pty-c++.cc: New file.
802         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
803
804 2010-03-19  Eric Blake  <eblake@redhat.com>
805
806         logb: fix documentation
807         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
808         1.5 declaration bug.
809
810         forkpty, openpty: prefer glibc's const-safe prototype
811         * lib/forkpty.c (rpl_forkpty): New file.
812         * lib/openpty.c (rpl_openpty): Likewise.
813         * modules/forkpty (Files): Distribute it.
814         * modules/openpty (Files): Likewise.
815         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
816         check...
817         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
818         replacement for for non-const BSD signature.
819         * modules/pty (Makefile.am): Substitute witnesses.
820         * lib/pty.in.h (forkpty, openpty): Declare replacements.
821         * tests/test-forkpty.c: Update signature check.
822         * tests/test-openpty.c: Likewise.
823         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
824         * doc/glibc-functions/openpty.texi (openpty): Likewise.
825
826         forkpty, openpty: split functions into new modules
827         * modules/pty (Makefile.am): Substitute new witnesses.
828         (Libraries): Move library detection...
829         * modules/forkpty: ...into new module.
830         * modules/openpty: Another new module.
831         * modules/pty-tests: Rename and split...
832         * modules/forkpty-tests: ...to this...
833         * modules/openpty-tests: ...and this.
834         * tests/test-pty.c: Rename and split...
835         * tests/test-forkpty.c: ...to this...
836         * tests/test-openpty.c: ...and this.
837         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
838         (gl_PTY): Split library searching...
839         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
840         (gl_FORKPTY, gl_OPENPTY): New macros.
841         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
842         * NEWS: Mention the split.
843         * MODULES.html.sh (Misc): Document the modules.
844         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
845         * doc/glibc-functions/openpty.texi (openpty): Likewise.
846
847         pty: improve replacement header
848         * lib/pty.in.h: New file.
849         * modules/pty (Files): Ship it.
850         (Makefile.am): Always build replacement.
851         * m4/pty.m4: Rename...
852         * m4/pty_h.m4: ...to this.
853         (gl_PTY): Modernize setting of witness macros; update check of
854         forkpty to take proper advantage of cache.
855         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
856
857         getopt: avoid compiler warning
858         * lib/getopt.c (attribute_hidden): Remove unused macro.
859
860 2010-03-18  Bruno Haible  <bruno@clisp.org>
861
862         Fix link errors on Solaris 8.
863         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
864         * modules/search-tests (test_search_c___LDADD): Likewise.
865         * modules/signal-tests (test_signal_c___LDADD): Likewise.
866         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
867         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
868         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
869         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
870         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
871         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
872
873 2010-03-18  Bruno Haible  <bruno@clisp.org>
874
875         Fix bug introduced on 2010-03-14.
876         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
877         (gl_SPAWN_H): Require it.
878         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
879         Reported by Simon Josefsson.
880
881 2010-03-18  Bruno Haible  <bruno@clisp.org>
882
883         Fix typo introduced on 2009-12-31.
884         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
885         posix_spawn_file_actions_adddup2.
886
887 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
888         and Eric Blake  <eblake@redhat.com>
889
890         test-vc-list-files-git: make more robust
891         * tests/test-vc-list-files-git.sh: Unset problematic environment
892         variables.  Chain commands together.
893
894 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
895
896         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
897         `AC_CHECK_DECL' invocation.
898
899 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
900
901         * lib/inttostr.c (inttostr): Make sure the invocation of verify
902         appears before executable statements. Suggested by Petr Sumbera
903         <Petr.Sumbera@Sun.COM>.
904
905 2010-03-14  Bruno Haible  <bruno@clisp.org>
906
907         * tests/test-flock.c (test_exclusive): Comment out a test that causes
908         portability problems. Instead use a simpler test.
909         (main): Check that invalid arguments are rejected only on Linux.
910
911 2010-03-14  Bruno Haible  <bruno@clisp.org>
912
913         Fix bug introduced on 2009-12-31.
914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
915         gl_PREREQ_SYS_H_WINSOCK2 always.
916         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
917         SYS_SOCKET_H variable.
918         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
919         Update comments.
920         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
921         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
922         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
923         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
924         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
925
926 2010-03-14  Bruno Haible  <bruno@clisp.org>
927
928         Fix values returned by sinl, cosl.
929         * lib/trigl.h: Add specification comments.
930         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
931         that combines the values from the precomputed table with the values of
932         the Chebyshev polynomials.
933
934 2010-03-14  Bruno Haible  <bruno@clisp.org>
935
936         Fix compilation error when modules 'posix_spawn[p]' are not used.
937         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
938         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
939
940 2010-03-14  Bruno Haible  <bruno@clisp.org>
941
942         Fix compilation error on mingw when module 'time_r' is not used.
943         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
944         is 1.
945         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
946         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
947         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
948         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
949
950 2010-03-14  Bruno Haible  <bruno@clisp.org>
951
952         Fix compilation error with Sun C.
953         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
954         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
955         instead of GCC specific ULONG_LONG_MAX.
956         * lib/xstrtoll.c: Likewise.
957         * lib/xstrtoull.c: Likewise.
958
959 2010-03-13  Bruno Haible  <bruno@clisp.org>
960
961         Allow the user to disable C++ code and tests.
962         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
963         (gl_PROG_ANSI_CXX): Require it.
964
965 2010-03-13  Bruno Haible  <bruno@clisp.org>
966
967         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
968         cases.
969
970 2010-03-13  Bruno Haible  <bruno@clisp.org>
971
972         Test that gnulib does not break the standard C++ headers.
973         * tests/test-locale-c++2.cc: New file.
974         * modules/locale-tests (Files): Add it.
975         (Makefile.am): Compile it for test-locale-c++.
976         * tests/test-math-c++2.cc: New file.
977         * modules/math-tests (Files): Add it.
978         (Makefile.am): Compile it for test-math-c++.
979         * tests/test-signal-c++2.cc: New file.
980         * modules/signal-tests (Files): Add it.
981         (Makefile.am): Compile it for test-signal-c++.
982         * tests/test-stdio-c++2.cc: New file.
983         * modules/stdio-tests (Files): Add it.
984         (Makefile.am): Compile it for test-stdio-c++.
985         * tests/test-stdlib-c++2.cc: New file.
986         * modules/stdlib-tests (Files): Add it.
987         (Makefile.am): Compile it for test-stdlib-c++.
988         * tests/test-string-c++2.cc: New file.
989         * modules/string-tests (Files): Add it.
990         (Makefile.am): Compile it for test-string-c++.
991         * tests/test-time-c++2.cc: New file.
992         * modules/time-tests (Files): Add it.
993         (Makefile.am): Compile it for test-time-c++.
994         Reported by John W. Eaton <jwe@gnu.org>.
995
996 2010-03-13  Bruno Haible  <bruno@clisp.org>
997
998         * gnulib-tool (func_usage): Clarify which options are available for
999         --create-testdir and --create-megatestdir.
1000
1001 2010-03-13  Bruno Haible  <bruno@clisp.org>
1002
1003         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1004         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1005         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1006         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1007         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1008         when appropriate.
1009         Reported by Jim Meyering.
1010
1011 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1012
1013         * gnulib-tool (func_import): Explain origin of code.
1014
1015 2010-03-12  Bruno Haible  <bruno@clisp.org>
1016
1017         Fix problem with automake's definition of CXXLINK.
1018         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1019         Reported by Simon Josefsson and Ludovic Courtès.
1020
1021 2010-03-12  Bruno Haible  <bruno@clisp.org>
1022
1023         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1024         stable releases.
1025
1026 2010-03-11  Bruno Haible  <bruno@clisp.org>
1027
1028         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1029         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1030         whether the system provides one variant or multiple variants of the
1031         function.
1032         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1033         C++ compilers.
1034         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1035         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1036         Reported by Jim Meyering.
1037
1038 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1039
1040         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1041
1042 2010-03-08  Bruno Haible  <bruno@clisp.org>
1043
1044         gnulib-tool: Add support for --libtool in --create-testdir.
1045         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1046         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1047
1048 2010-03-08  Eric Blake  <eblake@redhat.com>
1049
1050         gnulib-tool.texi: mention possibility of git submodule
1051         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1052         submodules.
1053         * doc/.gitignore: Ignore another generated file.
1054
1055 2010-03-08  Karl Berry  <karl@gnu.org>
1056
1057         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1058         of committing gnulib files while skipping others.
1059
1060 2010-03-07  Bruno Haible  <bruno@clisp.org>
1061
1062         Tests of module 'wctype' in C++ mode.
1063         * tests/test-wctype-c++.cc: New file.
1064         * modules/wctype-tests (Files): Add it and tests/signature.h.
1065         (Depends-on): Add ansi-c++-opt.
1066         (Makefile.am): Arrange to compile and run test-wctype-c++.
1067
1068         Tests of module 'wchar' in C++ mode.
1069         * tests/test-wchar-c++.cc: New file.
1070         * modules/wchar-tests (Files): Add it and tests/signature.h.
1071         (Depends-on): Add ansi-c++-opt.
1072         (Makefile.am): Arrange to compile and run test-wchar-c++.
1073         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1074         gl_MODULE_INDICATOR.
1075
1076         Tests of module 'unistd' in C++ mode.
1077         * tests/test-unistd-c++.cc: New file.
1078         * modules/unistd-tests (Files): Add it and tests/signature.h.
1079         (Depends-on): Add ansi-c++-opt.
1080         (Makefile.am): Arrange to compile and run test-unistd-c++.
1081         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1082         gl_MODULE_INDICATOR.
1083
1084         Tests of module 'time' in C++ mode.
1085         * tests/test-time-c++.cc: New file.
1086         * modules/time-tests (Files): Add it and tests/signature.h.
1087         (Depends-on): Add ansi-c++-opt.
1088         (Makefile.am): Arrange to compile and run test-time-c++.
1089         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1090
1091         Tests of module 'sys_time' in C++ mode.
1092         * tests/test-sys_time-c++.cc: New file.
1093         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1094         (Depends-on): Add ansi-c++-opt.
1095         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1096         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1097         gl_MODULE_INDICATOR.
1098
1099         Tests of module 'sys_stat' in C++ mode.
1100         * tests/test-sys_stat-c++.cc: New file.
1101         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1102         (Depends-on): Add ansi-c++-opt.
1103         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1104         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1105         gl_MODULE_INDICATOR.
1106
1107         Tests of module 'sys_socket' in C++ mode.
1108         * tests/test-sys_socket-c++.cc: New file.
1109         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1110         (Depends-on): Add ansi-c++-opt.
1111         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1112         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1113         gl_MODULE_INDICATOR.
1114
1115         Tests of module 'sys_select' in C++ mode.
1116         * tests/test-sys_select-c++.cc: New file.
1117         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1118         (Depends-on): Add ansi-c++-opt.
1119         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1120         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1121         gl_MODULE_INDICATOR.
1122
1123         Tests of module 'sys_ioctl' in C++ mode.
1124         * tests/test-sys_ioctl-c++.cc: New file.
1125         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1126         (Depends-on): Add ansi-c++-opt.
1127         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1128         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1129         gl_MODULE_INDICATOR.
1130
1131         Tests of module 'string' in C++ mode.
1132         * tests/test-string-c++.cc: New file.
1133         * modules/string-tests (Files): Add it and tests/signature.h.
1134         (Depends-on): Add ansi-c++-opt.
1135         (Makefile.am): Arrange to compile and run test-string-c++.
1136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1137         gl_MODULE_INDICATOR.
1138
1139         Tests of module 'stdlib' in C++ mode.
1140         * tests/test-stdlib-c++.cc: New file.
1141         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1142         (Depends-on): Add ansi-c++-opt.
1143         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1144         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1145         gl_MODULE_INDICATOR.
1146
1147         Tests of module 'stdio' in C++ mode.
1148         * tests/test-stdio-c++.cc: New file.
1149         * modules/stdio-tests (Files): Add it and tests/signature.h.
1150         (Depends-on): Add ansi-c++-opt.
1151         (Makefile.am): Arrange to compile and run test-stdio-c++.
1152         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1153         gl_MODULE_INDICATOR.
1154
1155         Tests of module 'spawn' in C++ mode.
1156         * tests/test-spawn-c++.cc: New file.
1157         * modules/spawn-tests (Files): Add it and tests/signature.h.
1158         (Depends-on): Add ansi-c++-opt.
1159         (Makefile.am): Arrange to compile and run test-spawn-c++.
1160         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1161         gl_MODULE_INDICATOR.
1162
1163         Tests of module 'signal' in C++ mode.
1164         * tests/test-signal-c++.cc: New file.
1165         * modules/signal-tests (Files): Add it and tests/signature.h.
1166         (Depends-on): Add ansi-c++-opt.
1167         (Makefile.am): Arrange to compile and run test-signal-c++.
1168         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1169         gl_MODULE_INDICATOR.
1170
1171         Tests of module 'search' in C++ mode.
1172         * tests/test-search-c++.cc: New file.
1173         * modules/search-tests (Files): Add it and tests/signature.h.
1174         (Depends-on): Add ansi-c++-opt.
1175         (Makefile.am): Arrange to compile and run test-search-c++.
1176         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1177         gl_MODULE_INDICATOR.
1178
1179         Tests of module 'math' in C++ mode.
1180         * tests/test-math-c++.cc: New file.
1181         * modules/math-tests (Files): Add it and tests/signature.h.
1182         (Depends-on): Add ansi-c++-opt.
1183         (Makefile.am): Arrange to compile and run test-math-c++.
1184         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1185
1186         Tests of module 'locale' in C++ mode.
1187         * tests/test-locale-c++.cc: New file.
1188         * modules/locale-tests (Files): Add it and tests/signature.h.
1189         (Depends-on): Add ansi-c++-opt.
1190         (Makefile.am): Arrange to compile and run test-locale-c++.
1191         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1192         gl_MODULE_INDICATOR.
1193
1194         Tests of module 'langinfo' in C++ mode.
1195         * tests/test-langinfo-c++.cc: New file.
1196         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1197         (Depends-on): Add ansi-c++-opt.
1198         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1199         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1200         gl_MODULE_INDICATOR.
1201
1202         Tests of module 'iconv-h' in C++ mode.
1203         * tests/test-iconv-h-c++.cc: New file.
1204         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1205         (Depends-on): Add ansi-c++-opt.
1206         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1207
1208         Tests of module 'glob' in C++ mode.
1209         * tests/test-glob-c++.cc: New file.
1210         * modules/glob-tests (Files): Add it.
1211         (Depends-on): Add ansi-c++-opt.
1212         (Makefile.am): Arrange to compile and run test-glob-c++.
1213
1214         Tests of module 'fcntl-h' in C++ mode.
1215         * tests/test-fcntl-h-c++.cc: New file.
1216         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1217         (Depends-on): Add ansi-c++-opt.
1218         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1219         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1220         gl_MODULE_INDICATOR.
1221
1222         Tests of module 'dirent' in C++ mode.
1223         * tests/test-dirent-c++.cc: New file.
1224         * modules/dirent-tests (Files): Add it and tests/signature.h.
1225         (Depends-on): Add ansi-c++-opt.
1226         (Makefile.am): Arrange to compile and run test-dirent-c++.
1227         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1228         gl_MODULE_INDICATOR.
1229
1230         New module 'ansi-c++-opt'.
1231         * modules/ansi-c++-opt: New file.
1232         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1233
1234         Document C++ namespace mode.
1235         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1236
1237         wctype: Avoid #define replacements in C++ mode.
1238         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1239         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1240         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1241         In C++, define a namespaced alias symbol.
1242         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1243         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1244         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1245         rule.
1246
1247         wchar: Avoid #define replacements in C++ mode.
1248         * lib/wchar.in.h: Include c++defs.h.
1249         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1250         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1251         symbol.
1252         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1253         * modules/wchar (Depends-on): Add c++defs.
1254         (Makefile.am): Update wchar.h rule.
1255
1256         unistd: Avoid #define replacements in C++ mode.
1257         * lib/unistd.in.h: Include c++defs.h.
1258         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1259         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1260         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1261         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1262         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1263         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1264         symbol.
1265         (environ): Update.
1266         * modules/unistd (Depends-on): Add c++defs.
1267         (Makefile.am): Update unistd.h rule.
1268
1269         time: Avoid #define replacements in C++ mode.
1270         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1271         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1272         define a namespaced alias symbol.
1273         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1274         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1275         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1276         * modules/time (Depends-on): Add c++defs, warn-on-use.
1277         (Makefile.am): Update time.h rule.
1278         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1279         * modules/nanosleep (configure.ac): Likewise.
1280         * modules/strptime (configure.ac): Likewise.
1281         * modules/timegm (configure.ac): Likewise.
1282
1283         sys_time: Avoid #define replacements in C++ mode.
1284         * lib/sys_time.in.h: Include c++defs.h.
1285         (gettimeofday): In C++, define a namespaced alias symbol.
1286         * modules/sys_time (Depends-on): Add c++defs.
1287         (Makefile.am): Update sys/time.h rule.
1288
1289         sys_stat: Avoid #define replacements in C++ mode.
1290         * lib/sys_stat.in.h: Include c++defs.h.
1291         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1292         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1293         namespaced alias symbol.
1294         In C++, define a namespaced alias symbol.
1295         * modules/sys_stat (Depends-on): Add c++defs.
1296         (Makefile.am): Update sys/stat.h rule.
1297
1298         sys_socket: Avoid #define replacements in C++ mode.
1299         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1300         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1301         definitions also when the system has a <sys/socket.h>.
1302         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1303         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1304         In C++, define a namespaced alias symbol.
1305         * modules/sys_socket (Depends-on): Add c++defs.
1306         (Makefile.am): Update sys/socket.h rule.
1307
1308         sys_select: Avoid #define replacements in C++ mode.
1309         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1310         definitions also when the system has a <sys/select.h>.
1311         (select): In C++, define a namespaced alias symbol.
1312         * modules/sys_select (Depends-on): Add c++defs.
1313         (Makefile.am): Update sys/select.h rule.
1314
1315         sys_ioctl: Avoid #define replacements in C++ mode.
1316         * lib/sys_ioctl.in.h: Include c++defs.h.
1317         (ioctl): In C++, define a namespaced alias symbol.
1318         * modules/sys_ioctl (Depends-on): Add c++defs.
1319         (Makefile.am): Update sys/ioctl.h rule.
1320
1321         string: Avoid #define replacements in C++ mode.
1322         * lib/string.in.h: Include c++defs.h.
1323         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1324         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1325         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1326         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1327         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1328         * modules/string (Depends-on): Add c++defs.
1329         (Makefile.am): Update string.h rule.
1330
1331         stdlib: Avoid #define replacements in C++ mode.
1332         * lib/stdlib.in.h: Include c++defs.h.
1333         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1334         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1335         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1336         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1337         symbol.
1338         * modules/stdlib (Depends-on): Add c++defs.
1339         (Makefile.am): Update stdlib.h rule.
1340
1341         stdio: Avoid #define replacements in C++ mode.
1342         * lib/stdio.in.h: Include c++defs.h.
1343         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1344         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1345         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1346         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1347         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1348         namespaced alias symbol.
1349         * modules/stdio (Depends-on): Add c++defs.
1350         (Makefile.am): Update stdio.h rule.
1351
1352         spawn: Avoid #define replacements in C++ mode.
1353         * lib/spawn.in.h: Include c++defs.h.
1354         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1355         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1356         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1357         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1358         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1359         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1360         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1361         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1362         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1363         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1364         In C++, define a namespaced alias symbol.
1365         * modules/spawn (Depends-on): Add c++defs.
1366         (Makefile.am): Update spawn.h rule.
1367
1368         signal: Avoid #define replacements in C++ mode.
1369         * lib/signal.in.h: Include c++defs.h.
1370         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1371         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1372         namespaced alias symbol.
1373         * modules/signal (Depends-on): Add c++defs.
1374         (Makefile.am): Update signal.h rule.
1375
1376         search: Avoid #define replacements in C++ mode.
1377         * lib/search.in.h: Include c++defs.h.
1378         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1379         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1380         symbol.
1381         * modules/search (Depends-on): Add c++defs.
1382         (Makefile.am): Update search.h rule.
1383
1384         math: Avoid #define replacements in C++ mode.
1385         * lib/math.in.h: Include c++defs.h.
1386         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1387         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1388         trunc, truncl): In C++, define a namespaced alias symbol.
1389         * modules/math (Depends-on): Add c++defs.
1390         (Makefile.am): Update math.h rule.
1391
1392         locale: Avoid #define replacements in C++ mode.
1393         * lib/locale.in.h: Include c++defs.h.
1394         (duplocale): In C++, define a namespaced alias symbol.
1395         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1396         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1397         * modules/locale (Depends-on): Add c++defs.
1398         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1399
1400         langinfo: Avoid #define replacements in C++ mode.
1401         * lib/langinfo.in.h: Include c++defs.h.
1402         (nl_langinfo): In C++, define a namespaced alias symbol.
1403         * modules/langinfo (Depends-on): Add c++defs.
1404         (Makefile.am): Update langinfo.h rule.
1405
1406         iconv-h: Avoid #define replacements in C++ mode.
1407         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1408         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1409         symbol.
1410         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1411         whenever iconv is present.
1412         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1413         (Makefile.am): Update iconv.h rule.
1414
1415         glob: Avoid #define replacements in C++ mode.
1416         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1417         (_gl_glob_errfunc_fn): New type.
1418         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1419         symbol.
1420         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1421         (Makefile.am): Update glob.h rule.
1422
1423         fcntl-h: Avoid #define replacements in C++ mode.
1424         * lib/fcntl.in.h: Include c++defs.h.
1425         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1426         * modules/fcntl-h (Depends-on): Add c++defs.
1427         (Makefile.am): Update fcntl.h rule.
1428
1429         dirent: Avoid #define replacements in C++ mode.
1430         * lib/dirent.in.h: Include c++defs.h.
1431         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1432         namespaced alias symbol.
1433         (dirfd): Update declaration.
1434         * modules/dirent (Depends-on): Add c++defs.
1435         (Makefile.am): Update dirent.h rule.
1436
1437         ctype: Make it usable in C++ code.
1438         * lib/ctype.in.h: Include c++defs.h.
1439         (isblank): Declare as extern "C".
1440         * modules/ctype (Depends-on): Add c++defs.
1441         (Makefile.am): Update ctype.h rule.
1442
1443         New module 'c++defs'.
1444         * modules/c++defs: New file.
1445         * build-aux/c++defs.h: New file.
1446         Reported by John W. Eaton <jwe@gnu.org>.
1447
1448 2010-03-07  Bruno Haible  <bruno@clisp.org>
1449
1450         logb: Provide missing declaration for Cygwin.
1451         * lib/math.in.h (logb): New declaration.
1452         * m4/logb.m4: New file.
1453         * modules/logb (Files): Add m4/logb.m4.
1454         (Depends-on): Add math.
1455         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1456         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1458         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1459         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1460
1461 2010-03-07  Bruno Haible  <bruno@clisp.org>
1462
1463         Fix test-cond link error.
1464         * tests/test-cond.c: Include <stdio.h>.
1465
1466 2010-03-07  Bruno Haible  <bruno@clisp.org>
1467
1468         Fix test-dirent-safer link error.
1469         * modules/dirent-safer-tests (Makefile.am): Define
1470         test_dirent_safer_LDADD.
1471
1472 2010-03-07  Bruno Haible  <bruno@clisp.org>
1473
1474         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1475         among default module list.
1476
1477 2010-03-07  Bruno Haible  <bruno@clisp.org>
1478
1479         Fix link error on platforms with GNU libiconv.
1480         * modules/unistr/u8-strcoll-tests (Makefile): Define
1481         test_u8_strcoll_LDADD.
1482         * modules/unistr/u16-strcoll-tests (Makefile): Define
1483         test_u16_strcoll_LDADD.
1484         * modules/unistr/u32-strcoll-tests (Makefile): Define
1485         test_u32_strcoll_LDADD.
1486
1487 2010-03-07  Bruno Haible  <bruno@clisp.org>
1488
1489         Use POSIX declarations for socket functions.
1490         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1491         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1492         rpl_sendto): Change declaration to match POSIX.
1493         * lib/connect.c (rpl_connect): Likewise.
1494         * lib/accept.c (rpl_accept): Likewise.
1495         * lib/bind.c (rpl_bind): Likewise.
1496         * lib/getpeername.c (rpl_getpeername): Likewise.
1497         * lib/getsockname.c (rpl_getsockname): Likewise.
1498         * lib/recv.c (rpl_recv): Likewise.
1499         * lib/send.c (rpl_send): Likewise.
1500         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1501         * lib/sendto.c (rpl_sendto): Likewise.
1502
1503 2010-03-06  Bruno Haible  <bruno@clisp.org>
1504
1505         Clarify access, euidaccess, faccessat.
1506         * doc/posix-functions/faccessat.texi: Mention security problem under
1507         "Other problems", not "Portability problems".
1508         * doc/posix-functions/access.texi: Likewise. Mention a related security
1509         problem.
1510         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1511         * lib/euidaccess.c: Add comments about platforms.
1512         * lib/unistd.in.h (access, euidaccess): Add warnings.
1513
1514 2010-03-07  Bruno Haible  <bruno@clisp.org>
1515
1516         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1517         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1518         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1519         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1520         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1521         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1522         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1523         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1524         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1526         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1527         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1528         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1529         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1530         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1531         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1532         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1533         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1534         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1535         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1536         Likewise.
1537         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1538         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1539         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1540         Likewise.
1541         * tests/test-spawn.c (main): Make it work when
1542         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1543
1544 2010-03-07  Bruno Haible  <bruno@clisp.org>
1545
1546         Fix incorrect Makefile.am generation in German locale.
1547         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1548         Execute sed command with character range in C locale.
1549
1550 2010-03-06  Bruno Haible  <bruno@clisp.org>
1551
1552         Tests for module 'iconv-h'.
1553         * modules/iconv-h-tests: New file.
1554         * tests/test-iconv-h.c: New file.
1555
1556         New module 'iconv-h'.
1557         * modules/iconv-h: New file.
1558         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1559         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1560         (configure.ac): Remove gl_ICONV_H.
1561         (Makefile.am): Remove rule for iconv.h.
1562
1563 2010-03-06  Bruno Haible  <bruno@clisp.org>
1564
1565         More consistent naming of *.m4 files.
1566         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1567         * modules/wctype (Files): Update.
1568
1569         More consistent naming of *.m4 files.
1570         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1571         * modules/wchar (Files): Update.
1572
1573 2010-03-06  Jim Meyering  <meyering@redhat.com>
1574
1575         euidaccess: relax license to LGPLv2+
1576         * modules/euidaccess (License): Relax to LGPLv2+.
1577
1578 2010-03-06  Bruno Haible  <bruno@clisp.org>
1579
1580         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1581         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1582         (Makefile.am): Augment lib_SOURCES instead.
1583
1584 2010-03-04  Jim Meyering  <meyering@redhat.com>
1585
1586         utime: remove obsolete module
1587         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1588         unnecessary for years, and has been marked as obsolete for 10 months.
1589         * modules/utime: Remove file.
1590         * lib/utime.c: Remove file.
1591         * m4/utime.m4: Remove file.
1592         * m4/utimes-null.m4: Remove file.
1593         * doc/posix-functions/utime.texi (utime): Remove reference to
1594         the module.  Move the sole "fixed by gnulib" item into the
1595         "problems not fixed by Gnulib" list.
1596         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1597
1598 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1599
1600         * modules/exit (License): Relax license to LGPLv2+.
1601         (Status): Mark as obsolete.
1602         * NEWS: Mention deprecated 'exit' module.
1603         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1604         of now obsolete 'exit'.
1605
1606 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1607
1608         fts-lgpl: remove unused module
1609         * modules/fts-lgpl: Remove.
1610         * MODULES.html.sh (func_all_modules): Adjust.
1611         * check-module (find_included_lib_files): Adjust.
1612         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1613
1614 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1615
1616         copy-acl: enhance Solaris ACL error handling
1617         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1618         * lib/set-mode-acl.c (qset_acl): Likewise.
1619
1620 2010-03-02  Bruno Haible  <bruno@clisp.org>
1621
1622         spawn: Don't override the system defined values on FreeBSD 8.
1623         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1624         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1625         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1626         if HAVE_POSIX_SPAWN is 1.
1627         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1628
1629 2010-03-01  Bruno Haible  <bruno@clisp.org>
1630
1631         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1632         regarding Automake.
1633
1634 2010-02-25  Bruno Haible  <bruno@clisp.org>
1635
1636         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1637         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1638         setting, not afterwards.
1639         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1640
1641 2010-02-24  Eric Blake  <eblake@redhat.com>
1642
1643         bootstrap, git-version-gen: use timestamp
1644         * build-aux/git-version-gen (scriptversion): Force UTC.
1645         * build-aux/bootstrap (scriptversion): New variable.
1646
1647         bootstrap: allow older git
1648         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1649         older than 1.6.4.  Requested by the libvirt project.
1650
1651 2010-02-23  Eric Blake  <eblake@redhat.com>
1652
1653         warn-on-use: work with old autoconf
1654         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1655         AS_VAR semantics of autoconf 2.60.
1656         Reported by Bruno Haible.
1657
1658         bootstrap: improve some comments
1659         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1660         clarification comments.
1661
1662         gettimeofday: provide correct function
1663         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1664         when replacement is declared, otherwise provide gettimeofday.
1665         Reported by Michael Goffioul.
1666
1667 2010-02-23  Jim Meyering  <meyering@redhat.com>
1668
1669         lib-ignore: relax license to "unlimited", not LGPLv2+
1670         * modules/lib-ignore (License): Relax to "unlimited".
1671
1672 2010-02-23  Jim Meyering  <meyering@redhat.com>
1673
1674         lib-ignore: relax license to LGPLv2+
1675         * modules/lib-ignore (License): Relax to LGPLv2+.
1676
1677 2010-02-22  Eric Blake  <eblake@redhat.com>
1678
1679         lseek: avoid bash 3.2 broken pipe bug
1680         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1681         warning from bash 3.2.
1682         Reported by Ben Pfaff, with analysis from Bruno Haible.
1683
1684         bootstrap: support non-FSF copyright holder
1685         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1686         bootstrap.conf override of COPYRIGHT_HOLDER.
1687         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1688
1689         bootstrap: interoperate with gettext 0.14.1
1690         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1691
1692         bootstrap: allow for alternate submodule location
1693         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1694         hardcoding submodule location.
1695         (gnulib_mk): Allow direct use of Makefile.am.
1696
1697         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1698         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1699         rather than reconfiguring where the submodule points.
1700
1701         gettimeofday: restore support for platforms that lack function
1702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1703         replacement if function is missing.
1704         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1705         * modules/sys_time (Makefile.am): Substitute it.
1706         * lib/sys_time.in.h (gettimeofday): Check it.
1707         Reported by Michael Goffioul.
1708
1709 2010-02-21  Bruno Haible  <bruno@clisp.org>
1710
1711         * lib/stdio.in.h (obstack_printf): Fix typo.
1712
1713 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1714
1715         vc-list-files: use bzr ls's -R option
1716         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1717         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1718
1719 2010-02-21  Jim Meyering  <meyering@redhat.com>
1720
1721         init.sh: fix EXEEXT shims to work also for names like test-prog
1722         * tests/init.sh: Re-exec a better shell, when needed.
1723         If the current shell lacks support for posix $(...), an init.sh-using
1724         test will now try to find a shell that supports that.  If EXEEXT is
1725         nonempty, we also require support for hyphen-in-alias-name and shell
1726         substitutions like ${var#glob}.  Failure to find such a shell results
1727         in a skipped test.
1728
1729 2010-02-21  Bruno Haible  <bruno@clisp.org>
1730
1731         Really work around around "broken pipe" error message from bash 3.2.
1732         * gnulib-tool (func_reset_sigpipe): Remove function.
1733         (echo): In bash 3.2, define to a function that uses printf.
1734         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1735
1736 2010-02-20  Bruno Haible  <bruno@clisp.org>
1737
1738         Restore support for automake 1.9.6 with autoconf 2.61.
1739         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1740         Reported by James Youngman <jay@gnu.org>.
1741
1742 2010-02-20  Bruno Haible  <bruno@clisp.org>
1743
1744         Improve *printf warning condition.
1745         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1746         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1747         and the function is overridden due to SIGPIPE emulation.
1748
1749 2010-02-20  Bruno Haible  <bruno@clisp.org>
1750
1751         * lib/stdio.in.h: Tweak comments.
1752
1753 2010-02-19  Bruno Haible  <bruno@clisp.org>
1754
1755         Make it easier to find modules. New gnulib-tool option '--find'.
1756         * gnulib-tool: New option --find.
1757         (func_usage): Document it.
1758         (func_sanitize_modulelist): New function, extracted from
1759         func_all_modules.
1760         (func_all_modules): Invoke it.
1761         * doc/gnulib-tool.texi (Which modules?): New node.
1762
1763 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1764
1765         * lib/sys_select.in.h: Provide select replacement even if
1766         sys/select.h exists on a system, for Interix.
1767
1768 2010-02-18  Jim Meyering  <meyering@redhat.com>
1769
1770         init.sh: don't use $(...) just yet
1771         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1772         to accommodate e.g., Solaris' /bin/sh.
1773
1774 2010-02-17  Bruno Haible  <bruno@clisp.org>
1775
1776         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1777         Reported by Ludovic Courtès <ludo@gnu.org>.
1778
1779 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1780
1781         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1782         linking with -lintl.
1783
1784 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1785
1786         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1787         if not provided by the system's netdb.h.  Reported by
1788         ludo@gnu.org (Ludovic Courtès).
1789
1790 2010-02-15  Jim Meyering  <meyering@redhat.com>
1791
1792         init.sh: improve portability and efficiency
1793         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1794         "dummy" in a for loop.
1795         Use '!', not '^' to select the complement of a character set used
1796         in a "case" statement.
1797         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1798         Suggestions from Eric Blake.
1799
1800         init.sh: automatically accommodate programs with the .exe suffix
1801         Automatically arrange for an invocation of "prog" to execute the
1802         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1803         may use the simpler "prog", yet still work when built on a system
1804         that requires specifying the added suffix.
1805         Do this by constructing a function named "prog" that invokes
1806         "prog.exe" for each .exe file in selected directories.
1807         * tests/init.sh (find_exe_basenames_): New function.
1808         (create_exe_shim_functions_): New function.
1809         (path_prepend_): Use it.
1810
1811         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1812         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1813         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1814
1815 2010-02-14  Jim Meyering  <meyering@redhat.com>
1816
1817         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1818         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1819         (sc_prohibit_hash_pjw_without_use): New rule.
1820
1821         maint.mk: allow the default upload destination dir to be overridden
1822         * top/maint.mk (upload_dest_dir_): Define with a default that
1823         preserves the status quo.
1824         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1825         Reported by Peter Simons.
1826
1827         maint.mk: prohibit inclusion of "hash.h" without_use
1828         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1829
1830 2010-02-10  Jim Meyering  <meyering@redhat.com>
1831
1832         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1833         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1834
1835 2010-02-09  Eric Blake  <ebb9@byu.net>
1836         and Bruno Haible  <bruno@clisp.org>
1837
1838         obstack-printf-posix: ensure declaration
1839         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1840         extracted from gl_FUNC_OBSTACK_PRINTF.
1841         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1842         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1843         Likewise.
1844         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1845         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1846         0.
1847
1848 2010-02-08  Bruno Haible  <bruno@clisp.org>
1849
1850         gnulib-tool: Fix typo in 2010-02-07 commit.
1851         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1852         Reported by Eric Blake.
1853
1854 2010-02-07  Bruno Haible  <bruno@clisp.org>
1855
1856         gnulib-tool: Fix up caching patches.
1857         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1858         option --no-cache. Use associative arrays when supported by the shell.
1859         (sed_comments): New variable.
1860         (modcache): Renamed from do_cache.
1861         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1862         abbreviate unnecessarily.
1863         (have_associative): New variable.
1864         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1865         way also for ksh and zsh.
1866         (func_init_sed_convert_to_cache_statements): New function, extracted
1867         from func_cache_lookup_module. Add support for associative arrays.
1868         Don't set the c_MODULE_cached variable here. Ignore all lines before
1869         the first field header. Remove only the final newline, not all trailing
1870         newlines. Support empty fields correctly. Limit the use of 'eval' to
1871         assignments.
1872         (func_get_description, func_get_status, func_get_notice,
1873         func_get_applicability, func_get_filelist, func_get_dependencies,
1874         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1875         func_get_automake_snippet, func_get_include_directive,
1876         func_get_link_directive, func_get_license, func_get_maintainer):
1877         Update documentation. List the unoptimized code first. Add support for
1878         associative arrays. Limit the use of 'eval' to assignments.
1879         (func_get_applicability): Undo stylistic pessimisations.
1880         (func_get_automake_snippet, func_get_include_directive): Reduce code
1881         duplication.
1882         (func_modules_transitive_closure, func_modules_add_dummy,
1883         func_modules_notice, func_modules_to_filelist, func_add_file,
1884         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1885         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1886         func_create_testdir, func_create_megatestdir): Update documentation.
1887
1888 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889
1890         * gnulib-tool (func_cache_lookup_module): Store the module name
1891         belonging to the cache variable; error out if two different
1892         module names map to the same cache variable name.
1893
1894 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1895
1896         gnulib-tool: Make caching optional.
1897         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1898         Update matching short versions of --no-changelog.
1899         (func_usage): Update.
1900         (sed_extract_cache_prog): Renamed from ...
1901         (sed_extract_prog): ... this; revert to old extraction script.
1902         (func_get_description, func_get_status)
1903         (func_get_notice, func_get_applicability, func_get_filelist)
1904         (func_get_dependencies, func_get_autoconf_early_snippet)
1905         (func_get_autoconf_snippet, func_get_automake_snippet)
1906         (func_get_include_directive, func_get_link_directive)
1907         (func_get_license, func_get_maintainer): If $do_cache is false,
1908         use old, non-caching extraction scripts.
1909         Suggestion by Bruno Haible.
1910
1911 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1912
1913         gnulib-tool: cache module metainformation.
1914         * gnulib-tool (sed_extract_prog): Match newline before each
1915         header, and rewrite header to a shell variable suffix.
1916         (func_cache_var, func_cache_lookup_module): New functions,
1917         to turn a module name into a cache variable prefix, and to
1918         look up and cache module metainformation.
1919         (func_get_description, func_get_status)
1920         (func_get_notice, func_get_applicability, func_get_filelist)
1921         (func_get_dependencies, func_get_autoconf_early_snippet)
1922         (func_get_autoconf_snippet, func_get_automake_snippet)
1923         (func_get_include_directive, func_get_link_directive)
1924         (func_get_license, func_get_maintainer): Use
1925         func_cache_lookup_module.
1926
1927 2010-02-07  Bruno Haible  <bruno@clisp.org>
1928
1929         fnctl: Fix missing dependency.
1930         * modules/fcntl (Depends-on): Add getdtablesize.
1931         Reported by John W. Eaton <jwe@gnu.org>.
1932
1933 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1934
1935         Argp: fix recognition of short alias options.
1936
1937         * lib/argp-parse.c (convert_options): Fix improper use of
1938         `|' between character values.
1939         * tests/test-argp.c (group1_option): New alias option
1940         --read (-r).
1941         (group1_parser): Special handling for 'r'.
1942         (test15): New test case.
1943         (test_fun): Add test15.
1944         * tests/test-argp-2.sh: Update expected --help and --usage
1945         outputs.
1946
1947 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1948
1949         * tests/test-argp.c: Fix indentation.
1950
1951 2010-02-04  Eric Blake  <ebb9@byu.net>
1952
1953         gettimeofday: expose type of second argument
1954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1955         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1956         * tests/test-gettimeofday.c: Use it to silence warning.
1957         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1958         the issue.
1959
1960 2010-02-03  Jim Meyering  <meyering@redhat.com>
1961
1962         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1963         * lib/regcomp.c (TYPE_SIGNED): Define.
1964         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1965
1966         regcomp.c: avoid a new -Wshadow warning
1967         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1968
1969 2010-02-01  Jim Meyering  <meyering@redhat.com>
1970
1971         removing useless parentheses in cpp #define directives
1972         For motivation, see commit c0221df4, "define STREQ(a,b)
1973         consistently, removing useless parentheses"
1974         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1975         * lib/mountlist.c (MNT_IGNORE): Likewise.
1976         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1977
1978 2010-02-01  Eric Blake  <ebb9@byu.net>
1979
1980         sys_time: use link-warning
1981         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1982         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1983         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1984         * modules/sys_time (Depends-on): Add warn-on-use.
1985         (Makefile.am): Always build replacement.
1986         (configure.ac): Update substitutions.
1987         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1988         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1989         bother with SYS_TIME_H.
1990         * modules/gettimeofday (configure.ac): Declare indicator.
1991         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1992         in use.
1993
1994         closein-tests: silence compiler warning
1995         * tests/test-closein.c (main): Ignore fread result.
1996         * modules/closein-tests (Depends-on): Add ignore-value.
1997
1998         tests: silence warning about system return
1999         * tests/test-areadlink-with-size.c (main): Ignore system result.
2000         * tests/test-areadlink.c (main): Likewise.
2001         * tests/test-areadlinkat-with-size.c (main): Likewise.
2002         * tests/test-areadlinkat.c (main): Likewise.
2003         * tests/test-canonicalize-lgpl.c (main): Likewise.
2004         * tests/test-canonicalize.c (main): Likewise.
2005         * tests/test-chown.c (main): Likewise.
2006         * tests/test-fchownat.c (main): Likewise.
2007         * tests/test-fdutimensat.c (main): Likewise.
2008         * tests/test-fstatat.c (main): Likewise.
2009         * tests/test-futimens.c (main): Likewise.
2010         * tests/test-lchown.c (main): Likewise.
2011         * tests/test-link.c (main): Likewise.
2012         * tests/test-linkat.c (main): Likewise.
2013         * tests/test-lstat.c (main): Likewise.
2014         * tests/test-mkdir.c (main): Likewise.
2015         * tests/test-mkdirat.c (main): Likewise.
2016         * tests/test-mkfifo.c (main): Likewise.
2017         * tests/test-mkfifoat.c (main): Likewise.
2018         * tests/test-mknod.c (main): Likewise.
2019         * tests/test-readlink.c (main): Likewise.
2020         * tests/test-remove.c (main): Likewise.
2021         * tests/test-rename.c (main): Likewise.
2022         * tests/test-renameat.c (main): Likewise.
2023         * tests/test-rmdir.c (main): Likewise.
2024         * tests/test-symlink.c (main): Likewise.
2025         * tests/test-symlinkat.c (main): Likewise.
2026         * tests/test-unlink.c (main): Likewise.
2027         * tests/test-unlinkat.c (main): Likewise.
2028         * tests/test-utimens.c (main): Likewise.
2029         * tests/test-utimensat.c (main): Likewise.
2030         * modules/areadlink-tests (Depends-on): Add ignore-value.
2031         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2032         * modules/areadlinkat-tests (Depends-on): Likewise.
2033         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2034         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2035         * modules/canonicalize-tests (Depends-on): Likewise.
2036         * modules/chown-tests (Depends-on): Likewise.
2037         * modules/fdutimensat-tests (Depends-on): Likewise.
2038         * modules/futimens-tests (Depends-on): Likewise.
2039         * modules/lchown-tests (Depends-on): Likewise.
2040         * modules/link-tests (Depends-on): Likewise.
2041         * modules/linkat-tests (Depends-on): Likewise.
2042         * modules/lstat-tests (Depends-on): Likewise.
2043         * modules/mkdir-tests (Depends-on): Likewise.
2044         * modules/mkfifo-tests (Depends-on): Likewise.
2045         * modules/mkfifoat-tests (Depends-on): Likewise.
2046         * modules/mknod-tests (Depends-on): Likewise.
2047         * modules/openat-tests (Depends-on): Likewise.
2048         * modules/readlink-tests (Depends-on): Likewise.
2049         * modules/remove-tests (Depends-on): Likewise.
2050         * modules/rename-tests (Depends-on): Likewise.
2051         * modules/renameat-tests (Depends-on): Likewise.
2052         * modules/rmdir-tests (Depends-on): Likewise.
2053         * modules/symlink-tests (Depends-on): Likewise.
2054         * modules/symlinkat-tests (Depends-on): Likewise.
2055         * modules/unlink-tests (Depends-on): Likewise.
2056         * modules/utimens-tests (Depends-on): Likewise.
2057         * modules/utimensat-tests (Depends-on): Likewise.
2058
2059 2010-01-31  Bruno Haible  <bruno@clisp.org>
2060
2061         Perform the same test for many <math.h> functions.
2062         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2063         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2064         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2065         of gl_MATHFUNC.
2066         * modules/acos (configure.ac): Likewise.
2067         * modules/asin (configure.ac): Likewise.
2068         * modules/atan (configure.ac): Likewise.
2069         * modules/atan2 (configure.ac): Likewise.
2070         * modules/cbrt (configure.ac): Likewise.
2071         * modules/copysign (configure.ac): Likewise.
2072         * modules/cos (configure.ac): Likewise.
2073         * modules/cosh (configure.ac): Likewise.
2074         * modules/erf (configure.ac): Likewise.
2075         * modules/erfc (configure.ac): Likewise.
2076         * modules/exp (configure.ac): Likewise.
2077         * modules/fmod (configure.ac): Likewise.
2078         * modules/hypot (configure.ac): Likewise.
2079         * modules/j0 (configure.ac): Likewise.
2080         * modules/j1 (configure.ac): Likewise.
2081         * modules/jn (configure.ac): Likewise.
2082         * modules/lgamma (configure.ac): Likewise.
2083         * modules/log (configure.ac): Likewise.
2084         * modules/log10 (configure.ac): Likewise.
2085         * modules/log1p (configure.ac): Likewise.
2086         * modules/pow (configure.ac): Likewise.
2087         * modules/remainder (configure.ac): Likewise.
2088         * modules/sin (configure.ac): Likewise.
2089         * modules/sinh (configure.ac): Likewise.
2090         * modules/tan (configure.ac): Likewise.
2091         * modules/tanh (configure.ac): Likewise.
2092         * modules/y0 (configure.ac): Likewise.
2093         * modules/y1 (configure.ac): Likewise.
2094         * modules/yn (configure.ac): Likewise.
2095         Suggested by Paolo Bonzini.
2096
2097 2010-01-31  Bruno Haible  <bruno@clisp.org>
2098
2099         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2100
2101 2010-01-31  Bruno Haible  <bruno@clisp.org>
2102
2103         Work around getdelim() bug on FreeBSD 8.0.
2104         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2105         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2106         not work.
2107         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2108         is 1.
2109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2110         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2111         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2112         a non-zero size.
2113         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2114
2115 2010-01-31  Bruno Haible  <bruno@clisp.org>
2116
2117         Work around getline() bug on FreeBSD 8.0.
2118         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2119         and a non-zero size.
2120         * tests/test-getline.c (main): Likewise.
2121         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2122         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2123
2124 2010-01-28  Eric Blake  <ebb9@byu.net>
2125
2126         regex: fix build failure
2127         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2128         platforms.
2129
2130 2010-01-28  Jim Meyering  <meyering@redhat.com>
2131
2132         regex: do not ignore memory allocation failure
2133         * lib/regex_internal.c (create_cd_newstate): Detect
2134         re_node_set_init_copy failure.   Extracted from glibc commit
2135         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2136
2137         regex: sync more white-space changes from libc
2138         * lib/regex_internal.c: White-space only changes.
2139         * lib/regexec.c: Likewise.
2140
2141         regex: add many uses of __attribute_warn_unused_result__
2142         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2143         * lib/regexec.c: Likewise.
2144         Extracted from a messy glibc commit.
2145
2146         regcomp.c: spelling and merge-artifact from glibc
2147         * lib/regcomp.c: Merge remainder of glibc's
2148         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2149
2150         regcomp.c: sync white-space changes from glibc
2151         * lib/regcomp.c: Merge to accommodate white space
2152         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2153
2154         regcomp.c: do not ignore internal return values
2155         * lib/regcomp.c: Do not ignore internal return values.
2156         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2157         but without its white-space changes and spelling fixes.
2158
2159         regex_internal.h: define __attribute_warn_unused_result__
2160         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2161
2162         maint: add a syntax-check rule to check for vulnerable Makefile.in
2163         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2164
2165 2010-01-27  Jim Meyering  <meyering@redhat.com>
2166
2167         ncftpput-ftp: clean up spaces
2168         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2169         Remove trailing blanks.
2170
2171 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2172
2173         * build-aux/git-version-gen: Fix copyright statement.
2174         * build-aux/gnupload: Likewise.
2175         * tests/test-arcfour.c: Likewise.
2176         * tests/test-arctwo.c: Likewise.
2177         * tests/test-count-one-bits.c: Likewise.
2178         * tests/test-crc.c: Likewise.
2179         * tests/test-des.c: Likewise.
2180         * tests/test-gc-arcfour.c: Likewise.
2181         * tests/test-gc-arctwo.c: Likewise.
2182         * tests/test-gc-des.c: Likewise.
2183         * tests/test-gc-hmac-md5.c: Likewise.
2184         * tests/test-gc-hmac-sha1.c: Likewise.
2185         * tests/test-gc-md2.c: Likewise.
2186         * tests/test-gc-md4.c: Likewise.
2187         * tests/test-gc-md5.c: Likewise.
2188         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2189         * tests/test-gc-rijndael.c: Likewise.
2190         * tests/test-gc-sha1.c: Likewise.
2191         * tests/test-gc.c: Likewise.
2192         * tests/test-gethostname.c: Likewise.
2193         * tests/test-gettimeofday.c: Likewise.
2194         * tests/test-hash.c: Likewise.
2195         * tests/test-hmac-md5.c: Likewise.
2196         * tests/test-hmac-sha1.c: Likewise.
2197         * tests/test-md2.c: Likewise.
2198         * tests/test-md4.c: Likewise.
2199         * tests/test-md5.c: Likewise.
2200         * tests/test-memchr.c: Likewise.
2201         * tests/test-memchr2.c: Likewise.
2202         * tests/test-memcmp.c: Likewise.
2203         * tests/test-memmem.c: Likewise.
2204         * tests/test-memrchr.c: Likewise.
2205         * tests/test-rawmemchr.c: Likewise.
2206         * tests/test-read-file.c: Likewise.
2207         * tests/test-rijndael.c: Likewise.
2208         * tests/test-sockets.c: Likewise.
2209         * tests/test-strchrnul.c: Likewise.
2210         * tests/test-strstr.c: Likewise.
2211         * tests/test-strtod.c: Likewise.
2212         * build-aux/ncftpput-ftp: Likewise.
2213
2214 2010-01-26  Eric Blake  <ebb9@byu.net>
2215
2216         ignore-value: update recommended header name
2217         * modules/ignore-value (Include): Only use <> for headers that
2218         exist in glibc.
2219
2220 2010-01-26  Jim Meyering  <meyering@redhat.com>
2221
2222         test-userspec.c: avoid compiler warnings
2223         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2224         and "initialization discards qualifiers..." warnings.
2225         Put the first "uid" in its own scope, and make char* members "const".
2226
2227 2010-01-25  Bruno Haible  <bruno@clisp.org>
2228
2229         gnulib-tool: Make warning diagnostics consistent.
2230         * gnulib-tool (func_warning): New function.
2231         Use it everywhere where gnulib-tool produces output to stderr and it is
2232         not a fatal error.
2233
2234 2010-01-25  Bruno Haible  <bruno@clisp.org>
2235
2236         Fix test dependencies.
2237         * modules/xstrtol-tests (Depends-on): Add inttypes.
2238         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2239
2240 2010-01-25 Pádraig Brady <P@draigBrady.com>
2241
2242         syntax-check: detect incorrect boolean macro values in config.h
2243         * modules/maintainer-makefile (configure.ac): Parameterize the location
2244         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2245         The logic is from Eric Blake and the location indicated by Jim Meyering.
2246         Note the more natural CONFIG_HEADER name is prohibited by automake
2247         for backwards compatibility reasons.
2248         * top/maint.mk (sc_Wundef_boolean): New rule.
2249
2250 2010-01-25  Jim Meyering  <meyering@redhat.com>
2251
2252         bootstrap: detect MacOS 10.6's shasum, too
2253         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2254         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2255
2256 2010-01-23  Jim Meyering  <meyering@redhat.com>
2257
2258         xstrtoll: new module
2259         * modules/xstrtoll: New file.
2260         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2261         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2262         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2263         ./configure fails if you use this module and lack "long long".
2264         * modules/xstrtoll-tests: New module.
2265         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2266         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2267         new init.sh-based test framework.
2268
2269 2010-01-24  Bruno Haible  <bruno@clisp.org>
2270
2271         Tests for module 'yn'.
2272         * modules/yn-tests: New file.
2273         * tests/test-yn.c: New file.
2274
2275         Tests for module 'y1'.
2276         * modules/y1-tests: New file.
2277         * tests/test-y1.c: New file.
2278
2279         Tests for module 'y0'.
2280         * modules/y0-tests: New file.
2281         * tests/test-y0.c: New file.
2282
2283         Tests for module 'tanh'.
2284         * modules/tanh-tests: New file.
2285         * tests/test-tanh.c: New file.
2286
2287         Tests for module 'tan'.
2288         * modules/tan-tests: New file.
2289         * tests/test-tan.c: New file.
2290
2291         Tests for module 'sqrt'.
2292         * modules/sqrt-tests: New file.
2293         * tests/test-sqrt.c: New file.
2294
2295         Tests for module 'sinh'.
2296         * modules/sinh-tests: New file.
2297         * tests/test-sinh.c: New file.
2298
2299         Tests for module 'sin'.
2300         * modules/sin-tests: New file.
2301         * tests/test-sin.c: New file.
2302
2303         Tests for module 'rint'.
2304         * modules/rint-tests: New file.
2305         * tests/test-rint.c: New file.
2306
2307         Tests for module 'remainder'.
2308         * modules/remainder-tests: New file.
2309         * tests/test-remainder.c: New file.
2310
2311         Tests for module 'pow'.
2312         * modules/pow-tests: New file.
2313         * tests/test-pow.c: New file.
2314
2315         Tests for module 'nextafter'.
2316         * modules/nextafter-tests: New file.
2317         * tests/test-nextafter.c: New file.
2318
2319         Tests for module 'modf'.
2320         * modules/modf-tests: New file.
2321         * tests/test-modf.c: New file.
2322
2323         Tests for module 'logb'.
2324         * modules/logb-tests: New file.
2325         * tests/test-logb.c: New file.
2326
2327         Tests for module 'log1p'.
2328         * modules/log1p-tests: New file.
2329         * tests/test-log1p.c: New file.
2330
2331         Tests for module 'log10'.
2332         * modules/log10-tests: New file.
2333         * tests/test-log10.c: New file.
2334
2335         Tests for module 'log'.
2336         * modules/log-tests: New file.
2337         * tests/test-log.c: New file.
2338
2339         Tests for module 'lgamma'.
2340         * modules/lgamma-tests: New file.
2341         * tests/test-lgamma.c: New file.
2342
2343         Tests for module 'ldexp'.
2344         * modules/ldexp-tests: New file.
2345         * tests/test-ldexp.c: New file.
2346
2347         Tests for module 'jn'.
2348         * modules/jn-tests: New file.
2349         * tests/test-jn.c: New file.
2350
2351         Tests for module 'j1'.
2352         * modules/j1-tests: New file.
2353         * tests/test-j1.c: New file.
2354
2355         Tests for module 'j0'.
2356         * modules/j0-tests: New file.
2357         * tests/test-j0.c: New file.
2358
2359         Tests for module 'hypot'.
2360         * modules/hypot-tests: New file.
2361         * tests/test-hypot.c: New file.
2362
2363         Tests for module 'fmod'.
2364         * modules/fmod-tests: New file.
2365         * tests/test-fmod.c: New file.
2366
2367         Tests for module 'fabs'.
2368         * modules/fabs-tests: New file.
2369         * tests/test-fabs.c: New file.
2370
2371         Tests for module 'exp'.
2372         * modules/exp-tests: New file.
2373         * tests/test-exp.c: New file.
2374
2375         Tests for module 'erfc'.
2376         * modules/erfc-tests: New file.
2377         * tests/test-erfc.c: New file.
2378
2379         Tests for module 'erf'.
2380         * modules/erf-tests: New file.
2381         * tests/test-erf.c: New file.
2382
2383         Tests for module 'cosh'.
2384         * modules/cosh-tests: New file.
2385         * tests/test-cosh.c: New file.
2386
2387         Tests for module 'cos'.
2388         * modules/cos-tests: New file.
2389         * tests/test-cos.c: New file.
2390
2391         Tests for module 'copysign'.
2392         * modules/copysign-tests: New file.
2393         * tests/test-copysign.c: New file.
2394
2395         Tests for module 'cbrt'.
2396         * modules/cbrt-tests: New file.
2397         * tests/test-cbrt.c: New file.
2398
2399         Tests for module 'atan2'.
2400         * modules/atan2-tests: New file.
2401         * tests/test-atan2.c: New file.
2402
2403         Tests for module 'atan'.
2404         * modules/atan-tests: New file.
2405         * tests/test-atan.c: New file.
2406
2407         Tests for module 'asin'.
2408         * modules/asin-tests: New file.
2409         * tests/test-asin.c: New file.
2410
2411         Tests for module 'acos'.
2412         * modules/acos-tests: New file.
2413         * tests/test-acos.c: New file.
2414
2415 2010-01-24  Bruno Haible  <bruno@clisp.org>
2416
2417         Fix tests for common <math.h> functions.
2418         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2419         code snippet that references the function pointer, rather than merely
2420         calling the function. Substitute the FUNC_LIBM variable.
2421         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2422         * modules/acos (configure.ac): Likewise.
2423         * modules/asin (configure.ac): Likewise.
2424         * modules/atan (configure.ac): Likewise.
2425         * modules/atan2 (configure.ac): Likewise.
2426         * modules/cbrt (configure.ac): Likewise.
2427         * modules/copysign (configure.ac): Likewise.
2428         * modules/cos (configure.ac): Likewise.
2429         * modules/cosh (configure.ac): Likewise.
2430         * modules/erf (configure.ac): Likewise.
2431         * modules/erfc (configure.ac): Likewise.
2432         * modules/exp (configure.ac): Likewise.
2433         * modules/fabs (configure.ac): Likewise.
2434         * modules/fmod (configure.ac): Likewise.
2435         * modules/hypot (configure.ac): Likewise.
2436         * modules/j0 (configure.ac): Likewise.
2437         * modules/j1 (configure.ac): Likewise.
2438         * modules/jn (configure.ac): Likewise.
2439         * modules/ldexp (configure.ac): Likewise.
2440         * modules/lgamma (configure.ac): Likewise.
2441         * modules/log (configure.ac): Likewise.
2442         * modules/log10 (configure.ac): Likewise.
2443         * modules/log1p (configure.ac): Likewise.
2444         * modules/logb (configure.ac): Likewise.
2445         * modules/modf (configure.ac): Likewise.
2446         * modules/nextafter (configure.ac): Likewise.
2447         * modules/pow (configure.ac): Likewise.
2448         * modules/remainder (configure.ac): Likewise.
2449         * modules/rint (configure.ac): Likewise.
2450         * modules/sin (configure.ac): Likewise.
2451         * modules/sinh (configure.ac): Likewise.
2452         * modules/tan (configure.ac): Likewise.
2453         * modules/tanh (configure.ac): Likewise.
2454         * modules/y0 (configure.ac): Likewise.
2455         * modules/y1 (configure.ac): Likewise.
2456         * modules/yn (configure.ac): Likewise.
2457
2458 2010-01-24  Bruno Haible  <bruno@clisp.org>
2459
2460         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2461         * tests/test-acosl.c (x): New variable.
2462         (main): Store argument in x and fetch it from x.
2463         * tests/test-asinl.c (x): New variable.
2464         (main): Store argument in x and fetch it from x.
2465         * tests/test-atanl.c (x): New variable.
2466         (main): Store argument in x and fetch it from x.
2467         * tests/test-cosl.c (x): New variable.
2468         (main): Store argument in x and fetch it from x.
2469         * tests/test-expl.c (x): New variable.
2470         (main): Store argument in x and fetch it from x.
2471         * tests/test-logl.c (x): New variable.
2472         (main): Store argument in x and fetch it from x.
2473         * tests/test-sinl.c (x): New variable.
2474         (main): Store argument in x and fetch it from x.
2475         * tests/test-sqrtl.c (x): New variable.
2476         (main): Store argument in x and fetch it from x.
2477         * tests/test-tanl.c (x): New variable.
2478         (main): Store argument in x and fetch it from x.
2479
2480 2010-01-24  Bruno Haible  <bruno@clisp.org>
2481
2482         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2483         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2484         assignments to the initial TESTS_ENVIRONMENT.
2485         * doc/gnulib.texi (Unit test modules): Document it.
2486         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2487         TESTS_ENVIRONMENT.
2488         * modules/btowc-tests (Makefile.am): Likewise.
2489         * modules/c-stack-tests (Makefile.am): Likewise.
2490         * modules/c-strcase-tests (Makefile.am): Likewise.
2491         * modules/copy-file-tests (Makefile.am): Likewise.
2492         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2493         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2494         * modules/mbrtowc-tests (Makefile.am): Likewise.
2495         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2496         * modules/mbscasestr-tests (Makefile.am): Likewise.
2497         * modules/mbschr-tests (Makefile.am): Likewise.
2498         * modules/mbscspn-tests (Makefile.am): Likewise.
2499         * modules/mbsinit-tests (Makefile.am): Likewise.
2500         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2501         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2502         * modules/mbspbrk-tests (Makefile.am): Likewise.
2503         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2504         * modules/mbsrchr-tests (Makefile.am): Likewise.
2505         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2506         * modules/mbsspn-tests (Makefile.am): Likewise.
2507         * modules/mbsstr-tests (Makefile.am): Likewise.
2508         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2509         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2510         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2511         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2512         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2513         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2514         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2515         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2516         * modules/wcrtomb-tests (Makefile.am): Likewise.
2517         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2518         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2519         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2520         assignments from TESTS_ENVIRONMENT.
2521         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2522         augmentation.
2523         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2524         * modules/atexit-tests (Makefile.am): Likewise.
2525         * modules/binary-io-tests (Makefile.am): Likewise.
2526         * modules/closein-tests (Makefile.am): Likewise.
2527         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2528         * modules/exclude-tests (Makefile.am): Likewise.
2529         * modules/fflush-tests (Makefile.am): Likewise.
2530         * modules/fpending-tests (Makefile.am): Likewise.
2531         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2532         * modules/freadahead-tests (Makefile.am): Likewise.
2533         * modules/freadptr-tests (Makefile.am): Likewise.
2534         * modules/freadseek-tests (Makefile.am): Likewise.
2535         * modules/fseek-tests (Makefile.am): Likewise.
2536         * modules/fseeko-tests (Makefile.am): Likewise.
2537         * modules/ftell-tests (Makefile.am): Likewise.
2538         * modules/ftello-tests (Makefile.am): Likewise.
2539         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2540         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2541         * modules/lseek-tests (Makefile.am): Likewise.
2542         * modules/parse-duration-tests (Makefile.am): Likewise.
2543         * modules/perror-tests (Makefile.am): Likewise.
2544         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2545         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2546         * modules/pipe-tests (Makefile.am): Likewise.
2547         * modules/pread-tests (Makefile.am): Likewise.
2548         * modules/printf-posix-tests (Makefile.am): Likewise.
2549         * modules/select-tests (Makefile.am): Likewise.
2550         * modules/sigpipe-tests (Makefile.am): Likewise.
2551         * modules/tsearch-tests (Makefile.am): Likewise.
2552         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2553         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2554         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2555         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2556         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2557         * modules/version-etc-tests (Makefile.am): Likewise.
2558         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2559         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2560         * modules/xalloc-die-tests (Makefile.am): Likewise.
2561         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2562         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2563         * modules/xstrtol-tests (Makefile.am): Likewise.
2564         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2565         * modules/yesno-tests (Makefile.am): Likewise.
2566         Suggested by Jim Meyering.
2567
2568 2010-01-24  Bruno Haible  <bruno@clisp.org>
2569
2570         More documentation.
2571         * doc/gnulib.texi (Writing modules): New chapter.
2572         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2573         the new chapter.
2574
2575 2010-01-24  Jim Meyering  <meyering@redhat.com>
2576
2577         maint.mk: do not prepend "./" after filtering
2578         * top/maint.mk (_prepend_srcdir_prefix): New variable
2579         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2580         "./" when $(srcdir) is ".".
2581
2582         define STREQ(a,b) consistently, removing useless parentheses
2583         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2584         since the only risk is that "a" or "b" contains an unparenthesized
2585         comma, but if either did that, STREQ would have 3 or more arguments.
2586         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2587         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2588         * lib/hash-triple.c (STREQ): Likewise.
2589         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2590         * lib/getugroups.c (STREQ): Likewise.
2591
2592 2010-01-23  Jim Meyering  <meyering@redhat.com>
2593
2594         maint.mk: fix syntax-check in a non-srcdir build directory
2595         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2596         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2597
2598 2010-01-22  Jim Meyering  <meyering@redhat.com>
2599
2600         userspec: add unit tests
2601         * tests/test-userspec.c: New file.
2602         * modules/userspec-tests: Likewise.
2603
2604 2010-01-21  Jim Meyering  <meyering@redhat.com>
2605
2606         maint.mk: handle source file names containing "." robustly
2607         * top/maint.mk (_dot_escaped_srcdir): Define.
2608         (VC_LIST): Use it in LHS of sed substitution.
2609
2610 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2611
2612         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2613         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2614         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2615         from a non-srcdir build.
2616
2617 2010-01-20  Eric Blake  <ebb9@byu.net>
2618
2619         warn-on-use: use instead of link-warning
2620         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2621         * modules/unistd (Depends-on, Makefile.am): Likewise.
2622         * modules/arpa_inet (Depends-on): Replace link-warning with
2623         warn-on-use.
2624         (Makefile.am): Update rules accordingly.
2625         * modules/ctype (Depends-on, Makefile.am): Likewise.
2626         * modules/dirent (Depends-on, Makefile.am): Likewise.
2627         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2628         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2629         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2630         * modules/locale (Depends-on, Makefile.am): Likewise.
2631         * modules/math (Depends-on, Makefile.am): Likewise.
2632         * modules/search (Depends-on, Makefile.am): Likewise.
2633         * modules/signal (Depends-on, Makefile.am): Likewise.
2634         * modules/spawn (Depends-on, Makefile.am): Likewise.
2635         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2636         * modules/string (Depends-on, Makefile.am): Likewise.
2637         * modules/strings (Depends-on, Makefile.am): Likewise.
2638         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2639         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2640         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2641         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2642         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2643         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2644         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2645         * modules/wchar (Depends-on, Makefile.am): Likewise.
2646         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2647         should be poisoned.
2648         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2649         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2650         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2651         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2652         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2653         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2654         * m4/math_h.m4 (gl_MATH_H): Likewise.
2655         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2657         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2658         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2659         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2660         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2661         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2662         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2665         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2667         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2669         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2670         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2671         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2672         GL_LINK_WARNING.
2673         * lib/ctype.in.h: Likewise.
2674         * lib/dirent.in.h: Likewise.
2675         * lib/fcntl.in.h: Likewise.
2676         * lib/inttypes.in.h: Likewise.
2677         * lib/langinfo.in.h: Likewise.
2678         * lib/locale.in.h: Likewise.
2679         * lib/math.in.h: Likewise.
2680         * lib/search.in.h: Likewise.
2681         * lib/signal.in.h: Likewise.
2682         * lib/spawn.in.h: Likewise.
2683         * lib/stdio.in.h: Likewise.
2684         * lib/stdlib.in.h: Likewise.
2685         * lib/string.in.h: Likewise.
2686         * lib/strings.in.h: Likewise.
2687         * lib/sys_file.in.h: Likewise.
2688         * lib/sys_ioctl.in.h: Likewise.
2689         * lib/sys_select.in.h: Likewise.
2690         * lib/sys_socket.in.h: Likewise.
2691         * lib/sys_stat.in.h: Likewise.
2692         * lib/sys_times.in.h: Likewise.
2693         * lib/sys_utsname.in.h: Likewise.
2694         * lib/unistd.in.h: Likewise.
2695         * lib/wchar.in.h: Likewise.
2696
2697 2010-01-20  Bruno Haible  <bruno@clisp.org>
2698
2699         Avoid duplicate -lm.
2700         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2701         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2702         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2703         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2704         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2705         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2706         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2707         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2708         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2709         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2710         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2711         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2712         Reported by Paolo Bonzini.
2713
2714 2010-01-19  Bruno Haible  <bruno@clisp.org>
2715
2716         langinfo, nl_langinfo: Relicense under LGPLv2+.
2717         * modules/langinfo (License): Change to LGPLv2+.
2718         * modules/nl_langinfo (License): Likewise.
2719         Patch by David Lutterkort <lutter@redhat.com>.
2720
2721 2010-01-19  Bruno Haible  <bruno@clisp.org>
2722
2723         Avoid compilation error with cc on OSF/1 5.1.
2724         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2725         statement, not before.
2726         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2727
2728 2010-01-18  Bruno Haible  <bruno@clisp.org>
2729
2730         Avoid a link error due to the __printf__ symbol.
2731         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2732         and 2.6.x.
2733         (__format__, __printf__): Remove definitions.
2734         * lib/argp-fmtstream.h: Likewise.
2735         * lib/argp.h: Likewise.
2736         * lib/error.h: Likewise.
2737         * lib/vasnprintf.h: Likewise.
2738         * lib/xprintf.h: Likewise.
2739         * lib/xvasprintf.h: Likewise.
2740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2741
2742 2010-01-18  Bruno Haible  <bruno@clisp.org>
2743
2744         Tests for module 'tanl'.
2745         * modules/tanl-tests: New file.
2746         * tests/test-tanl.c: New file.
2747
2748         Tests for module 'sqrtl'.
2749         * modules/sqrtl-tests: New file.
2750         * tests/test-sqrtl.c: New file.
2751
2752         Tests for module 'sinl'.
2753         * modules/sinl-tests: New file.
2754         * tests/test-sinl.c: New file.
2755
2756         Tests for module 'logl'.
2757         * modules/logl-tests: New file.
2758         * tests/test-logl.c: New file.
2759
2760         Tests for module 'expl'.
2761         * modules/expl-tests: New file.
2762         * tests/test-expl.c: New file.
2763
2764         Tests for module 'cosl'.
2765         * modules/cosl-tests: New file.
2766         * tests/test-cosl.c: New file.
2767
2768         Tests for module 'atanl'.
2769         * modules/atanl-tests: New file.
2770         * tests/test-atanl.c: New file.
2771
2772         Tests for module 'asinl'.
2773         * modules/asinl-tests: New file.
2774         * tests/test-asinl.c: New file.
2775
2776         Tests for module 'acosl'.
2777         * modules/acosl-tests: New file.
2778         * tests/test-acosl.c: New file.
2779
2780         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2781         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2782         tanl): Use the standard gnulib idiom.
2783         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2784         * lib/sinl.c: Likewise.
2785         * lib/tanl.c: Don't include trigl.c.
2786         (kernel_tanl): Make static.
2787         * lib/sincosl.c: Include trigl.h first.
2788         * lib/trigl.c: Likewise.
2789         * m4/acosl.m4: New file.
2790         * m4/asinl.m4: New file.
2791         * m4/atanl.m4: New file.
2792         * m4/cosl.m4: New file.
2793         * m4/expl.m4: New file.
2794         * m4/logl.m4: New file.
2795         * m4/sinl.m4: New file.
2796         * m4/sqrtl.m4: New file.
2797         * m4/tanl.m4: New file.
2798         * m4/mathl.m4: Remove file.
2799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2800         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2801         Don't initialize GNULIB_MATHL.
2802         * modules/acosl: New file.
2803         * modules/asinl: New file.
2804         * modules/atanl: New file.
2805         * modules/cosl: New file.
2806         * modules/expl: New file.
2807         * modules/logl: New file.
2808         * modules/sinl: New file.
2809         * modules/sqrtl: New file.
2810         * modules/tanl: New file.
2811         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2812         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2813         substitute GNULIB_MATHL.
2814         * modules/mathl: Rewritten.
2815         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2816         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2817         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2818         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2819         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2820         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2821         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2822         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2823         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2824
2825 2010-01-18  Bruno Haible  <bruno@clisp.org>
2826
2827         sqrt: Make gl_FUNC_SQRT requirable.
2828         * m4/sqrt.m4: New file.
2829         * modules/sqrt (Files): Add it.
2830         (configure.ac): Invoke gl_FUNC_SQRT.
2831
2832 2010-01-18  Bruno Haible  <bruno@clisp.org>
2833
2834         New modules for common <math.h> functions.
2835         * m4/mathfunc.m4: New file.
2836         * modules/acos: New file.
2837         * modules/asin: New file.
2838         * modules/atan: New file.
2839         * modules/atan2: New file.
2840         * modules/cbrt: New file.
2841         * modules/copysign: New file.
2842         * modules/cos: New file.
2843         * modules/cosh: New file.
2844         * modules/erf: New file.
2845         * modules/erfc: New file.
2846         * modules/exp: New file.
2847         * modules/fabs: New file.
2848         * modules/fmod: New file.
2849         * modules/hypot: New file.
2850         * modules/j0: New file.
2851         * modules/j1: New file.
2852         * modules/jn: New file.
2853         * modules/ldexp: New file.
2854         * modules/lgamma: New file.
2855         * modules/log: New file.
2856         * modules/log10: New file.
2857         * modules/log1p: New file.
2858         * modules/logb: New file.
2859         * modules/modf: New file.
2860         * modules/nextafter: New file.
2861         * modules/pow: New file.
2862         * modules/remainder: New file.
2863         * modules/rint: New file.
2864         * modules/sin: New file.
2865         * modules/sinh: New file.
2866         * modules/sqrt: New file.
2867         * modules/tan: New file.
2868         * modules/tanh: New file.
2869         * modules/y0: New file.
2870         * modules/y1: New file.
2871         * modules/yn: New file.
2872         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2873         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2874         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2875         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2876         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2877         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2878         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2879         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2880         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2881         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2882         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2883         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2884         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2885         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2886         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2887         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2888         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2889         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2890         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2891         * doc/posix-functions/log.texi: Mention the 'log' module.
2892         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2893         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2894         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2895         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2896         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2897         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2898         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2899         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2900         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2901         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2902         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2903         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2904         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2905         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2906         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2907         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2908
2909 2010-01-18  Jim Meyering  <meyering@redhat.com>
2910
2911         ignore-value: relax license to LGPLv2+
2912         * modules/ignore-value (License): Relax to LGPLv2+.
2913
2914         getdate: don't leak when TZ contains two or more '"'s
2915         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2916         double quote in TZ after the first one.
2917
2918         readtokens: do not leak internal token_lengths buffer
2919         * lib/readtokens.c (readtokens): Free the local, lengths,
2920         when the supplied "token_lengths" parameter is NULL.
2921
2922 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2923
2924         Fix a couple of missing LIBTHREAD link failures on AIX.
2925         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2926         $(LIBTHREAD).
2927         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2928
2929         Link test-poll against INET_PTON_LIB.
2930         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2931         for inet_pton on Solaris 10.
2932
2933 2010-01-17  Bruno Haible  <bruno@clisp.org>
2934
2935         unistdio/*-sprintf: Fix typo in module description.
2936         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2937         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2938         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2939         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2940         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2941         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2942         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2944
2945 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2946
2947         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2948         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2949         variables in shell case patterns, for AIX and HP-UX ksh.
2950
2951         Split large sed scripts, for HP-UX sed.
2952         * modules/stdio: Split sed scripts around 50 sed commands,
2953         to avoid HP-UX limit of 99 commands, in the near future.
2954         * modules/string: Likewise.
2955         * modules/unistd: Likewise.
2956
2957         gnulib-tool: avoid writing in the current directory.
2958         * gnulib-tool (func_emit_lib_Makefile_am)
2959         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2960         not in the current directory, so concurrent gnulib-tool
2961         instances do not interfere.
2962
2963 2010-01-16  Jim Meyering  <meyering@redhat.com>
2964
2965         doc: update users.txt
2966         * users.txt: Add grep.
2967         (diffutils, gzip): Update URLs.
2968
2969 2010-01-12  Bruno Haible  <bruno@clisp.org>
2970
2971         posix_spawn: Avoid test failure on Cygwin.
2972         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2973         characters.
2974         Reported by Simon Josefsson.
2975
2976 2010-01-12  Bruno Haible  <bruno@clisp.org>
2977
2978         * tests/test-cond.c (main): When skipping the test, show the reason.
2979
2980 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2981
2982         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2983
2984 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2985
2986         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2987         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2988
2989 2010-01-12  Eric Blake  <ebb9@byu.net>
2990
2991         build: guarantee AS_VAR_IF
2992         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2993         (gl_AS_VAR_IF): Move...
2994         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2995         Reported by Simon Josefsson.
2996
2997 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2998
2999         * lib/stdio.in.h: Fix typo.
3000
3001 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3002
3003         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3004         libgpg-error.
3005
3006 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3007
3008         * tests/test-xalloc-die.sh: Use $EXEEXT.
3009
3010 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3011             Bruno Haible  <bruno@clisp.org>
3012
3013         getlogin, getlogin_r: Avoid test failure.
3014         * tests/test-getlogin.c: Include <stdio.h>.
3015         (main): Skip the test when the function fails because stdin is not a
3016         tty.
3017         * tests/test-getlogin_r.c: Include <stdio.h>.
3018         (main): Skip the test when the function fails because stdin is not a
3019         tty.
3020
3021 2010-01-11  Eric Blake  <ebb9@byu.net>
3022
3023         tests: avoid more large file warnings
3024         * tests/test-fflush.c: Avoid warning about ftell use.
3025         * tests/test-fseek.c: Avoid warning about fseek use.
3026
3027 2010-01-10  Bruno Haible  <bruno@clisp.org>
3028
3029         nproc: Work better on Linux when /proc and /sys are not mounted.
3030         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3031         as lower bound when, on glibc/Linux systems,
3032         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3033         Suggested by Pádraig Brady <P@draigbrady.com>.
3034         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3035
3036         nproc: Refactor.
3037         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3038         extracted from num_processors.
3039         (num_processors): Call it.
3040
3041 2010-01-11  Jim Meyering  <meyering@redhat.com>
3042
3043         utimecmp: avoid new warning from upcoming gcc-4.5.0
3044         * lib/utimecmp.c (BILLION): Define using #define rather than an
3045         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3046
3047 2010-01-11  Eric Blake  <ebb9@byu.net>
3048
3049         math: add portability warnings for classification macros
3050         * modules/math (Depends-on): Add warn-on-use.
3051         (Makefile.am): Provide new substitutions.
3052         * m4/math_h.m4 (gl_MATH_H): Require inline.
3053         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3054         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3055         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3056         implement warnings.
3057
3058         unistd: warn on use of environ without module
3059         * modules/unistd (Depends-on): Add warn-on-use.
3060         (Makefile.am): Provide new substitutions.
3061         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3062         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3063
3064         stdio: warn on suspicious uses
3065         * modules/stdio (Depends-on): Add warn-on-use.
3066         (Makefile.am): Provide new substitutions.
3067         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3068         fseeko.
3069         * lib/stdio.in.h (gets): Always warn on use.
3070         (fseek, ftell): Adjust when warnings are issued, and honor
3071         _GL_NO_LARGE_FILES as a way to silence the warning.
3072         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3073         any warning about large file offsets.
3074         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3075         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3076         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3077         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3078         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3079         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3080         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3081         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3082
3083         warn-on-use: new module
3084         * modules/warn-on-use: New file.
3085         * build-aux/warn-on-use.h: Likewise.
3086         * m4/warn-on-use.m4: Likewise.
3087         * MODULES.html.sh (Support for building): Mention it.
3088
3089 2010-01-10  Bruno Haible  <bruno@clisp.org>
3090
3091         Tests for module 'unistr/u32-strdup'.
3092         * modules/unistr/u32-strdup-tests: New file.
3093         * tests/unistr/test-u32-strdup.c: New file.
3094
3095         Tests for module 'unistr/u16-strdup'.
3096         * modules/unistr/u16-strdup-tests: New file.
3097         * tests/unistr/test-u16-strdup.c: New file.
3098
3099         Tests for module 'unistr/u8-strdup'.
3100         * modules/unistr/u8-strdup-tests: New file.
3101         * tests/unistr/test-u8-strdup.c: New file.
3102         * tests/unistr/test-strdup.h: New file.
3103
3104         Tests for module 'unistr/u32-strncmp'.
3105         * modules/unistr/u32-strncmp-tests: New file.
3106         * tests/unistr/test-u32-strncmp.c: New file.
3107
3108         Tests for module 'unistr/u16-strncmp'.
3109         * modules/unistr/u16-strncmp-tests: New file.
3110         * tests/unistr/test-u16-strncmp.c: New file.
3111
3112         Tests for module 'unistr/u8-strncmp'.
3113         * modules/unistr/u8-strncmp-tests: New file.
3114         * tests/unistr/test-u8-strncmp.c: New file.
3115         * tests/unistr/test-strncmp.h: New file.
3116
3117         Tests for module 'unistr/u32-strcoll'.
3118         * modules/unistr/u32-strcoll-tests: New file.
3119         * tests/unistr/test-u32-strcoll.c: New file.
3120
3121         Tests for module 'unistr/u16-strcoll'.
3122         * modules/unistr/u16-strcoll-tests: New file.
3123         * tests/unistr/test-u16-strcoll.c: New file.
3124
3125         Tests for module 'unistr/u8-strcoll'.
3126         * modules/unistr/u8-strcoll-tests: New file.
3127         * tests/unistr/test-u8-strcoll.c: New file.
3128
3129         Tests for module 'unistr/u32-strcmp'.
3130         * modules/unistr/u32-strcmp-tests: New file.
3131         * tests/unistr/test-u32-strcmp.c: New file.
3132         * tests/unistr/test-u32-strcmp.h: New file.
3133
3134         Tests for module 'unistr/u16-strcmp'.
3135         * modules/unistr/u16-strcmp-tests: New file.
3136         * tests/unistr/test-u16-strcmp.c: New file.
3137         * tests/unistr/test-u16-strcmp.h: New file.
3138
3139         Tests for module 'unistr/u8-strcmp'.
3140         * modules/unistr/u8-strcmp-tests: New file.
3141         * tests/unistr/test-u8-strcmp.c: New file.
3142         * tests/unistr/test-u8-strcmp.h: New file.
3143         * tests/unistr/test-strcmp.h: New file.
3144
3145         Tests for module 'unistr/u32-strncat'.
3146         * modules/unistr/u32-strncat-tests: New file.
3147         * tests/unistr/test-u32-strncat.c: New file.
3148
3149         Tests for module 'unistr/u16-strncat'.
3150         * modules/unistr/u16-strncat-tests: New file.
3151         * tests/unistr/test-u16-strncat.c: New file.
3152
3153         Tests for module 'unistr/u8-strncat'.
3154         * modules/unistr/u8-strncat-tests: New file.
3155         * tests/unistr/test-u8-strncat.c: New file.
3156         * tests/unistr/test-strncat.h: New file.
3157
3158         Tests for module 'unistr/u32-strcat'.
3159         * modules/unistr/u32-strcat-tests: New file.
3160         * tests/unistr/test-u32-strcat.c: New file.
3161
3162         Tests for module 'unistr/u16-strcat'.
3163         * modules/unistr/u16-strcat-tests: New file.
3164         * tests/unistr/test-u16-strcat.c: New file.
3165
3166         Tests for module 'unistr/u8-strcat'.
3167         * modules/unistr/u8-strcat-tests: New file.
3168         * tests/unistr/test-u8-strcat.c: New file.
3169         * tests/unistr/test-strcat.h: New file.
3170
3171         Tests for module 'unistr/u32-stpncpy'.
3172         * modules/unistr/u32-stpncpy-tests: New file.
3173         * tests/unistr/test-u32-stpncpy.c: New file.
3174
3175         Tests for module 'unistr/u16-stpncpy'.
3176         * modules/unistr/u16-stpncpy-tests: New file.
3177         * tests/unistr/test-u16-stpncpy.c: New file.
3178
3179         Tests for module 'unistr/u8-stpncpy'.
3180         * modules/unistr/u8-stpncpy-tests: New file.
3181         * tests/unistr/test-u8-stpncpy.c: New file.
3182         * tests/unistr/test-stpncpy.h: New file.
3183
3184         Tests for module 'unistr/u32-strncpy'.
3185         * modules/unistr/u32-strncpy-tests: New file.
3186         * tests/unistr/test-u32-strncpy.c: New file.
3187
3188         Tests for module 'unistr/u16-strncpy'.
3189         * modules/unistr/u16-strncpy-tests: New file.
3190         * tests/unistr/test-u16-strncpy.c: New file.
3191
3192         Tests for module 'unistr/u8-strncpy'.
3193         * modules/unistr/u8-strncpy-tests: New file.
3194         * tests/unistr/test-u8-strncpy.c: New file.
3195         * tests/unistr/test-strncpy.h: New file.
3196
3197         Tests for module 'unistr/u32-stpcpy'.
3198         * modules/unistr/u32-stpcpy-tests: New file.
3199         * tests/unistr/test-u32-stpcpy.c: New file.
3200
3201         Tests for module 'unistr/u16-stpcpy'.
3202         * modules/unistr/u16-stpcpy-tests: New file.
3203         * tests/unistr/test-u16-stpcpy.c: New file.
3204
3205         Tests for module 'unistr/u8-stpcpy'.
3206         * modules/unistr/u8-stpcpy-tests: New file.
3207         * tests/unistr/test-u8-stpcpy.c: New file.
3208         * tests/unistr/test-stpcpy.h: New file.
3209
3210         Tests for module 'unistr/u32-strcpy'.
3211         * modules/unistr/u32-strcpy-tests: New file.
3212         * tests/unistr/test-u32-strcpy.c: New file.
3213
3214         Tests for module 'unistr/u16-strcpy'.
3215         * modules/unistr/u16-strcpy-tests: New file.
3216         * tests/unistr/test-u16-strcpy.c: New file.
3217
3218         Tests for module 'unistr/u8-strcpy'.
3219         * modules/unistr/u8-strcpy-tests: New file.
3220         * tests/unistr/test-u8-strcpy.c: New file.
3221         * tests/unistr/test-strcpy.h: New file.
3222
3223         Tests for module 'unistr/u32-strnlen'.
3224         * modules/unistr/u32-strnlen-tests: New file.
3225         * tests/unistr/test-u32-strnlen.c: New file.
3226
3227         Tests for module 'unistr/u16-strnlen'.
3228         * modules/unistr/u16-strnlen-tests: New file.
3229         * tests/unistr/test-u16-strnlen.c: New file.
3230
3231         Tests for module 'unistr/u8-strnlen'.
3232         * modules/unistr/u8-strnlen-tests: New file.
3233         * tests/unistr/test-u8-strnlen.c: New file.
3234         * tests/unistr/test-strnlen.h: New file.
3235
3236         Tests for module 'unistr/u32-strlen'.
3237         * modules/unistr/u32-strlen-tests: New file.
3238         * tests/unistr/test-u32-strlen.c: New file.
3239
3240         Tests for module 'unistr/u16-strlen'.
3241         * modules/unistr/u16-strlen-tests: New file.
3242         * tests/unistr/test-u16-strlen.c: New file.
3243
3244         Tests for module 'unistr/u8-strlen'.
3245         * modules/unistr/u8-strlen-tests: New file.
3246         * tests/unistr/test-u8-strlen.c: New file.
3247
3248         Tests for module 'unistr/u32-prev'.
3249         * modules/unistr/u32-prev-tests: New file.
3250         * tests/unistr/test-u32-prev.c: New file.
3251
3252         Tests for module 'unistr/u16-prev'.
3253         * modules/unistr/u16-prev-tests: New file.
3254         * tests/unistr/test-u16-prev.c: New file.
3255
3256         Tests for module 'unistr/u8-prev'.
3257         * modules/unistr/u8-prev-tests: New file.
3258         * tests/unistr/test-u8-prev.c: New file.
3259
3260         Tests for module 'unistr/u32-next'.
3261         * modules/unistr/u32-next-tests: New file.
3262         * tests/unistr/test-u32-next.c: New file.
3263
3264         Tests for module 'unistr/u16-next'.
3265         * modules/unistr/u16-next-tests: New file.
3266         * tests/unistr/test-u16-next.c: New file.
3267
3268         Tests for module 'unistr/u8-next'.
3269         * modules/unistr/u8-next-tests: New file.
3270         * tests/unistr/test-u8-next.c: New file.
3271
3272         Tests for module 'unistr/u32-strmbtouc'.
3273         * modules/unistr/u32-strmbtouc-tests: New file.
3274         * tests/unistr/test-u32-strmbtouc.c: New file.
3275
3276         Tests for module 'unistr/u16-strmbtouc'.
3277         * modules/unistr/u16-strmbtouc-tests: New file.
3278         * tests/unistr/test-u16-strmbtouc.c: New file.
3279
3280         Tests for module 'unistr/u8-strmbtouc'.
3281         * modules/unistr/u8-strmbtouc-tests: New file.
3282         * tests/unistr/test-u8-strmbtouc.c: New file.
3283
3284         Tests for module 'unistr/u32-strmblen'.
3285         * modules/unistr/u32-strmblen-tests: New file.
3286         * tests/unistr/test-u32-strmblen.c: New file.
3287
3288         Tests for module 'unistr/u16-strmblen'.
3289         * modules/unistr/u16-strmblen-tests: New file.
3290         * tests/unistr/test-u16-strmblen.c: New file.
3291
3292         Tests for module 'unistr/u8-strmblen'.
3293         * modules/unistr/u8-strmblen-tests: New file.
3294         * tests/unistr/test-u8-strmblen.c: New file.
3295
3296         Tests for module 'unistr/u32-cpy-alloc'.
3297         * modules/unistr/u32-cpy-alloc-tests: New file.
3298         * tests/unistr/test-u32-cpy-alloc.c: New file.
3299
3300         Tests for module 'unistr/u16-cpy-alloc'.
3301         * modules/unistr/u16-cpy-alloc-tests: New file.
3302         * tests/unistr/test-u16-cpy-alloc.c: New file.
3303
3304         Tests for module 'unistr/u8-cpy-alloc'.
3305         * modules/unistr/u8-cpy-alloc-tests: New file.
3306         * tests/unistr/test-u8-cpy-alloc.c: New file.
3307         * tests/unistr/test-cpy-alloc.h: New file.
3308
3309         Tests for module 'unistr/u32-mbsnlen'.
3310         * modules/unistr/u32-mbsnlen-tests: New file.
3311         * tests/unistr/test-u32-mbsnlen.c: New file.
3312
3313         Tests for module 'unistr/u16-mbsnlen'.
3314         * modules/unistr/u16-mbsnlen-tests: New file.
3315         * tests/unistr/test-u16-mbsnlen.c: New file.
3316
3317         Tests for module 'unistr/u8-mbsnlen'.
3318         * modules/unistr/u8-mbsnlen-tests: New file.
3319         * tests/unistr/test-u8-mbsnlen.c: New file.
3320
3321         Tests for module 'unistr/u32-chr'.
3322         * modules/unistr/u32-chr-tests: New file.
3323         * tests/unistr/test-u32-chr.c: New file.
3324
3325         Tests for module 'unistr/u16-chr'.
3326         * modules/unistr/u16-chr-tests: New file.
3327         * tests/unistr/test-u16-chr.c: New file.
3328
3329         Tests for module 'unistr/u8-chr'.
3330         * modules/unistr/u8-chr-tests: New file.
3331         * tests/unistr/test-u8-chr.c: New file.
3332         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3333
3334         Tests for module 'unistr/u32-cmp2'.
3335         * modules/unistr/u32-cmp2-tests: New file.
3336         * tests/unistr/test-u32-cmp2.c: New file.
3337
3338         Tests for module 'unistr/u16-cmp2'.
3339         * modules/unistr/u16-cmp2-tests: New file.
3340         * tests/unistr/test-u16-cmp2.c: New file.
3341
3342         Tests for module 'unistr/u8-cmp2'.
3343         * modules/unistr/u8-cmp2-tests: New file.
3344         * tests/unistr/test-u8-cmp2.c: New file.
3345         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3346
3347         Tests for module 'unistr/u32-cmp'.
3348         * modules/unistr/u32-cmp-tests: New file.
3349         * tests/unistr/test-u32-cmp.c: New file.
3350
3351         Tests for module 'unistr/u16-cmp'.
3352         * modules/unistr/u16-cmp-tests: New file.
3353         * tests/unistr/test-u16-cmp.c: New file.
3354
3355         Tests for module 'unistr/u8-cmp'.
3356         * modules/unistr/u8-cmp-tests: New file.
3357         * tests/unistr/test-u8-cmp.c: New file.
3358         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3359
3360         Tests for module 'unistr/u32-set'.
3361         * modules/unistr/u32-set-tests: New file.
3362         * tests/unistr/test-u32-set.c: New file.
3363
3364         Tests for module 'unistr/u16-set'.
3365         * modules/unistr/u16-set-tests: New file.
3366         * tests/unistr/test-u16-set.c: New file.
3367
3368         Tests for module 'unistr/u8-set'.
3369         * modules/unistr/u8-set-tests: New file.
3370         * tests/unistr/test-u8-set.c: New file.
3371         * tests/unistr/test-set.h: New file.
3372
3373         Tests for module 'unistr/u32-move'.
3374         * modules/unistr/u32-move-tests: New file.
3375         * tests/unistr/test-u32-move.c: New file.
3376
3377         Tests for module 'unistr/u16-move'.
3378         * modules/unistr/u16-move-tests: New file.
3379         * tests/unistr/test-u16-move.c: New file.
3380
3381         Tests for module 'unistr/u8-move'.
3382         * modules/unistr/u8-move-tests: New file.
3383         * tests/unistr/test-u8-move.c: New file.
3384         * tests/unistr/test-move.h: New file.
3385
3386         Tests for module 'unistr/u32-cpy'.
3387         * modules/unistr/u32-cpy-tests: New file.
3388         * tests/unistr/test-u32-cpy.c: New file.
3389
3390         Tests for module 'unistr/u16-cpy'.
3391         * modules/unistr/u16-cpy-tests: New file.
3392         * tests/unistr/test-u16-cpy.c: New file.
3393
3394         Tests for module 'unistr/u8-cpy'.
3395         * modules/unistr/u8-cpy-tests: New file.
3396         * tests/unistr/test-u8-cpy.c: New file.
3397         * tests/unistr/test-cpy.h: New file.
3398
3399 2010-01-09  Bruno Haible  <bruno@clisp.org>
3400
3401         Tests for module 'unistr/u32-uctomb'.
3402         * modules/unistr/u32-uctomb-tests: New file.
3403         * tests/unistr/test-u32-uctomb.c: New file.
3404
3405         Tests for module 'unistr/u16-uctomb'.
3406         * modules/unistr/u16-uctomb-tests: New file.
3407         * tests/unistr/test-u16-uctomb.c: New file.
3408
3409         Tests for module 'unistr/u8-uctomb'.
3410         * modules/unistr/u8-uctomb-tests: New file.
3411         * tests/unistr/test-u8-uctomb.c: New file.
3412
3413         Tests for module 'unistr/u32-mbtoucr'.
3414         * modules/unistr/u32-mbtoucr-tests: New file.
3415         * tests/unistr/test-u32-mbtoucr.c: New file.
3416
3417         Tests for module 'unistr/u16-mbtoucr'.
3418         * modules/unistr/u16-mbtoucr-tests: New file.
3419         * tests/unistr/test-u16-mbtoucr.c: New file.
3420
3421         Tests for module 'unistr/u8-mbtoucr'.
3422         * modules/unistr/u8-mbtoucr-tests: New file.
3423         * tests/unistr/test-u8-mbtoucr.c: New file.
3424
3425         Tests for module 'unistr/u32-mbtouc'.
3426         * modules/unistr/u32-mbtouc-tests: New file.
3427         * tests/unistr/test-u32-mbtouc.c: New file.
3428
3429         Tests for module 'unistr/u16-mbtouc'.
3430         * modules/unistr/u16-mbtouc-tests: New file.
3431         * tests/unistr/test-u16-mbtouc.c: New file.
3432
3433         Tests for module 'unistr/u8-mbtouc'.
3434         * modules/unistr/u8-mbtouc-tests: New file.
3435         * tests/unistr/test-u8-mbtouc.c: New file.
3436
3437         Tests for module 'unistr/u32-mbtouc-unsafe'.
3438         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3439         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3440         * tests/unistr/test-u32-mbtouc.h: New file.
3441
3442         Tests for module 'unistr/u16-mbtouc-unsafe'.
3443         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3444         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3445         * tests/unistr/test-u16-mbtouc.h: New file.
3446
3447         Tests for module 'unistr/u8-mbtouc-unsafe'.
3448         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3449         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3450         * tests/unistr/test-u8-mbtouc.h: New file.
3451
3452         Tests for module 'unistr/u32-mblen'.
3453         * modules/unistr/u32-mblen-tests: New file.
3454         * tests/unistr/test-u32-mblen.c: New file.
3455
3456         Tests for module 'unistr/u16-mblen'.
3457         * modules/unistr/u16-mblen-tests: New file.
3458         * tests/unistr/test-u16-mblen.c: New file.
3459
3460         Tests for module 'unistr/u8-mblen'.
3461         * modules/unistr/u8-mblen-tests: New file.
3462         * tests/unistr/test-u8-mblen.c: New file.
3463
3464         Tests for module 'unistr/u32-to-u16'.
3465         * modules/unistr/u32-to-u16-tests: New file.
3466         * tests/unistr/test-u32-to-u16.c: New file.
3467
3468         Tests for module 'unistr/u32-to-u8'.
3469         * modules/unistr/u32-to-u8-tests: New file.
3470         * tests/unistr/test-u32-to-u8.c: New file.
3471
3472         Tests for module 'unistr/u16-to-u32'.
3473         * modules/unistr/u16-to-u32-tests: New file.
3474         * tests/unistr/test-u16-to-u32.c: New file.
3475
3476         Tests for module 'unistr/u16-to-u8'.
3477         * modules/unistr/u16-to-u8-tests: New file.
3478         * tests/unistr/test-u16-to-u8.c: New file.
3479
3480         Tests for module 'unistr/u8-to-u32'.
3481         * modules/unistr/u8-to-u32-tests: New file.
3482         * tests/unistr/test-u8-to-u32.c: New file.
3483
3484         Tests for module 'unistr/u8-to-u16'.
3485         * modules/unistr/u8-to-u16-tests: New file.
3486         * tests/unistr/test-u8-to-u16.c: New file.
3487
3488         Tests for module 'unistr/u32-check'.
3489         * modules/unistr/u32-check-tests: New file.
3490         * tests/unistr/test-u32-check.c: New file.
3491
3492         Tests for module 'unistr/u16-check'.
3493         * modules/unistr/u16-check-tests: New file.
3494         * tests/unistr/test-u16-check.c: New file.
3495
3496         Tests for module 'unistr/u8-check'.
3497         * modules/unistr/u8-check-tests: New file.
3498         * tests/unistr/test-u8-check.c: New file.
3499
3500         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3501         (category_equals): New function.
3502         (main): Add more tests.
3503         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3504
3505         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3506
3507 2010-01-10  Bruno Haible  <bruno@clisp.org>
3508
3509         unistr/u*-strcoll: Try harder to distinguish different strings.
3510         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3511         compare s1 and s2 to see if they are different.
3512
3513 2010-01-10  Bruno Haible  <bruno@clisp.org>
3514
3515         unistr/u*-stpncpy: Fix the return value.
3516         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3517         description of the return value consistent with stpncpy in glibc.
3518         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3519         written non-NUL unit.
3520
3521 2010-01-10  Bruno Haible  <bruno@clisp.org>
3522
3523         unistr/u*-next: Add missing dependencies.
3524         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3525         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3526         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3527
3528 2010-01-10  Bruno Haible  <bruno@clisp.org>
3529
3530         unistr/u8-mbsnlen: Fix return value for incomplete character.
3531         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3532         u8_mblen.
3533         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3534         Remove unistr/u8-mblen.
3535         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3536         u16_mblen.
3537         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3538         Remove unistr/u16-mblen.
3539
3540 2010-01-10  Bruno Haible  <bruno@clisp.org>
3541
3542         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3543         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3544         Reported by Brian Gough <bjg@gnu.org> and
3545         Chris Clayton <chris2553@googlemail.com> via
3546         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3547
3548 2010-01-09  Bruno Haible  <bruno@clisp.org>
3549
3550         unistr/u16-to-u32: Reject invalid input.
3551         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3552         u16_mbtouc.
3553         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3554         Remove unistr/u16-mbtouc.
3555
3556         unistr/u16-to-u8: Reject invalid input.
3557         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3558         u16_mbtouc.
3559         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3560         Remove unistr/u16-mbtouc.
3561
3562         unistr/u8-to-u32: Reject invalid input.
3563         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3564         u8_mbtouc.
3565         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3566         Remove unistr/u8-mbtouc.
3567
3568         unistr/u8-to-u16: Reject invalid input.
3569         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3570         u8_mbtouc.
3571         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3572         Remove unistr/u8-mbtouc.
3573
3574 2010-01-09  Bruno Haible  <bruno@clisp.org>
3575
3576         Tests for module 'getlogin'.
3577         * modules/getlogin-tests: New file.
3578         * tests/test-getlogin.c: New file.
3579
3580         New module 'getlogin'.
3581         * lib/unistd.in.h (getlogin): New declaration.
3582         * lib/getlogin.c: New file.
3583         * m4/getlogin.m4: New file.
3584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3585         HAVE_GETLOGIN.
3586         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3587         HAVE_GETLOGIN.
3588         * modules/getlogin: New file.
3589         * doc/posix-functions/getlogin.texi: Mention the new module.
3590         Reported by John W. Eaton <jwe@gnu.org>.
3591
3592 2010-01-09  Bruno Haible  <bruno@clisp.org>
3593
3594         getlogin_r: Support for native Windows.
3595         * lib/getlogin_r.c: Include <windows.h>
3596         (getlogin_r): Implement for native Windows.
3597         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3598         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3599         via John W. Eaton <jwe@gnu.org>.
3600
3601 2010-01-09  Bruno Haible  <bruno@clisp.org>
3602
3603         getlogin_r: Small fixes.
3604         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3605         succeeds.
3606         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3607         before testing whether getlogin_r is declared. No need to set
3608         HAVE_DECL_GETLOGIN_R to 1.
3609         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3610
3611 2010-01-09  Bruno Haible  <bruno@clisp.org>
3612
3613         * lib/unistd.in.h (getlogin_r): Add comment.
3614
3615 2010-01-09  Bruno Haible  <bruno@clisp.org>
3616
3617         Tests for module 'getlogin_r'.
3618         * modules/getlogin_r-tests: New file.
3619         * tests/test-getlogin_r.c: New file.
3620
3621 2010-01-09  Jim Meyering  <meyering@redhat.com>
3622
3623         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3624         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3625         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3626
3627 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3628
3629         * lib/dup2.c (rpl_dup2): Improve comment.
3630
3631 2010-01-08  Eric Blake  <ebb9@byu.net>
3632
3633         maint.mk: allow packages to add makefile @@ exceptions
3634         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3635         (sc_makefile_check): Rename...
3636         (sc_makefile_at_at_check): ...to this, and use hook.
3637
3638         dup2: work around mingw bug
3639         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3640         Reported by Simon Josefsson.
3641
3642 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3643
3644         glob: Fix C++ compilation.
3645         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3646         C++.
3647
3648 2010-01-07  Bruno Haible  <bruno@clisp.org>
3649
3650         Fix indentation of wctype.in.h, broken since 2007-01-06.
3651         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3652
3653 2010-01-07  Bruno Haible  <bruno@clisp.org>
3654
3655         mbslen: Avoid collision with system function.
3656         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3657         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3658         * m4/mbslen.m4: New file.
3659         * modules/mbslen (Files): Add it.
3660         (configure.ac): Invoke gl_MBSLEN.
3661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3662         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3663         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3664         via Ian Beckwith <ianb@erislabs.net>.
3665
3666 2010-01-07  Bruno Haible  <bruno@clisp.org>
3667
3668         dirent: Document the last fix.
3669         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3670
3671 2010-01-07  Bruno Haible  <bruno@clisp.org>
3672
3673         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3674         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3675         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3676         va_list are defined.
3677         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3678         Reported by Eric Blake.
3679
3680 2010-01-07  Bruno Haible  <bruno@clisp.org>
3681
3682         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3683         * modules/xlist (Depends-on): Add 'list',
3684         * modules/xoset (Depends-on): Add 'oset'.
3685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3686
3687 2010-01-07  Bruno Haible  <bruno@clisp.org>
3688
3689         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3690         * doc/posix-functions/strncasecmp.texi: Likewise.
3691
3692 2010-01-07  Bruno Haible  <bruno@clisp.org>
3693
3694         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3695
3696 2010-01-07  John W. Eaton  <jwe@octave.org>
3697
3698         wctype: allow C++ use
3699         * lib/wctype.in.h: Add extern "C" block for C++.
3700
3701 2010-01-06  Eric Blake  <ebb9@byu.net>
3702
3703         maint.mk: detect incorrect GFDL usage
3704         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3705
3706 2010-01-06  Jim Meyering  <meyering@redhat.com>
3707         and Eric Blake  <ebb9@byu.net>
3708
3709         maint.mk: ignore multi-line copyright in NEWS
3710         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3711
3712 2010-01-06  Eric Blake  <ebb9@byu.net>
3713
3714         select: add missing dependency
3715         * modules/select-tests (Depends-on): Move sockets dependency...
3716         * modules/select (Depends-on): ...here.
3717         Reported by Ian Beckwith.
3718
3719         doc: regenerate INSTALL
3720         * doc/INSTALL: Reflect recent autoconf update.
3721         * doc/INSTALL.ISO: Likewise.
3722         * doc/INSTALL.UTF-8: Likewise.
3723
3724         pread: fix compilation on glibc
3725         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3726         Reported by Ralf Wildenhues.
3727
3728         dirent: fix test failure
3729         * lib/dirent.in.h (includes): Guarantee ino_t.
3730         Reported by Ralf Wildenhues.
3731
3732 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3733
3734         linkat, renameat: avoid bad free
3735         * lib/at-func2.c (at_func2): Fix typo.
3736         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3737
3738 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3739
3740         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3741         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3742         to avoid failure of symlink test later.
3743
3744 2010-01-06  Eric Blake  <ebb9@byu.net>
3745
3746         stdio, unistd: guarantee ssize_t
3747         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3748         2008 are exposed when needed.
3749         * lib/stdio.in.h (includes): Likewise.
3750         Reported by Ralf Wildenhues.
3751
3752 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3753
3754         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3755         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3756         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3757
3758 2010-01-06  Jim Meyering  <meyering@redhat.com>
3759
3760         readtokens: this module *does* require xalloc.h
3761         It uses only functions that were omitted by the old syntax-check rule.
3762         * lib/readtokens.c: Include "xalloc.h" once again.
3763         * modules/readtokens (Depends-on): Add xalloc.
3764         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3765
3766 2010-01-05  Eric Blake  <ebb9@byu.net>
3767
3768         maint: support 'make announcement' from a VPATH build
3769         * top/maint.mk (announcement): Look for correct NEWS file.
3770
3771 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3772
3773         utimens (fdutimens): ignore a negative FD, per contract
3774         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3775         when we have a valid file descriptor.  Otherwise, using a brand
3776         new glibc (with just-patched futimens that now fails with EBADF)
3777         would cause this function to fail with ENOSYS.
3778         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3779         See also http://bugzilla.redhat.com/552320.
3780
3781 2010-01-05  Eric Blake  <ebb9@byu.net>
3782
3783         strcase: document what it provides
3784         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3785         gnulib module.
3786         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3787         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3788
3789 2010-01-05  Jim Meyering  <meyering@redhat.com>
3790
3791         maint: remove useless inclusions of "xalloc.h"
3792         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3793         * lib/readtokens.c: Likewise.
3794         * lib/same.c: Likewise.
3795         * modules/getloadavg (Depends-on): Remove xalloc.
3796         * modules/readtokens: Likewise.
3797         * modules/same: Likewise.
3798
3799         maint.mk: include 4 more function names in alloca.h-checking regexp
3800         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3801         regexp.  Before, we would give a false-positive (saying alloca.h
3802         is included unnecessarily) when the only uses involved omitted symbols.
3803
3804         xalloc.h: use consistent formatting
3805         * lib/xalloc.h: Move declarations to start in the first column.
3806
3807 2010-01-05  Eric Blake  <ebb9@byu.net>
3808
3809         mkdir: avoid xalloc
3810         * lib/mkdir.c (includes): Drop unused header.
3811         Reported by John W. Eaton.
3812
3813 2010-01-04  Jim Meyering  <meyering@redhat.com>
3814
3815         nl_langinfo: avoid configure-time syntax error
3816         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3817         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3818         the empty string.  Don't let that provoke a shell syntax error.
3819
3820         regcomp, regexec, fnmatch: avoid array bounds read error
3821         * lib/regcomp.c (build_equiv_class): From glibc:
3822         Use only the low 24 bits of a findidx return value as an index
3823         into the weights array.  Patch by Ulrich Drepper:
3824         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3825         * lib/regexec.c (check_node_accept_bytes): Likewise.
3826         * lib/fnmatch_loop.c (FCT): Likewise.
3827
3828         regcomp: skip collseq lookup when there are no rules
3829         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3830         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3831
3832         regcomp: recognize ill-formed { } expressions
3833         * lib/regcomp.c (parse_dup_op): From glibc:
3834         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3835
3836         regcomp: fix typo in comment
3837         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3838         s/satisfy/satisfies/.
3839
3840         regcomp: sync from glibc: remove dead store
3841         * lib/regcomp.c (duplicate_node_closure): Remove useless
3842         search_duplicated_node call and dead store.
3843
3844         regcomp: sync from glibc; always use nl_langinfo
3845         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3846         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3847         * modules/regex (Depends-on): Add nl_langinfo.
3848
3849 2010-01-04  Eric Blake  <ebb9@byu.net>
3850
3851         fdopendir: fix configure test
3852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3853
3854 2010-01-01  Bruno Haible  <bruno@clisp.org>
3855
3856         wchar: Remove unused configure check.
3857         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3858
3859 2010-01-01  Eric Blake  <ebb9@byu.net>
3860
3861         headers: make check of system header explicit
3862         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3863         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3864         ourselves.
3865         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3867         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3868         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3869         internals.
3870         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3871         missing.
3872         Suggested by Bruno Haible.
3873
3874 2010-01-01  Jim Meyering  <meyering@redhat.com>
3875
3876         ChangeLog: tweak to eliminate unnecessary copyright line
3877         * ChangeLog: Remove a copyright line that was mistakenly updated
3878         by today's update-copyright run.  Reported by Eric Blake.
3879
3880         test-update-copyright: don't let envvar setting cause test failure
3881         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3882
3883 2010-01-01  Bruno Haible  <bruno@clisp.org>
3884
3885         localename: Avoid gcc warning.
3886         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3887         function if it is not used.
3888
3889 2010-01-01  Jim Meyering  <meyering@redhat.com>
3890
3891         update nearly all FSF copyright year lists to include 2010
3892         Use the same procedure as for 2009, outlined in
3893         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3894
3895         version-etc: set COPYRIGHT_YEAR to 2010
3896         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3897
3898 2009-12-31  Eric Blake  <ebb9@byu.net>
3899
3900         doc: correct availability of cygwin 1.5.x getopt
3901         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3902         variables.
3903         * doc/posix-functions/opterr.texi (opterr): Likewise.
3904         * doc/posix-functions/optind.texi (optind): Likewise.
3905         * doc/posix-functions/optopt.texi (optopt): Likewise.
3906         * doc/posix-functions/tzname.texi (tzname): Likewise.
3907
3908         openat: update maintainer
3909         * modules/openat (Maintainer): Add myself.
3910
3911         utimens: avoid shadowing warning
3912         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3913         buffers into one, to avoid shadowing, as well as avoiding a
3914         redundant stat.
3915         Reported by Jim Meyering.
3916
3917         test-dup2: avoid compiler warning
3918         * tests/test-dup2.c (is_inheritable): Only define if used.
3919
3920 2010-01-01  Bruno Haible  <bruno@clisp.org>
3921
3922         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3923         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3924         defined, use wctomb instead of wcrtomb.
3925
3926 2010-01-01  Bruno Haible  <bruno@clisp.org>
3927
3928         iconv: Reject native Solaris iconv.
3929         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3930         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3931
3932 2009-12-31  Bruno Haible  <bruno@clisp.org>
3933
3934         * tests/test-signal.c (main): Remove test of 'SIG'.
3935
3936 2009-12-31  Bruno Haible  <bruno@clisp.org>
3937
3938         spawn: Fix incomplete fix.
3939         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3940         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3941         warnings for GNULIB_POSIXCHECK again.
3942         Reported by Eric Blake.
3943
3944 2009-12-31  Bruno Haible  <bruno@clisp.org>
3945
3946         Avoid namespace pollution on glibc systems.
3947         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3948         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3949         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3950         glibc systems.
3951
3952 2009-12-31  Bruno Haible  <bruno@clisp.org>
3953
3954         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3955         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3956         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3957         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3958         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3959         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3960         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3961
3962 2009-12-31  Bruno Haible  <bruno@clisp.org>
3963
3964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3965         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3966         afterwards.
3967
3968 2009-12-31  Bruno Haible  <bruno@clisp.org>
3969
3970         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3971         SYS_UTSNAME_H.
3972
3973 2009-12-31  Bruno Haible  <bruno@clisp.org>
3974
3975         spawn: Fix misapplied patch.
3976         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3977         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3978         warnings for GNULIB_POSIXCHECK.
3979
3980 2009-12-31  Bruno Haible  <bruno@clisp.org>
3981
3982         times: Update after sys_times changed.
3983         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3984         * modules/times (Files): Add it.
3985         (configure.ac): Invoke gl_FUNC_TIMES.
3986
3987 2009-12-31  Bruno Haible  <bruno@clisp.org>
3988
3989         Use AC_C_INLINE where necessary.
3990         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3991         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3993         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3994         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3995         * m4/mbiter.m4 (gl_MBITER): Likewise.
3996         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3997         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3998         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3999         * modules/u64 (configure.ac): Likewise.
4000
4001 2009-12-31  Bruno Haible  <bruno@clisp.org>
4002
4003         Use AC_C_INLINE instead of module 'inline' where possible.
4004         * modules/inline (Description): Clarify purpose.
4005         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4006         * modules/count-one-bits (Depends-on): Remove inline.
4007         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4008         * modules/openat (Depends-on): Remove inline.
4009         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4010         instead of depending on module 'inline'.
4011         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4012         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4013         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4014         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4015         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4016         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4017         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4018         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4019         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4020         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4021         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4022         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4023         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4024         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4025         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4026         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4027         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4028         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4029         Likewise.
4030         * modules/unictype/property-ascii-hex-digit (Depends-on,
4031         configure.ac): Likewise.
4032         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4033         configure.ac): Likewise.
4034         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4035         configure.ac): Likewise.
4036         * modules/unictype/property-bidi-block-separator (Depends-on,
4037         configure.ac): Likewise.
4038         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4039         configure.ac): Likewise.
4040         * modules/unictype/property-bidi-common-separator (Depends-on,
4041         configure.ac): Likewise.
4042         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4043         Likewise.
4044         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4045         configure.ac): Likewise.
4046         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4047         configure.ac): Likewise.
4048         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4049         configure.ac): Likewise.
4050         * modules/unictype/property-bidi-european-digit (Depends-on,
4051         configure.ac): Likewise.
4052         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4053         configure.ac): Likewise.
4054         * modules/unictype/property-bidi-left-to-right (Depends-on,
4055         configure.ac): Likewise.
4056         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4057         configure.ac): Likewise.
4058         * modules/unictype/property-bidi-other-neutral (Depends-on,
4059         configure.ac): Likewise.
4060         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4061         Likewise.
4062         * modules/unictype/property-bidi-segment-separator (Depends-on,
4063         configure.ac): Likewise.
4064         * modules/unictype/property-bidi-whitespace (Depends-on,
4065         configure.ac): Likewise.
4066         * modules/unictype/property-combining (Depends-on, configure.ac):
4067         Likewise.
4068         * modules/unictype/property-composite (Depends-on, configure.ac):
4069         Likewise.
4070         * modules/unictype/property-currency-symbol (Depends-on,
4071         configure.ac): Likewise.
4072         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4073         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4074         Likewise.
4075         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4076         configure.ac): Likewise.
4077         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4078         Likewise.
4079         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4080         Likewise.
4081         * modules/unictype/property-extender (Depends-on, configure.ac):
4082         Likewise.
4083         * modules/unictype/property-format-control (Depends-on, configure.ac):
4084         Likewise.
4085         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4086         Likewise.
4087         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4088         Likewise.
4089         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4090         Likewise.
4091         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4092         Likewise.
4093         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4094         Likewise.
4095         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4096         Likewise.
4097         * modules/unictype/property-id-start (Depends-on, configure.ac):
4098         Likewise.
4099         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4100         Likewise.
4101         * modules/unictype/property-ids-binary-operator (Depends-on,
4102         configure.ac): Likewise.
4103         * modules/unictype/property-ids-trinary-operator (Depends-on,
4104         configure.ac): Likewise.
4105         * modules/unictype/property-ignorable-control (Depends-on,
4106         configure.ac): Likewise.
4107         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4108         Likewise.
4109         * modules/unictype/property-join-control (Depends-on, configure.ac):
4110         Likewise.
4111         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4112         Likewise.
4113         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4114         Likewise.
4115         * modules/unictype/property-logical-order-exception (Depends-on,
4116         configure.ac): Likewise.
4117         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4118         Likewise.
4119         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4120         * modules/unictype/property-non-break (Depends-on, configure.ac):
4121         Likewise.
4122         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4123         Likewise.
4124         * modules/unictype/property-numeric (Depends-on, configure.ac):
4125         Likewise.
4126         * modules/unictype/property-other-alphabetic (Depends-on,
4127         configure.ac): Likewise.
4128         * modules/unictype/property-other-default-ignorable-code-point
4129         (Depends-on, configure.ac): Likewise.
4130         * modules/unictype/property-other-grapheme-extend (Depends-on,
4131         configure.ac): Likewise.
4132         * modules/unictype/property-other-id-continue (Depends-on,
4133         configure.ac): Likewise.
4134         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4135         Likewise.
4136         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4137         Likewise.
4138         * modules/unictype/property-other-math (Depends-on, configure.ac):
4139         Likewise.
4140         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4141         Likewise.
4142         * modules/unictype/property-paired-punctuation (Depends-on,
4143         configure.ac): Likewise.
4144         * modules/unictype/property-paragraph-separator (Depends-on,
4145         configure.ac): Likewise.
4146         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4147         Likewise.
4148         * modules/unictype/property-pattern-white-space (Depends-on,
4149         configure.ac): Likewise.
4150         * modules/unictype/property-private-use (Depends-on, configure.ac):
4151         Likewise.
4152         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4153         Likewise.
4154         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4155         Likewise.
4156         * modules/unictype/property-radical (Depends-on, configure.ac):
4157         Likewise.
4158         * modules/unictype/property-sentence-terminal (Depends-on,
4159         configure.ac): Likewise.
4160         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4161         Likewise.
4162         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4163         * modules/unictype/property-terminal-punctuation (Depends-on,
4164         configure.ac): Likewise.
4165         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4166         Likewise.
4167         * modules/unictype/property-unassigned-code-value (Depends-on,
4168         configure.ac): Likewise.
4169         * modules/unictype/property-unified-ideograph (Depends-on,
4170         configure.ac): Likewise.
4171         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4172         Likewise.
4173         * modules/unictype/property-variation-selector (Depends-on,
4174         configure.ac): Likewise.
4175         * modules/unictype/property-white-space (Depends-on, configure.ac):
4176         Likewise.
4177         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4178         Likewise.
4179         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4180         Likewise.
4181         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4182         Likewise.
4183         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4184         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4185         Likewise.
4186
4187 2009-12-31  Bruno Haible  <bruno@clisp.org>
4188
4189         Remove unnecessary AC_C_INLINE invocation.
4190         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4191         since 2009-08-21.
4192
4193 2009-12-31  Jim Meyering  <meyering@redhat.com>
4194
4195         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4196         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4197         With this change, we can all remove the gpg_key_ID = ... definition
4198         from our respective cfg.mk files.
4199
4200         maint.mk: create announcement template in ~/, not in /tmp
4201         * top/maint.mk (emit_upload_commands): Adjust.
4202         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4203         Remove temporary file, .ci-msg.
4204
4205 2009-12-31  Eric Blake  <ebb9@byu.net>
4206
4207         link-warning: always build headers with link warnings
4208         * modules/arpa_inet (Makefile.am): Always build replacement
4209         header.
4210         * modules/ctype (Makefile.am): Likewise.
4211         * modules/dirent (Makefile.am): Likewise.
4212         * modules/inttypes (Makefile.am): Likewise.
4213         * modules/langinfo (Makefile.am): Likewise.
4214         * modules/locale (Makefile.am): Likewise.
4215         * modules/spawn (Makefile.am): Likewise.
4216         * modules/sys_file (Makefile.am): Likewise.
4217         * modules/sys_ioctl (Makefile.am): Likewise.
4218         * modules/sys_select (Makefile.am): Likewise.
4219         * modules/sys_socket (Makefile.am): Likewise.
4220         * modules/sys_times (Makefile.am): Likewise.
4221         * modules/sys_utsname (Makefile.am): Likewise.
4222         * modules/sys_wait (Makefile.am): Likewise.
4223         * modules/wchar (Makefile.am): Likewise.
4224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4225         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4226         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4227         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4228         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4229         Likewise.
4230         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4231         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4232         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4233         Likewise.
4234         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4235         Likewise.
4236         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4238         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4240         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4241         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4242         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4243         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4244         (gl_WCHAR_H_DEFAULTS): Likewise.
4245
4246 2009-12-31  Eric Blake  <ebb9@byu.net>
4247
4248         signal, spawn: use link warnings
4249         * lib/signal.in.h (sigset_t): Make unconditional.
4250         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4251         (sigpending, sigprocmask, sigaction): Add link warnings.
4252         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4253         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4254         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4255         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4256         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4257         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4258         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4259         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4260         (posix_spawn_file_actions_destroy)
4261         (posix_spawn_file_actions_addopen)
4262         (posix_spawn_file_actions_addclose)
4263         (posix_spawn_file_actions_adddup2): Likewise.
4264         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4265         * tests/test-signal.c (main): Enhance test.
4266
4267         spawn: improve wrapper support
4268         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4269         (gl_SPAWN_H_DEFAULTS): New defaults.
4270         * modules/spawn (Makefile.am): Substitute them.
4271         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4272         Only declare if missing or broken.
4273
4274         sys_times, sys_utsname: use include_next
4275         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4276         header.
4277         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4279         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4280         * modules/sys_times (Depends-on): Add include_next.
4281         (Makefile.am): Substitute additional values.
4282         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4283         * lib/sys_times.in.h (includes): Include native header, if
4284         available.
4285         * lib/sys_utsname.in.h (includes): Likewise.
4286         * tests/test-sys_times.c (main): Enhance test.
4287
4288         fdutimensat: revert prior patch
4289         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4290         utimens.h.
4291         Reported by Bruno Haible.
4292
4293 2009-12-30  Eric Blake  <ebb9@byu.net>
4294
4295         sys_wait: drop link-warning dependency
4296         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4297         link-warning efforts.
4298         * lib/sys_wait.in.h: Likewise.
4299
4300         fdutimensat: remove bogus dependency
4301         * modules/fdutimensat (Depends-on): Drop inline.
4302
4303         unistd: fix typo
4304         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4305
4306 2009-12-30  Bruno Haible  <bruno@clisp.org>
4307
4308         Fix compilation error with Solaris cc.
4309         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4310         * lib/unicase/u16-is-invariant.c: Likewise.
4311         * lib/unicase/u32-is-invariant.c: Likewise.
4312         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4313
4314 2009-12-30  Bruno Haible  <bruno@clisp.org>
4315
4316         Fix test crash.
4317         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4318         locales.
4319         Reported by Simon Josefsson <simon@josefsson.org>.
4320
4321 2009-12-30  Bruno Haible  <bruno@clisp.org>
4322
4323         Fix compilation error on most platforms.
4324         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4325         Reported by Simon Josefsson <simon@josefsson.org>
4326         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4327
4328 2009-12-30  Eric Blake  <ebb9@byu.net>
4329
4330         futimens, utimensat: work around ntfs-3g bug
4331         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4332         a ctime bug is present, and expand workaround to cover ntfs-3g.
4333         * lib/utimens.c (fdutimens, lutimens): Likewise.
4334         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4335         (validate_timespec): Adjust return value.
4336         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4337         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4338         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4339
4340 2009-12-29  Eric Blake  <ebb9@byu.net>
4341
4342         link-warning: make usage consistent
4343         * modules/ctype (Depends-on): Add link-warning.
4344         (Makefile.am): Update rules accordingly.
4345         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4346         * modules/locale (Depends-on, Makefile.am): Likewise.
4347         * modules/sys_file (Makefile.am): Likewise.
4348         * modules/getopt-posix (Makefile.am): Delete unused link warning
4349         efforts.
4350         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4351         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4352         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4353         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4354
4355         stdio: remove unused variables
4356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4357         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4358         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4359
4360         tests: test more substitute headers
4361         * modules/ctype-tests: New file.
4362         * modules/dirent-tests: Likewise.
4363         * modules/spawn-tests: Likewise.
4364         * modules/sys_file-tests: Likewise.
4365         * modules/sys_ioctl-tests: Likewise.
4366         * modules/sys_wait-tests: Likewise.
4367         * tests/test-ctype.c: Likewise.
4368         * tests/test-dirent.c: Likewise.
4369         * tests/test-spawn.c: Likewise.
4370         * tests/test-sys_file.c: Likewise.
4371         * tests/test-sys_ioctl.c: Likewise.
4372         * tests/test-sys_wait.c: Likewise.
4373         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4374         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4375         whether or not flock is in use.
4376
4377         tests: remove License section from module
4378         * modules/arpa_inet-tests: Remove unneeded section.
4379         * modules/byteswap-tests: Likewise.
4380         * modules/ceilf-tests: Likewise.
4381         * modules/ceill-tests: Likewise.
4382         * modules/crypto/des-tests: Likewise.
4383         * modules/crypto/gc-arcfour-tests: Likewise.
4384         * modules/crypto/gc-arctwo-tests: Likewise.
4385         * modules/crypto/gc-des-tests: Likewise.
4386         * modules/crypto/gc-hmac-md5-tests: Likewise.
4387         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4388         * modules/crypto/gc-md2-tests: Likewise.
4389         * modules/crypto/gc-md4-tests: Likewise.
4390         * modules/crypto/gc-md5-tests: Likewise.
4391         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4392         * modules/crypto/gc-rijndael-tests: Likewise.
4393         * modules/crypto/gc-sha1-tests: Likewise.
4394         * modules/crypto/gc-tests: Likewise.
4395         * modules/crypto/md2-tests: Likewise.
4396         * modules/crypto/md4-tests: Likewise.
4397         * modules/fcntl-h-tests: Likewise.
4398         * modules/floorf-tests: Likewise.
4399         * modules/floorl-tests: Likewise.
4400         * modules/frexp-nolibm-tests: Likewise.
4401         * modules/frexp-tests: Likewise.
4402         * modules/frexpl-nolibm-tests: Likewise.
4403         * modules/frexpl-tests: Likewise.
4404         * modules/getaddrinfo-tests: Likewise.
4405         * modules/inttypes-tests: Likewise.
4406         * modules/isfinite-tests: Likewise.
4407         * modules/isinf-tests: Likewise.
4408         * modules/ldexpl-tests: Likewise.
4409         * modules/locale-tests: Likewise.
4410         * modules/math-tests: Likewise.
4411         * modules/netdb-tests: Likewise.
4412         * modules/netinet_in-tests: Likewise.
4413         * modules/printf-frexp-tests: Likewise.
4414         * modules/printf-frexpl-tests: Likewise.
4415         * modules/priv-set-tests: Likewise.
4416         * modules/random_r-tests: Likewise.
4417         * modules/round-tests: Likewise.
4418         * modules/roundf-tests: Likewise.
4419         * modules/roundl-tests: Likewise.
4420         * modules/search-tests: Likewise.
4421         * modules/select-tests: Likewise.
4422         * modules/signal-tests: Likewise.
4423         * modules/stdbool-tests: Likewise.
4424         * modules/stddef-tests: Likewise.
4425         * modules/stdint-tests: Likewise.
4426         * modules/stdio-tests: Likewise.
4427         * modules/stdlib-tests: Likewise.
4428         * modules/string-tests: Likewise.
4429         * modules/strings-tests: Likewise.
4430         * modules/sys_select-tests: Likewise.
4431         * modules/sys_socket-tests: Likewise.
4432         * modules/sys_stat-tests: Likewise.
4433         * modules/sys_time-tests: Likewise.
4434         * modules/sys_utsname-tests: Likewise.
4435         * modules/sysexits-tests: Likewise.
4436         * modules/time-tests: Likewise.
4437         * modules/trunc-tests: Likewise.
4438         * modules/truncf-tests: Likewise.
4439         * modules/truncl-tests: Likewise.
4440         * modules/tsearch-tests: Likewise.
4441         * modules/unistd-tests: Likewise.
4442         * modules/wchar-tests: Likewise.
4443         * modules/wctype-tests: Likewise.
4444
4445         tests: fix license on several tests
4446         * tests/test-des.c: Update to GPLv3+.
4447         * tests/test-flock.c: Likewise.
4448         * tests/test-fsync.c: Likewise.
4449         * tests/test-futimens.h: Likewise.
4450         * tests/test-gc-arcfour.c: Likewise.
4451         * tests/test-gc-arctwo.c: Likewise.
4452         * tests/test-gc-des.c: Likewise.
4453         * tests/test-gc-hmac-md5.c: Likewise.
4454         * tests/test-gc-hmac-sha1.c: Likewise.
4455         * tests/test-gc-md2.c: Likewise.
4456         * tests/test-gc-md4.c: Likewise.
4457         * tests/test-gc-md5.c: Likewise.
4458         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4459         * tests/test-gc-rijndael.c: Likewise.
4460         * tests/test-gc-sha1.c: Likewise.
4461         * tests/test-gc.c: Likewise.
4462         * tests/test-getcwd.c: Likewise.
4463         * tests/test-link.c: Likewise.
4464         * tests/test-link.h: Likewise.
4465         * tests/test-lutimens.h: Likewise.
4466         * tests/test-md2.c: Likewise.
4467         * tests/test-md4.c: Likewise.
4468         * tests/test-mkdir.h: Likewise.
4469         * tests/test-rename.c: Likewise.
4470         * tests/test-rename.h: Likewise.
4471         * tests/test-safe-alloc.c: Likewise.
4472         * tests/test-utimens-common.h: Likewise.
4473         * tests/test-utimens.h: Likewise.
4474
4475         maint: sync license texts
4476         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4477         * doc/gpl-3.0.texi: Revert copyright year update.
4478         * doc/lgpl-3.0.texi: Likewise.
4479
4480 2009-12-29  Jim Meyering  <meyering@redhat.com>
4481
4482         update nearly all FSF copyright year lists to include 2009
4483         The files named by the following are exempted:
4484             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4485               test -f "$dst" && { echo "$dst"; continue; }
4486               test -d "$dst" || continue
4487               echo "$dst"/$(basename "$src")
4488             done > exempt
4489             git ls-files tests/unictype >> exempt
4490         In the remaining files, convert to all-interval notation if
4491         - there is already at least one year interval like 2000-2003
4492         - the file is maintained by me
4493         - the file is in lib/uni*/, where that style already prevails
4494         Otherwise, use update-copyright's default.
4495
4496 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4497         and Eric Blake  <ebb9@byu.net>
4498
4499         tests: don't require debug system() to pass
4500         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4501         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4502         * tests/test-unlink.h (test_unlink_func): Likewise.
4503         * tests/test-fstatat.c (main): ...into callers.
4504         * tests/test-lstat.c (main): Likewise.
4505         * tests/test-rmdir.c (main): Likewise.
4506         * tests/test-unlink.c (main): Likewise.
4507         * tests/test-unlinkat.c (main): Likewise.
4508         * tests/test-areadlink-with-size.c (main): Don't require a
4509         debug-only system call to pass, aiding cross-testing to mingw.
4510         * tests/test-areadlink.c (main): Likewise.
4511         * tests/test-areadlinkat-with-size.c (main): Likewise.
4512         * tests/test-areadlinkat.c (main): Likewise.
4513         * tests/test-canonicalize-lgpl.c (main): Likewise.
4514         * tests/test-canonicalize.c (main): Likewise.
4515         * tests/test-chown.c (main): Likewise.
4516         * tests/test-fchownat.c (main): Likewise.
4517         * tests/test-lchown.c (main): Likewise.
4518         * tests/test-fdutimensat.c (main): Likewise.
4519         * tests/test-futimens.c (main): Likewise.
4520         * tests/test-link.c (main): Likewise.
4521         * tests/test-linkat.c (main): Likewise.
4522         * tests/test-mkdir.c (main): Likewise.
4523         * tests/test-mkdirat.c (main): Likewise.
4524         * tests/test-mkfifo.c (main): Likewise.
4525         * tests/test-mkfifoat.c (main): Likewise.
4526         * tests/test-mknod.c (main): Likewise.
4527         * tests/test-readlink.c (main): Likewise.
4528         * tests/test-remove.c (main): Likewise.
4529         * tests/test-rename.c (main): Likewise.
4530         * tests/test-renameat.c (main): Likewise.
4531         * tests/test-symlink.c (main): Likewise.
4532         * tests/test-symlinkat.c (main): Likewise.
4533         * tests/test-utimens.c (main): Likewise.
4534         * tests/test-utimensat.c (main): Likewise.
4535
4536 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4537
4538         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4539         on $(UNUSED_PARAMETER_H) to avoid build failure.
4540
4541 2009-12-28  Jim Meyering  <meyering@redhat.com>
4542
4543         update-copyright: you may specify a max. line length other than 72
4544         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4545
4546         maint: use consistent FSF copyright line syntax
4547         * lib/posixtm.c: Add missing comma in FSF copyright line.
4548         * lib/posixtm.h: Likewise.
4549         * lib/getugroups.c: Add missing ", Inc.".
4550
4551         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4552         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4553         FSF copyright line.  Remove trailing blanks.
4554
4555 2009-12-28  Eric Blake  <ebb9@byu.net>
4556
4557         test-dup2: reduce dependencies
4558         * modules/cloexec (Configure.ac): Set witness.
4559         * modules/dup2-tests (Depends-on): Drop cloexec.
4560         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4561         not present.
4562         Suggested by Bruno Haible.
4563
4564 2009-12-26  Bruno Haible  <bruno@clisp.org>
4565
4566         Remove an unneeded dependency.
4567         * modules/fseterr (Depends-on): Remove dup2.
4568
4569 2009-12-26  Eric Blake  <ebb9@byu.net>
4570
4571         tests: use macros.h in more places
4572         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4573         (ASSERT_STREAM): Provide default of stderr.
4574         * tests/test-dirent-safer.c: Include macros.h, using alternate
4575         stream for assertions.
4576         * tests/test-dup-safer.c: Likewise.
4577         * tests/test-freopen-safer.c: Likewise.
4578         * tests/test-getopt.c: Likewise.
4579         * tests/test-openat-safer.c: Likewise.
4580         * tests/test-pipe.c: Likewise.
4581         * tests/test-popen-safer.c: Likewise.
4582         * modules/dirent-safer-tests (Files): Include macros.h.
4583         * modules/unistd-safer-tests (Files): Likewise.
4584         * modules/freopen-safer-tests (Files): Likewise.
4585         * modules/getopt-posix-tests (Files): Likewise.
4586         * modules/openat-safer-tests (Files): Likewise.
4587         * modules/pipe-tests (Files): Likewise.
4588
4589 2009-12-26  Bruno Haible  <bruno@clisp.org>
4590
4591         javacomp: Portability fix.
4592         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4593         that it also works on Solaris.
4594
4595 2009-12-26  Bruno Haible  <bruno@clisp.org>
4596
4597         localename: Fix storage allocation of gl_locale_name_thread's result.
4598         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4599         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4600         all platforms that have 'uselocale'.
4601         (gl_locale_name_thread_unsafe): New function, extracted from
4602         gl_locale_name_thread.
4603         (gl_locale_name_thread): Call struniq on all platforms that have
4604         'uselocale'.
4605         * tests/test-localename.c (test_locale_name_thread): Check that the
4606         resulting strings are permanently allocated.
4607         * modules/localename-tests (Depends-on): Add strdup.
4608
4609 2009-12-26  Bruno Haible  <bruno@clisp.org>
4610
4611         * tests/test-localename.c (categories): Fill in the strings.
4612
4613 2009-12-26  Jim Meyering  <meyering@redhat.com>
4614
4615         isdir: complete the removal of m4/isdir.m4
4616         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4617
4618         isdir: clean up, since at least grep still uses it
4619         * lib/isdir.c: Include "isdir.h".
4620         (S_ISDIR): Remove now-unneeded definition.
4621         * modules/isdir (Files): Add lib/isdir.h.
4622         * lib/isdir.h: New file, with declaration.
4623         * m4/isdir.m4: Remove file -- unneeded.
4624
4625 2009-12-25  Bruno Haible  <bruno@clisp.org>
4626
4627         selinux-h: Make generated .h files standalone.
4628         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4629         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4630         * lib/se-selinux.in.h: Likewise.
4631         * modules/selinux-h (Depends-on): Add unused-parameter.
4632         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4633         selinux/selinux.h and selinux/context.h.
4634         Suggested by Eric Blake.
4635
4636 2009-12-25  Bruno Haible  <bruno@clisp.org>
4637
4638         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4639         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4640         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4641         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4642         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4643
4644 2009-12-24  Bruno Haible  <bruno@clisp.org>
4645
4646         openat: Fix warning.
4647         * lib/openat-proc.c: Include <unistd.h>.
4648
4649 2009-12-24  Bruno Haible  <bruno@clisp.org>
4650
4651         New module 'unused-parameter'.
4652         * build-aux/unused-parameter.h: New file, extracted from earlier
4653         gnulib-common.m4.
4654         * modules/unused-parameter: New file.
4655         * lib/unistr.h: Include unused-parameter.h.
4656         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4657         _GL_UNUSED.
4658         * modules/unistr/base (Depends-on): Add unused-parameter.
4659
4660 2009-12-24  Bruno Haible  <bruno@clisp.org>
4661
4662         Add missing dependencies to 'extensions' module.
4663         * m4/extensions.m4: Add comment.
4664         * modules/accept4 (Depends-on): Add extensions.
4665         * modules/dup3 (Depends-on): Likewise.
4666         * modules/fcntl (Depends-on): Likewise.
4667         * modules/futimens (Depends-on): Likewise.
4668         * modules/mknod (Depends-on): Likewise.
4669         * modules/pipe2 (Depends-on): Likewise.
4670         * modules/stat-time (Depends-on): Likewise.
4671         * modules/strcasestr-simple (Depends-on): Likewise.
4672         * modules/strsignal (Depends-on): Likewise.
4673         * modules/utimensat (Depends-on): Likewise.
4674         * modules/localcharset (Depends-on): Likewise. Needed because of
4675         gl_FCNTL_O_FLAGS.
4676         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4677         AC_TYPE_MBSTATE_T.
4678         * modules/wcsnrtombs (Depends-on): Likewise.
4679         * modules/wcsrtombs (Depends-on): Likewise.
4680
4681 2009-12-24  Bruno Haible  <bruno@clisp.org>
4682
4683         binary-io: Avoid gcc warning due to SET_BINARY.
4684         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4685         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4686
4687 2009-12-24  Bruno Haible  <bruno@clisp.org>
4688
4689         Avoid future namespace pollution on glibc systems.
4690         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4691         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4692         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4693         glibc systems.
4694
4695 2009-12-24  Bruno Haible  <bruno@clisp.org>
4696
4697         Refactor common macros used in tests.
4698         * tests/macros.h: New file.
4699         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4700         and/or <stdlib.h>, if appropriate.
4701         (ASSERT, SIZEOF): Remove macros.
4702         * tests/test-areadlink-with-size.c: Likewise.
4703         * tests/test-areadlinkat.c: Likewise.
4704         * tests/test-areadlinkat-with-size.c: Likewise.
4705         * tests/test-argmatch.c: Likewise.
4706         * tests/test-argv-iter.c: Likewise.
4707         * tests/test-array-mergesort.c: Likewise.
4708         * tests/test-array_list.c: Likewise.
4709         * tests/test-array_oset.c: Likewise.
4710         * tests/test-avltree_list.c: Likewise.
4711         * tests/test-avltree_oset.c: Likewise.
4712         * tests/test-avltreehash_list.c: Likewise.
4713         * tests/test-base64.c: Likewise.
4714         * tests/test-binary-io.c: Likewise.
4715         * tests/test-bitrotate.c: Likewise.
4716         * tests/test-btowc.c: Likewise.
4717         * tests/test-byteswap.c: Likewise.
4718         * tests/test-c-ctype.c: Likewise.
4719         * tests/test-c-stack.c: Likewise.
4720         * tests/test-c-strcasecmp.c: Likewise.
4721         * tests/test-c-strcasestr.c: Likewise.
4722         * tests/test-c-strncasecmp.c: Likewise.
4723         * tests/test-c-strstr.c: Likewise.
4724         * tests/test-canonicalize-lgpl.c: Likewise.
4725         * tests/test-canonicalize.c: Likewise.
4726         * tests/test-carray_list.c: Likewise.
4727         * tests/test-ceilf1.c: Likewise.
4728         * tests/test-ceilf2.c: Likewise.
4729         * tests/test-ceill.c: Likewise.
4730         * tests/test-chown.c: Likewise.
4731         * tests/test-cloexec.c: Likewise.
4732         * tests/test-copy-acl.c: Likewise.
4733         * tests/test-copy-file.c: Likewise.
4734         * tests/test-count-one-bits.c: Likewise.
4735         * tests/test-dprintf-posix.c: Likewise.
4736         * tests/test-dup2.c: Likewise.
4737         * tests/test-dup3.c: Likewise.
4738         * tests/test-duplocale.c: Likewise.
4739         * tests/test-fbufmode.c: Likewise.
4740         * tests/test-fchdir.c: Likewise.
4741         * tests/test-fchownat.c: Likewise.
4742         * tests/test-fcntl-safer.c: Likewise.
4743         * tests/test-fcntl.c: Likewise.
4744         * tests/test-fdopendir.c: Likewise.
4745         * tests/test-fdutimensat.c: Likewise.
4746         * tests/test-fflush2.c: Likewise.
4747         * tests/test-file-has-acl.c: Likewise.
4748         * tests/test-filevercmp.c: Likewise.
4749         * tests/test-flock.c: Likewise.
4750         * tests/test-floorf1.c: Likewise.
4751         * tests/test-floorf2.c: Likewise.
4752         * tests/test-floorl.c: Likewise.
4753         * tests/test-fnmatch.c: Likewise.
4754         * tests/test-fopen.h: Likewise.
4755         * tests/test-fpending.c: Likewise.
4756         * tests/test-fprintf-posix.c: Likewise.
4757         * tests/test-fpurge.c: Likewise.
4758         * tests/test-freadable.c: Likewise.
4759         * tests/test-freadahead.c: Likewise.
4760         * tests/test-freading.c: Likewise.
4761         * tests/test-freadptr.c: Likewise.
4762         * tests/test-freadptr2.c: Likewise.
4763         * tests/test-freadseek.c: Likewise.
4764         * tests/test-freopen.c: Likewise.
4765         * tests/test-frexp.c: Likewise.
4766         * tests/test-frexpl.c: Likewise.
4767         * tests/test-fseek.c: Likewise.
4768         * tests/test-fseeko.c: Likewise.
4769         * tests/test-fstatat.c: Likewise.
4770         * tests/test-fstrcmp.c: Likewise.
4771         * tests/test-fsync.c: Likewise.
4772         * tests/test-ftell.c: Likewise.
4773         * tests/test-ftello.c: Likewise.
4774         * tests/test-func.c: Likewise.
4775         * tests/test-futimens.c: Likewise.
4776         * tests/test-fwritable.c: Likewise.
4777         * tests/test-fwriting.c: Likewise.
4778         * tests/test-getcwd.c: Likewise.
4779         * tests/test-getdate.c: Likewise.
4780         * tests/test-getdelim.c: Likewise.
4781         * tests/test-getdtablesize.c: Likewise.
4782         * tests/test-getgroups.c: Likewise.
4783         * tests/test-getline.c: Likewise.
4784         * tests/test-getndelim2.c: Likewise.
4785         * tests/test-glob.c: Likewise.
4786         * tests/test-hash.c: Likewise.
4787         * tests/test-i-ring.c: Likewise.
4788         * tests/test-iconv-utf.c: Likewise.
4789         * tests/test-iconv.c: Likewise.
4790         * tests/test-idpriv-drop.c: Likewise.
4791         * tests/test-idpriv-droptemp.c: Likewise.
4792         * tests/test-inet_ntop.c: Likewise.
4793         * tests/test-inet_pton.c: Likewise.
4794         * tests/test-isblank.c: Likewise.
4795         * tests/test-isfinite.c: Likewise.
4796         * tests/test-isinf.c: Likewise.
4797         * tests/test-isnan.c: Likewise.
4798         * tests/test-isnand.h: Likewise.
4799         * tests/test-isnanf.h: Likewise.
4800         * tests/test-isnanl.h: Likewise.
4801         * tests/test-lchown.c: Likewise.
4802         * tests/test-ldexpl.c: Likewise.
4803         * tests/test-link.c: Likewise.
4804         * tests/test-linkat.c: Likewise.
4805         * tests/test-linked_list.c: Likewise.
4806         * tests/test-linkedhash_list.c: Likewise.
4807         * tests/test-localename.c: Likewise.
4808         * tests/test-lseek.c: Likewise.
4809         * tests/test-lstat.c: Likewise.
4810         * tests/test-mbmemcasecmp.c: Likewise.
4811         * tests/test-mbmemcasecoll.c: Likewise.
4812         * tests/test-mbrtowc.c: Likewise.
4813         * tests/test-mbscasecmp.c: Likewise.
4814         * tests/test-mbscasestr1.c: Likewise.
4815         * tests/test-mbscasestr2.c: Likewise.
4816         * tests/test-mbscasestr3.c: Likewise.
4817         * tests/test-mbscasestr4.c: Likewise.
4818         * tests/test-mbschr.c: Likewise.
4819         * tests/test-mbscspn.c: Likewise.
4820         * tests/test-mbsinit.c: Likewise.
4821         * tests/test-mbsncasecmp.c: Likewise.
4822         * tests/test-mbsnrtowcs.c: Likewise.
4823         * tests/test-mbspbrk.c: Likewise.
4824         * tests/test-mbspcasecmp.c: Likewise.
4825         * tests/test-mbsrchr.c: Likewise.
4826         * tests/test-mbsrtowcs.c: Likewise.
4827         * tests/test-mbsspn.c: Likewise.
4828         * tests/test-mbsstr1.c: Likewise.
4829         * tests/test-mbsstr2.c: Likewise.
4830         * tests/test-mbsstr3.c: Likewise.
4831         * tests/test-memchr.c: Likewise.
4832         * tests/test-memchr2.c: Likewise.
4833         * tests/test-memcmp.c: Likewise.
4834         * tests/test-memmem.c: Likewise.
4835         * tests/test-memrchr.c: Likewise.
4836         * tests/test-mkdir.c: Likewise.
4837         * tests/test-mkdirat.c: Likewise.
4838         * tests/test-mkfifo.c: Likewise.
4839         * tests/test-mkfifoat.c: Likewise.
4840         * tests/test-mknod.c: Likewise.
4841         * tests/test-nanosleep.c: Likewise.
4842         * tests/test-nl_langinfo.c: Likewise.
4843         * tests/test-obstack-printf.c: Likewise.
4844         * tests/test-open.c: Likewise.
4845         * tests/test-openat.c: Likewise.
4846         * tests/test-pipe-filter-gi1.c: Likewise.
4847         * tests/test-pipe-filter-gi2-main.c: Likewise.
4848         * tests/test-pipe-filter-ii1.c: Likewise.
4849         * tests/test-pipe-filter-ii2-main.c: Likewise.
4850         * tests/test-pipe2.c: Likewise.
4851         * tests/test-popen.h: Likewise.
4852         * tests/test-posixtm.c: Likewise.
4853         * tests/test-pread.c: Likewise.
4854         * tests/test-printf-frexp.c: Likewise.
4855         * tests/test-printf-frexpl.c: Likewise.
4856         * tests/test-printf-posix.c: Likewise.
4857         * tests/test-priv-set.c: Likewise.
4858         * tests/test-quotearg.c: Likewise.
4859         * tests/test-random_r.c: Likewise.
4860         * tests/test-rawmemchr.c: Likewise.
4861         * tests/test-rbtree_list.c: Likewise.
4862         * tests/test-rbtree_oset.c: Likewise.
4863         * tests/test-rbtreehash_list.c: Likewise.
4864         * tests/test-readlink.c: Likewise.
4865         * tests/test-remove.c: Likewise.
4866         * tests/test-rename.c: Likewise.
4867         * tests/test-renameat.c: Likewise.
4868         * tests/test-rmdir.c: Likewise.
4869         * tests/test-round1.c: Likewise.
4870         * tests/test-roundf1.c: Likewise.
4871         * tests/test-roundl.c: Likewise.
4872         * tests/test-safe-alloc.c: Likewise.
4873         * tests/test-sameacls.c: Likewise.
4874         * tests/test-set-mode-acl.c: Likewise.
4875         * tests/test-setenv.c: Likewise.
4876         * tests/test-sigaction.c: Likewise.
4877         * tests/test-signbit.c: Likewise.
4878         * tests/test-sleep.c: Likewise.
4879         * tests/test-snprintf-posix.c: Likewise.
4880         * tests/test-snprintf.c: Likewise.
4881         * tests/test-sprintf-posix.c: Likewise.
4882         * tests/test-stat-time.c: Likewise.
4883         * tests/test-stat.c: Likewise.
4884         * tests/test-strcasestr.c: Likewise.
4885         * tests/test-strchrnul.c: Likewise.
4886         * tests/test-strerror.c: Likewise.
4887         * tests/test-striconv.c: Likewise.
4888         * tests/test-striconveh.c: Likewise.
4889         * tests/test-striconveha.c: Likewise.
4890         * tests/test-strsignal.c: Likewise.
4891         * tests/test-strstr.c: Likewise.
4892         * tests/test-strtod.c: Likewise.
4893         * tests/test-strverscmp.c: Likewise.
4894         * tests/test-symlink.c: Likewise.
4895         * tests/test-symlinkat.c: Likewise.
4896         * tests/test-trunc1.c: Likewise.
4897         * tests/test-trunc2.c: Likewise.
4898         * tests/test-truncf1.c: Likewise.
4899         * tests/test-truncf2.c: Likewise.
4900         * tests/test-truncl.c: Likewise.
4901         * tests/test-uname.c: Likewise.
4902         * tests/test-unlink.c: Likewise.
4903         * tests/test-unlinkat.c: Likewise.
4904         * tests/test-unsetenv.c: Likewise.
4905         * tests/test-usleep.c: Likewise.
4906         * tests/test-utimens.c: Likewise.
4907         * tests/test-utimensat.c: Likewise.
4908         * tests/test-vasnprintf-posix.c: Likewise.
4909         * tests/test-vasnprintf-posix2.c: Likewise.
4910         * tests/test-vasnprintf.c: Likewise.
4911         * tests/test-vasprintf-posix.c: Likewise.
4912         * tests/test-vasprintf.c: Likewise.
4913         * tests/test-vdprintf-posix.c: Likewise.
4914         * tests/test-vfprintf-posix.c: Likewise.
4915         * tests/test-vprintf-posix.c: Likewise.
4916         * tests/test-vsnprintf-posix.c: Likewise.
4917         * tests/test-vsnprintf.c: Likewise.
4918         * tests/test-vsprintf-posix.c: Likewise.
4919         * tests/test-wcrtomb.c: Likewise.
4920         * tests/test-wcsnrtombs.c: Likewise.
4921         * tests/test-wcsrtombs.c: Likewise.
4922         * tests/test-wctype.c: Likewise.
4923         * tests/test-wcwidth.c: Likewise.
4924         * tests/test-xfprintf-posix.c: Likewise.
4925         * tests/test-xmemdup0.c: Likewise.
4926         * tests/test-xprintf-posix.c: Likewise.
4927         * tests/test-xvasprintf.c: Likewise.
4928         * tests/unicase/test-locale-language.c: Likewise.
4929         * tests/unicase/test-mapping-part1.h: Likewise.
4930         * tests/unicase/test-predicate-part1.h: Likewise.
4931         * tests/unicase/test-u8-casecmp.c: Likewise.
4932         * tests/unicase/test-u8-casecoll.c: Likewise.
4933         * tests/unicase/test-u8-casefold.c: Likewise.
4934         * tests/unicase/test-u8-is-cased.c: Likewise.
4935         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4936         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4937         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4938         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4939         * tests/unicase/test-u8-tolower.c: Likewise.
4940         * tests/unicase/test-u8-totitle.c: Likewise.
4941         * tests/unicase/test-u8-toupper.c: Likewise.
4942         * tests/unicase/test-u16-casecmp.c: Likewise.
4943         * tests/unicase/test-u16-casecoll.c: Likewise.
4944         * tests/unicase/test-u16-casefold.c: Likewise.
4945         * tests/unicase/test-u16-is-cased.c: Likewise.
4946         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4947         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4948         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4949         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4950         * tests/unicase/test-u16-tolower.c: Likewise.
4951         * tests/unicase/test-u16-totitle.c: Likewise.
4952         * tests/unicase/test-u16-toupper.c: Likewise.
4953         * tests/unicase/test-u32-casecmp.c: Likewise.
4954         * tests/unicase/test-u32-casecoll.c: Likewise.
4955         * tests/unicase/test-u32-casefold.c: Likewise.
4956         * tests/unicase/test-u32-is-cased.c: Likewise.
4957         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4958         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4959         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4960         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4961         * tests/unicase/test-u32-tolower.c: Likewise.
4962         * tests/unicase/test-u32-totitle.c: Likewise.
4963         * tests/unicase/test-u32-toupper.c: Likewise.
4964         * tests/unicase/test-ulc-casecmp.c: Likewise.
4965         * tests/unicase/test-ulc-casecoll.c: Likewise.
4966         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4967         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4968         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4969         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4970         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4971         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4972         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4973         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4974         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4975         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4976         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4977         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4978         * tests/unictype/test-bidi_byname.c: Likewise.
4979         * tests/unictype/test-bidi_name.c: Likewise.
4980         * tests/unictype/test-bidi_of.c: Likewise.
4981         * tests/unictype/test-bidi_test.c: Likewise.
4982         * tests/unictype/test-block_list.c: Likewise.
4983         * tests/unictype/test-block_of.c: Likewise.
4984         * tests/unictype/test-block_test.c: Likewise.
4985         * tests/unictype/test-categ_and.c: Likewise.
4986         * tests/unictype/test-categ_and_not.c: Likewise.
4987         * tests/unictype/test-categ_byname.c: Likewise.
4988         * tests/unictype/test-categ_name.c: Likewise.
4989         * tests/unictype/test-categ_none.c: Likewise.
4990         * tests/unictype/test-categ_of.c: Likewise.
4991         * tests/unictype/test-categ_or.c: Likewise.
4992         * tests/unictype/test-categ_test_withtable.c: Likewise.
4993         * tests/unictype/test-combining.c: Likewise.
4994         * tests/unictype/test-decdigit.c: Likewise.
4995         * tests/unictype/test-digit.c: Likewise.
4996         * tests/unictype/test-mirror.c: Likewise.
4997         * tests/unictype/test-numeric.c: Likewise.
4998         * tests/unictype/test-pr_byname.c: Likewise.
4999         * tests/unictype/test-pr_test.c: Likewise.
5000         * tests/unictype/test-predicate-part1.h: Likewise.
5001         * tests/unictype/test-scripts.c: Likewise.
5002         * tests/unictype/test-sy_c_ident.c: Likewise.
5003         * tests/unictype/test-sy_java_ident.c: Likewise.
5004         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5005         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5006         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5007         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5008         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5009         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5010         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5011         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5012         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5013         * tests/uninorm/test-compat-decomposition.c: Likewise.
5014         * tests/uninorm/test-composition.c: Likewise.
5015         * tests/uninorm/test-decomposing-form.c: Likewise.
5016         * tests/uninorm/test-decomposition.c: Likewise.
5017         * tests/uninorm/test-u8-nfc.c: Likewise.
5018         * tests/uninorm/test-u8-nfd.c: Likewise.
5019         * tests/uninorm/test-u8-nfkc.c: Likewise.
5020         * tests/uninorm/test-u8-nfkd.c: Likewise.
5021         * tests/uninorm/test-u8-normcmp.c: Likewise.
5022         * tests/uninorm/test-u8-normcoll.c: Likewise.
5023         * tests/uninorm/test-u16-nfc.c: Likewise.
5024         * tests/uninorm/test-u16-nfd.c: Likewise.
5025         * tests/uninorm/test-u16-nfkc.c: Likewise.
5026         * tests/uninorm/test-u16-nfkd.c: Likewise.
5027         * tests/uninorm/test-u16-normcmp.c: Likewise.
5028         * tests/uninorm/test-u16-normcoll.c: Likewise.
5029         * tests/uninorm/test-u32-nfc.c: Likewise.
5030         * tests/uninorm/test-u32-nfd.c: Likewise.
5031         * tests/uninorm/test-u32-nfkc.c: Likewise.
5032         * tests/uninorm/test-u32-nfkd.c: Likewise.
5033         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5034         * tests/uninorm/test-u32-normcmp.c: Likewise.
5035         * tests/uninorm/test-u32-normcoll.c: Likewise.
5036         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5037         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5038         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5039         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5040         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5041         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5042         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5043         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5044         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5045         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5046         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5047         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5048         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5049         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5050         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5051         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5052         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5053         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5054         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5055         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5056         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5057         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5058         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5059         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5060         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5061         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5062         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5063         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5064         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5065         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5066         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5067         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5068         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5069         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5070         * tests/uniwidth/test-u8-width.c: Likewise.
5071         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5072         * tests/uniwidth/test-u16-width.c: Likewise.
5073         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5074         * tests/uniwidth/test-u32-width.c: Likewise.
5075         * tests/uniwidth/test-uc_width.c: Likewise.
5076         * tests/uniwidth/test-uc_width2.c: Likewise.
5077         * modules/acl-tests (Files): Add tests/macros.h.
5078         * modules/areadlink-tests (Files): Likewise.
5079         * modules/areadlink-with-size-tests (Files): Likewise.
5080         * modules/areadlinkat-tests (Files): Likewise.
5081         * modules/areadlinkat-with-size-tests (Files): Likewise.
5082         * modules/argmatch-tests (Files): Likewise.
5083         * modules/argv-iter-tests (Files): Likewise.
5084         * modules/array-list-tests (Files): Likewise.
5085         * modules/array-mergesort-tests (Files): Likewise.
5086         * modules/array-oset-tests (Files): Likewise.
5087         * modules/avltree-list-tests (Files): Likewise.
5088         * modules/avltree-oset-tests (Files): Likewise.
5089         * modules/avltreehash-list-tests (Files): Likewise.
5090         * modules/base64-tests (Files): Likewise.
5091         * modules/binary-io-tests (Files): Likewise.
5092         * modules/bitrotate-tests (Files): Likewise.
5093         * modules/btowc-tests (Files): Likewise.
5094         * modules/byteswap-tests (Files): Likewise.
5095         * modules/c-ctype-tests (Files): Likewise.
5096         * modules/c-stack-tests (Files): Likewise.
5097         * modules/c-strcase-tests (Files): Likewise.
5098         * modules/c-strcasestr-tests (Files): Likewise.
5099         * modules/c-strstr-tests (Files): Likewise.
5100         * modules/canonicalize-lgpl-tests (Files): Likewise.
5101         * modules/canonicalize-tests (Files): Likewise.
5102         * modules/carray-list-tests (Files): Likewise.
5103         * modules/ceilf-tests (Files): Likewise.
5104         * modules/ceill-tests (Files): Likewise.
5105         * modules/chown-tests (Files): Likewise.
5106         * modules/cloexec-tests (Files): Likewise.
5107         * modules/copy-file-tests (Files): Likewise.
5108         * modules/count-one-bits-tests (Files): Likewise.
5109         * modules/dprintf-posix-tests (Files): Likewise.
5110         * modules/dup2-tests (Files): Likewise.
5111         * modules/dup3-tests (Files): Likewise.
5112         * modules/duplocale-tests (Files): Likewise.
5113         * modules/fbufmode-tests (Files): Likewise.
5114         * modules/fchdir-tests (Files): Likewise.
5115         * modules/fcntl-safer-tests (Files): Likewise.
5116         * modules/fcntl-tests (Files): Likewise.
5117         * modules/fdopendir-tests (Files): Likewise.
5118         * modules/fdutimensat-tests (Files): Likewise.
5119         * modules/fflush-tests (Files): Likewise.
5120         * modules/filevercmp-tests (Files): Likewise.
5121         * modules/flock-tests (Files): Likewise.
5122         * modules/floorf-tests (Files): Likewise.
5123         * modules/floorl-tests (Files): Likewise.
5124         * modules/fnmatch-tests (Files): Likewise.
5125         * modules/fopen-safer-tests (Files): Likewise.
5126         * modules/fopen-tests (Files): Likewise.
5127         * modules/fpending-tests (Files): Likewise.
5128         * modules/fprintf-posix-tests (Files): Likewise.
5129         * modules/fpurge-tests (Files): Likewise.
5130         * modules/freadable-tests (Files): Likewise.
5131         * modules/freadahead-tests (Files): Likewise.
5132         * modules/freading-tests (Files): Likewise.
5133         * modules/freadptr-tests (Files): Likewise.
5134         * modules/freadseek-tests (Files): Likewise.
5135         * modules/freopen-tests (Files): Likewise.
5136         * modules/frexp-nolibm-tests (Files): Likewise.
5137         * modules/frexp-tests (Files): Likewise.
5138         * modules/frexpl-nolibm-tests (Files): Likewise.
5139         * modules/frexpl-tests (Files): Likewise.
5140         * modules/fseek-tests (Files): Likewise.
5141         * modules/fseeko-tests (Files): Likewise.
5142         * modules/fstrcmp-tests (Files): Likewise.
5143         * modules/fsync-tests (Files): Likewise.
5144         * modules/ftell-tests (Files): Likewise.
5145         * modules/ftello-tests (Files): Likewise.
5146         * modules/func-tests (Files): Likewise.
5147         * modules/futimens-tests (Files): Likewise.
5148         * modules/fwritable-tests (Files): Likewise.
5149         * modules/fwriting-tests (Files): Likewise.
5150         * modules/getcwd-tests (Files): Likewise.
5151         * modules/getdate-tests (Files): Likewise.
5152         * modules/getdelim-tests (Files): Likewise.
5153         * modules/getdtablesize-tests (Files): Likewise.
5154         * modules/getgroups-tests (Files): Likewise.
5155         * modules/getline-tests (Files): Likewise.
5156         * modules/getndelim2-tests (Files): Likewise.
5157         * modules/glob-tests (Files): Likewise.
5158         * modules/hash-tests (Files): Likewise.
5159         * modules/i-ring-tests (Files): Likewise.
5160         * modules/iconv-tests (Files): Likewise.
5161         * modules/iconv_open-utf-tests (Files): Likewise.
5162         * modules/idpriv-drop-tests (Files): Likewise.
5163         * modules/idpriv-droptemp-tests (Files): Likewise.
5164         * modules/inet_ntop-tests (Files): Likewise.
5165         * modules/inet_pton-tests (Files): Likewise.
5166         * modules/isblank-tests (Files): Likewise.
5167         * modules/isfinite-tests (Files): Likewise.
5168         * modules/isinf-tests (Files): Likewise.
5169         * modules/isnan-tests (Files): Likewise.
5170         * modules/isnand-nolibm-tests (Files): Likewise.
5171         * modules/isnand-tests (Files): Likewise.
5172         * modules/isnanf-nolibm-tests (Files): Likewise.
5173         * modules/isnanf-tests (Files): Likewise.
5174         * modules/isnanl-nolibm-tests (Files): Likewise.
5175         * modules/isnanl-tests (Files): Likewise.
5176         * modules/lchown-tests (Files): Likewise.
5177         * modules/ldexpl-tests (Files): Likewise.
5178         * modules/link-tests (Files): Likewise.
5179         * modules/linkat-tests (Files): Likewise.
5180         * modules/linked-list-tests (Files): Likewise.
5181         * modules/linkedhash-list-tests (Files): Likewise.
5182         * modules/localename-tests (Files): Likewise.
5183         * modules/lseek-tests (Files): Likewise.
5184         * modules/lstat-tests (Files): Likewise.
5185         * modules/mbmemcasecmp-tests (Files): Likewise.
5186         * modules/mbmemcasecoll-tests (Files): Likewise.
5187         * modules/mbrtowc-tests (Files): Likewise.
5188         * modules/mbscasecmp-tests (Files): Likewise.
5189         * modules/mbscasestr-tests (Files): Likewise.
5190         * modules/mbschr-tests (Files): Likewise.
5191         * modules/mbscspn-tests (Files): Likewise.
5192         * modules/mbsinit-tests (Files): Likewise.
5193         * modules/mbsncasecmp-tests (Files): Likewise.
5194         * modules/mbsnrtowcs-tests (Files): Likewise.
5195         * modules/mbspbrk-tests (Files): Likewise.
5196         * modules/mbspcasecmp-tests (Files): Likewise.
5197         * modules/mbsrchr-tests (Files): Likewise.
5198         * modules/mbsrtowcs-tests (Files): Likewise.
5199         * modules/mbsspn-tests (Files): Likewise.
5200         * modules/mbsstr-tests (Files): Likewise.
5201         * modules/memchr-tests (Files): Likewise.
5202         * modules/memchr2-tests (Files): Likewise.
5203         * modules/memcmp-tests (Files): Likewise.
5204         * modules/memmem-tests (Files): Likewise.
5205         * modules/memrchr-tests (Files): Likewise.
5206         * modules/mkdir-tests (Files): Likewise.
5207         * modules/mkfifo-tests (Files): Likewise.
5208         * modules/mkfifoat-tests (Files): Likewise.
5209         * modules/mknod-tests (Files): Likewise.
5210         * modules/nanosleep-tests (Files): Likewise.
5211         * modules/nl_langinfo-tests (Files): Likewise.
5212         * modules/obstack-printf-tests (Files): Likewise.
5213         * modules/open-tests (Files): Likewise.
5214         * modules/openat-tests (Files): Likewise.
5215         * modules/pipe-filter-gi-tests (Files): Likewise.
5216         * modules/pipe-filter-ii-tests (Files): Likewise.
5217         * modules/pipe2-tests (Files): Likewise.
5218         * modules/popen-safer-tests (Files): Likewise.
5219         * modules/popen-tests (Files): Likewise.
5220         * modules/posixtm-tests (Files): Likewise.
5221         * modules/pread-tests (Files): Likewise.
5222         * modules/printf-frexp-tests (Files): Likewise.
5223         * modules/printf-frexpl-tests (Files): Likewise.
5224         * modules/printf-posix-tests (Files): Likewise.
5225         * modules/priv-set-tests (Files): Likewise.
5226         * modules/quotearg-tests (Files): Likewise.
5227         * modules/random_r-tests (Files): Likewise.
5228         * modules/rawmemchr-tests (Files): Likewise.
5229         * modules/rbtree-list-tests (Files): Likewise.
5230         * modules/rbtree-oset-tests (Files): Likewise.
5231         * modules/rbtreehash-list-tests (Files): Likewise.
5232         * modules/readlink-tests (Files): Likewise.
5233         * modules/remove-tests (Files): Likewise.
5234         * modules/rename-tests (Files): Likewise.
5235         * modules/renameat-tests (Files): Likewise.
5236         * modules/rmdir-tests (Files): Likewise.
5237         * modules/round-tests (Files): Likewise.
5238         * modules/roundf-tests (Files): Likewise.
5239         * modules/roundl-tests (Files): Likewise.
5240         * modules/safe-alloc-tests (Files): Likewise.
5241         * modules/setenv-tests (Files): Likewise.
5242         * modules/sigaction-tests (Files): Likewise.
5243         * modules/signbit-tests (Files): Likewise.
5244         * modules/sleep-tests (Files): Likewise.
5245         * modules/snprintf-posix-tests (Files): Likewise.
5246         * modules/snprintf-tests (Files): Likewise.
5247         * modules/sprintf-posix-tests (Files): Likewise.
5248         * modules/stat-tests (Files): Likewise.
5249         * modules/stat-time-tests (Files): Likewise.
5250         * modules/strcasestr-tests (Files): Likewise.
5251         * modules/strchrnul-tests (Files): Likewise.
5252         * modules/strerror-tests (Files): Likewise.
5253         * modules/striconv-tests (Files): Likewise.
5254         * modules/striconveh-tests (Files): Likewise.
5255         * modules/striconveha-tests (Files): Likewise.
5256         * modules/strsignal-tests (Files): Likewise.
5257         * modules/strstr-tests (Files): Likewise.
5258         * modules/strtod-tests (Files): Likewise.
5259         * modules/strverscmp-tests (Files): Likewise.
5260         * modules/symlink-tests (Files): Likewise.
5261         * modules/symlinkat-tests (Files): Likewise.
5262         * modules/trunc-tests (Files): Likewise.
5263         * modules/truncf-tests (Files): Likewise.
5264         * modules/truncl-tests (Files): Likewise.
5265         * modules/uname-tests (Files): Likewise.
5266         * modules/unicase/cased-tests (Files): Likewise.
5267         * modules/unicase/ignorable-tests (Files): Likewise.
5268         * modules/unicase/locale-language-tests (Files): Likewise.
5269         * modules/unicase/tolower-tests (Files): Likewise.
5270         * modules/unicase/totitle-tests (Files): Likewise.
5271         * modules/unicase/toupper-tests (Files): Likewise.
5272         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5273         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5274         * modules/unicase/u8-casefold-tests (Files): Likewise.
5275         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5276         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5277         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5278         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5279         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5280         * modules/unicase/u8-tolower-tests (Files): Likewise.
5281         * modules/unicase/u8-totitle-tests (Files): Likewise.
5282         * modules/unicase/u8-toupper-tests (Files): Likewise.
5283         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5284         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5285         * modules/unicase/u16-casefold-tests (Files): Likewise.
5286         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5287         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5288         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5289         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5290         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5291         * modules/unicase/u16-tolower-tests (Files): Likewise.
5292         * modules/unicase/u16-totitle-tests (Files): Likewise.
5293         * modules/unicase/u16-toupper-tests (Files): Likewise.
5294         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5295         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5296         * modules/unicase/u32-casefold-tests (Files): Likewise.
5297         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5298         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5299         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5300         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5301         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5302         * modules/unicase/u32-tolower-tests (Files): Likewise.
5303         * modules/unicase/u32-totitle-tests (Files): Likewise.
5304         * modules/unicase/u32-toupper-tests (Files): Likewise.
5305         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5306         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5307         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5308         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5309         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5310         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5311         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5312         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5313         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5314         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5315         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5316         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5317         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5318         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5319         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5320         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5321         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5322         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5323         * modules/unictype/block-list-tests (Files): Likewise.
5324         * modules/unictype/block-of-tests (Files): Likewise.
5325         * modules/unictype/block-test-tests (Files): Likewise.
5326         * modules/unictype/category-C-tests (Files): Likewise.
5327         * modules/unictype/category-Cc-tests (Files): Likewise.
5328         * modules/unictype/category-Cf-tests (Files): Likewise.
5329         * modules/unictype/category-Cn-tests (Files): Likewise.
5330         * modules/unictype/category-Co-tests (Files): Likewise.
5331         * modules/unictype/category-Cs-tests (Files): Likewise.
5332         * modules/unictype/category-L-tests (Files): Likewise.
5333         * modules/unictype/category-Ll-tests (Files): Likewise.
5334         * modules/unictype/category-Lm-tests (Files): Likewise.
5335         * modules/unictype/category-Lo-tests (Files): Likewise.
5336         * modules/unictype/category-Lt-tests (Files): Likewise.
5337         * modules/unictype/category-Lu-tests (Files): Likewise.
5338         * modules/unictype/category-M-tests (Files): Likewise.
5339         * modules/unictype/category-Mc-tests (Files): Likewise.
5340         * modules/unictype/category-Me-tests (Files): Likewise.
5341         * modules/unictype/category-Mn-tests (Files): Likewise.
5342         * modules/unictype/category-N-tests (Files): Likewise.
5343         * modules/unictype/category-Nd-tests (Files): Likewise.
5344         * modules/unictype/category-Nl-tests (Files): Likewise.
5345         * modules/unictype/category-No-tests (Files): Likewise.
5346         * modules/unictype/category-P-tests (Files): Likewise.
5347         * modules/unictype/category-Pc-tests (Files): Likewise.
5348         * modules/unictype/category-Pd-tests (Files): Likewise.
5349         * modules/unictype/category-Pe-tests (Files): Likewise.
5350         * modules/unictype/category-Pf-tests (Files): Likewise.
5351         * modules/unictype/category-Pi-tests (Files): Likewise.
5352         * modules/unictype/category-Po-tests (Files): Likewise.
5353         * modules/unictype/category-Ps-tests (Files): Likewise.
5354         * modules/unictype/category-S-tests (Files): Likewise.
5355         * modules/unictype/category-Sc-tests (Files): Likewise.
5356         * modules/unictype/category-Sk-tests (Files): Likewise.
5357         * modules/unictype/category-Sm-tests (Files): Likewise.
5358         * modules/unictype/category-So-tests (Files): Likewise.
5359         * modules/unictype/category-Z-tests (Files): Likewise.
5360         * modules/unictype/category-Zl-tests (Files): Likewise.
5361         * modules/unictype/category-Zp-tests (Files): Likewise.
5362         * modules/unictype/category-Zs-tests (Files): Likewise.
5363         * modules/unictype/category-and-not-tests (Files): Likewise.
5364         * modules/unictype/category-and-tests (Files): Likewise.
5365         * modules/unictype/category-byname-tests (Files): Likewise.
5366         * modules/unictype/category-name-tests (Files): Likewise.
5367         * modules/unictype/category-none-tests (Files): Likewise.
5368         * modules/unictype/category-of-tests (Files): Likewise.
5369         * modules/unictype/category-or-tests (Files): Likewise.
5370         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5371         * modules/unictype/combining-class-tests (Files): Likewise.
5372         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5373         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5374         * modules/unictype/ctype-blank-tests (Files): Likewise.
5375         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5376         * modules/unictype/ctype-digit-tests (Files): Likewise.
5377         * modules/unictype/ctype-graph-tests (Files): Likewise.
5378         * modules/unictype/ctype-lower-tests (Files): Likewise.
5379         * modules/unictype/ctype-print-tests (Files): Likewise.
5380         * modules/unictype/ctype-punct-tests (Files): Likewise.
5381         * modules/unictype/ctype-space-tests (Files): Likewise.
5382         * modules/unictype/ctype-upper-tests (Files): Likewise.
5383         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5384         * modules/unictype/decimal-digit-tests (Files): Likewise.
5385         * modules/unictype/digit-tests (Files): Likewise.
5386         * modules/unictype/mirror-tests (Files): Likewise.
5387         * modules/unictype/numeric-tests (Files): Likewise.
5388         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5389         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5390         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5391         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5392         Likewise.
5393         * modules/unictype/property-bidi-block-separator-tests (Files):
5394         Likewise.
5395         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5396         Likewise.
5397         * modules/unictype/property-bidi-common-separator-tests (Files):
5398         Likewise.
5399         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5400         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5401         Likewise.
5402         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5403         Likewise.
5404         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5405         Likewise.
5406         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5407         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5408         Likewise.
5409         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5410         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5411         Likewise.
5412         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5413         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5414         * modules/unictype/property-bidi-segment-separator-tests (Files):
5415         Likewise.
5416         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5417         * modules/unictype/property-byname-tests (Files): Likewise.
5418         * modules/unictype/property-combining-tests (Files): Likewise.
5419         * modules/unictype/property-composite-tests (Files): Likewise.
5420         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5421         * modules/unictype/property-dash-tests (Files): Likewise.
5422         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5423         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5424         Likewise.
5425         * modules/unictype/property-deprecated-tests (Files): Likewise.
5426         * modules/unictype/property-diacritic-tests (Files): Likewise.
5427         * modules/unictype/property-extender-tests (Files): Likewise.
5428         * modules/unictype/property-format-control-tests (Files): Likewise.
5429         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5430         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5431         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5432         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5433         * modules/unictype/property-hyphen-tests (Files): Likewise.
5434         * modules/unictype/property-id-continue-tests (Files): Likewise.
5435         * modules/unictype/property-id-start-tests (Files): Likewise.
5436         * modules/unictype/property-ideographic-tests (Files): Likewise.
5437         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5438         * modules/unictype/property-ids-trinary-operator-tests (Files):
5439         Likewise.
5440         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5441         * modules/unictype/property-iso-control-tests (Files): Likewise.
5442         * modules/unictype/property-join-control-tests (Files): Likewise.
5443         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5444         * modules/unictype/property-line-separator-tests (Files): Likewise.
5445         * modules/unictype/property-logical-order-exception-tests (Files):
5446         Likewise.
5447         * modules/unictype/property-lowercase-tests (Files): Likewise.
5448         * modules/unictype/property-math-tests (Files): Likewise.
5449         * modules/unictype/property-non-break-tests (Files): Likewise.
5450         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5451         * modules/unictype/property-numeric-tests (Files): Likewise.
5452         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5453         * modules/unictype/property-other-default-ignorable-code-point-tests
5454         (Files): Likewise.
5455         * modules/unictype/property-other-grapheme-extend-tests (Files):
5456         Likewise.
5457         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5458         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5459         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5460         * modules/unictype/property-other-math-tests (Files): Likewise.
5461         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5462         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5463         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5464         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5465         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5466         * modules/unictype/property-private-use-tests (Files): Likewise.
5467         * modules/unictype/property-punctuation-tests (Files): Likewise.
5468         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5469         * modules/unictype/property-radical-tests (Files): Likewise.
5470         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5471         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5472         * modules/unictype/property-space-tests (Files): Likewise.
5473         * modules/unictype/property-terminal-punctuation-tests (Files):
5474         Likewise.
5475         * modules/unictype/property-test-tests (Files): Likewise.
5476         * modules/unictype/property-titlecase-tests (Files): Likewise.
5477         * modules/unictype/property-unassigned-code-value-tests (Files):
5478         Likewise.
5479         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5480         * modules/unictype/property-uppercase-tests (Files): Likewise.
5481         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5482         * modules/unictype/property-white-space-tests (Files): Likewise.
5483         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5484         * modules/unictype/property-xid-start-tests (Files): Likewise.
5485         * modules/unictype/property-zero-width-tests (Files): Likewise.
5486         * modules/unictype/scripts-tests (Files): Likewise.
5487         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5488         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5489         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5490         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5491         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5492         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5493         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5494         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5495         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5496         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5497         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5498         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5499         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5500         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5501         * modules/uninorm/composition-tests (Files): Likewise.
5502         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5503         * modules/uninorm/decomposition-tests (Files): Likewise.
5504         * modules/uninorm/filter-tests (Files): Likewise.
5505         * modules/uninorm/nfc-tests (Files): Likewise.
5506         * modules/uninorm/nfd-tests (Files): Likewise.
5507         * modules/uninorm/nfkc-tests (Files): Likewise.
5508         * modules/uninorm/nfkd-tests (Files): Likewise.
5509         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5510         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5511         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5512         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5513         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5514         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5515         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5516         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5517         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5518         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5519         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5520         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5521         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5522         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5523         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5524         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5525         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5526         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5527         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5528         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5529         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5530         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5531         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5532         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5533         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5534         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5535         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5536         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5537         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5538         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5539         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5540         * modules/uniwidth/u8-width-tests (Files): Likewise.
5541         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5542         * modules/uniwidth/u16-width-tests (Files): Likewise.
5543         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5544         * modules/uniwidth/u32-width-tests (Files): Likewise.
5545         * modules/uniwidth/width-tests (Files): Likewise.
5546         * modules/unlink-tests (Files): Likewise.
5547         * modules/unsetenv-tests (Files): Likewise.
5548         * modules/usleep-tests (Files): Likewise.
5549         * modules/utimens-tests (Files): Likewise.
5550         * modules/utimensat-tests (Files): Likewise.
5551         * modules/vasnprintf-posix-tests (Files): Likewise.
5552         * modules/vasnprintf-tests (Files): Likewise.
5553         * modules/vasprintf-posix-tests (Files): Likewise.
5554         * modules/vasprintf-tests (Files): Likewise.
5555         * modules/vdprintf-posix-tests (Files): Likewise.
5556         * modules/vfprintf-posix-tests (Files): Likewise.
5557         * modules/vprintf-posix-tests (Files): Likewise.
5558         * modules/vsnprintf-posix-tests (Files): Likewise.
5559         * modules/vsnprintf-tests (Files): Likewise.
5560         * modules/vsprintf-posix-tests (Files): Likewise.
5561         * modules/wcrtomb-tests (Files): Likewise.
5562         * modules/wcsnrtombs-tests (Files): Likewise.
5563         * modules/wcsrtombs-tests (Files): Likewise.
5564         * modules/wctype-tests (Files): Likewise.
5565         * modules/wcwidth-tests (Files): Likewise.
5566         * modules/xmemdup0-tests (Files): Likewise.
5567         * modules/xprintf-posix-tests (Files): Likewise.
5568         * modules/xvasprintf-tests (Files): Likewise.
5569
5570 2009-12-24  Eric Blake  <ebb9@byu.net>
5571
5572         test-nanosleep: fix typo
5573         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5574         patch.
5575         Reported by Bruno Haible.
5576
5577 2009-12-24  Bruno Haible  <bruno@clisp.org>
5578
5579         Reduce namespace pollution on glibc systems.
5580         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5581         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5582         systems.
5583         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5584         <getopt.h> on glibc systems.
5585         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5586         systems.
5587         * lib/fcntl.c: Include <unistd.h> here instead.
5588
5589 2009-12-24  Bruno Haible  <bruno@clisp.org>
5590
5591         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5592
5593 2009-12-24  Eric Blake  <ebb9@byu.net>
5594
5595         tests: add signature checks
5596         * tests/signature.h (SIGNATURE_CHECK): New file.
5597         * modules/atexit-tests (Files): Use it.
5598         * modules/btowc-tests (Files): Likewise.
5599         * modules/canonicalize-lgpl-tests (Files): Likewise.
5600         * modules/ceilf-tests (Files): Likewise.
5601         * modules/ceill-tests (Files): Likewise.
5602         * modules/chown-tests (Files): Likewise.
5603         * modules/dprintf-posix-tests (Files): Likewise.
5604         * modules/dup2-tests (Files): Likewise.
5605         * modules/dup3-tests (Files): Likewise.
5606         * modules/duplocale-tests (Files): Likewise.
5607         * modules/fchdir-tests (Files): Likewise.
5608         * modules/fcntl-tests (Files): Likewise.
5609         * modules/fdopendir-tests (Files): Likewise.
5610         * modules/fflush-tests (Files): Likewise.
5611         * modules/flock-tests (Files): Likewise.
5612         * modules/floorf-tests (Files): Likewise.
5613         * modules/floorl-tests (Files): Likewise.
5614         * modules/fnmatch-tests (Files): Likewise.
5615         * modules/fopen-tests (Files): Likewise.
5616         * modules/fprintf-posix-tests (Files): Likewise.
5617         * modules/freopen-tests (Files): Likewise.
5618         * modules/frexp-nolibm-tests (Files): Likewise.
5619         * modules/frexp-tests (Files): Likewise.
5620         * modules/frexpl-nolibm-tests (Files): Likewise.
5621         * modules/frexpl-tests (Files): Likewise.
5622         * modules/fseek-tests (Files): Likewise.
5623         * modules/fseeko-tests (Files): Likewise.
5624         * modules/fsync-tests (Files): Likewise.
5625         * modules/ftell-tests (Files): Likewise.
5626         * modules/ftello-tests (Files): Likewise.
5627         * modules/futimens-tests (Files): Likewise.
5628         * modules/getaddrinfo-tests (Files): Likewise.
5629         * modules/getcwd-tests (Files): Likewise.
5630         * modules/getdelim-tests (Files): Likewise.
5631         * modules/getdtablesize-tests (Files): Likewise.
5632         * modules/getgroups-tests (Files): Likewise.
5633         * modules/gethostname-tests (Files): Likewise.
5634         * modules/getline-tests (Files): Likewise.
5635         * modules/getopt-posix-tests (Files): Likewise.
5636         * modules/gettimeofday-tests (Files): Likewise.
5637         * modules/glob-tests (Files): Likewise.
5638         * modules/iconv-tests (Files): Likewise.
5639         * modules/inet_ntop-tests (Files): Likewise.
5640         * modules/inet_pton-tests (Files): Likewise.
5641         * modules/isblank-tests (Files): Likewise.
5642         * modules/lchown-tests (Files): Likewise.
5643         * modules/ldexpl-tests (Files): Likewise.
5644         * modules/link-tests (Files): Likewise.
5645         * modules/linkat-tests (Files): Likewise.
5646         * modules/lseek-tests (Files): Likewise.
5647         * modules/lstat-tests (Files): Likewise.
5648         * modules/mbrtowc-tests (Files): Likewise.
5649         * modules/mbsinit-tests (Files): Likewise.
5650         * modules/mbsnrtowcs-tests (Files): Likewise.
5651         * modules/mbsrtowcs-tests (Files): Likewise.
5652         * modules/memchr-tests (Files): Likewise.
5653         * modules/memcmp-tests (Files): Likewise.
5654         * modules/memmem-tests (Files): Likewise.
5655         * modules/memrchr-tests (Files): Likewise.
5656         * modules/mkdir-tests (Files): Likewise.
5657         * modules/mkfifo-tests (Files): Likewise.
5658         * modules/mkfifoat-tests (Files): Likewise.
5659         * modules/mknod-tests (Files): Likewise.
5660         * modules/nanosleep-tests (Files): Likewise.
5661         * modules/nl_langinfo-tests (Files): Likewise.
5662         * modules/obstack-printf-tests (Files): Likewise.
5663         * modules/open-tests (Files): Likewise.
5664         * modules/openat-tests (Files): Likewise.
5665         * modules/perror-tests (Files): Likewise.
5666         * modules/pipe2-tests (Files): Likewise.
5667         * modules/poll-tests (Files): Likewise.
5668         * modules/popen-tests (Files): Likewise.
5669         * modules/posix_spawn-tests (Files): Likewise.
5670         * modules/posix_spawnp-tests (Files): Likewise.
5671         * modules/pread-tests (Files): Likewise.
5672         * modules/printf-posix-tests (Files): Likewise.
5673         * modules/pty-tests (Files): Likewise.
5674         * modules/random_r-tests (Files): Likewise.
5675         * modules/rawmemchr-tests (Files): Likewise.
5676         * modules/readlink-tests (Files): Likewise.
5677         * modules/remove-tests (Files): Likewise.
5678         * modules/rename-tests (Files): Likewise.
5679         * modules/renameat-tests (Files): Likewise.
5680         * modules/rmdir-tests (Files): Likewise.
5681         * modules/round-tests (Files): Likewise.
5682         * modules/roundf-tests (Files): Likewise.
5683         * modules/roundl-tests (Files): Likewise.
5684         * modules/select-tests (Files): Likewise.
5685         * modules/setenv-tests (Files): Likewise.
5686         * modules/sigaction-tests (Files): Likewise.
5687         * modules/sleep-tests (Files): Likewise.
5688         * modules/snprintf-posix-tests (Files): Likewise.
5689         * modules/snprintf-tests (Files): Likewise.
5690         * modules/sprintf-posix-tests (Files): Likewise.
5691         * modules/stat-tests (Files): Likewise.
5692         * modules/strcasestr-tests (Files): Likewise.
5693         * modules/strchrnul-tests (Files): Likewise.
5694         * modules/strerror-tests (Files): Likewise.
5695         * modules/strsignal-tests (Files): Likewise.
5696         * modules/strstr-tests (Files): Likewise.
5697         * modules/strtod-tests (Files): Likewise.
5698         * modules/strverscmp-tests (Files): Likewise.
5699         * modules/symlink-tests (Files): Likewise.
5700         * modules/symlinkat-tests (Files): Likewise.
5701         * modules/times-tests (Files): Likewise.
5702         * modules/trunc-tests (Files): Likewise.
5703         * modules/truncf-tests (Files): Likewise.
5704         * modules/truncl-tests (Files): Likewise.
5705         * modules/tsearch-tests (Files): Likewise.
5706         * modules/uname-tests (Files): Likewise.
5707         * modules/unlink-tests (Files): Likewise.
5708         * modules/unsetenv-tests (Files): Likewise.
5709         * modules/usleep-tests (Files): Likewise.
5710         * modules/utimensat-tests (Files): Likewise.
5711         * modules/vasprintf-tests (Files): Likewise.
5712         * modules/vdprintf-posix-tests (Files): Likewise.
5713         * modules/vfprintf-posix-tests (Files): Likewise.
5714         * modules/vprintf-posix-tests (Files): Likewise.
5715         * modules/vsnprintf-posix-tests (Files): Likewise.
5716         * modules/vsnprintf-tests (Files): Likewise.
5717         * modules/vsprintf-posix-tests (Files): Likewise.
5718         * modules/wcrtomb-tests (Files): Likewise.
5719         * modules/wcsnrtombs-tests (Files): Likewise.
5720         * modules/wcsrtombs-tests (Files): Likewise.
5721         * modules/wcwidth-tests (Files): Likewise.
5722         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5723         * tests/test-isinf.c (isinf): Likewise.
5724         * tests/test-isnan.c (isnan): Likewise.
5725         * tests/test-signbit.c (signbit): Likewise.
5726         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5727         declaration, either as macro or with correct signature.
5728         (select): Ensure function under test is declared with correct
5729         signature in correct header.
5730         * tests/test-atexit.c (atexit): Likewise.
5731         * tests/test-btowc.c (btowc): Likewise.
5732         * tests/test-canonicalize-lgpl.c (realpath)
5733         (canonicalize_file_name): Likewise.
5734         * tests/test-ceilf1.c (ceilf): Likewise.
5735         * tests/test-ceill.c (ceill): Likewise.
5736         * tests/test-chown.c (chown): Likewise.
5737         * tests/test-dprintf-posix.c (dprintf): Likewise.
5738         * tests/test-dup2.c (dup2): Likewise.
5739         * tests/test-dup3.c (dup3): Likewise.
5740         * tests/test-duplocale.c (duplocale): Likewise.
5741         * tests/test-fchdir.c (fchdir): Likewise.
5742         * tests/test-fchownat.c (fchownat): Likewise.
5743         * tests/test-fcntl.c (fcntl): Likewise.
5744         * tests/test-fdopendir.c (fdopendir): Likewise.
5745         * tests/test-fflush.c (fflush): Likewise.
5746         * tests/test-flock.c (flock): Likewise.
5747         * tests/test-floorf1.c (floorf): Likewise.
5748         * tests/test-floorl.c (floorl): Likewise.
5749         * tests/test-fnmatch.c (fnmatch): Likewise.
5750         * tests/test-fopen.c (fopen): Likewise.
5751         * tests/test-fprintf-posix.c (fprintf): Likewise.
5752         * tests/test-freopen.c (freopen): Likewise.
5753         * tests/test-frexp.c (frexp): Likewise.
5754         * tests/test-frexpl.c (frexpl): Likewise.
5755         * tests/test-fseek.c (fseek): Likewise.
5756         * tests/test-fseeko.c (fseeko): Likewise.
5757         * tests/test-fstatat.c (fstatat): Likewise.
5758         * tests/test-fsync.c (fsync): Likewise.
5759         * tests/test-ftell.c (ftell): Likewise.
5760         * tests/test-ftello.c (ftello): Likewise.
5761         * tests/test-futimens.c (futimens): Likewise.
5762         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5763         (gai_strerror): Likewise.
5764         * tests/test-getcwd.c (getcwd): Likewise.
5765         * tests/test-getdelim.c (getdelim): Likewise.
5766         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5767         * tests/test-getgroups.c (getgroups): Likewise.
5768         * tests/test-gethostname.c (gethostname): Likewise.
5769         * tests/test-getline.c (getline): Likewise.
5770         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5771         Likewise.
5772         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5773         * tests/test-glob.c (glob, globfree): Likewise.
5774         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5775         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5776         * tests/test-inet_pton.c (inet_pton): Likewise.
5777         * tests/test-isblank.c (isblank): Likewise.
5778         * tests/test-lchown.c (lchown): Likewise.
5779         * tests/test-ldexpl.c (ldexpl): Likewise.
5780         * tests/test-link.c (link): Likewise.
5781         * tests/test-linkat.c (linkat): Likewise.
5782         * tests/test-lseek.c (lseek): Likewise.
5783         * tests/test-lstat.c (lstat): Likewise.
5784         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5785         * tests/test-mbsinit.c (mbsinit): Likewise.
5786         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5787         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5788         * tests/test-memchr.c (memchr): Likewise.
5789         * tests/test-memcmp.c (memcmp): Likewise.
5790         * tests/test-memmem.c (memmem): Likewise.
5791         * tests/test-memrchr.c (memrchr): Likewise.
5792         * tests/test-mkdir.c (mkdir): Likewise.
5793         * tests/test-mkdirat.c (mkdirat): Likewise.
5794         * tests/test-mkfifo.c (mkfifo): Likewise.
5795         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5796         * tests/test-mknod.c (mknod): Likewise.
5797         * tests/test-nanosleep.c (nanosleep): Likewise.
5798         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5799         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5800         Likewise.
5801         * tests/test-open.c (open): Likewise.
5802         * tests/test-openat.c (openat): Likewise.
5803         * tests/test-perror.c (perror): Likewise.
5804         * tests/test-pipe2.c (pipe2): Likewise.
5805         * tests/test-poll.c (poll): Likewise.
5806         * tests/test-popen.c (popen, pclose): Likewise.
5807         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5808         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5809         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5810         (posix_spawn_file_actions_destroy)
5811         (posix_spawn_file_actions_addclose)
5812         (posix_spawn_file_actions_addopen)
5813         (posix_spawn_file_actions_adddup2): Likewise.
5814         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5815         * tests/test-pread.c (pread): Likewise.
5816         * tests/test-printf-posix.c (printf): Likewise.
5817         * tests/test-pty.c (openpty, forkpty): Likewise.
5818         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5819         (random_r): Likewise.
5820         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5821         * tests/test-readlink.c (readlink): Likewise.
5822         * tests/test-remove.c (remove): Likewise.
5823         * tests/test-rename.c (rename): Likewise.
5824         * tests/test-renameat.c (renameat): Likewise.
5825         * tests/test-rmdir.c (rmdir): Likewise.
5826         * tests/test-round1.c (round): Likewise.
5827         * tests/test-roundf1.c (roundf): Likewise.
5828         * tests/test-roundl.c (roundl): Likewise.
5829         * tests/test-setenv.c (setenv): Likewise.
5830         * tests/test-sigaction.c (sigaction): Likewise.
5831         * tests/test-sleep.c (sleep): Likewise.
5832         * tests/test-snprintf.c (snprintf): Likewise.
5833         * tests/test-sprintf-posix.c (sprintf): Likewise.
5834         * tests/test-stat.c (stat): Likewise.
5835         * tests/test-stpncpy.c (stpncpy): Likewise.
5836         * tests/test-strcasestr.c (strcasestr): Likewise.
5837         * tests/test-strchrnul.c (strchrnul): Likewise.
5838         * tests/test-strerror.c (strerror): Likewise.
5839         * tests/test-strsignal.c (strsignal): Likewise.
5840         * tests/test-strstr.c (strstr): Likewise.
5841         * tests/test-strtod.c (strtod): Likewise.
5842         * tests/test-strverscmp.c (strverscmp): Likewise.
5843         * tests/test-symlink.c (symlink): Likewise.
5844         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5845         * tests/test-times.c (times): Likewise.
5846         * tests/test-trunc1.c (trunc): Likewise.
5847         * tests/test-truncf1.c (truncf): Likewise.
5848         * tests/test-truncl.c (truncl): Likewise.
5849         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5850         Likewise.
5851         * tests/test-uname.c (uname): Likewise.
5852         * tests/test-unlink.c (unlink): Likewise.
5853         * tests/test-unlinkat.c (unlinkat): Likewise.
5854         * tests/test-unsetenv.c (unsetenv): Likewise.
5855         * tests/test-usleep.c (usleep): Likewise.
5856         * tests/test-utimensat.c (utimensat): Likewise.
5857         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5858         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5859         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5860         * tests/test-vprintf-posix.c (vprintf): Likewise.
5861         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5862         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5863         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5864         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5865         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5866         * tests/test-wcwidth.c (wcwidth): Likewise.
5867
5868         build: pull in conditional headers during GNULIB_POSIXCHECK
5869         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5870         definitions from any conditionally-included headers.
5871         * lib/stdlib.in.h (includes): Likewise.
5872         * lib/unistd.in.h (includes): Likewise.
5873
5874 2009-12-24  Bruno Haible  <bruno@clisp.org>
5875
5876         * tests/test-argv-iter.c: Include header file being tested immediately
5877         after config.h.
5878         * tests/test-base64.c: Likewise.
5879         * tests/test-flock.c: Likewise.
5880         * tests/test-fsync.c: Likewise.
5881         * tests/test-getdate.c: Likewise.
5882         * tests/test-getndelim2.c: Likewise.
5883         * tests/test-isfinite.c: Likewise.
5884         * tests/test-isinf.c: Likewise.
5885         * tests/test-strerror.c: Likewise.
5886         * tests/test-strsignal.c: Likewise.
5887
5888 2009-12-23  Eric Blake  <ebb9@byu.net>
5889
5890         unistd: work around cygwin bug
5891         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5892         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5893         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5894
5895 2009-12-23  Bruno Haible  <bruno@clisp.org>
5896
5897         localename: More tests.
5898         * tests/test-localename.c (SIZEOF): New macro.
5899         (categories): New variable.
5900         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5901         test_locale_name_default): Add test w.r.t. thread locale.
5902         (test_locale_name_thread): New function.
5903         (main): Invoke it.
5904
5905         localename: Make aware of thread locale.
5906         * lib/localename.h (gl_locale_name_thread): New declaration.
5907         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5908         behaviour with respect to thread locale.
5909         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5910         <langinfo.h>, glthread/lock.h.
5911         (SIZE_BITS): New macro.
5912         (string_hash): New function.
5913         (struct hash_node): New type.
5914         (HASH_TABLE_SIZE): New macro.
5915         (struniq_hash_table, struniq_lock): New variables.
5916         (struniq): New function.
5917         (gl_locale_name_thread): New function.
5918         (gl_locale_name): Invoke it.
5919         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5920         * modules/localename (Depends-on): Add lock.
5921         Reported by Mike Gran <spk121@yahoo.com>.
5922
5923 2009-12-23  Eric Blake  <ebb9@byu.net>
5924
5925         va-args: new module
5926         * modules/va-args: New file.
5927         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5928         * MODULES.html.sh (Core language properties): Mention it.
5929
5930         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5931         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5932         named alias for __attribute__((__unused__)).
5933         * lib/chown.c: Update client.
5934         * lib/fchmodat.c: Likewise.
5935         * lib/fts.c: Likewise.
5936         * lib/getdate.y: Likewise.
5937         * lib/getgroups.c: Likewise.
5938         * lib/getopt.c: Likewise.
5939         * lib/getugroups.c: Likewise.
5940         * lib/mkdir.c: Likewise.
5941         * lib/mkfifo.c: Likewise.
5942         * lib/mkfifoat.c: Likewise.
5943         * lib/mknod.c: Likewise.
5944         * lib/mknodat.c: Likewise.
5945         * lib/readlink.c: Likewise.
5946         * lib/se-context.in.h: Likewise.
5947         * lib/se-selinux.in.h: Likewise.
5948         * lib/sockets.c: Likewise.
5949         * lib/symlink.c: Likewise.
5950         * lib/symlinkat.c: Likewise.
5951         * lib/unicodeio.c: Likewise.
5952         * lib/unistr.h: Likewise.
5953         * tests/test-areadlink.c: Likewise.
5954         * tests/test-areadlinkat.c: Likewise.
5955         * tests/test-filenamecat.c: Likewise.
5956         * tests/test-fseeko.c: Likewise.
5957         * tests/test-ftello.c: Likewise.
5958         * tests/test-getdate.c: Likewise.
5959         * tests/test-getgroups.c: Likewise.
5960         * tests/test-gethostname.c: Likewise.
5961         * tests/test-quotearg.c: Likewise.
5962         * tests/test-version-etc.c: Likewise.
5963         * tests/test-xalloc-die.c: Likewise.
5964         * tests/test-xfprintf-posix.c: Likewise.
5965         * tests/test-xprintf-posix.c: Likewise.
5966         * tests/test-xvasprintf.c: Likewise.
5967
5968         tests: avoid compiler warnings
5969         * tests/test-fcntl.c (main): Delete unused parameters.
5970         * tests/test-freopen-safer.c (main): Likewise.
5971         * tests/test-xalloc-die.c (main): Mark unused parameters.
5972         * tests/test-fseeko.c (main): Likewise.
5973         * tests/test-ftello.c (main): Likewise.
5974         * tests/test-nanosleep.c (main): Avoid declaration warning.
5975         * tests/test-sleep.c (main): Likewise.
5976         * tests/test-unsetenv.c (main): Silence warning about string
5977         literal.
5978         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5979
5980 2009-12-23  Bruno Haible  <bruno@clisp.org>
5981
5982         * tests/test-localename.c (test_locale_name): New function, extracted
5983         from main. Also test mixed situations.
5984         (test_locale_name_posix, test_locale_name_environ,
5985         test_locale_name_default): New functions.
5986         (main): Invoke them all.
5987         * modules/localename-tests (configure.ac): Test for newlocale.
5988
5989 2009-12-23  Bruno Haible  <bruno@clisp.org>
5990
5991         unistd: Ensure getcwd gets declared before being overridden.
5992         * lib/unistd.in.h: Conditionally include <io.h>.
5993
5994 2009-12-22  Bruno Haible  <bruno@clisp.org>
5995
5996         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5997         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5998         (gl_WCHAR_H): Invoke it.
5999         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6000         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6001         Reported by Karl Berry <karl@freefriends.org>.
6002
6003 2009-12-22  Eric Blake  <ebb9@byu.net>
6004
6005         math, unistd: avoid redundant includes
6006         * lib/math.in.h (isnan): No need to re-include <math.h>.
6007         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6008
6009         getsubopt: work around cygwin bug
6010         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6011         avoid conflicting with system getsubopt.
6012         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6013         bug.
6014
6015         getopt: synchronize from glibc
6016         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6017         parameter order.  Adjust all callers.
6018         (_getopt_internal_r, main): Adjust quoting in error messages.
6019         Drop considerations for outdated POSIX 1003.2 error message.
6020         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6021         callers.
6022         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6023
6024         test-getopt: test stderr behavior
6025         * modules/getopt-posix-tests (Depends-on): Add dup2.
6026         * tests/test-getopt.c (ASSERT): Avoid stderr.
6027         (main): Move stderr to a temporary file.
6028         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6029         Instead, add parameter to inform caller if output occurred.
6030         (test_getopt): Adjust all existing tests to expect silence, and
6031         add new tests of leading ":".
6032         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6033         glibc shortcomings with leading "-:" or "+:" in optstring.
6034         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6035         Likewise.
6036         * doc/posix-functions/getopt.texi (getopt): Likewise.
6037
6038         test-getopt: enhance test
6039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6040         supports optind=0.
6041         * tests/test-getopt.c (OPTIND_MIN): Move...
6042         * tests/test-getopt.h (OPTIND_MIN): ...here.
6043         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6044         Require that optind=0 works, since modern BSD supports it in
6045         addition to optreset, and since coreutils expects it.
6046         (test_getopt_long_only): New test.
6047         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6048         glibc shortcomings with 'W;', and enforcement of optind=0.
6049         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6050         Likewise.
6051
6052 2009-12-21  Bruno Haible  <bruno@clisp.org>
6053
6054         localename: Improvements for MacOS X and Cygwin.
6055         * lib/localename.h (gl_locale_name_environ): New declaration.
6056         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6057         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6058         (gl_locale_name_posix): Invoke it.
6059         (gl_locale_name_default): Add comments. Use Windows native API also on
6060         Cygwin.
6061
6062 2009-12-21  Bruno Haible  <bruno@clisp.org>
6063
6064         Update list of Win32 locale ids.
6065         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6066         (LANG_SAMI): Renamed from LANG_SAAMI.
6067         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6068         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6069         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6070         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6071         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6072         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6073         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6074         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6075         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6076         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6077         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6078         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6079         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6080         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6081         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6082         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6083         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6084         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6085         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6086         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6087         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6088         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6089         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6090         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6091         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6092         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6093         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6094         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6095         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6096         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6097         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6098         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6099         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6100         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6101         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6102         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6103         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6104         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6105         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6106         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6107         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6108         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6109         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6110         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6111         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6112         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6113         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6114         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6115         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6116         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6117         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6118         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6119         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6120         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6121         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6122         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6123         Add more languages and countries for Sami, Sorbian. Add more countries
6124         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6125         for Pashto. Change country for Syriac, Tswana.
6126
6127 2009-12-21  Eric Blake  <ebb9@byu.net>
6128
6129         test-utimens: avoid spurious failure
6130         * tests/test-chown.h (nap): Factor...
6131         * tests/nap.h: ...into new file.
6132         * tests/test-lchown.h (nap): Avoid duplication.
6133         * tests/test-utimens-common.h (nap): Use shared implementation,
6134         necessary on file systems with 1-second resolution.
6135         * modules/chown-tests (Files): Include new file.
6136         * modules/fdutimensat-tests (Files): Likewise.
6137         * modules/futimens-tests (Files): Likewise.
6138         * modules/lchown-tests (Files): Likewise.
6139         * modules/openat-tests (Files): Likewise.
6140         * modules/utimens-tests (Files): Likewise.
6141         * modules/utimensat-tests (Files): Likewise.
6142
6143 2009-12-19  Eric Blake  <ebb9@byu.net>
6144
6145         futimens, utimensat: work around Linux bug
6146         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6147         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6148         * lib/utimensat.c (rpl_utimensat): Work around it.
6149         * lib/futimens.c (rpl_futimens): Adjust comment.
6150
6151         utimens: work around Linux ctime bug
6152         * lib/utimens.c (detect_ctime_bug): New helper function.
6153         (update_timespec): Differentiate between workaround needed for
6154         this bug vs. what is needed for systems that lack utimensat.
6155         (fdutimens, lutimens): Work around bug.
6156
6157         utimens: check for ctime update
6158         * tests/test-utimens-common.h (check_ctime): Define.
6159         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6160         * tests/test-futimens.h (test_futimens): Likewise.
6161         * tests/test-lutimens.h (test_lutimens): Likewise.
6162         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6163         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6164
6165 2009-12-19  Bruno Haible  <bruno@clisp.org>
6166
6167         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6168         * tests/test-dprintf-posix2.sh: New file.
6169         * tests/test-dprintf-posix2.c: New file.
6170         * modules/dprintf-posix-tests (Files): Add them.
6171         (configure.ac): Check for getrlimit and setrlimit.
6172         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6173
6174 2009-12-19  Bruno Haible  <bruno@clisp.org>
6175
6176         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6177         * tests/test-fprintf-posix3.sh: New file.
6178         * tests/test-fprintf-posix3.c: New file.
6179         * modules/fprintf-posix-tests (Files): Add them.
6180         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6181
6182 2009-12-19  Eric Blake  <ebb9@byu.net>
6183
6184         dirfd: fix prototype
6185         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6186         * lib/dirfd.c (dirfd): Likewise.
6187
6188         canonicalize: reduce memory usage
6189         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6190         allocation to size.
6191         Reported by Solar Designer <solar@openwall.com>.
6192
6193 2009-12-19  Bruno Haible  <bruno@clisp.org>
6194
6195         New module attribute 'Applicability'.
6196         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6197         * gnulib-tool: New option --extract-applicability.
6198         (func_usage): Document it.
6199         (sed_extract_prog): Recognize it.
6200         (func_get_applicability): New function.
6201         (func_import): Generalize handling of 'link-warning' module.
6202         * modules/link-warning (Applicability): New section.
6203         * modules/arg-nonnull (Applicability): New section.
6204         Repoted by Simon Josefsson <simon@josefsson.org>.
6205
6206 2009-12-19  Bruno Haible  <bruno@clisp.org>
6207
6208         fflush: tweak
6209         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6210         * lib/fseeko.c (rpl_fseeko): Likewise.
6211
6212 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6213
6214         * lib/gl_list.h: Fix typo in comment.
6215
6216 2009-12-16  Eric Blake  <ebb9@byu.net>
6217
6218         fcntl: use to simplify other modules
6219         * modules/cloexec (Depends-on): Add fcntl.
6220         * modules/fchdir (Depends-on): Likewise.
6221         * modules/fd-safer-flag (Depends-on): Likewise.
6222         * modules/unistd-safer (Depends-on): Likewise.
6223         * modules/dup3 (configure.ac): Set module indicator.
6224         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6225         missing.
6226         * lib/fchdir.c (_gl_register_dup): Fix comment.
6227         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6228         * lib/dup-safer.c (dup_safer): Likewise.
6229         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6230         * lib/dup3.c (dup3): Likewise.
6231         * tests/test-fchdir.c (main): Enhance test.
6232         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6233
6234         fcntl: port portions of fcntl to mingw
6235         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6236         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6237         replacement for mingw.
6238         * modules/fcntl (Description): Update.
6239         (Depends-on): Add dup2.
6240         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6241         * modules/fcntl-h (Makefile.am): Substitute it.
6242         * lib/fcntl.in.h (fcntl): Update declaration.
6243         (F_DUPFD, F_GETFD): New macros, when needed.
6244         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6245         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6246         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6247         we now guarantee.
6248
6249         fcntl: work around cygwin bug in F_DUPFD
6250         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6251         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6252         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6253         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6254         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6255
6256         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6257         * modules/fcntl (Files): List new files.
6258         (configure.ac): Run a test.
6259         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6260         * lib/fcntl.c (rpl_fcntl): Likewise.
6261         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6262         (gl_FCNTL_H): Always replace fcntl.h.
6263         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6264         * lib/fcntl.in.h (fcntl): Declare replacement.
6265         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6266         needed, plus a witness.
6267         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6268         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6269         * tests/test-fcntl.c: New file.
6270         * modules/fcntl-tests: Likewise.
6271
6272         binary-io: avoid potential compilation warning
6273         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6274         directives.
6275
6276         fflush: avoid compilation error on NetBSD
6277         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6278         between off_t and fpos_t, since the latter is sometimes a struct.
6279         * lib/fseeko.c (rpl_fseeko): Likewise.
6280         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6281
6282 2009-12-15  Eric Blake  <ebb9@byu.net>
6283
6284         fcntl-h, stdio, sys_ioctl: fix declarations
6285         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6286         function must not take arguments.
6287         * lib/sys_ioctl.in.h (ioctl): Likewise.
6288         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6289         (open): Add a link warning.
6290
6291 2009-12-15  Jim Meyering  <meyering@redhat.com>
6292
6293         areadlink, areadlink-with-size: relax license to LGPLv2+
6294         * modules/areadlink (License): Relax to LGPLv2+.
6295         * modules/areadlink-with-size (License): Likewise.
6296
6297 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6298             Bruno Haible  <bruno@clisp.org>
6299
6300         *printf: Fix memory leak.
6301         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6302         * lib/vfprintf.c (vfprintf): Likewise.
6303         * lib/dprintf.c (dprintf): Likewise.
6304         * lib/vdprintf.c (vdprintf): Likewise.
6305
6306 2009-12-14  Eric Blake  <ebb9@byu.net>
6307
6308         accept4: adjust module dependencies
6309         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6310
6311         utimens: one more try at avoiding compiler warning
6312         * lib/utimens.c (lutimens): Lower scope of result.
6313
6314 2009-12-13  Bruno Haible  <bruno@clisp.org>
6315
6316         Move the malloc checking from module 'list' to new module 'xlist'.
6317         * modules/xlist: New file.
6318         * lib/gl_xlist.h: New file.
6319         * lib/gl_xlist.c: New file.
6320         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6321         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6322         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6323         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6324         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6325         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6326         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6327         gl_sortedlist_nx_add): New declarations.
6328         (struct gl_list_implementation): Rename and change methods accordingly.
6329         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6330         (gl_list_nx_create): Renamed from gl_list_create.
6331         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6332         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6333         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6334         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6335         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6336         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6337         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6338         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6339         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6340         gl_list_create_empty.
6341         (gl_list_nx_create): Renamed from gl_list_create.
6342         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6343         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6344         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6345         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6346         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6347         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6348         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6349         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6350         * lib/gl_array_list.c: Don't include xalloc.h.
6351         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6352         NULL upon out-of-memory.
6353         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6354         out-of-memory.
6355         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6356         Change return type to 'int'.
6357         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6358         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6359         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6360         upon out-of-memory.
6361         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6362         upon out-of-memory.
6363         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6364         upon out-of-memory.
6365         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6366         upon out-of-memory.
6367         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6368         out-of-memory.
6369         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6370         Update.
6371         (gl_array_list_implementation): Update.
6372         * lib/gl_carray_list.c: Don't include xalloc.h.
6373         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6374         Return NULL upon out-of-memory.
6375         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6376         out-of-memory.
6377         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6378         Change return type to 'int'.
6379         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6380         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6381         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6382         upon out-of-memory.
6383         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6384         upon out-of-memory.
6385         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6386         out-of-memory.
6387         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6388         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6389         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6390         Update.
6391         (gl_carray_list_implementation): Update.
6392         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6393         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6394         gl_linked_create_empty. Return NULL upon out-of-memory.
6395         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6396         out-of-memory.
6397         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6398         Change return type to 'int'. Return -1 upon out-of-memory.
6399         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6400         out-of-memory.
6401         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6402         upon out-of-memory.
6403         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6404         upon out-of-memory.
6405         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6406         NULL upon out-of-memory.
6407         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6408         upon out-of-memory.
6409         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6410         out-of-memory.
6411         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6412         Update.
6413         * lib/gl_linked_list.c: Don't include xalloc.h.
6414         (gl_linked_list_implementation): Update.
6415         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6416         (add_to_bucket): Change return type to 'int'.
6417         (gl_linkedhash_list_implementation): Update.
6418         * lib/gl_anytree_list1.h (free_subtree): New function.
6419         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6420         gl_tree_create_empty. Return NULL upon out-of-memory.
6421         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6422         Change return type to 'int'. Return -1 upon out-of-memory.
6423         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6424         out-of-memory.
6425         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6426         (gl_tree_remove_node): New function, moved here from
6427         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6428         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6429         Update.
6430         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6431         malloc, not xmalloc. Return NULL upon out-of-memory.
6432         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6433         out-of-memory.
6434         (gl_tree_remove_node_from_tree): New function, extracted from
6435         gl_tree_remove_node.
6436         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6437         upon out-of-memory.
6438         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6439         out-of-memory.
6440         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6441         upon out-of-memory.
6442         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6443         upon out-of-memory.
6444         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6445         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6446         not xmalloc. Return NULL upon out-of-memory.
6447         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6448         out-of-memory.
6449         (gl_tree_remove_node_from_tree): New function, extracted from
6450         gl_tree_remove_node.
6451         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6452         upon out-of-memory.
6453         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6454         out-of-memory.
6455         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6456         upon out-of-memory.
6457         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6458         upon out-of-memory.
6459         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6460         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6461         gl_anytree_list1.h before gl_anyavltree_list2.h.
6462         (gl_avltree_list_implementation): Update.
6463         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6464         gl_anytree_list1.h before gl_anyavltree_list2.h.
6465         (gl_rbtree_list_implementation): Update.
6466         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6467         Change return type to 'int'. Return -1 upon out-of-memory. Use
6468         __builtin_expect.
6469         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6470         (gl_avltreehash_list_implementation): Update.
6471         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6472         (gl_rbtreehash_list_implementation): Update.
6473         * modules/array-list (Depends-on): Remove xalloc.
6474         * modules/carray-list (Depends-on): Likewise.
6475         * modules/linked-list (Depends-on): Likewise.
6476         * modules/linkedhash-list (Depends-on): Likewise.
6477         * modules/avltree-list (Depends-on): Likewise.
6478         * modules/rbtree-list (Depends-on): Likewise.
6479         * modules/avltreehash-list (Depends-on): Likewise.
6480         * modules/rbtreehash-list (Depends-on): Likewise.
6481
6482         * modules/xsublist: New file.
6483         * lib/gl_xsublist.h: New file.
6484         * lib/gl_xsublist.c: New file.
6485         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6486         (gl_sublist_nx_create): New declaration.
6487         * lib/gl_sublist.c: Don't include xalloc.h.
6488         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6489         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6490         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6491         Change return type to 'int'. Return -1 upon out-of-memory.
6492         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6493         upon out-of-memory.
6494         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6495         NULL upon out-of-memory.
6496         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6497         upon out-of-memory.
6498         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6499         NULL upon out-of-memory.
6500         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6501         NULL upon out-of-memory.
6502         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6503         upon out-of-memory.
6504         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6505         (gl_sublist_list_implementation): Update.
6506         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6507         upon out-of-memory.
6508         * modules/sublist (Depends-on): Remove xalloc.
6509
6510         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6511         * tests/test-carray_list.c: Likewise.
6512         * tests/test-linked_list.c: Likewise.
6513         * tests/test-linkedhash_list.c: Likewise.
6514         * tests/test-avltree_list.c: Likewise.
6515         * tests/test-rbtree_list.c: Likewise.
6516         * tests/test-avltreehash_list.c: Likewise.
6517         * tests/test-rbtreehash_list.c: Likewise.
6518         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6519         * modules/carray-list-tests (Makefile.am): Likewise.
6520         * modules/linked-list-tests (Makefile.am): Likewise.
6521         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6522         * modules/avltree-list-tests (Makefile.am): Likewise.
6523         * modules/rbtree-list-tests (Makefile.am): Likewise.
6524         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6525         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6526
6527         * NEWS: Mention the changes.
6528
6529         * lib/clean-temp.c: Include gl_xlist.h.
6530         * modules/clean-temp (Depends-on): Add xlist.
6531
6532         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6533         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6534
6535         * tests/test-array_oset.c: Include gl_xlist.h.
6536         * modules/array-oset-tests (Depends-on): Add xlist.
6537
6538         Reported by José E. Marchesi <jemarch@gnu.org>.
6539
6540 2009-12-13  Bruno Haible  <bruno@clisp.org>
6541
6542         Move the malloc checking from module 'oset' to new module 'xoset'.
6543         * modules/xoset: New file.
6544         * lib/gl_xoset.h: New file.
6545         * lib/gl_xoset.c: New file.
6546         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6547         declarations.
6548         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6549         (struct gl_oset_implementation): Rename and change methods accordingly.
6550         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6551         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6552         'int'. Mark as __warn_unused_result__.
6553         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6554         gl_oset_create_empty.
6555         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6556         'int'.
6557         * lib/gl_array_oset.c: Don't include xalloc.h.
6558         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6559         malloc, not xmalloc.
6560         (grow): Change return type to 'int'. Don't call xalloc_die.
6561         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6562         to 'int'.
6563         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6564         'int'.
6565         (gl_array_oset_implementation): Update.
6566         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6567         gl_tree_create_empty.
6568         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6569         'int'.
6570         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6571         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6572         xmalloc.
6573         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6574         not xmalloc.
6575         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6576         xmalloc.
6577         (gl_avltree_oset_implementation): Update.
6578         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6579         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6580         xmalloc.
6581         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6582         not xmalloc.
6583         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6584         xmalloc.
6585         (gl_rbtree_oset_implementation): Update.
6586         * modules/array-oset (Depends-on): Remove xalloc.
6587         * modules/avltree-oset (Depends-on): Likewise.
6588         * modules/rbtree-oset (Depends-on): Likewise.
6589         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6590         * tests/test-avltree_oset.c: Likewise.
6591         * tests/test-rbtree_oset.c: Likewise.
6592         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6593         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6594         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6595         * NEWS: Mention the change.
6596
6597 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6598
6599         maint.mk: allow a project to override release-prep commands
6600         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6601         commands into a new rule.
6602         (release-prep): New rule.
6603         (release-prep-hook): New overridable variable.
6604
6605 2009-12-13  Bruno Haible  <bruno@clisp.org>
6606
6607         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6608
6609 2009-12-13  Jim Meyering  <meyering@redhat.com>
6610
6611         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6612         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6613
6614 2009-12-12  Bruno Haible  <bruno@clisp.org>
6615
6616         duplocale: Tweak.
6617         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6618
6619 2009-12-12  Karl Berry  <karl@gnu.org>
6620
6621         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6622
6623 2009-12-12  Bruno Haible  <bruno@clisp.org>
6624
6625         * m4/po.m4: Undo incorrect untabification.
6626
6627 2009-12-12  Bruno Haible  <bruno@clisp.org>
6628
6629         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6630         * modules/c-strtod (Depends-on): Add locale.
6631         * modules/c-strtold (Depends-on): Likewise.
6632
6633 2009-12-12  Bruno Haible  <bruno@clisp.org>
6634
6635         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6636
6637 2009-12-11  Eric Blake  <ebb9@byu.net>
6638
6639         setenv: relax requirement in light of POSIX ruling
6640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6641         not NULL.
6642         * tests/test-setenv.c (main): Relax test.
6643         * tests/test-unsetenv.c (main): Likewise.
6644         * doc/posix-functions/setenv.texi (setenv): Document this.
6645         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6646
6647 2009-12-11  Bruno Haible  <bruno@clisp.org>
6648
6649         New module 'fd-safer-flag'.
6650         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6651         * lib/dup-safer.c (dup_safer_flag): Remove function.
6652         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6653         * lib/fd-safer.c (fd_safer_flag): Remove function.
6654         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6655         * modules/cloexec (configure.ac): Drop indicator macro.
6656         * modules/fd-safer-flag: New file.
6657         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6658         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6659         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6660
6661 2009-12-11  Bruno Haible  <bruno@clisp.org>
6662
6663         Tests for module 'nl_langinfo'.
6664         * modules/nl_langinfo-tests: New file.
6665         * tests/test-nl_langinfo.sh: New file.
6666         * tests/test-nl_langinfo.c: New file.
6667
6668         New module 'nl_langinfo'.
6669         * lib/nl_langinfo.c: New file.
6670         * m4/nl_langinfo.m4: New file.
6671         * modules/nl_langinfo: New file.
6672         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6673
6674 2009-12-11  Bruno Haible  <bruno@clisp.org>
6675
6676         Tests for module 'langinfo'.
6677         * modules/langinfo-tests: New file.
6678         * tests/test-langinfo.c: New file.
6679
6680         New module 'langinfo'.
6681         * lib/langinfo.in.h: New file.
6682         * m4/langinfo_h.m4: New file.
6683         * modules/langinfo: New file.
6684         * doc/posix-headers/langinfo.texi: Mention the new module.
6685
6686 2009-12-11  Bruno Haible  <bruno@clisp.org>
6687
6688         * lib/config.charset: Untabify.
6689
6690 2009-12-11  Bruno Haible  <bruno@clisp.org>
6691
6692         * modules/unistd-safer (configure.ac): Drop indicator macro.
6693
6694 2009-12-11  Bruno Haible  <bruno@clisp.org>
6695
6696         Move pipe2-safer code to its own file.
6697         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6698         * lib/pipe-safer.c (pipe2_safer): Remove function.
6699         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6700         (Makefile.am): Add it to lib_SOURCES.
6701
6702 2009-12-10  Bruno Haible  <bruno@clisp.org>
6703
6704         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6705
6706 2009-12-10  Bruno Haible  <bruno@clisp.org>
6707
6708         Declare which arguments expect non-NULL values, for GCC and clang.
6709         * build-aux/arg-nonnull.h: New file.
6710         * modules/arg-nonnull: New file.
6711         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6712         (inet_ntop, inet_pton): Use it.
6713         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6714         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6715         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6716         (open, openat): Use it.
6717         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6718         (fnmatch): Use it.
6719         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6720         (getopt, getopt_long, getopt_long_only): Use it.
6721         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6722         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6723         Use it.
6724         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6725         (iconv_open): Use it.
6726         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6727         (strtoimax, strtoumax): Use it.
6728         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6729         (duplocale): Use it.
6730         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6731         (frexp, frexpl): Use it.
6732         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6733         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6734         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6735         (tsearch, tfind, tdelete, twalk): Use it.
6736         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6737         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6738         sigpending): Use it.
6739         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6740         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6741         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6742         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6743         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6744         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6745         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6746         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6747         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6748         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6749         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6750         Use it.
6751         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6752         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6753         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6754         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6755         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6756         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6757         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6758         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6759         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6760         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6761         strtoull, unsetenv): Use it.
6762         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6763         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6764         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6765         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6766         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6767         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6768         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6769         (strcasecmp, strncasecmp): Use it.
6770         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6771         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6772         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6773         rpl_setsockopt): Use it.
6774         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6775         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6776         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6777         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6778         (gettimeofday): Use it.
6779         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6780         (times): Use it.
6781         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6782         (uname): Use it.
6783         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6784         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6785         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6786         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6787         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6788         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6789         unlinkat, write): Use it.
6790         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6791         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6792         * lib/argv-iter.h: Include arg-nonnull.h.
6793         (_ATTRIBUTE_NONNULL_): Remove macro.
6794         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6795         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6796         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6797         optimization.
6798         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6799         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6800         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6801         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6802         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6803         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6804         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6805         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6806         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6807         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6808         * modules/dirent (Depends-on): Add arg-nonnull.
6809         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6810         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6811         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6812         * modules/fnmatch (Depends-on): Add arg-nonnull.
6813         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6814         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6815         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6816         * modules/glob (Depends-on): Add arg-nonnull.
6817         (Makefile.am): Insert arg-nonnull.h into glob.h.
6818         * modules/iconv_open (Depends-on): Add arg-nonnull.
6819         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6820         * modules/inttypes (Depends-on): Add arg-nonnull.
6821         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6822         * modules/locale (Depends-on): Add arg-nonnull.
6823         (Makefile.am): Insert arg-nonnull.h into locale.h.
6824         * modules/math (Depends-on): Add arg-nonnull.
6825         (Makefile.am): Insert arg-nonnull.h into math.h.
6826         * modules/netdb (Depends-on): Add arg-nonnull.
6827         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6828         * modules/search (Depends-on): Add arg-nonnull.
6829         (Makefile.am): Insert arg-nonnull.h into search.h.
6830         * modules/signal (Depends-on): Add arg-nonnull.
6831         (Makefile.am): Insert arg-nonnull.h into signal.h.
6832         * modules/spawn (Depends-on): Add arg-nonnull.
6833         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6834         * modules/stdio (Depends-on): Add arg-nonnull.
6835         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6836         * modules/stdlib (Depends-on): Add arg-nonnull.
6837         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6838         * modules/string (Depends-on): Add arg-nonnull.
6839         (Makefile.am): Insert arg-nonnull.h into string.h.
6840         * modules/strings (Depends-on): Add arg-nonnull.
6841         (Makefile.am): Insert arg-nonnull.h into strings.h.
6842         * modules/sys_socket (Depends-on): Add arg-nonnull.
6843         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6844         * modules/sys_stat (Depends-on): Add arg-nonnull.
6845         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6846         * modules/sys_time (Depends-on): Add arg-nonnull.
6847         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6848         * modules/sys_times (Depends-on): Add arg-nonnull.
6849         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6850         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6851         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6852         * modules/time (Depends-on): Add arg-nonnull.
6853         (Makefile.am): Insert arg-nonnull.h into time.h.
6854         * modules/unistd (Depends-on): Add arg-nonnull.
6855         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6856         * modules/wchar (Depends-on): Add arg-nonnull.
6857         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6858         * modules/argv-iter (Depends-on): Add arg-nonnull.
6859         * tests/test-canonicalize.c (null_ptr): New function.
6860         (main): Use it.
6861         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6862         (main): Use it.
6863         * tests/test-memmem.c (null_ptr): New function.
6864         (main): Use it.
6865         Reported by Jim Meyering.
6866
6867 2009-12-10  Bruno Haible  <bruno@clisp.org>
6868
6869         Use spaces for indentation, not tabs.
6870         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6871         * m4/*.m4: Untabify.
6872         * build-aux/*.h: Untabify.
6873         * tests/**/*.[hc]: Untabify.
6874         * README: New section "Indent with spaces, not TABs", based on
6875         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6876         * NEWS: Mention the change.
6877
6878 2009-12-10  Bruno Haible  <bruno@clisp.org>
6879
6880         pty test: Fix link error.
6881         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6882         test_pty_LDADD.
6883
6884 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6885
6886         * modules/pty: New file.
6887         * modules/pty-tests: New file.
6888         * m4/pty.m4: New file.
6889         * tests/test-pty.c: New file.
6890         * doc/glibc-headers/pty.texi: Modified.
6891         * doc/glibc-functions/forkpty.texi: Modified.
6892         * doc/glibc-functions/openpty.texi: Modified.
6893
6894 2009-12-10  Bruno Haible  <bruno@clisp.org>
6895
6896         Avoid syntax error in C++ mode.
6897         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6898
6899 2009-12-10  Bruno Haible  <bruno@clisp.org>
6900
6901         Use sed with option -e.
6902         * gnulib-tool (func_version, func_emit_copyright_notice,
6903         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6904         option -e to sed.
6905         * modules/link-warning (Makefile.am): Likewise.
6906
6907 2009-12-10  Jim Meyering  <meyering@redhat.com>
6908
6909         mgetgroups: do not write bytes beyond end of malloc'd buffer
6910         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6911         username, we call getgroups with a one-element-shorter buffer,
6912         but still told it the length was original, max_n_groups.
6913
6914 2009-12-09  Eric Blake  <ebb9@byu.net>
6915
6916         cloexec: relax license
6917         * modules/cloexec (Maintainer): Add myself.
6918         (License): Use LGPL, not GPL.
6919
6920         link-warning: optimize generation
6921         * modules/link-warning (Makefile.am): Reduce process usage.
6922
6923 2009-12-09  Bruno Haible  <bruno@clisp.org>
6924
6925         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6926         workaround was added on 2009-11-17.
6927
6928 2009-12-09  Jim Meyering  <meyering@redhat.com>
6929             Bruno Haible  <bruno@clisp.org>
6930
6931         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6932         * modules/link-warning (Makefile.am): Make the comment-removing sed
6933         command more robust in the face of bootstrap-prepended comment lines.
6934
6935 2009-12-09  Bruno Haible  <bruno@clisp.org>
6936
6937         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6938         most one group.
6939
6940 2009-12-09  Simon Josefsson <simon@josefsson.org>
6941             Bruno Haible  <bruno@clisp.org>
6942
6943         * build-aux/link-warning.h: Add copyright notice.
6944         * modules/link-warning (Makefile.am): Generate link-warning.h from
6945         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6946         * NEWS: Mention change in link-warning module.
6947         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6948         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6949         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6950         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6951         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6952         * modules/math (Makefile.am): Add dependency to math.h.
6953         * modules/search (Makefile.am): Add dependency to search.h.
6954         * modules/signal (Makefile.am): Add dependency to signal.h.
6955         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6956         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6957         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6958         * modules/string (Makefile.am): Add dependency to string.h.
6959         * modules/strings (Makefile.am): Add dependency to strings.h.
6960         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6961         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6962         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6963         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6964         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6965         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6966         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6967         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6968         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6969
6970 2009-12-09  Bruno Haible  <bruno@clisp.org>
6971
6972         fchdir: Optimize away rpl_fstat when possible.
6973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6974         REPLACE_OPEN_DIRECTORY.
6975         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6976
6977 2009-12-09  Bruno Haible  <bruno@clisp.org>
6978
6979         * lib/fchdir.c: Update comment.
6980
6981 2009-12-09  Bruno Haible  <bruno@clisp.org>
6982
6983         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6984
6985 2009-12-08  Eric Blake  <ebb9@byu.net>
6986
6987         fchdir: avoid memory leak on re-registration.
6988         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6989
6990 2009-12-08  Jim Meyering  <meyering@redhat.com>
6991
6992         init.sh: avoid Solaris 10 /bin/sh portability problem
6993         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6994         sourced script:
6995           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6996           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6997           bar
6998         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6999         and two tests used that idiom.
7000         * tests/init.sh: Update suggested usage comments.
7001         (path_prepend_): New function, to be used in place
7002         of the --src-path=DIR option.
7003         (setup_): Move PATH-prepending code into path_prepend_.
7004         * tests/test-pread.sh: Adapt to new usage.
7005         * tests/test-xalloc-die.sh: Likewise.
7006
7007 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7008
7009         * doc/gnulib.texi (Glibc pty.h): Add.
7010         * doc/glibc-functions/forkpty.texi: Add.
7011         * doc/glibc-functions/openpty.texi: Add.
7012         Suggested by Bruno Haible.
7013
7014 2009-12-08  Eric Blake  <ebb9@byu.net>
7015
7016         fchdir: fix logic bugs
7017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7018         * tests/test-fchdir.c (main): Enhance test.
7019         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7020         is in use.
7021
7022         dup2: fix logic bugs
7023         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7024         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7025         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7026         exists.
7027         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7028
7029 2009-12-07  Eric Blake  <ebb9@byu.net>
7030
7031         unlink: fix m4 detection
7032         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7033
7034         unistd-safer: add unit test
7035         * modules/unistd-safer-tests: New file.
7036         * tests/test-dup-safer.c: Likewise.
7037         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7038         * tests/test-dup2.c (setmode): Likewise.
7039         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7040
7041         cloexec: preserve text vs. binary across dup_cloexec
7042         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7043         mode.
7044         * modules/dup2-tests (Depends-on): Add binary-io.
7045         * modules/cloexec-tests (Depends-on): Likewise.
7046         * tests/test-dup2.c (setmode, is_mode): New helpers.
7047         (main): Add tests that translation mode is preserved.
7048         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7049         Reported by Bruno Haible.
7050
7051         mgetgroups: reduce duplicate listings
7052         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7053         resulting array.
7054         * tests/test-chown.h (test_chown): Simplify client.
7055         * tests/test-lchown.h (test_lchown): Likewise.
7056
7057 2009-12-06  Bruno Haible  <bruno@clisp.org>
7058
7059         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7060         value.
7061
7062 2009-12-06  Bruno Haible  <bruno@clisp.org>
7063
7064         * lib/progname.c: Include stdio.h, stdlib.h.
7065         (set_program_name): Reject a NULL argument.
7066
7067 2009-12-05  Eric Blake  <ebb9@byu.net>
7068
7069         pipe2-safer: new module
7070         * modules/pipe2-safer: New file.
7071         * lib/unistd-safer.h (pipe2_safer): New prototype.
7072         * lib/unistd--.h (pipe2): New wrapper.
7073         * lib/pipe-safer.c (pipe2_safer): New function.
7074         * modules/pipe (Depends-on): Add pipe2-safer.
7075         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7076
7077         stdlib-safer: preserve cloexec flag for mkostemp[s]
7078         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7079         fd_safer_flag.
7080
7081         unistd-safer: allow preservation of cloexec status via flag
7082         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7083         prototypes.
7084         * lib/dup-safer.c (dup_safer_flag): New function.
7085         * lib/fd-safer.c (fd_safer_flag): Likewise.
7086         * modules/cloexec (configure.ac): Set witness.
7087
7088         test-dup2: enhance test
7089         * modules/dup2-tests (Depends-on): Add cloexec.
7090         * tests/test-dup2.c (main): Enhance test.
7091
7092         cloexec: add dup_cloexec
7093         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7094         header and comments.
7095         * lib/cloexec.c (set_cloexec_flag): Add comments.
7096         (dup_cloexec): New function, with mingw implementation borrowed
7097         from...
7098         * lib/w32spawn.h (dup_noinherit): ...here.
7099         * modules/execute (Depends-on): Add cloexec.
7100         * modules/pipe (Depends-on): Likewise.
7101         * modules/cloexec (Depends-on): Add dup2.
7102         * modules/cloexec-tests (Files): New file.
7103         * tests/test-cloexec.c: Likewise.
7104
7105         test-xalloc-die: fix test for mingw
7106         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7107         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7108         directory and .exe suffix off argv[0] output.
7109
7110         test-fseeko: fix test for mingw
7111         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7112         than undefining fseek, so test will pass on mingw.
7113
7114 2009-12-05  Bruno Haible  <bruno@clisp.org>
7115
7116         * lib/progname.h (set_program_name): Clarify specification.
7117         * lib/progname.c (set_program_name): Likewise.
7118         Reported by Jim Meyering.
7119
7120 2009-12-05  Jim Meyering  <meyering@redhat.com>
7121
7122         maint.mk: backslash-escape parens in default regexp
7123         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7124         backslash-escape the literal parentheses.
7125
7126         maint.mk: news-date-check: use grep -E
7127         * top/maint.mk (today): Define a Make variable, not a...
7128         (news-date-check): ...shell variable.
7129         (news-date-regexp): Use the Make variable.
7130         Use grep's -E option.  Change the failing diagnostic to mention
7131         the variable, $(news-date-regexp).
7132
7133 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7134
7135         maintainer-makefile: allow customization of NEWS entry format
7136         * top/maint.mk (news-date-regexp): New overridable variable.
7137         (news-date-check): Use it.
7138
7139 2009-12-04  Eric Blake  <ebb9@byu.net>
7140
7141         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7142         * lib/mgetgroups.h (xgetgroups): New prototype.
7143         * lib/mgetgroups.c (xgetgroups): New wrapper.
7144         (mgetgroups): Handle ENOSYS.
7145         * modules/mgetgroups (Depends-on): Add realloc.
7146         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7147
7148         mgetgroups: avoid argument promotion issues with -1
7149         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7150         for invalid gid_t.
7151         * tests/test-chown.h (getegid, test_chown): Likewise.
7152         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7153
7154 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7155
7156         exclude: Fix header file problems.
7157         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7158
7159 2009-12-01  Jim Meyering  <meyering@redhat.com>
7160
7161         fts: fts_open: do not let an empty string cause immediate failure
7162         This is required in support of GNU rm, for which the command
7163         "rm A '' B" must process and remove both A and B, in spite of
7164         the empty string argument.
7165         * lib/fts.c (fts_open): Do not let the presence of an empty string
7166         cause fts_open to fail immediately.  Most fts-using tools must be
7167         able to process all arguments, in order, and can be expected to
7168         diagnose such arguments themselves.
7169
7170 2009-11-30  Eric Blake  <ebb9@byu.net>
7171
7172         utimens: fix compilation error
7173         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7174         Declare variable at right scope.
7175
7176 2009-11-29  Jim Meyering  <meyering@redhat.com>
7177
7178         bootstrap: handle perl-5.11's changed --version output
7179         * build-aux/bootstrap (get_version): Handle perl separately,
7180         since perl-5.11's --version output is different.
7181
7182 2009-11-28  Jim Meyering  <meyering@redhat.com>
7183
7184         userspec: depend on the inttostr module, too
7185         * modules/userspec (Depends-on): Add inttostr.
7186
7187         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7188         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7189         number of MAXUID when it evaluates to (uid_t) -1.
7190         Likewise for group ID.  Reported by Matt McCutchen in
7191         <http://savannah.gnu.org/bugs/?28113>
7192
7193         userspec: reformat to use spaces, not TABs
7194         * lib/userspec.c: Expand TABs to spaces.
7195         Add Emacs' "indent-tabs-mode: nil" hint.
7196
7197 2009-11-27  Eric Blake  <ebb9@byu.net>
7198
7199         getopt-gnu: flush out another BSD bug
7200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7201         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7202         flush out BSD bug.
7203         * tests/test-getopt.h (test_getopt): End lists with NULL.
7204         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7205         (test_getopt_long_posix): Enhance test.
7206         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7207         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7208         getopt-gnu.
7209         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7210         Likewise.
7211
7212 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7213
7214         * modules/idpriv-droptemp-tests (Notice): Fix text.
7215
7216 2009-11-27  Jim Meyering  <meyering@redhat.com>
7217
7218         test-xalloc-die: avoid spurious failure due to libtool argv difference
7219         In a libtool-enabled project, this test would fail due to a difference
7220         in the emitted program name, e.g.,
7221         -test-xalloc-die: memory exhausted
7222         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7223         Use program to avoid that.
7224         * modules/xalloc-die-tests (Depends-on): Add progname.
7225         * tests/test-xalloc-die.c: Include progname.h".
7226         (program_name): Remove decl.
7227         (main): Call set_program_name.
7228         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7229
7230 2009-11-26  Richard Jones  <rjones@redhat.com>
7231
7232         w32sock: leave win32 error in place.
7233         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7234
7235 2009-11-26  Eric Blake  <ebb9@byu.net>
7236
7237         init.sh: suggest to use skip_ and fail_ functions in comments
7238         * tests/init.sh: Add a sentence.
7239
7240 2009-11-25  Bruno Haible  <bruno@clisp.org>
7241
7242         init.sh: add documentation in comments
7243         * tests/init.sh: Add some developer and user documentation.
7244
7245 2009-11-26  Jim Meyering  <meyering@redhat.com>
7246
7247         init.sh: accommodate even those who specify bogus srcdir manually
7248         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7249         configure-time tests to be sanitized, so that there is no need to
7250         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7251         (with no double quotes) suffices.  However, since tests may be
7252         invoked manually, and since you may explicitly set srcdir to the
7253         name of a directory containing spaces, do quote its uses here.
7254         * tests/test-pread.sh: Likewise.
7255         Suggested by Bruno Haible.
7256
7257         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7258         * tests/test-pread.sh: Write no data into the pipe, because
7259         test-pread actually reads none.  This avoids a diagnostic,
7260         "bash: echo: write error: Broken pipe", that arises in the unusual
7261         event something is ignoring SIGPIPE, and might be interpreted
7262         as some sort of failure.  Reported by Bruno Haible.
7263
7264 2009-11-25  Jim Meyering  <meyering@redhat.com>
7265
7266         test-pread: cover failure with ESPIPE and EINVAL
7267         * tests/test-pread.c (main): Test for failure, too.
7268         * tests/test-pread.sh: Invoke with stdin on a pipe.
7269         Suggested by Eric Blake.
7270
7271         pread: improvement and fix
7272         * modules/pread (Depends-on): Depend on lseek, for portability to
7273         e.g., mingw.  Suggested by Eric Blake.
7274         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7275
7276         unistd.in.h: correct declaration of pread
7277         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7278         Reported by Richard W.M. Jones.
7279
7280         test-pread.sh: distribute the test script
7281         * modules/pread-tests (Files): Include test-pread.sh.
7282
7283         test-pread.sh: clean up
7284         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7285         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7286         That is unnecessary, since it's always ".".
7287         Suggestion from Eric Blake.
7288
7289         test-pread.sh: make executable
7290         * tests/test-pread.sh: Set executable bit.
7291         Reported by Eric Blake.
7292
7293         correct typo in test-pread.sh
7294         * tests/test-pread.sh: Add #! line.
7295
7296         test pread
7297         * tests/test-pread.c: New file.
7298         * tests/test-pread.sh: Likewise.
7299         * modules/pread-tests: Likewise.
7300
7301         pread: new module
7302         * modules/pread: New file.
7303         * lib/unistd.in.h (pread): Define/declare.
7304         * lib/pread.c (pread): New file.
7305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7306         * modules/unistd (Makefile.am): Substitute witnesses.
7307         * doc/posix-functions/pread.texi (pread): Update.
7308         * MODULES.html.sh: Add pread.
7309
7310 2009-11-25  Jim Meyering  <meyering@redhat.com>
7311
7312         tests/init.sh: new file to be used via most *.sh tests
7313         * tests/init.sh: New file.
7314
7315 2009-11-25  Eric Blake  <ebb9@byu.net>
7316
7317         utimens: work around older Linux failure with symlinks
7318         * lib/utimens.c (lutimensat_works_really): New variable.
7319         (fdutimens, lutimens): Use it to manage kernels that support
7320         nanosecond times on files, but not on symlinks.
7321         Reported by Ondřej Vašík.
7322
7323         utimes: fix configure grammar
7324         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7325
7326 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7327
7328         regex: Fix fastmap for multibyte character ranges.
7329         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7330         characters when a multibyte character range is included.
7331
7332 2009-11-22  Andy Wingo  <wingo@pobox.com>
7333
7334         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7335         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7336
7337 2009-11-24  Bruno Haible  <bruno@clisp.org>
7338
7339         doc: Most *_l functions exist in MacOS X 10.5.
7340         * doc/posix-functions/duplocale.texi: Update platforms list.
7341         * doc/posix-functions/freelocale.texi: Likewise.
7342         * doc/posix-functions/newlocale.texi: Likewise.
7343         * doc/posix-functions/uselocale.texi: Likewise.
7344         * doc/posix-functions/isalnum_l.texi: Likewise.
7345         * doc/posix-functions/isalpha_l.texi: Likewise.
7346         * doc/posix-functions/isblank_l.texi: Likewise.
7347         * doc/posix-functions/iscntrl_l.texi: Likewise.
7348         * doc/posix-functions/isdigit_l.texi: Likewise.
7349         * doc/posix-functions/isgraph_l.texi: Likewise.
7350         * doc/posix-functions/islower_l.texi: Likewise.
7351         * doc/posix-functions/isprint_l.texi: Likewise.
7352         * doc/posix-functions/ispunct_l.texi: Likewise.
7353         * doc/posix-functions/isspace_l.texi: Likewise.
7354         * doc/posix-functions/isupper_l.texi: Likewise.
7355         * doc/posix-functions/iswalnum_l.texi: Likewise.
7356         * doc/posix-functions/iswalpha_l.texi: Likewise.
7357         * doc/posix-functions/iswblank_l.texi: Likewise.
7358         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7359         * doc/posix-functions/iswctype_l.texi: Likewise.
7360         * doc/posix-functions/iswdigit_l.texi: Likewise.
7361         * doc/posix-functions/iswgraph_l.texi: Likewise.
7362         * doc/posix-functions/iswlower_l.texi: Likewise.
7363         * doc/posix-functions/iswprint_l.texi: Likewise.
7364         * doc/posix-functions/iswpunct_l.texi: Likewise.
7365         * doc/posix-functions/iswspace_l.texi: Likewise.
7366         * doc/posix-functions/iswupper_l.texi: Likewise.
7367         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7368         * doc/posix-functions/isxdigit_l.texi: Likewise.
7369         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7370         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7371         * doc/posix-functions/strcoll_l.texi: Likewise.
7372         * doc/posix-functions/strfmon_l.texi: Likewise.
7373         * doc/posix-functions/strftime_l.texi: Likewise.
7374         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7375         * doc/posix-functions/strxfrm_l.texi: Likewise.
7376         * doc/posix-functions/tolower_l.texi: Likewise.
7377         * doc/posix-functions/toupper_l.texi: Likewise.
7378         * doc/posix-functions/towctrans_l.texi: Likewise.
7379         * doc/posix-functions/towlower_l.texi: Likewise.
7380         * doc/posix-functions/towupper_l.texi: Likewise.
7381         * doc/posix-functions/wcscoll_l.texi: Likewise.
7382         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7383         * doc/posix-functions/wctrans_l.texi: Likewise.
7384         * doc/posix-functions/wctype_l.texi: Likewise.
7385         * doc/glibc-functions/strptime_l.texi: Likewise.
7386         * doc/glibc-functions/strtod_l.texi: Likewise.
7387         * doc/glibc-functions/strtof_l.texi: Likewise.
7388         * doc/glibc-functions/strtol_l.texi: Likewise.
7389         * doc/glibc-functions/strtold_l.texi: Likewise.
7390         * doc/glibc-functions/strtoll_l.texi: Likewise.
7391         * doc/glibc-functions/strtoul_l.texi: Likewise.
7392         * doc/glibc-functions/strtoull_l.texi: Likewise.
7393         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7394         * doc/glibc-functions/wcstod_l.texi: Likewise.
7395         * doc/glibc-functions/wcstof_l.texi: Likewise.
7396         * doc/glibc-functions/wcstol_l.texi: Likewise.
7397         * doc/glibc-functions/wcstold_l.texi: Likewise.
7398         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7399         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7400         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7401
7402 2009-11-24  Bruno Haible  <bruno@clisp.org>
7403
7404         duplocale: Fix logic bug.
7405         * lib/duplocale.c: Don't include <langinfo.h>.
7406         (_NL_LOCALE_NAME): Remove macro.
7407         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7408         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7409
7410 2009-11-23  Jim Meyering  <meyering@redhat.com>
7411
7412         test-update-copyright: don't hard-code /usr/bin/perl
7413         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7414         perl to print the current year.  Gilles Espinasse reported that
7415         the replaced use of perl was hard-coded as /usr/bin/perl.
7416
7417 2009-11-23  Bruno Haible  <bruno@clisp.org>
7418
7419         duplocale: Add support for glibc 2.3.x.
7420         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7421
7422 2009-11-22  Bruno Haible  <bruno@clisp.org>
7423
7424         vasnprintf: Tiny optimization.
7425         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7426         MacOS X.
7427
7428 2009-11-22  Bruno Haible  <bruno@clisp.org>
7429
7430         Tests for module 'duplocale'.
7431         * modules/duplocale-tests: New file.
7432         * tests/test-duplocale.c: New file.
7433
7434         New module 'duplocale'.
7435         * m4/duplocale.m4: New file.
7436         * lib/locale.in.h (duplocale): New declaration.
7437         * lib/duplocale.c: New file.
7438         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7439         gl_LOCALE_H_DEFAULTS): New macros.
7440         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7441         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7442         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7443         REPLACE_DUPLOCALE.
7444         * modules/duplocale: New file.
7445         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7446
7447 2009-11-22  Bruno Haible  <bruno@clisp.org>
7448
7449         * modules/locale-tests (configure.ac): Test for newlocale function.
7450         * tests/test-locale.c: When the system has extended locale functions,
7451         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7452
7453         locale: Make locale_t available when possible.
7454         * lib/locale.in.h: Include <xlocale.h> when it exists.
7455         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7456         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7457         * modules/locale (Depends-on): Add extensions.
7458         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7459         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7460
7461 2009-11-22  Bruno Haible  <bruno@clisp.org>
7462
7463         Add comments.
7464         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7465         invocation.
7466         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7467         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7469
7470 2009-11-22  Bruno Haible  <bruno@clisp.org>
7471
7472         error: account for the possibility of freopen (stdout).
7473         * lib/error.c: Include <unistd.h>.
7474         (flush_stdout): New function, extracted from error and error_at_line.
7475         Determine stdout's fd dynamically.
7476         (error, error_at_line): Invoke flush_stdout.
7477         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7478         * modules/error (Depends-on): Add unistd.
7479
7480 2009-11-22  Bruno Haible  <bruno@clisp.org>
7481
7482         diffseq: Add comment.
7483         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7484
7485 2009-11-22  Jim Meyering  <meyering@redhat.com>
7486
7487         c-stack: avoid defining an unused static function
7488         * lib/c-stack.c (find_stack_direction): Do not define this function
7489         when it will not be used.
7490
7491         diffseq: avoid spurious gcc warnings
7492         * lib/diffseq.h (IF_LINT2): Define.
7493         (compareseq): Use it to initialize two members of "part".
7494         This avoids two used-uninitialized warnings.
7495
7496 2009-11-21  Jim Meyering  <meyering@redhat.com>
7497
7498         c-stack: avoid "ignoring return value of `write'" warning
7499         * lib/c-stack.c: Include "ignore-value.h".
7500         (die): Explicitly ignore each write return value.
7501         * modules/c-stack (Depends-on): Add ignore-value.
7502
7503 2009-11-21  Bruno Haible  <bruno@clisp.org>
7504
7505         diffseq: reduce scope of variable 'best'.
7506         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7507         variable, earlier used for two different purposes.
7508
7509 2009-11-21  Jim Meyering  <meyering@redhat.com>
7510
7511         diffseq: remove useless assignment to "best"
7512         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7513         assignment.  At that point "best" is already guaranteed to be zero.
7514
7515 2009-11-20  Eric Blake  <ebb9@byu.net>
7516
7517         build: mention ftp redirector in release announcements
7518         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7519         values that used to come from cfg.mk; mention FTP redirect URL.
7520         * build-aux/announce-gen: Mention the mirror list.
7521         Suggested by Karl Berry.
7522
7523         nanosleep: improve port to mingw
7524         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7526         LIB_NANOSLEEP, but only when needed.
7527         * modules/select (Link): Document LIBSOCKET.
7528         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7529         enough.
7530
7531         nanosleep: work around cygwin bug
7532         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7533         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7534         bug.
7535         (getnow): Delete, not needed.
7536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7537         LIB_CLOCK_GETTIME.
7538         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7539         clock-time, gettime.
7540         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7541         bug.
7542         * modules/nanosleep-tests: New test.
7543         * tests/test-nanosleep.c: New file.
7544
7545         sleep: work around cygwin bug
7546         * lib/sleep.c (rpl_sleep): Work around the bug.
7547         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7548         (gl_PREREQ_SLEEP): Delete unused macro.
7549         * modules/sleep (Depends-on): Add verify.
7550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7551         * modules/unistd (Makefile.am): Substitute witness.
7552         * lib/unistd.in.h (sleep): Update prototype.
7553         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7554         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7555         * modules/sleep-tests (Depends-on): Check for alarm.
7556
7557 2009-11-20  Jim Meyering  <meyering@redhat.com>
7558
7559         maint.mk: improve sc_prohibit_magic_number_exit
7560         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7561         so it does not match uses like System.exit(1).
7562         Add comments showing how to correct all offenders.
7563
7564 2009-11-19  Eric Blake  <ebb9@byu.net>
7565
7566         xalloc-die-tests: add missing library
7567         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7568
7569         test-xvasprintf: silence compiler warnings
7570         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7571         empty string from gcc.
7572
7573 2009-11-19  Jim Meyering  <meyering@redhat.com>
7574
7575         xfreopen: new module, from coreutils
7576         * modules/xfreopen: New module.
7577         * lib/xfreopen.c: New file.
7578         * lib/xfreopen.h: New file.
7579         * MODULES.html.sh (File stream based Input/Output"): Add it.
7580
7581 2009-11-19  Eric Blake  <ebb9@byu.net>
7582
7583         manywarnings: depend on warnings
7584         * modules/manywarnings (Depends-on): Add warnings.
7585
7586         build: avoid compiler warnings
7587         * lib/select.c (rpl_select): Delete unused variable.
7588         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7589
7590 2009-11-18  Eric Blake  <ebb9@byu.net>
7591
7592         tests: avoid false negative with --with-packager
7593         * tests/test-version-etc.sh: Discard packager information.
7594         * tests/test-argp-version-etc-1.sh: Likewise.
7595         Reported by Mike Frysinger.
7596
7597         utimens: fix regression on Solaris
7598         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7599         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7600         can only change fd timestamps via futimesat.  Instead, use an
7601         additional witness macro to avoid BSD bug.
7602         Reported by Jim Meyering.
7603
7604 2009-11-17  Eric Blake  <ebb9@byu.net>
7605
7606         usleep: use it to simplify tests
7607         * modules/stat-time-tests (Depends-on): Add usleep.
7608         (configure.ac): Drop usleep check.
7609         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7610         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7611         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7612         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7613         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7614         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7615         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7616         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7617         Likewise.
7618         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7619         * tests/test-lchown.h (nap): Likewise.
7620         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7621         * tests/test-stat-time.c (nap): Likewise.
7622         * tests/test-utimens-common.h (nap): Update comments.
7623
7624         usleep: new module
7625         * modules/usleep: New file.
7626         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7627         * lib/usleep.c (usleep): Likewise.
7628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7629         * modules/unistd (Makefile.am): Substitute witnesses.
7630         * lib/unistd.in.h (usleep): Add declaration.
7631         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7632         * MODULES.html.sh (Date and time): Likewise.
7633         * modules/usleep-tests (Depends-on): New test.
7634         * tests/test-usleep.c: New file.
7635
7636         chown: work around OpenBSD bug
7637         * lib/chown.c (rpl_chown): Work around the bug.
7638         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7639         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7640         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7641         * modules/chown (Depends-on): Add stdbool.
7642         * modules/lchown (Depends-on): Likewise.
7643         * doc/posix-functions/chown.texi (chown): Document the bug.
7644         * doc/posix-functions/lchown.texi (lchown): Likewise.
7645         * tests/test-lchown.h (test_chown): Relax test.
7646
7647         mkstemp: avoid conflict with C++ keyword template
7648         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7649         * lib/mkostemp.c (mkostemp): Likewise.
7650         * lib/mkostemps.c (mkostemps): Likewise.
7651         * lib/mkstemp.c (mkstemp): Likewise.
7652         * lib/mkstemps.c (mkstemps): Likewise.
7653
7654         xalloc-die-tests: optimize
7655         * tests/test-xalloc-die.sh: Reduce number of processes.
7656
7657 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7658
7659         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7660         patch from ludo@gnu.org (Ludovic Courtès).
7661
7662 2009-11-17  Jim Meyering  <meyering@redhat.com>
7663
7664         version-etc: use proper license string
7665         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7666         * modules/version-etc-fsf: Likewise.
7667
7668 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7669
7670         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7671         printed to stdout.  Deal with EOL differences.
7672
7673 2009-11-17  Eric Blake  <ebb9@byu.net>
7674
7675         unsetenv: work around Solaris bug
7676         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7677         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7678         Reported by Jim Meyering.
7679
7680         vasnprintf: avoid compiler warnings
7681         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7682         variables.
7683         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7684
7685 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7686
7687         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7688         settings since xalloc-die is no longer the self test,
7689         xalloc-die.sh is.
7690
7691 2009-11-17  Jim Meyering  <meyering@redhat.com>
7692
7693         test-xalloc-die.sh: make the code agree with the commit log
7694         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7695         at the end, just in case you happen to have a test-xalloc-die
7696         program in some other PATH directory.
7697
7698         test-xalloc-die.sh: fix a portability bug
7699         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7700         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7701         Otherwise, argv[0] (as often seen in diagnostics) would be too
7702         system-dependent, sometimes with, and sometimes without the leading "./".
7703
7704         version-etc-fsf: relax license to LGPLv3+
7705         * modules/version-etc-fsf (License): Relax license.
7706
7707 2009-11-16  Eric Blake  <ebb9@byu.net>
7708
7709         xalloc-die-tests: avoid printing null pointer
7710         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7711         shell script.
7712         * tests/test-xalloc-die.c (program_name): Declare.
7713         * tests/test-xalloc-die.sh (tmpfiles): New file.
7714
7715         setenv, unsetenv: work around various bugs
7716         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7717         (setenv) [HAVE_SETENV]: Work around bugs.
7718         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7720         for bugs.
7721         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7722         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7724         * modules/stdlib (Makefile.am): Update substitutions.
7725         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7726         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7727         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7728         * modules/setenv-tests: New test.
7729         * modules/unsetenv-tests: Likewise.
7730         * tests/test-setenv.c: New file.
7731         * tests/test-unsetenv.c: Likewise.
7732
7733 2009-11-16  Jim Meyering  <meyering@redhat.com>
7734
7735         version-etc: relax license to LGPLv3+
7736         * modules/version-etc (License): Relax license.
7737
7738         better AC_REQUIRE expanded-before-required-warning avoidance
7739         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7740         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7741         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7742         which is no longer needed.
7743
7744 2009-11-16  Eric Blake  <ebb9@byu.net>
7745
7746         test-freading: clean up temporary file
7747         * tests/test-freading.c (main): Remove file on success, and use
7748         ASSERT more liberally.
7749         Reported by Jim Meyering.
7750
7751 2009-11-16  Jim Meyering  <meyering@redhat.com>
7752
7753         avoid new AC_REQUIRE expanded-before-required warnings
7754         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7755         merely using it.
7756         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7757         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7758
7759 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7760
7761         * tests/test-xalloc-die.c: New file.
7762         * modules/xalloc-die-tests: New file.
7763         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7764         XFAIL_TESTS so it can be appended by modules.
7765
7766 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7767
7768         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7769         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7770
7771 2009-11-14  Eric Blake  <ebb9@byu.net>
7772
7773         fnmatch: avoid compiler warning
7774         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7775         to silence compiler warning about mismatch signedness in ?:.
7776         Reported by Robert Millan.
7777
7778         intprops: add double-inclusion guard
7779         * lib/intprops.h: Allow idempotent includes.
7780         Suggested by Bruce Korb.
7781
7782         openat: detect Solaris fchownat bug
7783         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7784         penalizing glibc chownat when only lchownat is broken.
7785         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7786         trailing slash bugs.
7787         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7788         * modules/openat-tests (Files): Include more files.
7789         (Depends-on): Add mgetgroups, sleep, stat-time.
7790         (configure.ac): Add additional checks.
7791         (Makefile.am): Build new test.
7792         * tests/test-fchownat.c: New file.
7793
7794         lchown: detect Solaris and FreeBSD bug
7795         * lib/lchown.c (rpl_lchown): Work around bug.
7796         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7798         * modules/unistd (Makefile.am): Populate it.
7799         * lib/unistd.in.h (lchown): Update declaration.
7800         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7801         * modules/lchown-tests: New file.
7802         * tests/test-lchown.h (test_lchown): Likewise.
7803         * tests/test-lchown.c (main): Likewise.
7804
7805         chown: detect Solaris and FreeBSD bug
7806         * lib/chown.c (rpl_chown): Work around bug.
7807         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7808         (gl_PREREQ_CHOWN): Delete.
7809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7810         * modules/unistd (Makefile.am): Populate it.
7811         * lib/unistd.in.h (chown): Update declaration.
7812         * lib/lchown.c (chown): Update client.
7813         * modules/lchown (Depends-on): Add lstat.
7814         * doc/posix-functions/chown.texi (chown): Document the bug.
7815         * doc/posix-functions/getgroups.texi (getgroups): Document
7816         getgroups pitfall.
7817         * modules/chown-tests: New file.
7818         * tests/test-chown.h (test_chown): Likewise.
7819         * tests/test-chown.c (main): Likewise.
7820
7821 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7822
7823         gnulib-tool: correctly detect absence of m4 directories
7824         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7825
7826 2009-11-14  Jim Meyering  <meyering@redhat.com>
7827
7828         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7829         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7830
7831 2009-11-14  John W. Eaton  <jwe@gnu.org>
7832
7833         strftime.h: wrap funtion declaration in extern "C" block
7834         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7835
7836 2009-11-13  Eric Blake  <ebb9@byu.net>
7837
7838         getgroups: avoid compiler warning
7839         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7840
7841         getgroups: work around FreeBSD bug
7842         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7843         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7844         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7845         * tests/test-getgroups.c (main): Fix buffer overrun.
7846
7847         getgroups: avoid compilation failure
7848         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7849         * modules/getgroups (Depends-on): Add stdint.
7850
7851 2009-11-13  Jim Meyering  <meyering@redhat.com>
7852
7853         test-getgroups: avoid compilation failure
7854         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7855
7856 2009-11-13  Eric Blake  <ebb9@byu.net>
7857
7858         mgetgroups: new module, taken from coreutils
7859         * modules/mgetgroups: New file.
7860         * lib/mgetgroups.h: Likewise.
7861         * lib/mgetgroups.c (mgetgroups): Likewise.
7862         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7863         * MODULES.html.sh (Users and groups): Mention it.
7864
7865         getgroups: don't expose GETGROUPS_T to user
7866         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7867         an element at a time if GETGROUPS_T is wrong size.
7868         * lib/getugroups.h (getugroups): Change signature.
7869         * lib/unistd.in.h (getgroups): Likewise.
7870         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7871         signature needs fixing.
7872         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7873         AC_TYPE_GETGROUPS.
7874         * modules/group-member (Depends-on): Add getgroups.
7875         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7876         (group_member): Rely on getgroups replacement.
7877         * lib/getugroups.c (getugroups): Use gid_t.
7878         * tests/test-getgroups.c (main): Likewise.
7879         * NEWS: Mention the signature change.
7880         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7881         problem with signature.
7882         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7883         GETGROUPS_T is still useful for setgroups.
7884
7885         getgroups, getugroups: provide stubs for mingw
7886         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7887         * lib/getugroups.c (getugroups): Likewise.
7888         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7889         function.  Modernize replacement scheme.
7890         (gl_PREREQ_GETGROUPS): Delete.
7891         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7892         * modules/getgroups (configure.ac): Declare witness.
7893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7894         * modules/unistd (Depends-on): Substitute witness.
7895         * lib/unistd.in.h (getgroups): Declare replacement.
7896
7897         getgroups: avoid calling exit
7898         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7899         drop xalloc.
7900         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7901         dependencies.
7902         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7903         exiting, in the rare case of malloc failure.
7904
7905         getgroups: fix logic error
7906         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7907         has more than 20 groups.
7908         * modules/getgroups-tests: New test.
7909         * tests/test-getgroups.c: New file.
7910
7911 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7912
7913         * tests/test-base64.c: Improve.
7914
7915 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7916
7917         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7918         Blake <ebb9@byu.net>.
7919
7920 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7921
7922         * tests/test-xvasprintf.c: Add %s%s related checks.
7923
7924 2009-11-12  Eric Blake  <ebb9@byu.net>
7925
7926         version-etc: match standards.texi style
7927         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7928         and use <> only for URLs.
7929
7930 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7931
7932         fts: do not fail on a submount during traversal
7933         * lib/fts.c (fts_build): Read the stat info again after opening
7934         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7935         Original report at http://bugzilla.redhat.com/501848.
7936
7937 2009-11-12  Jim Meyering  <meyering@redhat.com>
7938
7939         bootstrap: sync from coreutils
7940         * build-aux/bootstrap (bootstrap_epilogue): New function.
7941         Use git_modules_config in one more place.  This make bootstrap's
7942         --gnulib-srcdir option more useful for testing.
7943
7944         bootstrap: generalize autoheader check
7945         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7946         AC_CONFIG_HEADERS.
7947
7948 2009-11-11  Eric Blake  <ebb9@byu.net>
7949
7950         mkfifoat: use new modules for Solaris and BSD bugs
7951         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7952         * lib/mkfifoat.c (mknodat): Split...
7953         * lib/mknodat.c (mknodat): ...into new file.
7954         * modules/mkfifoat (Files): Ship new file.
7955         (Depends-on): Add mkfifo, mknod.
7956         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7957         (Depends-on): Add symlink.
7958         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7959         redundant with test_mkfifo.h.
7960         (do_mkfifoat, do_mknodat): New helpers.
7961
7962         mknod: new module
7963         * modules/mknod: New file.
7964         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7965         * lib/mknod.c (mknod): Likewise.
7966         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7967         defaults.
7968         * modules/sys_stat (Makefile.am): Substitute them.
7969         * lib/sys_stat.in.h (mknod): Declare replacement.
7970         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7971         Document it.
7972         * doc/posix-functions/mknod.texi (mknod): Likewise.
7973         * modules/mknod-tests: New test.
7974         * tests/test-mknod.c: Likewise.
7975
7976         mkfifo: new module
7977         * modules/mkfifo: New file.
7978         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7979         * lib/mkfifo.c (mkfifo): Likewise.
7980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7981         defaults.
7982         * modules/sys_stat (Makefile.am): Substitute them.
7983         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7984         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7985         Document it.
7986         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7987         * modules/mkfifo-tests: New test.
7988         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7989         from test-mkfifoat.c.
7990         * tests/test-mkfifo.c: New file.
7991
7992         readlink: detect FreeBSD bug
7993         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7994         slash on symlink.
7995         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7996         * tests/test-readlink.h (test_readlink): Enhance test.
7997
7998         symlink: detect FreeBSD bug
7999         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8000         slash on symlink.
8001         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8002         * tests/test-symlink.h (test_symlink): Enhance test.
8003
8004 2009-11-10  Eric Blake  <ebb9@byu.net>
8005
8006         link: detect FreeBSD bug
8007         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8008         symlink.
8009         * doc/posix-functions/link.texi (link): Document the bug.
8010         * tests/test-link.h (test_link): Enhance test.
8011         * tests/test-linkat.c (main): Update caller.
8012
8013         unlink, remove: detect FreeBSD bug
8014         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8015         slash on symlink.
8016         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8017         * doc/posix-functions/remove.texi (remove): Likewise.
8018         * tests/test-unlink.h (test_unlink): Enhance test.
8019         * tests/test-remove.c (main): Likewise.
8020
8021 2009-11-09  Eric Blake  <ebb9@byu.net>
8022
8023         rename: detect FreeBSD bug
8024         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8025         slash on symlink.
8026         * modules/renameat-tests (Depends-on): Add filenamecat.
8027         * tests/test-rename.h (test_rename): Allow one more errno.
8028         * tests/test-renameat.c (main): Likewise.
8029         * doc/posix-functions/rename.texi (rename): Document the bug.
8030
8031         open: detect FreeBSD bug
8032         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8033         symlink.
8034         * doc/posix-functions/open.texi (open): Document the bug.
8035         * doc/posix-functions/utimes.texi (utimes): Likewise.
8036         * tests/test-open.h (test_open): Add parameters, and test symlink
8037         handling.
8038         * tests/test-open.c (main): Adjust caller.
8039         * tests/test-fcntl-safer.c (main): Likewise.
8040         * modules/open-tests (Depends-on): Add stdbool, symlink.
8041         * modules/fcntl-safer-tests (Depends-on): Likewise.
8042         * tests/test-openat.c (main): Add test-open tests.
8043
8044         stat: detect FreeBSD bug
8045         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8046         symlink.
8047         * doc/posix-functions/stat.texi (stat): Document the bug.
8048         * tests/test-stat.h (test_stat_func): Add argument.
8049         * tests/test-stat.c (main): Adjust caller.
8050         * tests/test-fstatat.c (main): Likewise.
8051         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8052         Reported by Jim Meyering.
8053
8054 2009-11-09  James Youngman  <jay@gnu.org>
8055
8056         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8057         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8058
8059 2009-11-08  Jim Meyering  <meyering@redhat.com>
8060
8061         utimens: remove invalid futimesat call
8062         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8063         It used the file descriptor of the target file as the DIR_FD
8064         parameter and NULL as the file name.  That caused failure with
8065         errno == EFAULT on FreeBSD-8.0-rc2
8066
8067 2009-11-07  Eric Blake  <ebb9@byu.net>
8068
8069         fflush, freadseek: use fseeko, not fseek
8070         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8071         (clear_ungetc_buffer): Avoid potential problems on large files.
8072         * lib/freadseek.c (freadseek): Likewise.
8073         * modules/freadseek (Depends-on): Add fseeko.
8074         * modules/fseek (configure.ac): Set a witness.
8075         * tests/test-fflush.c (main): Use fseeko.
8076         * tests/test-fpurge.c (fseek): Disable link warning.
8077         * tests/test-freadable.c (fseek): Likewise.
8078         * tests/test-freading.c (fseek): Likewise.
8079         * tests/test-fseeko.c (fseek): Likewise.
8080         * tests/test-ftell.c (fseek): Likewise.
8081         * tests/test-ftello.c (fseek): Likewise.
8082         * tests/test-fwritable.c (fseek): Likewise.
8083         * tests/test-fwriting.c (fseek): Likewise.
8084
8085 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8086
8087         * modules/memchr (Depends-on): Drop getpagesize dependency.
8088
8089 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8090
8091         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8092         Reported by Ludovic Courtès.
8093         * build-aux/pmccabe2html: Improve example usage.
8094         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8095
8096 2009-11-06  Jim Meyering  <meyering@redhat.com>
8097
8098         do-release-commit-and-tag: New module.
8099         Automate the release-commit and tag process.
8100         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8101         * modules/do-release-commit-and-tag: New file.
8102         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8103
8104 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8105
8106         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8107         because test-select.c uses inet_pton.
8108
8109 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8110
8111         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8112         GETADDRINFO_LIB.  Bump serial number.
8113         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8114         Suggested by Eric Blake <ebb9@byu.net>.
8115
8116 2009-11-05  Eric Blake  <ebb9@byu.net>
8117
8118         strtod: detect darwin bug
8119         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8120         Reported by Leo Davis.
8121
8122         freopen-safer: new module
8123         * modules/freopen-safer: New module.
8124         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8125         * lib/freopen-safer.c (freopen_safer): New file.
8126         * lib/stdio-safer.h (freopen_safer): New declaration.
8127         * lib/stdio--.h (freopen): New override.
8128         * MODULES.html.sh (File stream based Input/Output): Mention it.
8129         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8130         freopen-safer module.
8131         * doc/posix-functions/stderr.texi (stderr): Likewise.
8132         * doc/posix-functions/stdin.texi (stdin): Likewise.
8133         * doc/posix-functions/stdout.texi (stdout): Likewise.
8134         * modules/freopen-safer-tests: New test.
8135         * tests/test-reopen-safer.c: New file.
8136
8137 2009-11-05  Jim Meyering  <meyering@redhat.com>
8138
8139         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8140         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8141
8142 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8143
8144         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8145
8146 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8147
8148         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8149
8150 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8151
8152         Fix link error.
8153         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8154         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8155
8156 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8157
8158         * tests/test-func.c: Also test value of __func__.
8159
8160 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8161
8162         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8163         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8164
8165 2009-11-05  Bruno Haible  <bruno@clisp.org>
8166
8167         Fix link error.
8168         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8169         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8170         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8171
8172 2009-11-05  Bruno Haible  <bruno@clisp.org>
8173
8174         Tests for module 'inet_pton'.
8175         * modules/inet_pton-tests: New file.
8176         * tests/test-inet_pton.c: New file.
8177
8178 2009-11-05  Bruno Haible  <bruno@clisp.org>
8179
8180         Tests for module 'inet_ntop'.
8181         * modules/inet_ntop-tests: New file.
8182         * tests/test-inet_ntop.c: New file.
8183
8184 2009-11-04  Eric Blake  <ebb9@byu.net>
8185
8186         stdlib-safer: wrap all mkstemp variants
8187         * modules/mkostemp (configure.ac): Set witness.
8188         * modules/mkostemps (configure.ac): Likewise.
8189         * modules/mkstemps (configure.ac): Likewise.
8190         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8191         (mkstemps_safer): Wrap more functions.
8192         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8193         wrapping.
8194         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8195         (mkstemps_safer): Implement the wrappers.
8196
8197         mkstemps, mkostemps: new modules
8198         * modules/mkostemps: New module.
8199         * modules/mkstemps: Likewise.
8200         * lib/mkostemps.c (mkostemps): New file.
8201         * lib/mkstemps.c (mkstemps): Likewise.
8202         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8203         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8205         * modules/stdlib (Makefile.am): Substitute them.
8206         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8207         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8208         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8209         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8210         * MODULES.html.sh (File system functions): Mention them.
8211
8212         tempname: resync from glibc
8213         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8214         same values for __GT_FILE as glibc.  Abort even when assertions
8215         are disabled.
8216         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8217         match its value otherwise.  Allow idempotent inclusion.
8218         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8219         * lib/mkostemp.c (mkostemp): Likewise.
8220         * lib/mkstemp.c (mkstemp): Likewise.
8221         * lib/tmpfile.c (tmpfile): Likewise.
8222         * NEWS: Document this.
8223
8224         utimens: fix use of futimens on older Linux
8225         * lib/utimens.c (fdutimens): Use updated, rather than original,
8226         timespec to avoid bug in older Linux kernel.
8227         Reported by Simon Josefsson.
8228
8229 2009-11-04  Bruno Haible  <bruno@clisp.org>
8230
8231         Make num_processors more flexible and consistent.
8232         * lib/nproc.h (enum nproc_query): New type.
8233         (num_processors): Add a 'query' argument.
8234         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8235         (num_processors): Add a 'query' argument. Test the value of the
8236         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8237         mingw, count the number of CPUs available for the current process.
8238         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8239         Check for sched_getaffinity and sched_getaffinity_np.
8240         * modules/nproc (Depends-on): Add c-ctype, extensions.
8241         * NEWS: Mention the change.
8242
8243 2009-11-03  Bruno Haible  <bruno@clisp.org>
8244
8245         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8246
8247 2009-11-03  Jim Meyering  <meyering@redhat.com>
8248
8249         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8250         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8251         if it is defined.
8252
8253 2009-11-02  Eric Blake  <ebb9@byu.net>
8254
8255         mktime, timegm: share common declaration
8256         * lib/mktime-internal.h: New file.
8257         * lib/mktime.c: Use it rather than open-coding a declaration.
8258         * lib/timegm.c: Likewise.
8259         * modules/mktime (Files): Ship it.
8260         * modules/timegm (Files): Likewise.
8261         Suggested by Bruno Haible.
8262
8263         test-update-copyright: update test to match script changes
8264         * tests/test-update-copyright.sh: Avoid hard-coding perl
8265         location.  Don't update *.bak created by earlier runs.
8266
8267 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8268             Simon Josefsson  <simon@josefsson.org>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         Fix link error on Solaris 8.
8272         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8273         also in libnsl. Define also INET_PTON_LIB.
8274         * modules/inet_pton (Link): New section.
8275
8276 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8277             Bruno Haible  <bruno@clisp.org>
8278
8279         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8280         * modules/inet_ntop (Link): New section.
8281         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8282
8283 2009-11-02  Eric Blake  <ebb9@byu.net>
8284
8285         maint: avoid compiler warnings in m4 macros
8286         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8288
8289 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8290
8291         * m4/pmccabe2html.m4: Remove file.
8292         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8293         function.  Change maintainer.
8294         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8295         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8296         Courtès).
8297
8298 2009-10-31  Eric Blake  <ebb9@byu.net>
8299
8300         fseeko: fix m4 regression
8301         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8302         regression from 2009-10-27.
8303         Reported by Ralf Wildenhues.
8304
8305 2009-10-31  Jim Meyering  <meyering@redhat.com>
8306
8307         inttostr: aesthetics and improved (compile-time) safety
8308         Define inttype_is_signed rather than inttype_is_unsigned,
8309         since the sole use is via "#if inttype_is_signed".
8310         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8311         inttype_is_unsigned.
8312         * lib/offtostr.c (inttype_is_signed): Likewise.
8313         * lib/uinttostr.c (inttype_is_signed): Likewise.
8314         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8315         * lib/inttostr.c (inttostr): Use verify to cross-check the
8316         inttype_is_signed value and the signedness of the actual type.
8317         * modules/inttostr (Depends-on): Add verify.
8318
8319 2009-10-30  Eric Blake  <ebb9@byu.net>
8320
8321         build: avoid compiler warnings
8322         * lib/fchmodat.c (lchmod): Mark unused variables.
8323         * lib/getopt.c (_getopt_initialize): Likewise.
8324         * lib/mktime.c (__mktime_internal): Provide prototype.
8325         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8326         older gcc that do not understand #pragma GCC diagnostic.
8327         * lib/uinttostr.c (inttype_is_unsigned): Define.
8328         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8329
8330 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8331
8332         stat: fix compilation on AIX
8333         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8334         only see struct stat64.
8335
8336 2009-10-30  Eric Blake  <ebb9@byu.net>
8337
8338         exclude: make more robust
8339         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8340         rather than masking a coding bug.
8341         Suggested by Bruno Haible.
8342
8343 2009-10-30  Jim Meyering  <meyering@redhat.com>
8344
8345         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8346         Rather than putting #!/usr/bin/perl on the first line,
8347         start with a variant of what's recommended by "man perlrun" that
8348         invokes the first "perl" program from your shell's search path.
8349         * build-aux/gitlog-to-changelog: Replace #!... as above.
8350         Add a "Local Variables" perl mode setting.
8351         Prompted by a patch from Ludovic Courtès.
8352         Improved by Eric Blake.
8353         * build-aux/useless-if-before-free: Likewise.
8354         * build-aux/announce-gen: Likewise.
8355         * build-aux/update-copyright: Likewise.
8356
8357 2009-10-29  Eric Blake  <ebb9@byu.net>
8358
8359         filenamecat-lgpl: adjust clients
8360         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8361         filenamecat.
8362         * modules/renameat (Depends-on): Likewise.
8363
8364         filenamecat: split into filenamecat-lgpl
8365         * modules/filenamecat-lgpl: New module.
8366         * modules/filenamecat (Files): Move library-safe files into
8367         filenamecat-lgpl.
8368         (Depends-on): Add filenamecat-lgpl.
8369         (configure.ac): Declare witness.
8370         * lib/filenamecat.h (file_name_concat): Only declare when using
8371         GPL module.
8372         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8373         Move...
8374         * lib/filenamecat-lgpl.c: ...into new file.
8375         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8376         (gl_FILE_NAME_CONCAT): Use it.
8377         * MODULES.html.sh (File system functions): Mention new module.
8378
8379         argp: avoid memory leak
8380         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8381         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8382         base_name, since the latter malloc()s and can call exit().
8383         Leak introduced 2006-07-03.
8384
8385         dirname-lgpl: adjust clients that don't need full dirname
8386         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8387         * modules/filenamecat (Depends-on): Likewise.
8388         * modules/linkat (Depends-on): Likewise.
8389         * modules/mkancesdirs (Depends-on): Likewise.
8390         * modules/mkdir (Depends-on): Likewise.
8391         * modules/openat (Depends-on): Likewise.
8392         * modules/savewd (Depends-on): Likewise.
8393         * modules/rename (Depends-on): Likewise.
8394         (License): Relax license.
8395         * modules/mkdir-tests (Depends-on): Drop progname.
8396         (Makefile.am): Delete unneeded LDADD.
8397         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8398
8399         dirname: split into dirname-lgpl
8400         * modules/dirname-lgpl: New module.
8401         * modules/dirname (Files): Move library-safe files into
8402         dirname-lgpl.
8403         (Depends-on): Add dirname-lgpl.
8404         (configure.ac): Declare witness.
8405         * modules/double-slash-root (License): Relax license.
8406         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8407         module.
8408         * lib/dirname.c (dir_len, mdir_name): Move...
8409         * lib/dirname-lgpl.c: ...into new file.
8410         * lib/basename.c (last_component, base_len): Move...
8411         * lib/basename-lgpl.c: ...into new file.
8412         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8413         (gl_DIRNAME): Use it.
8414         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8415         Mention new module.
8416         * modules/dirname-tests (Depends-on): Add progname.
8417         * tests/test-dirname.c (program_name): Delete.
8418
8419         mkdir: make safe for libraries
8420         * modules/mkdir (Depends-on): Drop xalloc.
8421         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8422         exit.
8423
8424         tests: avoid some compiler warnings
8425         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8426         literals.
8427         * tests/test-memchr.c (main): Avoid type mismatch.
8428         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8429         * tests/test-base64.c (main): Likewise.
8430         * tests/test-getdelim.c (main): Likewise.
8431         * tests/test-gethostname.c (main): Likewise.
8432         * tests/test-getline.c (main): Likewise.
8433         * tests/test-netinet_in.c (main): Likewise.
8434         * tests/test-select.c (open_server_socket, main): Likewise.
8435         * tests/test-select-stdin.c (main): Likewise.
8436         * tests/test-sockets.c (main): Likewise.
8437         * tests/test-strsignal.c (main): Likewise.
8438         * tests/test-sys_select.c (main): Likewise.
8439         * tests/test-sys_socket.c (main): Likewise.
8440         * tests/test-u64.c (main): Likewise.
8441         * tests/test-xfprintf-posix.c (main): Likewise.
8442         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8443
8444         sockets: avoid compiler warning
8445         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8446
8447         maint: detect usage(1) and other suspicious exits
8448         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8449
8450 2009-10-29  Jim Meyering  <meyering@redhat.com>
8451
8452         timespec: long-to-int truncation could make timespec_cmp malfunction
8453         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8454         a multiple of 2^32 nanoseconds as no difference.
8455
8456 2009-10-28  Jim Meyering  <meyering@redhat.com>
8457
8458         fprintftime: wrap macro code argument in "do {...} while(0)"
8459         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8460         cpy macro must be a statement that can be followed by a semicolon.
8461         Now that the else clause contains a comment and is hence longer
8462         than one line, I require curly braces.  That in turn requires
8463         that we wrap this code block in the standard do...while(0).
8464
8465         fprintftime: remove stray semicolon from previous change
8466         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8467
8468         fprintftime: avoid a warning about ignored fwrite return value
8469         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8470         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8471         that is unsafe.
8472         * modules/fprintftime (Depends-on): Add ignore-value.
8473
8474         exclude: avoid an unwarranted warning
8475         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8476
8477 2009-10-27  Eric Blake  <ebb9@byu.net>
8478
8479         fseek: avoid compilation failure when fflush is replaced
8480         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8481         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8482         module is in use.
8483         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8484         module is not in use; since REPLACE_FSEEK worked otherwise.
8485         (GNULIB_FTELLO): Likewise for ftell.
8486         Reported by Ian Beckwith and others.
8487
8488 2009-10-27  Bruno Haible  <bruno@clisp.org>
8489
8490         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8491         Reported by Jim Meyering.
8492
8493 2009-10-27  Jim Meyering  <jim@meyering.net>
8494             Bruno Haible  <bruno@clisp.org>
8495
8496         Avoid warning despite dropping the return value of fwrite.
8497         * lib/unicodeio.c: Include ignore-value.h.
8498         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8499         * modules/unicodeio (Depends-on): Add ignore-value.
8500
8501 2009-10-26  Eric Blake  <ebb9@byu.net>
8502
8503         areadlinkat: fix fallback path
8504         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8505         pointer and zero.
8506
8507 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8508
8509         Use a better IO block size for modern systems
8510         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8511         * lib/md2.c: Likewise.
8512         * lib/md4.c: Likewise.
8513         * lib/md5.c: Likewise.
8514         * lib/sha1.c: Likewise.
8515         * lib/sha256.c: Likewise.
8516         * lib/sha512.c: Likewise.
8517
8518 2009-10-22  Eric Blake  <ebb9@byu.net>
8519
8520         tests: avoid several compiler warnings
8521         * tests/test-getcwd.c (main): Avoid buffer underflow.
8522         * tests/test-getdate.c (main): String literals are not safe with
8523         putenv, so use setenv.  Declare unused argument.
8524         * modules/getdate-tests (Depends-on): Add setenv.
8525         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8526         problems with string literals in char *.
8527         * tests/test-hash.c (main): Avoid shadowing declaration.
8528         (insert_new): Treat string literals as char const *.
8529         * tests/test-getopt.h (test_getopt): Likewise.
8530         (getopt_loop): Alter types to minimize casting elsewhere.
8531         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8532         (test_getopt_long_posix): Likewise.
8533         (do_getopt_long): Add wrapper to minimize casting.
8534         * tests/test-atexit.c (clear_temp_file): Use void.
8535         * tests/test-areadlink-with-size.c (main): Declare unused
8536         arguments.
8537         * tests/test-areadlink.c (main): Likewise.
8538         * tests/test-areadlinkat-with-size.c (main): Likewise.
8539         * tests/test-areadlinkat.c (main): Likewise.
8540         * tests/test-canonicalize-lgpl.c (main): Likewise.
8541         * tests/test-canonicalize.c (main): Likewise.
8542         * tests/test-dirent-safer.c (main): Likewise.
8543         * tests/test-dirname.c (main): Likewise.
8544         * tests/test-dup2.c (main): Likewise.
8545         * tests/test-fchdir.c (main): Likewise.
8546         * tests/test-fcntl-h.c (main): Likewise.
8547         * tests/test-fcntl-safer.c (main): Likewise.
8548         * tests/test-fdopendir.c (main): Likewise.
8549         * tests/test-fdutimensat.c (main): Likewise.
8550         * tests/test-fflush.c (main): Likewise.
8551         * tests/test-filenamecat.c (main): Likewise.
8552         * tests/test-filevercmp.c (main): Likewise.
8553         * tests/test-fopen-safer.c (main): Likewise.
8554         * tests/test-fopen.c (main): Likewise.
8555         * tests/test-fpending.c (main): Likewise.
8556         * tests/test-fpurge.c (main): Likewise.
8557         * tests/test-freading.c (main): Likewise.
8558         * tests/test-fstatat.c (main): Likewise.
8559         * tests/test-fsync.c (main): Likewise.
8560         * tests/test-futimens.c (main): Likewise.
8561         * tests/test-getndelim2.c (main): Likewise.
8562         * tests/test-gettimeofday.c (main): Likewise.
8563         * tests/test-getopt.c (main): Likewise.
8564         * tests/test-i-ring.c (main): Likewise.
8565         * tests/test-inttypes.c (main): Likewise.
8566         * tests/test-link.c (main): Likewise.
8567         * tests/test-lstat.c (main): Likewise.
8568         * tests/test-math.c (main): Likewise.
8569         * tests/test-md5.c (main): Likewise.
8570         * tests/test-memchr2.c (main): Likewise.
8571         * tests/test-memrchr.c (main): Likewise.
8572         * tests/test-mkdir.c (main): Likewise.
8573         * tests/test-mkdirat.c (main): Likewise.
8574         * tests/test-mkfifoat.c (main): Likewise.
8575         * tests/test-open.c (main): Likewise.
8576         * tests/test-openat-safer.c (main): Likewise.
8577         * tests/test-openat.c (main): Likewise.
8578         * tests/test-quotearg.c (main): Likewise.
8579         * tests/test-rawmemchr.c (main): Likewise.
8580         * tests/test-readlink.c (main): Likewise.
8581         * tests/test-remove.c (main): Likewise.
8582         * tests/test-rename.c (main): Likewise.
8583         * tests/test-renameat.c (main): Likewise.
8584         * tests/test-rmdir.c (main): Likewise.
8585         * tests/test-sha1.c (main): Likewise.
8586         * tests/test-signal.c (main): Likewise.
8587         * tests/test-sigaction.c (main): Likewise.
8588         * tests/test-stat.c (main): Likewise.
8589         * tests/test-stat-time.c (main): Likewise.
8590         * tests/test-stddef.c (main): Likewise.
8591         * tests/test-stdint.c (main): Likewise.
8592         * tests/test-stdio.c (main): Likewise.
8593         * tests/test-stdlib.c (main): Likewise.
8594         * tests/test-strchrnul.c (main): Likewise.
8595         * tests/test-strerror.c (main): Likewise.
8596         * tests/test-string.c (main): Likewise.
8597         * tests/test-strtod.c (main): Likewise.
8598         * tests/test-strverscmp.c (main): Likewise.
8599         * tests/test-symlink.c (main): Likewise.
8600         * tests/test-symlinkat.c (main): Likewise.
8601         * tests/test-sys_stat.c (main): Likewise.
8602         * tests/test-sys_time.c (main): Likewise.
8603         * tests/test-time.c (main): Likewise.
8604         * tests/test-unistd.c (main): Likewise.
8605         * tests/test-unlink.c (main): Likewise.
8606         * tests/test-unlinkat.c (main): Likewise.
8607         * tests/test-utimens.c (main): Likewise.
8608         * tests/test-utimensat.c (main): Likewise.
8609         * tests/test-version-etc.c (main): Likewise.
8610         * tests/test-wchar.c (main): Likewise.
8611         * tests/test-wctype.c (main): Likewise.
8612         * tests/test-xprintf-posix.c (main): Likewise.
8613         * tests/test-posixtm.c (main): Likewise.
8614         (STREQ): Delete unused macro.
8615         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8616         shadowed variables.
8617         * tests/test-memchr.c (main): Likewise.
8618
8619 2009-10-21  Eric Blake  <ebb9@byu.net>
8620
8621         areadlinkat: avoid failure on older glibc
8622         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8623         rather than mis-comparing 0 against FUNC_RESULT of char*.
8624
8625 2009-10-21  Bruno Haible  <bruno@clisp.org>
8626
8627         * modules/stpncpy (License): Relicense under LGPLv2+.
8628         Reported by David Lutterkort <lutter@redhat.com>.
8629
8630 2009-10-20  Eric Blake  <ebb9@byu.net>
8631
8632         utimensat: work around Solaris 9 bug
8633         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8634         has trailing slash bugs.
8635         * tests/test-lutimens.h (test_lutimens): Enhance test.
8636         * tests/test-utimens.h (test_utimens): Likewise.
8637         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8638         * doc/posix-functions/utimes.texi (utimes): Likewise.
8639         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8640         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8641         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8642         * doc/posix-functions/futimens.texi (futimens): Likewise.
8643
8644         fdutimensat: new module
8645         * modules/fdutimensat: New file.
8646         * lib/fdutimensat.c (fdutimensat): Likewise.
8647         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8648         * MODULES.html.sh (File system functions): Mention module.
8649         * modules/fdutimensat-tests: New test.
8650         * tests/test-fdutimensat.c: Likewise.
8651
8652         doc: regenerate INSTALL
8653         * doc/INSTALL: Reflect recent autoconf update.
8654         * doc/INSTALL.ISO: Likewise.
8655         * doc/INSTALL.UTF-8: Likewise.
8656
8657 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8658
8659         acl: warn if ACL support is not detected
8660         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8661
8662 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8663
8664         * lib/nproc.h: Add extern "C" block for C++.
8665
8666 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8667             Bruno Haible  <bruno@clisp.org>
8668
8669         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8670         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8671         * doc/posix-functions/isalpha.texi: Likewise.
8672         * doc/posix-functions/isblank.texi: Likewise.
8673         * doc/posix-functions/iscntrl.texi: Likewise.
8674         * doc/posix-functions/isdigit.texi: Likewise.
8675         * doc/posix-functions/isgraph.texi: Likewise.
8676         * doc/posix-functions/islower.texi: Likewise.
8677         * doc/posix-functions/isprint.texi: Likewise.
8678         * doc/posix-functions/ispunct.texi: Likewise.
8679         * doc/posix-functions/isspace.texi: Likewise.
8680         * doc/posix-functions/isupper.texi: Likewise.
8681         * doc/posix-functions/isxdigit.texi: Likewise.
8682
8683 2009-10-18  Bruno Haible  <bruno@clisp.org>
8684
8685         Tests for module 'isblank'.
8686         * modules/isblank-tests: New file.
8687         * tests/test-isblank.c: New file.
8688
8689         New module 'isblank'.
8690         * lib/isblank.c: New file.
8691         * m4/isblank.m4: New file.
8692         * modules/isblank: New file.
8693         * doc/posix-functions/isblank.texi: Mention the new module.
8694
8695 2009-10-18  Bruno Haible  <bruno@clisp.org>
8696
8697         New module 'ctype'.
8698         * lib/ctype.in.h: New file.
8699         * m4/ctype.m4: New file.
8700         * modules/ctype: New file.
8701         * doc/posix-headers/ctype.texi: Mention the new module.
8702
8703 2009-10-18  Jim Meyering  <meyering@redhat.com>
8704
8705         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8706         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8707         right after its initialization, rather than farther down.
8708         Keeping these in close proximity makes it easier to ensure
8709         that each such variable is initialized.  E.g.,
8710
8711             LIB_CLOCK_GETTIME=
8712             AC_SUBST([LIB_CLOCK_GETTIME])
8713
8714         This change also increments these serial numbers.
8715         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8716         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8717         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8718
8719 2009-10-18  Bruno Haible  <bruno@clisp.org>
8720
8721         Don't let environment variables perturb build.
8722         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8723         (gl_PREREQ_GETHRXTIME): ... not here.
8724
8725 2009-10-18  Bruno Haible  <bruno@clisp.org>
8726
8727         Avoid symlink attack in localcharset module.
8728         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8729         (O_NOFOLLOW): Define fallback.
8730         (get_charset_aliases): Don't open the file if it is a symbolic link.
8731         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8732         gl_FCNTL_H.
8733         (gl_FCNTL_H): Require it.
8734         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8735         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8736         Reported by Fergal Glynn <fglynn@veracode.com>.
8737
8738 2009-10-18  Bruno Haible  <bruno@clisp.org>
8739
8740         Implement nproc for mingw.
8741         * lib/nproc.c: Include <windows.h>
8742         (num_processors): On native Windows platforms, try GetSystemInfo.
8743
8744 2009-10-18  Bruno Haible  <bruno@clisp.org>
8745
8746         Implement nproc for IRIX.
8747         * lib/nproc.c: Include <sys/sysmp.h>.
8748         (num_processors): On IRIX systems, try sysmp.
8749         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8750
8751 2009-10-18  Bruno Haible  <bruno@clisp.org>
8752
8753         Implement nproc for HP-UX.
8754         * lib/nproc.c: Include <sys/pstat.h>
8755         (num_processors): On HP-UX systems, try pstat_getdynamic.
8756         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8757         pstat_getdynamic.
8758
8759 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8760             Bruno Haible  <bruno@clisp.org>
8761
8762         Implement nproc for NetBSD, OpenBSD.
8763         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8764         (ARRAY_SIZE): New macro.
8765         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8766         * m4/nproc.m4: New file.
8767         * modules/nproc (Files): Add m4/nproc.m4.
8768         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8769         (Makefile.am): Instead, augment lib_SOURCES.
8770
8771 2009-10-18  Bruno Haible  <bruno@clisp.org>
8772
8773         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8774         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8775         sys/param.h.
8776
8777 2009-10-16  Eric Blake  <ebb9@byu.net>
8778
8779         utimensat: new module
8780         * modules/utimensat: New file.
8781         * lib/utimensat.c (utimensat): Likewise.
8782         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8783         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8784         so we can work around Linux bugs.
8785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8786         * modules/sys_stat (Makefile.am): Substitute them.
8787         * lib/sys_stat.in.h (utimensat): Declare it.
8788         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8789         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8790         * modules/utimensat-tests: New test.
8791         * tests/test-utimensat.c: Likewise.
8792
8793         utimens: let lutimens work on non-symlinks
8794         * lib/utimens.c (lutimens): Fall back to utimens rather than
8795         failing with ENOSYS, when file is not a symlink.
8796         (utimens): Reduce redirection.
8797         * tests/test-lutimens.h (test_lutimens): Update test to cover
8798         non-symlinks.
8799         * tests/test-utimens.h (test_utimens): Update test to cover
8800         symlinks.
8801         * tests/test-utimens.c (main): Update caller.
8802
8803         utimens: cache whether utimensat syscall works
8804         * lib/utimens.c (utimensat_works_really): New cache variable.
8805         (fdutimens, lutimens): Use it to avoid failing syscall.
8806
8807         test-stat-time, test-utimens: improve portability
8808         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8809         ext4 on alpha, and for cygwin.
8810         * tests/test-utimens-common.h: New file.
8811         (nap): Factor delays into single function.
8812         * tests/test-lutimens.h (test_lutimens): Use new header.
8813         * tests/test-futimens.h (test_futimens): Likewise.
8814         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8815         timestamps to occur from same machine, as was done previously for
8816         test_utimens.
8817         * modules/utimens-tests (Files): Ship new file.
8818         * modules/futimens-tests (Files): Likewise.
8819         Reported in part by Jim Meyering.
8820
8821         sys_stat: sort replacement declarations
8822         * lib/sys_stat.in.h: Sort declarations.
8823         * lib/futimens.c (futimens): Fix typo.
8824
8825 2009-10-15  Jim Meyering  <meyering@redhat.com>
8826
8827         don't let environment settings perturb build
8828         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8829         could cause a configure-time and/or build-time malfunction.
8830         Typically, a configure-time function-in-library test is performed
8831         via code like this:
8832
8833           LIB_VAR=
8834           AC_SUBST([LIB_VAR])
8835           prefix_saved_LIBS=$LIBS
8836             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8837                        [test "$ac_cv_search_FUNC" = "none required" ||
8838                         LIB_VAR=$ac_cv_search_FUNC])
8839           LIBS=$prefix_saved_LIBS
8840
8841         However, in each of the files affected by this change, the LIB_VAR=
8842         initialization was omitted.  Thus, when set in the environment, its
8843         value would propagate into generated Makefiles when FUNC is not found
8844         in LIB_NAME.
8845         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8846         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8848
8849 2009-10-14  Eric Blake  <ebb9@byu.net>
8850
8851         fchdir: avoid infinite recursion in mingw
8852         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8853         recursing.
8854
8855         test-stat-time: port to mingw
8856         * tests/test-stat-time.c (force_unlink): Return a value.
8857         (test_ctime) [W32]: Fix compilation error.
8858         (nap): Don't call usleep with too large an argument.  Use
8859         force_unlink.
8860         * doc/pastposix-functions/usleep.texi (usleep): Document the
8861         portability issue.
8862
8863 2009-10-13  Jim Meyering  <meyering@redhat.com>
8864
8865         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8866         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8867         * modules/pipe-filter-ii: Likewise.
8868         * modules/sys_socket-tests: Likewise.
8869         * modules/tsearch-tests: Likewise.
8870         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8871         (check): Depend on it.
8872
8873 2009-10-12  Eric Blake  <ebb9@byu.net>
8874
8875         utimens-tests: port to NFS file systems
8876         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8877         comparisons to avoid spurious failures from timestamp drift
8878         between NFS machines.
8879
8880 2009-10-12  Eric Blake  <ebb9@byu.net>
8881
8882         stat-time-tests: minor cleanups
8883         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8884         * tests/test-stat-time.c (nap): Separate assignment from call.
8885         Suggested by Paolo Bonzini and Bruno Haible.
8886
8887         sys_stat: guarantee struct timespec
8888         * lib/sys_stat.in.h (includes): Always include <time.h>
8889         * modules/sys_stat (Depends-on): Add time.
8890         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8891         mode_t permission values.
8892         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8893         get at subsecond timestamps.
8894
8895 2009-10-10  Eric Blake  <ebb9@byu.net>
8896
8897         futimens: new module
8898         * modules/futimens: New file.
8899         * lib/futimens.c (futimens): Likewise.
8900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8901         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8902         we can work around Linux bugs.
8903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8904         * modules/sys_stat (Makefile.am): Substitute them.
8905         * lib/sys_stat.in.h (futimens): Declare it.
8906         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8907         * doc/posix-functions/futimens.texi (futimens): Likewise.
8908         * modules/futimens-tests: New test.
8909         * tests/test-futimens.c: Likewise.
8910
8911         utimens: introduce fdutimens
8912         * lib/utimens.h (fdutimens): New prototype.
8913         * lib/utimens.c (gl_futimens): Move guts...
8914         (fdutimens): ...to new interface.
8915         * tests/test-utimens.c (do_fdutimens): Use it.
8916
8917         utimens: add UTIME_NOW and UTIME_OMIT support
8918         * lib/utimens.c (validate_timespec, update_timespec): New helper
8919         functions.
8920         (gl_futimens, lutimens): Use them.
8921         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8922         stdbool, sys_stat.
8923         (Link): Mention resulting library dependency.
8924         * modules/utimecmp (Link): Likewise.
8925         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8926         (Makefile.am): Pick up library dependency.
8927         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8928         definition.
8929         * tests/test-sys_stat.c: Test the definitions.
8930         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8931         * NEWS: Document library dependency.
8932
8933         utimecmp: support symlink timestamps
8934         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8935         hashing when possible.  Use pathconf when available.
8936         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8937         * modules/utimecmp (Depends-on): Add lstat.
8938
8939         utimens: add lutimens interface
8940         * lib/utimens.c (lutimens): New function.
8941         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8942         * lib/utimens.h (lutimens): Declare new interface.
8943         * tests/test-utimens.c (main): Enhance test.
8944         * tests/test-lutimens.h (test_lutimens): New file.
8945         * modules/utimens-tests (Files): Distribute it.
8946         (Depends-on): Add symlink.
8947         (configure.ac): Check for usleep.
8948
8949         utimens: validate futimens usage
8950         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8951         fewer syscalls on failure later on.  Avoid compiler warning on
8952         mingw.
8953         * modules/utimens (Depends-on): Add dup2.
8954
8955         utimens: add test
8956         * modules/utimens-tests: New test.
8957         * tests/test-utimens.h: New file.
8958         * tests/test-futimens.h: Likewise.
8959         * tests/test-utimens.c: Likewise.
8960
8961         doc: mention timestamp portability issues
8962         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8963         instead.
8964         * doc/posix-functions/utime.texi (utime): Likewise.
8965         * doc/posix-functions/utimes.texi (utimes): Likewise.
8966         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8967         instead.
8968         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8969         module.
8970         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8971         Mention weakness with symlink timestamps.
8972         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8973         to utimensat/futimens instead.
8974         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8975
8976         test-dup2: enhance test
8977         * tests/test-dup2.c (main): Also check AT_FDCWD.
8978
8979         test-stat-time: avoid more spurious failures
8980         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8981         xfs; and avoid race if the two timestamps cross quantization edge.
8982
8983         relocatable: prefer 'file system' over 'filesystem'
8984         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8985         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8986         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8987         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8988         * lib/relocatable.c (compute_curr_prefix): Likewise.
8989
8990 2009-10-10  Jim Meyering  <meyering@redhat.com>
8991
8992         stat-time-tests: check for the usleep function
8993         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8994
8995 2009-10-10  Bruno Haible  <bruno@clisp.org>
8996
8997         * modules/xnanosleep: Put the Link section after the Include section.
8998
8999 2009-10-09  Eric Blake  <ebb9@byu.net>
9000
9001         dup2: work around FreeBSD 6.1 bug
9002         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9003         * doc/posix-functions/dup2.texi (dup2): Document it.
9004         Reported by Nelson H. F. Beebe and Jim Meyering.
9005
9006         test-stat-time: port to buggy NFS clients
9007         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9008         (test_ctime): Also skip test if mtime and ctime are skewed.
9009
9010         maint: prefer 'file system' over 'filesystem'
9011         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9012         * doc/posix-functions/lstat.texi (lstat): Likewise.
9013         * lib/file-has-acl.c (file_has_acl): Likewise.
9014         * lib/fwriteerror.c [TEST]: Likewise.
9015         * tests/test-areadlink.h (test_areadlink): Likewise.
9016         * tests/test-areadlinkat-with-size.c (main): Likewise.
9017         * tests/test-areadlinkat.c (main): Likewise.
9018         * tests/test-canonicalize-lgpl.c (main): Likewise.
9019         * tests/test-canonicalize.c (main): Likewise.
9020         * tests/test-fstatat.c (main): Likewise.
9021         * tests/test-linkat.c (main): Likewise.
9022         * tests/test-lstat.h (test_lstat_func): Likewise.
9023         * tests/test-mkdir.h (test_mkdir): Likewise.
9024         * tests/test-readlink.h (test_readlink): Likewise.
9025         * tests/test-remove.c (main): Likewise.
9026         * tests/test-rename.h (test_rename): Likewise.
9027         * tests/test-renameat.c (main): Likewise.
9028         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9029         * tests/test-symlink.h (test_symlink): Likewise.
9030         * tests/test-symlinkat.c (main): Likewise.
9031         * tests/test-unlink.h (test_unlink_func): Likewise.
9032         * tests/test-unlinkat.c (main): Likewise.
9033
9034         maint: make realtime library usage explicit
9035         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9036         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9037         * modules/settime (Link): Likewise.
9038         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9039
9040         test-stat-time: speed up execution
9041         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9042         warning on mingw.
9043         (nap): New helper function.
9044         (prepare_test): Use it to reduce sleep time.
9045         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9046         execution.
9047         * modules/stat-time-tests (configure.ac): Check for usleep.
9048
9049 2009-10-09  Jim Meyering  <meyering@redhat.com>
9050
9051         selinux-h: always use getfilecon wrappers
9052         * lib/getfilecon.c: New file.
9053         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9054         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9055         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9056         (fgetfilecon): Provide a stub.
9057         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9058         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9059         file unconditionally.
9060         When <selinux/selinux.h> is found, arrange to use wrappers.
9061         * modules/selinux-h (Files): Add getfilecon.c.
9062         (Makefile.am): Substitute include-next-related bits
9063         into the now-always-generated selinux/selinux.h file.
9064         * doc/glibc-functions/lgetfilecon.texi: New file.
9065         * doc/glibc-functions/fgetfilecon.texi: New file.
9066         * doc/glibc-functions/getfilecon.texi: New file.
9067         * doc/glibc-functions/getfilecon-desc.texi: New file.
9068         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9069         which to pull in the new files.
9070         * MODULES.html.sh (Misc): Add selinux-h.
9071
9072 2009-10-08  Jim Meyering  <meyering@redhat.com>
9073
9074         unistd: fix comment typo
9075         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9076
9077 2009-10-08  Eric Blake  <ebb9@byu.net>
9078
9079         areadlink: use SIZE_MAX consistently
9080         * modules/areadlink (Depends-on): Add stdint.
9081         * modules/areadlink-with-size (Depends-on): Likewise.
9082         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9083         gives NULL; drop sys/types, since unistd gives size_t; and add
9084         stdint for SIZE_MAX.
9085         (SIZE_MAX): Rely on headers.
9086         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9087         and add stdint.
9088         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9089         (SIZE_MAX): Likewise.
9090         (INITIAL_BUF_SIZE): Turn into enum.
9091         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9092
9093 2009-10-08  Jim Meyering  <meyering@redhat.com>
9094
9095         areadlinkat: avoid compilation failure
9096         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9097         Fix typo in comment.
9098
9099 2009-10-07  Eric Blake  <ebb9@byu.net>
9100
9101         areadlinkat-with-size: new module
9102         * modules/areadlinkat-with-size: New module.
9103         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9104         * lib/areadlink.h (areadlinkat): Declare it.
9105         * MODULES.html.sh (File system functions): Mention it.
9106         * modules/areadlinkat-with-size-tests: New test.
9107         * tests/test-areadlinkat-with-size.c: New file.
9108
9109         xreadlinkat: new module
9110         * modules/xreadlinkat: New module.
9111         * lib/xreadlinkat.c (xreadlinkat): New file.
9112         * lib/xreadlink.h (xreadlinkat): Declare it.
9113         * MODULES.html.sh (File system functions): Mention it.
9114
9115         areadlinkat: new module
9116         * lib/at-func.c (FUNC_FAIL): New define.
9117         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9118         * modules/areadlinkat: New module.
9119         * lib/linkat.c (areadlinkat): Move...
9120         * lib/areadlinkat.c (areadlinkat): ...to new file.
9121         * lib/areadlink.h (areadlinkat): Declare it.
9122         * modules/linkat (Depends-on): Add areadlinkat.
9123         * MODULES.html.sh (File system functions): Mention it.
9124         * modules/areadlinkat-tests: New test.
9125         * tests/test-areadlinkat.c: New file.
9126
9127         areadlink, areadlink-with-size: add tests
9128         * modules/areadlink-tests: New test.
9129         * modules/areadlink-with-size-tests: Likewise.
9130         * tests/test-areadlink.h: New file.
9131         * tests/test-areadlink.c: Likewise.
9132         * tests/test-areadlink-with-size.c: Likewise.
9133
9134         maint: minor cleanups
9135         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9136         _UNUSED_PARAMETER_ instead.
9137         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9138         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9139         * modules/linkat-tests (Files): Distribute test-link.h.
9140
9141         openat, utimens: whitespace cleanup
9142         * lib/openat.c: Prefer space throughout, rather than mix of 8
9143         spaces vs. tabs.
9144         * lib/at-func.c: Likewise.
9145         * lib/utimens.c: Likewise.
9146
9147         openat: avoid using wrong fd
9148         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9149         working directory chooses same fd.
9150         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9151
9152         mkdir, mkdirat: fix cygwin 1.5.x bug
9153         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9155         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9156         bug.
9157         (gl_PREREQ_MKDIR): Delete unused macro.
9158         * modules/mkdir (Files): Track file rename.
9159         (configure.ac): Update macro name.
9160         * modules/openat (Depends-on): Add mkdir.
9161         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9162
9163         mkdir, mkdirat: add tests
9164         * modules/mkdir-tests: New test.
9165         * tests/test-mkdir.h: New file.
9166         * tests/test-mkdir.c: Likewise.
9167         * tests/test-mkdirat.c: Likewise.
9168         * modules/openat-tests (Files): Add new files.
9169         (Makefile.am): Run new test.
9170
9171 2009-10-06  Eric Blake  <ebb9@byu.net>
9172
9173         doc: tweak *at function documentation
9174         * doc/posix-functions/faccessat.texi (faccessat): Mention
9175         known issue with replacement.
9176         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9177         * doc/posix-functions/linkat.texi (linkat): Likewise.
9178         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9179         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9180         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9181         * doc/posix-functions/renameat.texi (renameat): Likewise.
9182         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9183
9184         openat: fix GNU/Hurd bug in unlinkat
9185         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9186         broken.
9187         * doc/posix-functions/unlink.texi (unlink): Document this.
9188         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9189
9190         fdopendir: fix GNU/Hurd bug
9191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9192         allowing non-directory fds.
9193         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9194         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9195         * modules/dirent (Makefile.am): Substitute it.
9196         * lib/dirent.in.h (fdopendir): Declare replacement.
9197         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9198         * tests/test-fdopendir.c (main): Test something other than
9199         /dev/null, since on Hurd that behaves like a directory.
9200
9201         test-symlink: port to GNU/Hurd
9202         * tests/test-symlink.h (test_symlink): Relax expected errno.
9203
9204         doc: tweak more cygwin information
9205         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9206         now compatible with glibc.
9207         * doc/posix-functions/getopt.texi (getopt): Likewise.
9208
9209         getopt-gnu: add another test
9210         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9211         guarantee behavior relied on by m4.
9212         * tests/test-getopt.c (main): Use it.
9213         * modules/getopt-posix-tests (Depends-on): Add setenv.
9214         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9215
9216         getopt: fix compilation on darwin
9217         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9218         include.
9219         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9220         Reported by Ludovic Courtès.
9221
9222 2009-10-06  Bruno Haible  <bruno@clisp.org>
9223
9224         * modules/size_max (Description): Discourage its use.
9225         Reported by Simon Josefsson.
9226
9227 2009-10-06  Jim Meyering  <meyering@redhat.com>
9228
9229         linkat: avoid compilation failure
9230         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9231
9232 2009-10-05  Eric Blake  <ebb9@byu.net>
9233
9234         linkat: support Linux 2.6.17
9235         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9236         linkat on Linux, but allow cache variable override.
9237         * lib/linkat.c (rpl_linkat): Define override.
9238         * modules/linkat (Depends-on): Add symlinkat.
9239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9240         * modules/unistd (Makefile.am): Substitute it.
9241         * lib/unistd.in.h (linkat): Declare replacement.
9242         Reported by Pádraig Brady.
9243
9244         quotearg: port test to systems with C.UTF-8 locale
9245         * tests/test-quotearg.c (struct result_strings): Add another
9246         member, differentiating between C.ASCII and C.UTF-8 handling.
9247         (compare_strings): Add parameter.
9248         (main): Adjust all callers.
9249
9250         getopt: avoid clash with FreeBSD _getopt_internal
9251         * lib/getopt.in.h (_getopt_internal): Override the name.
9252         * lib/getopt_int.h (includes): Pick up any overrides.
9253         Reported by Reuben Thomas.
9254
9255         hash: allow C89 compilation
9256         * lib/hash.c (check_tuning): Move declaration before statement.
9257         Reported by Reuben Thomas.
9258
9259 2009-10-05  Karl Berry  <karl@gnu.org>
9260
9261         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9262
9263 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9264             Bruno Haible  <bruno@clisp.org>
9265
9266         * lib/uname.c (uname): Use a table-driven algorithm to compute
9267         Windows NT versions.
9268
9269 2009-10-04  Bruno Haible  <bruno@clisp.org>
9270
9271         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9272         program_invocation_short_name.
9273         * modules/progname (configure.ac): Test for presence of
9274         program_invocation_short_name.
9275         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9276
9277 2009-10-04  Bruno Haible  <bruno@clisp.org>
9278
9279         * lib/progname.c (set_program_name): Fix comment.
9280         Reported by Jim Meyering.
9281
9282 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9283             Bruno Haible  <bruno@clisp.org>
9284
9285         * lib/uname.c: Include <string.h>.
9286         (uname): Do only one call to GetVersionEx in the common case.
9287
9288 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9289             Bruno Haible  <bruno@clisp.org>
9290
9291         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9292         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9293         (uname): Add support for Windows CE and various non-x86 CPU types.
9294
9295 2009-10-03  Bruno Haible  <bruno@clisp.org>
9296
9297         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9298         invocation to tests/configure.ac.
9299         Reported by Ian Beckwith <ianb@erislabs.net>.
9300
9301 2009-10-02  Eric Blake  <ebb9@byu.net>
9302
9303         fchdir: avoid compiler warning
9304         * lib/fchdir.c (canonicalize_file_name)
9305         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9306
9307         test-open: support mingw errno values
9308         * tests/test-open.h (test_open): Relax test.
9309         * tests/test-fopen.h (test_fopen): Likewise.
9310         * tests/test-openat-safer.c (main): Likewise.
9311
9312         open: fix opening directory on mingw
9313         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9314
9315         test-open: on GNU/Hurd, /dev/null is a directory
9316         * tests/test-fopen.h (main): Rename...
9317         (test_fopen): ...to this.  Use a guaranteed non-directory when
9318         confirming open behavior on trailing slash.
9319         * tests/test-openat-safer.c (main): Likewise.
9320         * tests/test-open.h (main): Likewise....
9321         (test_open): ...to this.
9322         * tests/test-fopen.c (main): Adjust caller.
9323         * tests/test-fopen-safer.c (main): Likewise.
9324         * tests/test-open.c (main): Likewise.
9325         * tests/test-fcntl-safer.c (main): Likewise.
9326         Reported by Samuel Thibault.
9327
9328         rename, fchdir: don't ignore chdir failure
9329         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9330         * lib/rename.c (rpl_rename) [W32]: Likewise.
9331         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9332         an empty destination directory if source cannot be renamed,
9333         although there is still possibility for failure.
9334         * doc/posix-functions/rename.texi (rename): Document the race.
9335         Reported by Jim Meyering.
9336
9337         maint: cleanup whitespace in recent commits
9338         * lib/rename.c (rpl_rename): Remove tabs.
9339         * tests/test-link.h (test_link): Likewise.
9340         * lib/fchdir.c (get_name): Likewise.
9341         Reported by Jim Meyering.
9342
9343 2009-10-02  Ben Pfaff  <blp@gnu.org>
9344
9345         relocatable-prog-wrapper: Add missing dependency on
9346         double-slash-root.
9347         * modules/relocatable-prog-wrapper: Add dependency.
9348         Reported by Ian Beckwith <ianb@erislabs.net>.
9349
9350 2009-10-02  Eric Blake  <ebb9@byu.net>
9351
9352         renameat: fix Solaris bugs
9353         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9354         needed fixing.
9355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9356         * modules/stdio (Makefile.am): Substitute it.
9357         * lib/stdio.in.h (renameat): Declare replacement.
9358         * lib/renameat.c (rpl_renameat): Implement fix.
9359
9360         renameat: new module
9361         * modules/renameat: New file.
9362         * lib/renameat.c (renameat): Likewise.
9363         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9365         * modules/stdio (Makefile.am): Substitute them.
9366         * lib/stdio.in.h (renameat): Declare it.
9367         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9368         * doc/posix-functions/renameat.texi (renameat): Likewise.
9369         * modules/renameat-tests: New test.
9370         * tests/test-renameat.c: Likewise.
9371
9372         rename: fix mingw bugs
9373         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9374         directory overwrite bugs.
9375
9376         rename: fix another cygwin 1.5 bug
9377         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9378         checks.
9379         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9380         unnecessary cygwin workarounds.  Also work around bug with moving
9381         full directory onto an empty one.
9382         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9383
9384         rename-dest-slash: merge into rename module
9385         * modules/rename-dest-slash (Status): Mark obsolete.
9386         (Depends-on): Add rename.
9387         (Files): Let rename do it all.
9388         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9389         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9390         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9391         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9392         * lib/rename.c (rpl_rename): Update comments.
9393
9394         rename: fix cygwin 1.5.x bugs
9395         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9396         * lib/rename.c (rpl_rename): Work around them.
9397         * modules/rename (Depends-on): Add same-inode.
9398
9399         rename: fix Solaris 10 bug
9400         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9401         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9402         was the only bug.
9403
9404         rename: fix Solaris 9 bug
9405         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9406         on non-directory.  Avoid calling exit.
9407         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9408         strdup.
9409         * modules/rename-tests (Depends-on): Drop lstat.
9410         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9411         (gl_PREREQ_RENAME): Delete unused macro.
9412
9413         rename-dest-slash: fix NetBSD bug
9414         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9415         links.
9416         * modules/rename-dest-slash (Depends-on): Add same-inode.
9417
9418         rename-tests: new test, exposes several platform bugs
9419         * modules/rename-tests: New file.
9420         * tests/test-rename.h: Likewise.
9421         * tests/test-rename.c: Likewise.
9422         * doc/posix-functions/rename.texi (rename): Improve documentation,
9423         including bugs that will eventually be fixed in gnulib.
9424
9425 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9426
9427         * lib/uname.c: Include <stdlib.h>
9428         (uname): Assume version info is available.
9429
9430 2009-10-02  Jim Meyering  <meyering@redhat.com>
9431
9432         gnu-web-doc-update: correct --help output
9433         * build-aux/gnu-web-doc-update: Make --help output relevant.
9434
9435         gnu-web-doc-update: add standard options
9436         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9437
9438         gnu-web-doc-update: New module.
9439         Use this script to automatically update the on-line web documentation
9440         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9441         * modules/gnu-web-doc-update: New file, from coreutils.
9442         * build-aux/gnu-web-doc-update: New script.
9443
9444 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9445
9446         link: LoadLibrary is not needed.
9447         * lib/link.c: Use GetModuleHandle.
9448
9449 2009-10-01  Eric Blake  <ebb9@byu.net>
9450
9451         getopt: bump serial number
9452         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9453         change.
9454
9455         tests: tighten link, rmdir, and remove tests
9456         * tests/test-link.h (includes): No need to use <config.h> here.
9457         Clean up if directory hard link was created, otherwise test for
9458         trailing '.'.
9459         * tests/test-linkat.c (main): Simplify.
9460         * tests/test-remove.c (main): Enhance test for trailing '.'.
9461         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9462
9463 2009-10-01  Jim Meyering  <meyering@redhat.com>
9464
9465         maint.mk: requiring "make major" was annoying, for a "minor" release.
9466         What is intended is "stable", to contrast with alpha and beta,
9467         so require "make stable", not "make major".
9468         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9469         (get_tool_versions): Likewise.
9470         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9471
9472 2009-09-30  Ben Pfaff  <blp@gnu.org>
9473
9474         Fix broken build of replacement for Windows tmpfile().
9475         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9476         flags argument added along with the 'mkostemp' module.
9477
9478 2009-09-28  Bruno Haible  <bruno@clisp.org>
9479
9480         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9481         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9482         to 'remove_elt'.
9483         (gl_list_remove): Update.
9484         * lib/gl_list.c (gl_list_remove): Update.
9485         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9486         to 'remove_elt'.
9487         (gl_oset_remove): Update.
9488         * lib/gl_list.c (gl_oset_remove): Update.
9489         Reported by Eric Blake.
9490
9491 2009-09-28  Eric Blake  <ebb9@byu.net>
9492
9493         doc: mention yet more cygwin 1.7 status
9494         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9495         cygwin.
9496         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9497         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9498
9499         argp: fix test failure
9500         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9501         that are not upper-case.  Pass correct range to tolower.
9502
9503 2009-09-27  Jim Meyering  <meyering@redhat.com>
9504
9505         test-yesno: work around sparc-dash here-document infelicity
9506         Without this change, the literal \177 byte in a here document
9507         would make dash 0.5.5.1-3 access uninitialized memory.
9508         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9509         Instead, use a marker, "@", and filter through tr to create the desired
9510         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9511
9512 2009-09-27  Bruno Haible  <bruno@clisp.org>
9513
9514         Disable untested support for new flavours of ACLs on AIX.
9515         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9516         progress.
9517         * lib/set-mode-acl.c (qset_acl): Likewise.
9518
9519 2008-12-07  Bruno Haible  <bruno@clisp.org>
9520
9521         Add support for new flavours of ACLs on AIX. (Untested.)
9522         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9523         (file_has_acl): Add support for newer AIX.
9524         * lib/set-mode-acl.c (qset_acl): Likewise.
9525         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9526         Rainer Tammer <tammer@tammer.net>.
9527
9528 2009-09-26  Eric Blake  <ebb9@byu.net>
9529
9530         argp: fix compilation of getopt
9531         * lib/getopt.in.h (includes): Use different guard than glibc.
9532         Reported by Sergey Poznyakoff.
9533
9534         doc: mention more cygwin 1.7 status
9535         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9536         bug.
9537         * doc/posix-functions/execl.texi (execl): Likewise.
9538         * doc/posix-functions/execle.texi (execle): Likewise.
9539         * doc/posix-functions/execlp.texi (execlp): Likewise.
9540         * doc/posix-functions/execv.texi (execv): Likewise.
9541         * doc/posix-functions/execve.texi (execve): Likewise.
9542         * doc/posix-functions/execvp.texi (execvp): Likewise.
9543         * doc/glibc-functions/canonicalize_file_name.texi
9544         (canonicalize_file_name): Cygwin 1.7 now provides this.
9545         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9546         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9547         on AT_SYMLINK_NOFOLLOW.
9548
9549 2009-09-24  Eric Blake  <ebb9@byu.net>
9550
9551         test-linkat: make test more robust
9552         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9553
9554         getopt: fix inclusion guards for cygwin
9555         * modules/getopt-posix (Depends-on): Add include-next.
9556         (Makefile.am): Substitute more items in replacement header.
9557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9558         <getopt.h>.
9559         * lib/getopt.in.h (includes): Use split inclusion guard, and
9560         prefer <getopt.h> over include <unistd.h> when one is present.
9561         (option): Also override name of 'struct option'.
9562
9563         same-inode: revert prior change; it is not yet ready
9564         * NEWS: Undo mention of this change.
9565         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9566         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9567         * lib/cycle-check.c (cycle_check): Likewise.
9568         * lib/same.c (same_name): Likewise.
9569         * lib/at-func2.c (at_func2): Likewise.
9570
9571 2009-09-23  Eric Blake  <ebb9@byu.net>
9572
9573         linkat: new module
9574         * modules/linkat: New file.
9575         * lib/at-func2.c (at_func2): Likewise.
9576         * lib/linkat.c (linkat): Likewise.
9577         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9578         * lib/openat-priv.h (at_func2): Add declaration.
9579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9580         * modules/unistd (Makefile.am): Substitute them.
9581         * lib/unistd.in.h (linkat): Declare it.
9582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9583         * doc/posix-functions/linkat.texi (linkat): Likewise.
9584         * doc/posix-functions/link.texi (link): Tweak wording.
9585         * tests/test-link.c (main): Move guts...
9586         * tests/test-link.h (test_link): ...into new file.
9587         * modules/linkat-tests: New test.
9588         * tests/test-linkat.c: Likewise.
9589         * modules/link-tests (Files): Ship new file.
9590         (Depends-on): Add stdbool.
9591
9592         dirname: add library-safe mdir_name
9593         * lib/dirname.h (mdir_name): New prototype.
9594         * lib/dirname.c (dir_name): Move guts...
9595         (mdir_name): ...to new function that avoids xalloc_die.
9596
9597         fchdir: another mingw fix
9598         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9599         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9600         on mingw (where it has not yet been ported), and make it optional
9601         elsewhere.
9602         (_gl_register_fd): Use it.
9603
9604         same-inode: make SAME_INODE tri-state, to port to mingw
9605         * NEWS: Mention this change.
9606         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9607         st_ino always being 0.
9608         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9609         * lib/cycle-check.c (cycle_check): Likewise.
9610         * lib/same.c (same_name): Likewise.
9611
9612         lstat: avoid mingw compilation error
9613         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9614         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9615         lstat ourselves.
9616         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9617         was adequate.
9618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9619         the checks for lstat.
9620         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9621
9622         link: fix test failure on Solaris 9
9623         * lib/link.c (rpl_link): Don't assume link will catch bogus
9624         trailing slash on source.
9625
9626         test-symlinkat: enhance test
9627         * tests/test-readlink.c (main): Move guts...
9628         * tests/test-readlink.h (test_readlink): ...into new file.
9629         * tests/test-symlink.c (main): Move guts...
9630         * tests/test-symlink.h (test_symlink): ...into new file.
9631         * tests/test-symlinkat.c (main): Use new files for further
9632         coverage.
9633         (do_symlink, do_readlink): New helper functions.
9634         * modules/symlink-tests (Files): Ship new file.
9635         (Depends-on): Add stdbool.
9636         * modules/readlink-tests (Files): Ship new file.
9637         (Depends-on): Add stdbool.
9638         * modules/symlinkat-tests (Files): Use new files.
9639
9640 2009-09-23  Eric Blake  <ebb9@byu.net>
9641
9642         readlink: document portability issue with symlink length
9643         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9644         systems have bogus st_size on symlinks, and mention the
9645         areadlink-with-size module.
9646         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9647         * doc/posix-functions/readlink.texi (readlink): Mention the
9648         areadlink module, and ERANGE failure.
9649         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9650         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9651
9652         readlink: fix Solaris 9 bug with trailing slash
9653         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9654         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9655         * doc/posix-functions/readlink.texi (readlink): Document this.
9656         * modules/readlink-tests: New test.
9657         * tests/test-readlink.c: Likewise.
9658
9659         readlink: fix cygwin 1.5.x bug with return type
9660         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9661         * lib/unistd.in.h (readlink): Use ssize_t.
9662         * lib/readlink.c (readlink): Likewise.
9663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9664         * modules/unistd (Makefile.am): Substitute it.
9665         * lib/unistd.in.h (readlink): Declare replacement.
9666         * doc/posix-functions/readlink.texi (readlink): Document this.
9667
9668         symlink: use throughout gnulib
9669         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9670         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9671         symlink is not used.
9672         * modules/symlinkat (Depends-on): Add symlink.
9673         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9674         * modules/canonicalize-tests (Depends-on): Likewise.
9675         * modules/lstat-tests (Depends-on): Likewise.
9676         * modules/openat-tests (Depends-on): Likewise.
9677         * modules/remove-tests (Depends-on): Likewise.
9678         * modules/rmdir-tests (Depends-on): Likewise.
9679         * modules/unlink-tests (Depends-on): Likewise.
9680         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9681         * tests/test-canonicalize.c (symlink): Likewise.
9682         * tests/test-fstatat.c (symlink): Likewise.
9683         * tests/test-lstat.c (symlink): Likewise.
9684         * tests/test-remove.c (symlink): Likewise.
9685         * tests/test-rmdir.c (symlink): Likewise.
9686         * tests/test-unlink.c (symlink): Likewise.
9687         * tests/test-unlinkat.c (symlink): Likewise.
9688
9689         symlink: new module, for Solaris 9 bug
9690         * modules/symlink: New file.
9691         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9692         * lib/symlink.c: Likewise.
9693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9694         * modules/unistd (Makefile.am): Substitute them.
9695         * lib/unistd.in.h (symlink): Declare replacement.
9696         * MODULES.html.sh (File system functions): Mention it.
9697         * doc/posix-functions/symlink.texi (symlink): Likewise.
9698         * modules/symlink-tests: New test.
9699         * tests/test-symlink.c: Likewise.
9700
9701 2009-09-23  Bruno Haible  <bruno@clisp.org>
9702
9703         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9704         when needed.
9705         Test case: gnulib-tool --import --with-tests atexit inttypes.
9706         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9707
9708 2009-09-23  Bruno Haible  <bruno@clisp.org>
9709
9710         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9711         subcommand, not in a subshell.
9712
9713 2009-09-22  Eric Blake  <ebb9@byu.net>
9714
9715         unistd: sort replacement declarations
9716         * lib/unistd.in.h: Sort declarations.
9717
9718         open, openat: minor optimization
9719         * lib/open.c (open): If open succeeded, len is non-zero.
9720         * lib/openat.c (rpl_openat): Likewise.
9721
9722         link-follow: ensure correct result
9723         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9724         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9725         distinguish between possible failures.
9726
9727 2009-09-21  Eric Blake  <ebb9@byu.net>
9728
9729         fts: avoid compiler warning
9730         * lib/fts.c (dirent_inode_sort_may_be_useful)
9731         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9732
9733 2009-09-19  Bruno Haible  <bruno@clisp.org>
9734
9735         * lib/progreloc.c (canonicalize_file_name): New declaration.
9736
9737 2009-09-19  Eric Blake  <ebb9@byu.net>
9738
9739         link: fix quoting
9740         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9741
9742         openat: fix openat bugs on Solaris 9
9743         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9744         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9745         * modules/openat (Depends-on): Add open.
9746         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9747         * modules/fcntl-h (Makefile.am): Substitute it.
9748         * lib/fcntl.in.h (openat): Declare replacement.
9749         * doc/posix-functions/openat.texi (openat): Document this.
9750
9751         openat: move fstatat and unlinkat into correct files
9752         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9753         compiled.
9754         * lib/openat.c (fstatat, unlinkat): Move...
9755         * lib/fstatat.c (fstatat): ...into correct files.
9756         * lib/unlinkat.c (unlinkat): Likewise.
9757
9758         openat: fix unlinkat bugs on Solaris 9
9759         * lib/unlinkat.c (unlinkat): New file.
9760         * modules/openat (Depends-on): Add unlink.
9761         (Files): Distribute it.
9762         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9763         trailing slash behavior is broken.
9764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9765         * modules/unistd (Makefile.am): Substitute it.
9766         * lib/unistd.in.h (unlinkat): Declare replacement.
9767         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9768
9769         openat: fix fstatat bugs on Solaris 9
9770         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9771         stat.
9772         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9773
9774         test-unlinkat: enhance test, to expose Solaris 9 bug
9775         * tests/test-unlink.c (main): Factor guts...
9776         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9777         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9778         * tests/test-rmdir.c (main): Adjust caller.
9779         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9780         (unlinker): New helper function.
9781         (rmdirat): Enhance check.
9782         * modules/rmdir-tests (Depends-on): Add stdbool.
9783         * modules/unlink-tests (Depends-on): Likewise.
9784         (Files): Add test-unlink.h.
9785         * modules/openat-tests (Files): Likewise.
9786         (Depends-on): Add unlinkdir.
9787
9788         test-fstatat: new test, to expose Solaris 9 bugs
9789         * tests/test-stat.c (main): Factor guts...
9790         * tests/test-stat.h (test_stat_func): ...into new file.
9791         * tests/test-lstat.c (main): Factor guts...
9792         * tests/test-lstat.h (test_lstat_func): ...into new file.
9793         * tests/test-fstatat.c: New file.
9794         * modules/stat-tests (Files): Add test-stat.h.
9795         * modules/lstat-tests (Files): Add test-lstat.h.
9796         (Depends-on): Add stdbool.
9797         * modules/openat-tests (Depends-on): Add pathmax.
9798         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9799         (Makefile.am): Run new test.
9800
9801         remove: new module, for mingw and Solaris 9 bugs
9802         * modules/remove: New file.
9803         * lib/remove.c: Likewise.
9804         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9806         * modules/stdio (Makefile.am): Use them.
9807         * lib/stdio.in.h (remove): Declare replacement.
9808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9809         * doc/posix-functions/remove.texi (remove): Likewise.
9810         * modules/remove-tests: New test.
9811         * tests/test-remove.c: Likewise.
9812
9813         unlink: new module, for Solaris 9 bug
9814         * modules/unlink: New file.
9815         * lib/unlink.c: Likewise.
9816         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9818         * modules/unistd (Makefile.am): Use them.
9819         * lib/unistd.in.h (stat): Declare replacement.
9820         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9821         * doc/posix-functions/unlink.texi (unlink): Likewise.
9822         * modules/unlink-tests: New test.
9823         * tests/test-unlink.c: Likewise.
9824
9825         lstat: fix Solaris 9 bug
9826         * lib/lstat.c (lstat): Also check for trailing slash on
9827         non-symlink, non-directories.  Use stat module to simplify logic.
9828         * doc/posix-functions/lstat.texi (lstat): Document it.
9829         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9830         (configure.ac): Check for symlink.
9831         * tests/test-lstat.c (main): Add more tests.
9832
9833         stat: add as dependency to other modules
9834         * modules/chown (Depends-on): Add stat.
9835         * modules/euidaccess (Depends-on): Likewise.
9836         * modules/fchdir (Depends-on): Likewise.
9837         * modules/isdir (Depends-on): Likewise.
9838         * modules/link (Depends-on): Likewise.
9839         * modules/lstat (Depends-on): Likewise.
9840         * modules/mkdir-p (Depends-on): Likewise.
9841         * modules/modechange (Depends-on): Likewise.
9842         * modules/open (Depends-on): Likewise.
9843         * modules/readlink (Depends-on): Likewise.
9844         * modules/same (Depends-on): Likewise.
9845
9846         stat: fix Solaris 9 bug
9847         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9848         slash.
9849         * lib/stat.c (rpl_stat): Work around it.
9850         * doc/posix-functions/stat.texi (stat): Update documentation.
9851
9852         stat: new module, for mingw bug
9853         * modules/stat: New file.
9854         * lib/stat.c: Likewise.
9855         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9856         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9857         * modules/sys_stat (Makefile.am): Use them.
9858         * lib/sys_stat.in.h (stat): Declare replacement.
9859         * lib/openat.c (fstatat): Deal with lstat and stat being function
9860         macros.
9861         * modules/openat (Depends-on): Add inline.
9862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9863         * doc/posix-functions/stat.texi (stat): Likewise.
9864         * modules/stat-tests: New test.
9865         * tests/test-stat.c: Likewise.
9866
9867 2009-09-19  Jim Meyering  <meyering@redhat.com>
9868
9869         syntax-check: detect unnecessary inclusion of canonicalize.h
9870         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9871
9872 2009-09-19  Eric Blake  <ebb9@byu.net>
9873
9874         canonicalize-lgpl: adjust clients to use correct header
9875         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9876         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9877         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9878         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9879         * lib/progreloc.c (includes): Likewise.
9880
9881 2009-09-19  Jim Meyering  <meyering@redhat.com>
9882
9883         test-posixtm.c: correct a comment
9884         * tests/test-posixtm.c: Correct first-line comment.
9885         Spotted by Eric Blake.
9886
9887 2009-09-16  Jim Meyering  <meyering@redhat.com>
9888
9889         posixtm-tests: make T const-correct; add a test case
9890         * tests/test-posixtm.c (T): Declare const.
9891         Add a test for -(2^31+1).
9892         Remove useless can-succeed-only-in-2002 test.
9893
9894         posixtm-tests: adjust the sole failing test
9895         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9896         expected output matches what mktime now produces.  Cross-checked via
9897         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9898
9899         posixtm: move #ifdef'd tests into a new module
9900         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9901         * tests/test-posixtm.c: ... this new file.
9902         * modules/posixtm-tests: New module.
9903
9904 2009-09-19  Eric Blake  <ebb9@byu.net>
9905
9906         openat: simplify use of at-func.c
9907         * lib/at-func.c (includes): Include prerequisites here, to
9908         simplify requirements on client files.
9909         * lib/openat-priv.h: Add double-inclusion guard.
9910         * lib/faccessat.c (includes): Simplify.
9911         * lib/fchmodat.c (includes): Likewise.
9912         * lib/fchownat.c (includes): Likewise.
9913         * lib/mkdirat.c (includes): Likewise.
9914         * lib/mkfifoat.c (includes): Likewise.
9915         * lib/symlinkat.c (includes): Likewise.
9916
9917         openat: allow return of fd 0
9918         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9919         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9920         unistd-safer.
9921         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9922         <fcntl.h>; this module does not leak fds.
9923         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9924         must be allowed to return 0, leaving openat_safer to add the
9925         safety.
9926         (openat_permissive): Avoid writing to just-opened fd 2 if
9927         restoring the current directory fails.
9928         * lib/openat-die.c (openat_restore_fail): Add comment.
9929         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9930         (save_cwd): Guarantee safe fd, but without use of open_safer.
9931         * tests/test-openat.c: New test.
9932         * modules/openat-tests (Files, Makefile.am): Distribute and build
9933         new file.
9934
9935         relocatable-prog-wrapper: fix build
9936         * modules/relocatable-prog-wrapper (Files): Update name of
9937         canonicalize m4 file, broken on 2009-09-17.
9938         Reported by emad hajjar <aleppos@hotmail.com>.
9939
9940 2009-09-19  Bruno Haible  <bruno@clisp.org>
9941
9942         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9943         * lib/safe-alloc.c: Likewise.
9944         Reported by Ian Beckwith <ianb@erislabs.net>.
9945
9946 2009-09-18  Bruno Haible  <bruno@clisp.org>
9947
9948         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9949         Reported by <erobles@sensacd.com.mx>.
9950
9951 2009-09-17  Eric Blake  <ebb9@byu.net>
9952
9953         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9954         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9955         slashes when checking if last component is missing.
9956         * tests/test-canonicalize.c (main): Test this.
9957
9958         canonicalize, canonicalize-lgpl: honor // if distinct from /
9959         * modules/canonicalize (Files): Add double-slash-root.m4.
9960         * modules/canonicalize-lgpl (Files): Likewise.
9961         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9962         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9963         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9964         fallback definition.
9965         (canonicalize_filename_mode): Use it to protect //.
9966         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9967         (__realpath): Likewise.
9968         * tests/test-canonicalize.c (main): Test this.
9969         * tests/test-canonicalize-lgpl.c (main): Likewise.
9970         * modules/canonicalize-tests (Depends-on): Add same-inode.
9971         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9972
9973         canonicalize-lgpl: fix glibc bug with trailing slash
9974         * m4/canonicalize-lgpl.m4: Move contents...
9975         * m4/canonicalize.m4: ...here.
9976         (gl_CANONICALIZE_LGPL): Factor realpath check...
9977         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9978         glibc 2.3.5 bug, fixed 2005-04-27.
9979         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9980         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9981         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9982         * modules/canonicalize-lgpl (Files): Manage file rename.
9983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9984         * modules/stdlib (Makefile.am): Substitute witness.
9985         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9986         is needed.
9987         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9988         replacement is required.
9989         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9990         * doc/glibc-functions/canonicalize_file_name.texi
9991         (canonicalize_file_name): Document this.
9992         * doc/posix-functions/realpath.texi (realpath): Likewise.
9993
9994         canonicalize-lgpl: reject non-directory with trailing slash
9995         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9996         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9997         catches failures in glibc 2.3.5.
9998         * tests/test-canonicalize.c (main): Likewise.
9999
10000         canonicalize-lgpl: use native realpath if it works
10001         * lib/canonicalize-lgpl.c (realpath): Guard with
10002         FUNC_REALPATH_WORKS.
10003         * lib/stdlib.in.h (realpath): Make declaration optional based on
10004         HAVE_REALPATH.
10005         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10006         native realpath works.
10007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10008         * modules/stdlib (Makefile.am): Substitute witness.
10009
10010         canonicalize, canonicalize-lgpl: use <stdlib.h>
10011         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10012         (Include): Mention <stdlib.h>.
10013         (configure.ac): Mention functions we provide.
10014         * modules/canonicalize (configure.ac): Likewise.
10015         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10016         realpath if canonicalize_file_name is missing.
10017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10018         * modules/stdlib (Makefile.am): Substitute witnesses.
10019         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10020         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10021         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10022         * NEWS: Document this.
10023         * doc/glibc-functions/canonicalize_file_name.texi
10024         (canonicalize_file_name): Likewise.
10025         * doc/posix-functions/realpath.texi (realpath): Likewise.
10026         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10027
10028         test-canonicalize: consolidate into single C program
10029         * tests/test-canonicalize.sh: Delete; move setup into...
10030         * tests/test-canonicalize.c (main): ...the program, making it
10031         easier to run in debugger.  Add some tests.
10032         * modules/canonicalize-tests (Files): Remove unused file.
10033         (Depends-on): Add progname.
10034         (configure.ac, Makefile.am): Simplify.
10035
10036         test-canonicalize-lgpl: consolidate into single C program
10037         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10038         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10039         easier to run in debugger.  Add some tests.
10040         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10041         (configure.ac, Makefile.am): Simplify.
10042
10043         canonicalize: avoid resolvepath
10044         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10045         unnecessary checks.
10046         * lib/canonicalize.c (includes): Simplify.
10047         (canonicalize_file_name): Drop resolvepath implementation.
10048         * modules/canonicalize (Depends-on): Drop filenamecat.
10049
10050         canonicalize: don't lose errno
10051         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10052         over calls to free.
10053
10054         canonicalize: simplify errno handling
10055         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10056         assignment.
10057
10058         canonicalize, canonicalize-lgpl: update module dependencies
10059         * modules/canonicalize (Depends-on): Add extensions, lstat,
10060         pathmax, stdlib.
10061         (Files): Drop pathmax.h.
10062         (configure.ac): Adjust macro name.
10063         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10064         lstat, stdlib, sys_stat.
10065         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10066         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10067         extensions.
10068         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10069         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10070         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10071         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10072         declaration, if available.
10073         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10074         we can rely on the readlink module.
10075         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10076         (includes): Use <unistd.h> unconditionally.
10077
10078 2009-09-17  Eric Blake  <ebb9@byu.net>
10079
10080         maint: make Include sections of modules consistent
10081         * modules/alloca: Use only header name; no need to list #include.
10082         * modules/alloca-opt: Likewise.
10083         * modules/arpa_inet: Likewise.
10084         * modules/canon-host: Likewise.
10085         * modules/configmake: Likewise.
10086         * modules/dirent: Likewise.
10087         * modules/eealloc: Likewise.
10088         * modules/environ: Likewise.
10089         * modules/fchdir: Likewise.
10090         * modules/fcntl: Likewise.
10091         * modules/fcntl-h: Likewise.
10092         * modules/gethrxtime: Likewise.
10093         * modules/gettime: Likewise.
10094         * modules/ignore-value: Likewise.
10095         * modules/inet_ntop: Likewise.
10096         * modules/inet_pton: Likewise.
10097         * modules/inttypes: Likewise.
10098         * modules/isnand-nolibm: Likewise.
10099         * modules/isnanf-nolibm: Likewise.
10100         * modules/mbchar: Likewise.
10101         * modules/mbfile: Likewise.
10102         * modules/mbiter: Likewise.
10103         * modules/mbuiter: Likewise.
10104         * modules/netdb: Likewise.
10105         * modules/netinet_in: Likewise.
10106         * modules/nproc: Likewise.
10107         * modules/pagealign_alloc: Likewise.
10108         * modules/poll: Likewise.
10109         * modules/printf-frexp: Likewise.
10110         * modules/pthread: Likewise.
10111         * modules/putenv: Likewise.
10112         * modules/random_r: Likewise.
10113         * modules/relocatable-prog: Likewise.
10114         * modules/search: Likewise.
10115         * modules/select: Likewise.
10116         * modules/selinux-h: Likewise.
10117         * modules/settime: Likewise.
10118         * modules/signal: Likewise.
10119         * modules/size_max: Likewise.
10120         * modules/socklen: Likewise.
10121         * modules/ssize_t: Likewise.
10122         * modules/stdarg: Likewise.
10123         * modules/stdbool: Likewise.
10124         * modules/stddef: Likewise.
10125         * modules/stdint: Likewise.
10126         * modules/stdio: Likewise.
10127         * modules/stdlib: Likewise.
10128         * modules/string: Likewise.
10129         * modules/strings: Likewise.
10130         * modules/sys_file: Likewise.
10131         * modules/sys_ioctl: Likewise.
10132         * modules/sys_select: Likewise.
10133         * modules/sys_socket: Likewise.
10134         * modules/sys_stat: Likewise.
10135         * modules/sys_time: Likewise.
10136         * modules/sys_times: Likewise.
10137         * modules/sys_utsname: Likewise.
10138         * modules/sys_wait: Likewise.
10139         * modules/sysexits: Likewise.
10140         * modules/time: Likewise.
10141         * modules/times: Likewise.
10142         * modules/tmpfile: Likewise.
10143         * modules/trim: Likewise.
10144         * modules/unistd: Likewise.
10145         * modules/wchar: Likewise.
10146         * modules/wctype: Likewise.
10147
10148 2009-09-17  Bruno Haible  <bruno@clisp.org>
10149
10150         Make getdate.y compile on QNX and NetBSD 5 / i386.
10151         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10152         TIME_T_FITS_IN_LONG_INT.
10153         * lib/getdate.y (long_time_t): New type.
10154         (relative_time): Change type of 'seconds' field to long_time_t.
10155         (get_date): Update types of local variables. Check against overflow
10156         during conversion from long_time_t to time_t.
10157         Reported by Matt Kraai <kraai@ftbfs.org>
10158         and Hasso Tepper <hasso@netbsd.org>.
10159
10160 2009-09-17  Bruno Haible  <bruno@clisp.org>
10161
10162         * modules/COPYING: Update copyright years.
10163         * modules/README: Likeiwse.
10164         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10165         Reported by Ian Beckwith <ianb@erislabs.net>.
10166
10167 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10168
10169         * users.txt: Update references for gnuit package.
10170
10171 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10172
10173         * m4/getdelim.m4: Fix typo in copyright line.
10174
10175 2009-09-17  Bruno Haible  <bruno@clisp.org>
10176
10177         * lib/atoll.c: Use the standard header with GPL copyright.
10178         * lib/argz.in.h: Likewise.
10179         * lib/glob.c: Likewise.
10180         * lib/glob-libc.h: Likewise.
10181         * lib/random_r.c: Likewise.
10182         * lib/siglist.h: Likewise.
10183         * lib/strsignal.c: Likewise.
10184         Reported by Ian Beckwith <ianb@erislabs.net>.
10185
10186 2009-09-17  Eric Blake  <ebb9@byu.net>
10187
10188         rmdir: ensure correct dependency order
10189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10190
10191 2009-09-17  Bruno Haible  <bruno@clisp.org>
10192
10193         Disable assertion that fails on NetBSD 5 / i386.
10194         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10195         Reported by Sam Steingold <sds@gnu.org>
10196         and Hasso Tepper <hasso@netbsd.org>.
10197
10198 2009-09-16  Eric Blake  <ebb9@byu.net>
10199
10200         unlinkdir: port to mingw
10201         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10202         on which no one can unlink a directory.
10203
10204         stdlib: sort witness names
10205         * modules/stdlib (Makefile.am): Sort replacements.
10206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10207         * lib/stdlib.in.h: Likewise.
10208
10209         parse-duration-tests: avoid link failure
10210         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10211         LIBINTL.
10212         Reported by Tom G. Christensen.
10213
10214         openat-tests: ensure unlinkat behaves like rmdir
10215         * tests/test-rmdir.c (main): Factor guts...
10216         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10217         * modules/rmdir-tests (Files): Ship new file.
10218         * modules/openat-tests: New test.
10219         * tests/test-unlinkat.c: Likewise.
10220
10221         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10222         * modules/rmdir-errno (Status, Notice): Now obsolete.
10223
10224         rmdir: work around cygwin 1.5.x and mingw bugs
10225         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10226         * lib/rmdir.c (rmdir): Work around it.
10227         * modules/rmdir (Status, Notice): No longer obsolete.
10228         (Files): Add dos.m4.
10229         (Depends-on): Add unistd.
10230         (configure.ac): Set witnesses.
10231         (License): Relax to LGPLv2+.
10232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10233         * modules/unistd (Makefile.am): Substitute witnesses.
10234         * lib/unistd.in.h (rmdir): Declare replacement.
10235         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10236         * modules/rmdir-tests: New tests.
10237         * tests/test-rmdir.c: Likewise.
10238
10239 2009-09-15  Eric Blake  <ebb9@byu.net>
10240
10241         fchdir: improve use of replacement functions
10242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10244         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10245         REPLACE_CLOSEDIR.
10246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10247         * modules/sys_stat (Makefile.am): Substitute correct witness.
10248         * modules/dirent (Makefile.am): Likewise.
10249         * modules/unistd (Makefile.am): Likewise.
10250         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10251         * lib/unistd.in.h (dup): Likewise.
10252         * lib/sys_stat.in.h (fstat): Likewise.
10253
10254         maint: ignore gnulib-tool temp files
10255         * .gitignore: Ignore files created during gnulib-tool --test.
10256
10257 2009-09-13  Jim Meyering  <meyering@redhat.com>
10258
10259         posixtm: don't reject a time that specify "60" as the number of seconds
10260         * lib/posixtm.c (posixtime): The code to reject invalid dates
10261         would also reject a time specified with the .60 suffix.
10262         But POSIX allows that, in order to accommodate leap seconds.
10263         So don't reject it.
10264         (main): Adjust tests accordingly.
10265         * modules/posixtm (Depends-on): Add stpcpy.
10266
10267 2009-09-11  Jim Meyering  <meyering@redhat.com>
10268
10269         announce-gen: include [$release_type] in emitted Subject:
10270         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10271         e.g., [stable] in the emitted Subject: line.
10272
10273 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10274
10275         Remove obsolete macros from several modules.
10276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10277         obsolete Autoconf macros with their modern counterparts.
10278         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10279         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10280         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10281         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10282         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10283         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10285         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10286         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10287         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10288         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10290         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10291         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10292         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10293         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10294         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10295         * m4/time_r.m4 (gl_TIME_R): Likewise.
10296         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10297         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10298         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10299
10300         Fix copyright header in build-aux scripts.
10301         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10302         recommendation.
10303         * build-aux/ncftpput-ftp: Likewise.
10304         * build-aux/update-copyright: Likewise.
10305
10306 2009-09-09  Eric Blake  <ebb9@byu.net>
10307
10308         test-link: allow Linux choice of errno
10309         * tests/test-link.c (main): Relax test for alternate error.
10310
10311         strndup: fix improper m4 caching
10312         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10313         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10314         (gl_PREREQ_STRNDUP): Delete.
10315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10316         * modules/string (Makefile.am): Substitute it.
10317         * lib/string.in.h (strndup): Modernize prototype.
10318
10319         getcwd: port to mingw
10320         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10321         different from the POSIX assumptions made throughout the getcwd
10322         module; fortunately, the mingw getcwd does not need replacement.
10323         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10324         * modules/getcwd-tests: New test.
10325         * tests/test-getcwd.c: Likewise.
10326
10327         link: fix platform bugs
10328         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10329         * lib/link.c (link): Work around them.  Fix related mingw bug.
10330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10331         * modules/unistd (Makefile.am): Substitute it.
10332         * lib/unistd.in.h (link): Declare replacement.
10333         * doc/posix-functions/link.texi (link): Document this.
10334         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10335
10336         test-link: consolidate into single C program, test more cases
10337         * tests/test-link.sh: Delete.
10338         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10339         at least Cygwin and Solaris.
10340         * modules/link-tests (Files): Remove unused file.
10341         (Depends-on): Add errno, sys_stat.
10342         (Makefile.am): Simplify.
10343
10344 2009-09-08  Bruno Haible  <bruno@clisp.org>
10345
10346         Work around towlower, towupper bug on mingw.
10347         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10348         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10349         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10350         * doc/posix-functions/towupper.texi: Likewise.
10351         Reported by Eric Blake.
10352
10353 2009-09-08  Jim Meyering  <meyering@redhat.com>
10354
10355         build: don't try to run autoheader if we don't use it
10356         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10357         is not used in configure.ac.
10358
10359 2009-09-08  Eric Blake  <ebb9@byu.net>
10360
10361         euidaccess: fix compilation error
10362         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10363
10364         rawmemchr: relax license
10365         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10366         okay.
10367         Reported by Jim Meyering.
10368
10369         mkfifoat: new module
10370         * modules/mkfifoat: New file.
10371         * lib/mkfifoat.c: Likewise.
10372         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10374         * modules/sys_stat (Makefile.am): Use them.
10375         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10376         * MODULES.html.sh (File system functions): Mention module.
10377         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10378         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10379         * modules/mkfifoat-tests: New test.
10380         * tests/test-mkfifoat.c: Likewise.
10381
10382         strchrnul: relax license
10383         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10384         okay.
10385         Reported by Jim Meyering.
10386
10387 2009-09-08  Eric Blake  <ebb9@byu.net>
10388
10389         fstatat: fix compilation on Solaris
10390         * lib/fstatat.c (includes): Add fcntl.h.
10391         Reported by Pádraig Brady.
10392
10393 2009-09-07  Eric Blake  <ebb9@byu.net>
10394
10395         rename: modernize replacement
10396         * modules/rename (Depends-on): Add stdio.
10397         (configure.ac): Declare witness.
10398         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10399         stdio take care of replacement.
10400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10401         * modules/stdio (Makefile.am): Substitute them.
10402         * lib/stdio.in.h (rename): Declare replacement.
10403         * lib/rename.c (includes): Allow cross-compilation to non-windows
10404         machines.
10405         * doc/posix-functions/rename.texi (rename): Improve
10406         documentation.
10407
10408         stdio: sort witness names
10409         * modules/stdio (Makefile.am): Sort replacements.
10410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10411         * lib/stdio.in.h: Likewise.
10412
10413         getcwd: minor cleanups
10414         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10415         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10416
10417         openat: provide more convenience names
10418         * modules/faccessat (configure.ac): Add C witness.
10419         * lib/unistd.in.h (readlinkat): Fix typo.
10420         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10421         convenience wrappers.
10422         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10423         wrappers in syntax checks.
10424
10425 2009-09-06  Eric Blake  <ebb9@byu.net>
10426
10427         doc: fix comments in recent patches
10428         * lib/faccessat.c: Mention correct function.
10429         * lib/fchmodat.c: Likewise.
10430         * lib/fchownat.c: Likewise.
10431         * lib/symlinkat.c: Likewise.
10432         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10433         constants.
10434
10435         faccessat, symlinkat: continue cleanup of previous patch
10436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10437         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10438         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10440         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10441         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10442         set.
10443
10444 2009-09-06  Bruno Haible  <bruno@clisp.org>
10445
10446         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10447         (fstatat): Declare if GNULIB_FSTATAT is set.
10448         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10449         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10450         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10451         * modules/fcntl-h (Files): Remove m4/openat.m4.
10452         * modules/sys_stat (Files): Remove m4/openat.m4.
10453         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10454         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10455         * modules/unistd (Files): Remove m4/openat.m4.
10456         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10457         GNULIB_OPENAT.
10458         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10459         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10461         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10462         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10463         gl_OPENAT_DEFAULTS.
10464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10465         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10466         Don't require gl_OPENAT_DEFAULTS.
10467         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10468         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10469         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10470         (gl_OPENAT_DEFAULTS): Remove macro.
10471
10472 2009-09-06  Bruno Haible  <bruno@clisp.org>
10473
10474         * modules/openat (configure.ac): Remove unneeded witness.
10475
10476 2009-09-06  Bruno Haible  <bruno@clisp.org>
10477
10478         Set errno to ENOSYS when a function is entirely unsupported.
10479         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10480         EOPNOTSUPP.
10481         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10482         * modules/chown (Depends-on): Remove errno.
10483
10484 2009-09-06  Bruno Haible  <bruno@clisp.org>
10485
10486         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10487
10488 2009-09-06  Bruno Haible  <bruno@clisp.org>
10489
10490         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10491
10492 2009-09-06  Ben Pfaff  <blp@gnu.org>
10493             Bruno Haible  <bruno@clisp.org>
10494
10495         Work around a glibc bug in strtok_r.
10496         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10497         Undefine if UNDEFINE_STRTOK_R is set.
10498         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10500         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10501         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10502         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10503         UNDEFINE_STRTOK_R.
10504         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10505
10506 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10507
10508         exclude: minor fix
10509         * lib/exclude.c: Include wctype.h
10510
10511 2009-09-06  Akim Demaille  <demaille@gostai.com>
10512
10513         bootstrap: improve error message
10514         * build-aux/bootstrap (find_tool): Upon failure, report the list
10515         of candidates.
10516         Honor the initial value of the envvar.
10517
10518 2009-09-05  Eric Blake  <ebb9@byu.net>
10519
10520         symlinkat: new module
10521         * modules/symlinkat: New file.
10522         * lib/symlinkat.c: Likewise.
10523         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10525         * modules/unistd (Makefile.am): Use them.
10526         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10527         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10528         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10529         * MODULES.html.sh (File system functions): Mention module.
10530         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10531         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10532         * modules/symlinkat-tests: New test.
10533         * tests/test-symlinkat.c: Likewise.
10534
10535         test-openat-safer: add more checks
10536         * tests/test-openat-safer.c (main): Check more code paths.
10537
10538 2009-09-05  Jim Meyering  <meyering@redhat.com>
10539
10540         syntax-check: detect unnecessary inclusion of openat.h
10541         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10542
10543 2009-09-05  Bruno Haible  <bruno@clisp.org>
10544
10545         Support towlower, towupper.
10546         * doc/posix-functions/towlower.texi: Mention module wctype.
10547         * doc/posix-functions/towupper.texi: Likewise.
10548         * lib/wctype.in.h (towlower, towupper): New functions.
10549         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10550         (ASSERT): New macro.
10551         (e): New variable.
10552         (main): Test also towlower, towupper. Test WEOF argument.
10553         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10554
10555 2009-09-05  Bruno Haible  <bruno@clisp.org>
10556
10557         Fix conversion behaviour when the input is invalid.
10558         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10559         mark occurring in first pass of indirect conversion.
10560         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10561         input.
10562         Found by clang's static analyzer.
10563
10564 2009-09-05  Bruno Haible  <bruno@clisp.org>
10565
10566         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10567         where direct conversion is possible.
10568
10569 2009-09-04  Eric Blake  <ebb9@byu.net>
10570
10571         openat: fail with ENOENT on empty name
10572         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10573         buffer.
10574
10575         link-follow: fix logic bug in prior patch
10576         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10577         reversed sense of yes and no in prior patch.  Avoid confusing
10578         compilation failure with desired semantics.
10579
10580         link-follow: accomodate mingw and cross-compilation
10581         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10582         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10583         cross-compilation results to -1, to make linkat easier to
10584         implement when cross-compiling.  Trivially support mingw.
10585         * modules/link-follow (configure.ac): Call new name.
10586         * NEWS: Mention this.
10587
10588 2009-09-03  Eric Blake  <ebb9@byu.net>
10589
10590         faccessat: compile replacement
10591         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10592         needed.
10593
10594         fts: fix compilation error
10595         * lib/fts.c (includes): Re-add "openat.h", for
10596         openat_needs_fchdir.
10597
10598         faccessat: new module
10599         * modules/faccessat: New file.
10600         * lib/faccessat.c: Likewise.
10601         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10603         * modules/unistd (Makefile.am): Use it.
10604         * lib/unistd.in.h (faccessat): Declare it.
10605         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10606         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10607         * MODULES.html.sh (File system functions): Mention it.
10608         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10609         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10610
10611         euidaccess: prefer POSIX over non-standard implementation
10612         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10613         * lib/euidaccess.c (euidaccess): Use it if available.
10614
10615         openat: make template easier to use
10616         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10617         AT_FUNC_F2 to be undefined.
10618         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10619         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10620         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10621         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10622         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10623         Likewise.
10624         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10625         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10626         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10627         Likewise.
10628
10629         openat: declare in POSIX headers
10630         * NEWS: Mention this.
10631         * modules/openat (configure.ac): Declare witnesses.
10632         (Depends-on): Add fcntl-h, sys_stat, unistd.
10633         (Include): Mention correct headers.
10634         * modules/fcntl-h (Depends-on): Add link-warning.
10635         (Files): Add openat.m4.
10636         (Makefile.am): Substitute witnesses.
10637         * modules/sys_stat (Files, Makefile.am): Likewise.
10638         * modules/unistd (Files, Makefile.am): Likewise.
10639         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10640         (gl_OPENAT_DEFAULTS): New macro.
10641         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10643         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10644         (SYS_STAT_H): Remove unused variable.
10645         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10646         * lib/fcntl--.h (includes): Remove unneeded header.
10647         * lib/openat-safer.c (includes): Likewise.
10648         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10649         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10650         appropriate headers.
10651         (__OPENAT_PREFIX): Delete.
10652         * lib/fcntl.in.h (openat): Provide declaration.
10653         (AT_FDCWD): Fix Solaris bug.
10654         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10655         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10656         * lib/fchmodat.c (includes):  Adjust to find declaration.
10657         * lib/fchownat.c (includes): Likewise.
10658         * lib/mkdirat.c (includes): Likewise.
10659         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10660         still visible.
10661
10662 2009-09-02  Eric Blake  <ebb9@byu.net>
10663
10664         errno: use consistently
10665         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10666         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10667         * lib/canonicalize.c (ELOOP): Likewise.
10668         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10669         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10670         * lib/lchown.c (EOPNOTSUPP): Likewise.
10671         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10672         * lib/savewd.c (ESTALE): Likewise.
10673         * lib/settime.c (ENOSYS): Likewise.
10674         * lib/utimens.c (ENOSYS): Likewise.
10675         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10676         * lib/chdir-safer.c (ELOOP): Likewise.
10677         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10678         * modules/c-stack (Depends-on): Add errno.
10679         * modules/canonicalize (Depends-on): Likewise.
10680         * modules/chdir-safer (Depends-on): Likewise.
10681         * modules/fdopendir (Depends-on): Likewise.
10682         * modules/inet_ntop (Depends-on): Likewise.
10683         * modules/inet_pton (Depends-on): Likewise.
10684         * modules/lchown (Depends-on): Likewise.
10685         * modules/openat (Depends-on): Likewise.
10686         * modules/savewd (Depends-on): Likewise.
10687         * modules/settime (Depends-on): Likewise.
10688         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10689
10690         fts: avoid leaking fds
10691         * modules/fts (Depends-on): Add cloexec.
10692         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10693         flag.
10694
10695         fts: make directory fds more robust
10696         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10697         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10698
10699         backupfile, chdir-long, fts, savedir: make safer
10700         * lib/backupfile.c (includes): Use "dirent--.h", since
10701         numbered_backup can write to stderr during readdir.
10702         * lib/savedir.c (includes): Likewise.
10703         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10704         emulation can write to stderr on failure.
10705         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10706         * lib/getcwd.c: Document why opendir_safer is unused.
10707         * lib/glob.c: Likewise.
10708         * lib/scandir.c: Likewise.
10709         * lib/openat-proc.c: Likewise, for open_safer.
10710         * modules/backupfile (Depends-on): Add dirent-safer.
10711         * modules/savedir (Depends-on): Likewise.
10712         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10713         * modules/chdir-long (Depends-on): Add openat-safer.
10714
10715         openat-safer: new module
10716         * modules/openat-safer: New file.
10717         * lib/openat-safer.c: Likewise.
10718         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10719         * lib/fcntl-safer.h (openat_safer): Declare.
10720         * lib/fcntl--.h (openat): Override.
10721         * MODULES.html.sh (File descriptor based I/O): Mention it.
10722         * lib/openat.h: Add double-inclusion guards.
10723         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10724         "fcntl--.h", so we can implement openat.
10725         * modules/openat-safer-tests: New test.
10726         * tests/test-openat-safer.c: New file.
10727
10728         dirent-safer: new module
10729         * modules/dirent-safer: New file.
10730         * lib/dirent--.h: Likewise.
10731         * lib/dirent-safer.h: Likewise.
10732         * lib/opendir-safer.c: Likewise.
10733         * m4/dirent-safer.m4: Likewise.
10734         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10735         * modules/dirent-safer-tests: New test.
10736         * tests/test-dirent-safer.c: New file.
10737         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10738
10739         fdopendir: optimize on mingw
10740         * lib/unistd.in.h (_gl_directory_name): New prototype.
10741         * lib/fchdir.c (_gl_directory_name): Implement it.
10742         (fchdir): Use it to simplify implementation.
10743         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10744         fchdir, when available, to avoid calling [f]chdir().
10745
10746         fdopendir: split into its own module
10747         * lib/openat.c (fdopendir): Move...
10748         * lib/fdopendir.c: ...into new file.
10749         * modules/fdopendir: New module.
10750         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10751         * modules/openat (Depends-on): Add fdopendir.
10752         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10753         fdopendir here.
10754         * modules/savedir (Depends-on): Only need fdopendir, not full
10755         openat.
10756         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10757         * lib/openat.h (fdopendir): Drop prototype.
10758         * lib/dirent.in.h (fdopendir): Provide prototype.
10759         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10760         * modules/dirent (Makefile.am): Substitute them.
10761         * MODULES.html.sh (File system functions): Mention it.
10762         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10763         * modules/fdopendir-tests: New file.
10764         * tests/test-fdopendir.c: Likewise.
10765
10766         fchdir: use more consistent macro convention
10767         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10768         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10769         REPLACE_FCHDIR, rather than relying on config.h macros.
10770         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10771         inside a single make-time REPLACE_FCHDIR block, rather than using
10772         the config.h FCHDIR_REPLACEMENT.
10773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10774         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10775         Manage fstat replacement.
10776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10777         REPLACE_FCHDIR.
10778         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10779         (Makefile.am): Substitute REPLACE_FCHDIR.
10780         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10781         FCHDIR_REPLACEMENT.
10782         * lib/dup-safer.c (dup_safer): Likewise.
10783         * lib/dup2.c (rpl_dup2): Likewise.
10784         * lib/dup3.c (rpl_dup3): Likewise.
10785         * lib/open.c (rpl_open): Likewise.
10786
10787         fchdir: simplify error handling, and support dup3
10788         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10789         stdbool, malloc-posix, realloc-posix.
10790         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10791         (ensure_dirs_slot): Return false on allocation failure.
10792         (rpl_dup2): Delete.
10793         (_gl_register_dup): New function.
10794         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10795         (_gl_register_fd): Close fd on allocation failure.
10796         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10797         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10798         prototype.
10799         (rpl_dup2_fchdir): Delete prototype.
10800         * lib/open.c (open): Update caller.
10801         * lib/dup2.c (dup2): Track fchdir metadata.
10802         * lib/dup3.c (dup3): Likewise.
10803         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10805
10806 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10807
10808         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10809         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10810         don't pass arguments to AC_OUTPUT.
10811
10812 2009-09-02  Bruno Haible  <bruno@clisp.org>
10813
10814         * modules/mkdtemp (License): Relicense under LGPLv2+.
10815         Reported by Paolo Bonzini.
10816
10817 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10818
10819         Replace uses of obsolete autoconf macros in Jim's modules.
10820         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10821         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10822         can evoke a warning from autoconf when run with -Wobsolete
10823         enabled.  They were declared obsolete for good reasons (see
10824         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10825         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10826         should not continue using the deprecated macros.
10827         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10828         obsolete Autoconf macros with modern counterparts.
10829         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10830         * m4/dos.m4 (gl_AC_DOS): Likewise.
10831         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10833         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10834         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10835         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10836         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10837         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10838         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10839         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10840         Likewise.
10841         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10842         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10843         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10844         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10845         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10846         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10847
10848 2009-09-01  Eric Blake  <ebb9@byu.net>
10849
10850         fchdir: fix off-by-one bug in previous patch
10851         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10852         (_gl_unregister_fd): Delete useless if.
10853
10854 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10855
10856         maint.mk: sort the list of syntax-check rules
10857         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10858         easier to get a sense of progress when the rules are run sequentially
10859         and take a long time.
10860
10861 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10862
10863         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10864         * modules/netinet_in: Likewise.
10865         * modules/sys_file: Likewise.
10866         * modules/sys_ioctl: Likewise.
10867         * modules/sys_select: Likewise.
10868         * modules/sys_socket: Likewise.
10869         * modules/sys_stat: Likewise.
10870         * modules/sys_time: Likewise.
10871         * modules/sys_times: Likewise.
10872         * modules/sys_utsname: Likewise.
10873         * modules/sys_wait: Likewise.
10874
10875 2009-09-01  Jim Meyering  <meyering@redhat.com>
10876
10877         fts: help ensure that return values are not ignored
10878         * lib/fts_.h (__GNUC_PREREQ): Define.
10879         (__attribute_warn_unused_result__): Define.
10880         (fts_children, fts_close, fts_open, fts_read): Declare with
10881         __attribute_warn_unused_result__.
10882
10883         fts: fts_close now fails also when closing a dir file descriptor fails
10884         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10885         and propagate to caller, along with errno.
10886
10887         announce-gen: correct formatting in --help output
10888         * build-aux/announce-gen (usage): Move the one-line description in
10889         --help output "up", to where it belongs, just after Usage:.
10890
10891 2009-08-31  Eric Blake  <ebb9@byu.net>
10892
10893         fchdir: port to mingw
10894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10895         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10896         opened, then use a substitute.
10897         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10898         replacement.
10899         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10900         (_gl_register_fd): No need to check stat if open already filters
10901         all directories.
10902         (fchdir): Fix error condition to match POSIX.
10903         * modules/fchdir (Depends-on): Add sys_stat.
10904         * doc/posix-functions/open.texi (open): Document the limitation.
10905         * modules/fchdir-tests: New file.
10906         * tests/test-fchdir.c: Likewise.
10907
10908         canonicalize: allow cross-testing from cygwin to mingw
10909         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10910         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10911         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10912         Likewise.
10913         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10914         target does not support symlinks.
10915         * tests/test-canonicalize-lgpl.sh: Likewise.
10916
10917         chown: avoid compilation warning on mingw
10918         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10919         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10920         mingw.
10921         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10922         * modules/chown (Depends-on): Add errno.
10923
10924 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10925
10926         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10927         command.
10928
10929 2009-08-31  Jim Meyering  <meyering@redhat.com>
10930
10931         canonicalize: remove useless initialization
10932         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10933         initialization of local, "end".
10934
10935 2009-08-30  Bruno Haible  <bruno@clisp.org>
10936
10937         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10938         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10939         ENOSYS.
10940
10941 2009-08-30  Bruno Haible  <bruno@clisp.org>
10942
10943         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10944         /usr/xpg4/bin/tr when it exists.
10945         * tests/test-pipe-filter-gi1.sh: Likewise.
10946
10947 2009-08-30  Bruno Haible  <bruno@clisp.org>
10948
10949         Work around deficient /usr/bin/id program on Solaris.
10950         * tests/test-file-has-acl.sh (ID): New variable.
10951         * tests/test-set-mode-acl.sh (ID): Likewise.
10952         * tests/test-copy-acl.sh (ID): Likewise.
10953         * tests/test-copy-file.sh (ID): Likewise.
10954
10955 2009-08-30  Bruno Haible  <bruno@clisp.org>
10956
10957         New module 'xstriconveh'.
10958         * lib/xstriconveh.h: New file.
10959         * lib/xstriconveh.c: New file.
10960         * modules/xstriconveh: New file.
10961
10962 2009-08-30  Bruno Haible  <bruno@clisp.org>
10963
10964         Make it easier to use mem_cd_iconveh.
10965         * lib/striconveh.h (iconveh_t): New type.
10966         (iconveh_open, iconveh_close): New declarations.
10967         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10968         with a single 'const iconveh_t *' argument.
10969         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10970         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10971         with a single 'const iconveh_t *' argument.
10972         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10973         * tests/test-striconveh.c (main): Update.
10974         * NEWS: Mention the change.
10975
10976 2009-08-30  Bruno Haible  <bruno@clisp.org>
10977
10978         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10979         problem.
10980
10981 2009-08-30  Bruno Haible  <bruno@clisp.org>
10982
10983         Work around iconv_open problem on Solaris.
10984         * lib/iconv_open-solaris.gperf: New file.
10985         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10986         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10987         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10988         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10989         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10990         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10991
10992 2009-08-29  Jim Meyering  <meyering@redhat.com>
10993
10994         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10995         * top/maint.mk (cvs-check): Remove target; it was just an alias
10996         to the better-named vc-diff-check.
10997         (maintainer-distcheck): Remove rule.  It was used only from
10998         the (alpha/beta/major) target, and all of its commands but one
10999         were coreutils-specific.
11000         (vc-dist): Remove rule.
11001         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11002         Run vc-diff-check, not vc-dist.
11003         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11004
11005 2009-08-27  Bruno Haible  <bruno@clisp.org>
11006
11007         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11008         of 0.
11009
11010 2009-08-27  Bruno Haible  <bruno@clisp.org>
11011
11012         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11013         compilers.
11014         * doc/func.texi: Document the SunPRO C bug.
11015
11016 2009-08-27  Bruno Haible  <bruno@clisp.org>
11017
11018         Fix link error on Solaris.
11019         * tests/test-parse-duration.c (xstrdup): Remove function.
11020
11021 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11022
11023         ignore-value: handle pointer types, too
11024         * lib/ignore-value.h (__attribute__): Remove definition.
11025         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11026         of a more concise and more-often effective "(void) i" statement.
11027         (ignore_ptr): New function to suppress warnings from functions that
11028         return pointers, and to make it explicit that one function doesn't
11029         handle all cases.
11030
11031 2009-08-25  Bruno Haible  <bruno@clisp.org>
11032
11033         dup2: work around a Linux bug.
11034         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11035         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11036         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11037         Reported by Simon Josefsson.
11038
11039 2009-08-25  Jim Meyering  <meyering@redhat.com>
11040
11041         libguestfs uses gnulib
11042         * users.txt: Add libguestfs.
11043
11044 2009-08-24  Eric Blake  <ebb9@byu.net>
11045
11046         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11047         * lib/pipe2.c (includes): Add binary-io.h.
11048         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11049
11050 2009-08-24  Bruno Haible  <bruno@clisp.org>
11051
11052         Tolerate declared but missing accept4 syscall.
11053         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11054         available.
11055         * lib/sys_socket.in.h (accept4): If the function is already present,
11056         override it.
11057         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11058         * modules/accept4 (Makefile.am): Compile accept4.c always.
11059         Reported by Paolo Bonzini and Eric Blake.
11060
11061 2009-08-23  Bruno Haible  <bruno@clisp.org>
11062
11063         New module 'accept4'.
11064         * lib/sys_socket.in.h (accept4): New declaration.
11065         * lib/accept4.c: New file.
11066         * m4/accept4.m4: New file.
11067         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11068         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11069         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11070         HAVE_ACCEPT4.
11071         * modules/accept4: New file.
11072         * doc/glibc-functions/accept4.texi: Mention the new module.
11073
11074 2009-08-24  Jim Meyering  <meyering@redhat.com>
11075
11076         progname: also set global program_invocation_name, when possible
11077         Before this change, a libtool-enabled program that calls glibc's
11078         error function would report the program name as
11079         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11080         * modules/progname (configure.ac): Check for a declaration of
11081         program_invocation_name.
11082         * lib/progname.c:  Include <errno.h>.
11083         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11084         Set program_invocation_name.
11085
11086 2009-08-23  Bruno Haible  <bruno@clisp.org>
11087
11088         * lib/dup3.c: Include <string.h>.
11089
11090 2009-08-23  Bruno Haible  <bruno@clisp.org>
11091
11092         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11093         * lib/pipe2.c (pipe2): Likewise.
11094         Suggested by Eric Blake.
11095
11096 2009-08-23  Bruno Haible  <bruno@clisp.org>
11097
11098         Tolerate declared but missing dup3 syscall.
11099         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11100         * lib/unistd.in.h (dup3): If the function is already present,
11101         override it.
11102         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11103         * modules/dup3 (Makefile.am): Compile dup3.c always.
11104         Reported by Paolo Bonzini.
11105
11106 2009-08-23  Bruno Haible  <bruno@clisp.org>
11107
11108         Tolerate declared but missing pipe2 syscall.
11109         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11110         available.
11111         * lib/unistd.in.h (pipe2): If the function is already present,
11112         override it.
11113         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11114         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11115         Reported by Paolo Bonzini.
11116
11117 2009-08-23  Bruno Haible  <bruno@clisp.org>
11118
11119         * lib/pipe2.c (pipe2): Move #ifs inside function.
11120
11121 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11122
11123         quotearg: document limitations of quote_these_too
11124         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11125         those limitations are created.
11126         * lib/quotearg.h (set_char_quoting): Document that digits and
11127         letters that are special after backslash are not permitted.
11128         (quotearg_char): Cross-reference set_char_quoting documentation.
11129
11130 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11131
11132         quotearg: implement custom_quoting_style
11133         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11134         right_quote fields.
11135         (set_custom_quoting): New public function.
11136         (quotearg_buffer_restyled): Add left_quote and right_quote
11137         arguments, handle them very much like locale quoting, and update
11138         all uses.
11139         (quotearg_n_custom): New public function.
11140         (quotearg_n_custom_mem): New public function.
11141         (quotearg_custom): New public function.
11142         (quotearg_custom_mem): New public function.
11143         * lib/quotearg.h: Prototype and document new public functions.
11144         (enum quoting_style): For escape_quoting_style and
11145         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11146         ignored even though they're otherwise like c_quoting_style.
11147         Add custom_quoting_style member and document with comparison to
11148         clocale_quoting_style.
11149         * tests/test-quotearg.c (custom_quotes): New array.
11150         (custom_results): New array.
11151         (main): Extend to test custom quoting.
11152
11153 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11154
11155         quotearg: fix right quote escaping when it's in quote_these_too
11156         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11157         quote, be sure to prepend only one backslash.
11158         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11159         (main): Test it.
11160
11161 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11162
11163         quotearg-tests: test escaping of embedded locale quotes
11164         * tests/test-quotearg.c (struct result_strings): Add member for
11165         new input.
11166         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11167         (inputs): Add new input.
11168         (results_g): Add expected results.
11169         (flag_results): Likewise.
11170         (locale_results): Likewise.
11171         (compare_strings): Check those.
11172
11173 2009-08-23  Bruno Haible  <bruno@clisp.org>
11174
11175         Tests for module 'dup3'.
11176         * modules/dup3-tests: New file.
11177         * tests/test-dup3.c: New file.
11178
11179         New module 'dup3'.
11180         * lib/unistd.in.h (dup3): New declaration.
11181         * lib/dup3.c: New file.
11182         * m4/dup3.m4: New file.
11183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11184         HAVE_DUP3.
11185         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11186         * modules/dup3: New file.
11187         * doc/glibc-functions/dup3.texi: Mention the new module.
11188
11189 2009-08-23  Bruno Haible  <bruno@clisp.org>
11190
11191         Tweak the dup2 test.
11192         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11193         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11194         the test file is still empty. Fix argument order of lseek.
11195
11196 2009-08-23  Bruno Haible  <bruno@clisp.org>
11197
11198         Avoid test link errors when the modules getopt-gnu, gettext are used.
11199         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11201
11202 2009-08-23  Bruno Haible  <bruno@clisp.org>
11203
11204         Fix getdtablesize() on mingw.
11205         * lib/getdtablesize.c (getdtablesize): Implement differently.
11206         * lib/unistd.in.h (getdtablesize): Improve comment.
11207
11208 2009-08-23  Bruno Haible  <bruno@clisp.org>
11209
11210         New module 'mkostemp'.
11211         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11212         * lib/stdlib.in.h (mksotemp): New declaration.
11213         * lib/mkostemp.c: New file, from glibc with modifications.
11214         * lib/tempname.h (GT_FILE): Remove outdated comment.
11215         (gen_tempname): Add flags argument.
11216         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11217         (__GT_FILE): Map to 1.
11218         (small_open, large_open): Remove macros.
11219         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11220         * lib/mkstemp.c (mkstemp): Update.
11221         * lib/mkdtemp.c (mkdtemp): Likewise.
11222         * m4/mkostemp.m4: New file.
11223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11224         HAVE_MKOSTEMP.
11225         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11226         HAVE_MKOSTEMP.
11227         * modules/mkostemp: New file, based on modules/mkstemp.
11228         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11229         * NEWS: Mention the change.
11230
11231 2009-08-23  Bruno Haible  <bruno@clisp.org>
11232
11233         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11234         Reported by Eric Blake.
11235
11236 2009-08-23  Bruno Haible  <bruno@clisp.org>
11237
11238         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11239         Reported by Eric Blake.
11240
11241 2009-08-23  Bruno Haible  <bruno@clisp.org>
11242
11243         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11244         * modules/pipe2 (Depends-on): Likewise.
11245
11246 2009-08-23  Eric Blake  <ebb9@byu.net>
11247
11248         fcntl-h: add O_TTY_INIT support
11249         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11250         * tests/test-fcntl-h.c (o): Test it.
11251         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11252
11253         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11254         * modules/fcntl: Move <fcntl.h> header replacement...
11255         * modules/fcntl-h: ...to new name, so as not to collide with
11256         like-named function.
11257         * tests/test-fcntl.c: Rename...
11258         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11259         * modules/fcntl-tests: Rename...
11260         * modules/fcntl-h-tests: ...to this.  Update test file name.
11261         * modules/chdir-long (Depends-on): Update clients.
11262         * modules/chdir-safer (Depends-on): Likewise.
11263         * modules/fcntl-safer (Depends-on): Likewise.
11264         * modules/fts (Depends-on): Likewise.
11265         * modules/mkancesdirs (Depends-on): Likewise.
11266         * modules/mkdir-p (Depends-on): Likewise.
11267         * modules/open (Depends-on): Likewise.
11268         * modules/savewd (Depends-on): Likewise.
11269         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11270         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11271
11272 2009-08-22  Bruno Haible  <bruno@clisp.org>
11273
11274         * modules/binary-io (License): Relicense under LGPL.
11275         * modules/pipe2 (License): Likewise.
11276
11277 2009-08-22  Bruno Haible  <bruno@clisp.org>
11278
11279         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11280         return value.
11281         * lib/pipe-filter-gi.c (filter_init): Likewise.
11282         Reported by Eric Blake.
11283
11284 2009-08-22  Bruno Haible  <bruno@clisp.org>
11285
11286         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11287         * modules/pipe (Depends-on): Add pipe2.
11288
11289 2009-08-22  Bruno Haible  <bruno@clisp.org>
11290
11291         Tests for module 'pipe2'.
11292         * modules/pipe2-tests: New file.
11293         * tests/test-pipe2.c: New file.
11294
11295         New module 'pipe2'.
11296         * lib/unistd.in.h (pipe2): New declaration.
11297         * lib/pipe2.c: New file.
11298         * m4/pipe2.m4: New file.
11299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11300         HAVE_PIPE2.
11301         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11302         * modules/pipe2: New file.
11303         * doc/glibc-functions/pipe2.texi: Mention the new module.
11304
11305 2009-08-22  Bruno Haible  <bruno@clisp.org>
11306
11307         Reference some new glibc functions.
11308         * doc/glibc-functions/accept4.texi: New file.
11309         * doc/glibc-functions/dup3.texi: New file.
11310         * doc/glibc-functions/mkostemp.texi: New file.
11311         * doc/glibc-functions/pipe2.texi: New file.
11312         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11313         (Glibc sys/socket.h): Refer to accept4.
11314         (Glibc unistd.h): Refer to dup3, pipe2.
11315         Reported by Eric Blake.
11316
11317 2009-08-22  Jim Meyering  <meyering@redhat.com>
11318             Bruno Haible  <bruno@clisp.org>
11319
11320         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11321         This makes it so packages using automake-1.11's silent-rules option
11322         can print e.g., a single "GEN    configmake.h" line, rather than
11323         the 30+ statements that perform the job.  If you want to see the
11324         actual commands, you can still run "make V=1".
11325         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11326         so that make output is abbreviated when those variables are defined
11327         appropriately.
11328         * modules/argz: Likewise.
11329         * modules/arpa_inet: Likewise.
11330         * modules/byteswap: Likewise.
11331         * modules/configmake: Likewise.
11332         * modules/dirent: Likewise.
11333         * modules/errno: Likewise.
11334         * modules/fcntl: Likewise.
11335         * modules/float: Likewise.
11336         * modules/fnmatch: Likewise.
11337         * modules/getopt-posix: Likewise.
11338         * modules/glob: Likewise.
11339         * modules/iconv_open: Likewise.
11340         * modules/inttypes: Likewise.
11341         * modules/localcharset: Likewise.
11342         * modules/locale: Likewise.
11343         * modules/math: Likewise.
11344         * modules/netdb: Likewise.
11345         * modules/netinet_in: Likewise.
11346         * modules/poll: Likewise.
11347         * modules/posix_spawnp-tests: Likewise.
11348         * modules/sched: Likewise.
11349         * modules/search: Likewise.
11350         * modules/selinux-h: Likewise.
11351         * modules/signal: Likewise.
11352         * modules/spawn: Likewise.
11353         * modules/stdarg: Likewise.
11354         * modules/stdbool: Likewise.
11355         * modules/stddef: Likewise.
11356         * modules/stdint: Likewise.
11357         * modules/stdio: Likewise.
11358         * modules/stdlib: Likewise.
11359         * modules/string: Likewise.
11360         * modules/strings: Likewise.
11361         * modules/sys_file: Likewise.
11362         * modules/sys_ioctl: Likewise.
11363         * modules/sys_select: Likewise.
11364         * modules/sys_socket: Likewise.
11365         * modules/sys_stat: Likewise.
11366         * modules/sys_time: Likewise.
11367         * modules/sys_times: Likewise.
11368         * modules/sys_utsname: Likewise.
11369         * modules/sys_wait: Likewise.
11370         * modules/sysexits: Likewise.
11371         * modules/time: Likewise.
11372         * modules/unistd: Likewise.
11373         * modules/wchar: Likewise.
11374         * modules/wctype: Likewise.
11375
11376 2009-08-22  Jim Meyering  <meyering@redhat.com>
11377
11378         announce-gen: detect write failure
11379         * build-aux/announce-gen: Add Coda at end.
11380         Remove equivalent-but-more-verbose block at top.
11381
11382 2009-08-19  Akim Demaille  <demaille@gostai.com>
11383
11384         bootstrap: --help to stdout.
11385         * bootstrap (usage): Don't send --help to stderr.
11386         Use a here doc instead of a long string.
11387
11388 2009-08-21  Eric Blake  <ebb9@byu.net>
11389
11390         test-popen-safer: split from test-popen
11391         * tests/test-popen.c (main): Move...
11392         * tests/test-popen.h: ...into new file.
11393         * tests/test-popen-safer2.c: New file.
11394         * modules/popen-tests (Files): Add test-popen.h.
11395         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11396         Suggested by Bruno Haible.
11397
11398         test-fcntl-safer: split from test-open
11399         * tests/test-open.c (main): Move...
11400         * tests/test-open.h: ...into new file.
11401         * tests/test-fcntl-safer.c: New file.
11402         * modules/open-tests (Files): Add test-open.h.
11403         * modules/fcntl-safer-tests: New file.
11404         Suggested by Bruno Haible.
11405
11406         test-fopen-safer: split from test-fopen
11407         * tests/test-fopen.c (main): Move...
11408         * tests/test-fopen.h: ...into new file.
11409         * tests/test-fopen-safer.c: New file.
11410         * modules/fopen-tests (Files): Add test-fopen.h.
11411         * modules/fopen-safer-tests: New file.
11412         Suggested by Bruno Haible.
11413
11414 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11415
11416         popen-safer: test O_CLOEXEC at run-time.
11417         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11418
11419 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11420
11421         fcntl: move more flags to the header
11422         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11423         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11424         * lib/fcntl.in.h: Do both things here.
11425
11426 2009-08-21  Jim Meyering  <meyering@redhat.com>
11427
11428         consistently remove $@-t before redirecting to it
11429         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11430         * modules/alloca-opt: Likewise.
11431         * modules/byteswap: Likewise.
11432         * modules/fnmatch: Likewise.
11433         * modules/getopt-posix: Likewise.
11434         * modules/glob: Likewise.
11435         * modules/poll: Likewise.
11436         * modules/posix_spawnp-tests: Likewise.
11437         * modules/sys_socket: Likewise.
11438         * modules/sysexits: Likewise.
11439
11440 2009-08-21  Eric Blake  <ebb9@byu.net>
11441
11442         popen: simplify access to original popen
11443         * lib/popen.c (rpl_popen): No need to worry about popen being a
11444         macro.
11445         Reported by Bruno Haible.
11446
11447 2009-08-20  Eric Blake  <ebb9@byu.net>
11448
11449         build: avoid some compiler warnings
11450         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11451         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11452         type.
11453         (new_exclude_segment, excluded_file_pattern_p)
11454         (excluded_file_name_p): Reduce scope.
11455         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11456         old-style declaration.
11457
11458 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11459
11460         * tests/test-exclude1.sh: Handle Windows EOL.
11461         * tests/test-exclude2.sh: Likewise.
11462         * tests/test-exclude3.sh: Likewise.
11463         * tests/test-exclude4.sh: Likewise.
11464         * tests/test-exclude5.sh: Likewise.
11465         * tests/test-exclude6.sh: Likewise.
11466         * tests/test-exclude7.sh: Likewise.
11467
11468 2009-08-19  Akim Demaille  <demaille@gostai.com>
11469
11470         bootstrap: find sha1sum when named gsha1sum.
11471         * bootstrap (find_tool): New.
11472         ($SHA1SUM): New.
11473         Use it.
11474
11475 2009-08-20  Jim Meyering  <meyering@redhat.com>
11476
11477         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11478         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11479         expression that converts "." in a file name to "\." in the resulting
11480         regexp.  Start with a dummy statement, so that prior shell variable
11481         definitions are expanded portably.  Reported by Simon Josefsson.
11482
11483 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11484
11485         Fix polling for writeability of a screen buffer.
11486         * lib/poll.c: Distinguish input and screen buffers for the
11487         Win32 implementation.
11488         * lib/select.c: Likewise.
11489
11490 2009-08-19  Eric Blake  <ebb9@byu.net>
11491
11492         popen-safer: prevent popen from clobbering std descriptors
11493         * modules/popen-safer: New file.
11494         * lib/popen-safer.c: Likewise.
11495         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11496         * lib/stdio--.h (popen): Provide override.
11497         * lib/stdio-safer.h (popen_safer): Provide declaration.
11498         * tests/test-popen.c (includes): Partially test this.
11499         * modules/popen-safer-tests: New file, for more tests.
11500         * tests/test-popen-safer.c: Likewise.
11501         * MODULES.html.sh (file stream based Input/Output): Mention it.
11502
11503         tests: test some of the *-safer modules
11504         * modules/fopen-safer (Depends-on): Add fopen.
11505         * modules/fcntl-safer (Depends-on): Add fcntl.
11506         * modules/stdlib-safer (Depends-on): Add stdlib.
11507         (configure.ac): Set indicator.
11508         * modules/unistd-safer (configure.ac): Likewise.
11509         * modules/tmpfile-safer (configure.ac): Likewise.
11510         (Depends-on): Add tmpfile.
11511         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11512         active.
11513         * tests/test-fopen.c (includes): Test safer versions when they are
11514         in use.
11515         * tests/test-open.c (includes): Likewise.
11516
11517         popen: fix cygwin 1.5 bug when stdin closed
11518         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11519         * modules/popen: New file.
11520         * modules/popen-tests: Likewise.
11521         * tests/test-popen.c: Likewise.
11522         * m4/popen.m4: Likewise.
11523         * lib/popen.c: Likewise.
11524         * lib/stdio.in.h (popen): New declaration.
11525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11526         * modules/stdio (Makefile.am): Likewise.
11527         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11528
11529 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11530
11531         maint.mk: give full control over update-copyright exclusions
11532         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11533         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11534         (update-copyright): Don't force inclusion of top-level
11535         ChangeLog.  Don't force exclusion of all COPYING files, but make
11536         them the default exclusion instead.
11537
11538 2009-08-16  Bruno Haible  <bruno@clisp.org>
11539
11540         Fix test failures on Solaris 10.
11541         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11542         tests when Solaris iconv() is used.
11543         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11544         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11545         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11546         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11547         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11548
11549 2009-08-16  Bruno Haible  <bruno@clisp.org>
11550
11551         Fix test failures on Solaris 10.
11552         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11553         'tr' program and pass it as first argument.
11554         * tests/test-pipe-filter-gi1.sh: Likewise.
11555         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11556         program as first argument.
11557         * tests/test-pipe-filter-gi1.c (main): Likewise.
11558
11559 2009-08-16  Eric Blake  <ebb9@byu.net>
11560
11561         fpurge: fix previous commits
11562         * modules/fpurge (Makefile.am): Make replacement conditional,
11563         partially reverting 2007-04-29 change; missed in previous
11564         attempt.
11565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11566         is missing.
11567
11568 2009-08-16  Bruno Haible  <bruno@clisp.org>
11569
11570         Clarify fpurge's effect on the file position.
11571         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11572         * tests/test-fpurge.c (main): Make a second pass for checking the file
11573         position.
11574
11575 2009-08-16  Bruno Haible  <bruno@clisp.org>
11576
11577         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11578         declaration of fpurge is missing.
11579         * tests/test-fpurge.c (main): Check that the file has not more contents
11580         than expected. Close the file before removing it.
11581
11582 2009-08-15  Eric Blake  <ebb9@byu.net>
11583
11584         fpurge: don't wrap working cygwin implementation
11585         * lib/fpurge.c (fpurge): Fix comment typo.
11586         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11587         1.7 to avoid replacement.
11588         * tests/test-fpurge.c (main): Enhance test.
11589
11590 2009-08-15  Eric Blake  <ebb9@byu.net>
11591         and Jim Meyering  <meyering@redhat.com>
11592
11593         test-update-copyright: skip if perl is insufficient
11594         * tests/test-update-copyright.sh: Failure to run maintainer tool
11595         should not cause testsuite failure on cygwin 1.5.
11596
11597 2009-08-14  Eric Blake  <ebb9@byu.net>
11598
11599         doc: mention more functions added in cygwin 1.7.0
11600         * doc/posix-headers/limits.texi (limits.h): Update for recent
11601         cygwin additions.
11602         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11603         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11604         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11605         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11606         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11607
11608 2009-08-14  Eric Blake  <ebb9@byu.net>
11609
11610         maint.mk: simplify update-copyright rule
11611         * top/maint.mk (update-copyright-local): Delete, and document how
11612         to do it in cfg.mk instead.
11613         (update-copyright-exclude-regexp): Delete, and document how to do
11614         it in .x-update-copyright instead.
11615         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11616         exclude ChangeLog.
11617
11618 2009-08-14  Bruno Haible  <bruno@clisp.org>
11619
11620         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11621
11622 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11623
11624         maint.mk: support update-copyright-env
11625         * top/maint.mk (update-copyright-env): Define place-holder.
11626         (update-copyright): Expand $(update-copyright-env) before
11627         invoking update-copyright.
11628
11629 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11630
11631         update-copyright: implement forced reformatting
11632         * build-aux/update-copyright: Implement and document
11633         UPDATE_COPYRIGHT_FORCE.
11634         * tests/test-update-copyright.sh: Test it.
11635
11636 2009-08-14  Eric Blake  <ebb9@byu.net>
11637         and Bruno Haible  <bruno@clisp.org>
11638
11639         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11640         * tests/test-locale.c: Revert previous patch related to NULL.
11641         * tests/test-stdio.c: Likewise.
11642         * tests/test-stdlib.c: Likewise.
11643         * tests/test-string.c: Likewise.
11644         * tests/test-unistd.c: Likewise.
11645         * modules/time-tests (Depends-on): Add verify.
11646         * modules/wchar-tests (Depends-on): Likewise.
11647         * tests/test-time.c: Test for NULL compliance.
11648         * tests/test-wchar.c: Likewise.
11649         * modules/locale (Depends-on): Add stddef.
11650         * modules/stdio (Depends-on): Likewise.
11651         * modules/stdlib (Depends-on): Likewise.
11652         * modules/string (Depends-on): Likewise.
11653         * modules/time (Depends-on): Likewise.
11654         * modules/unistd (Depends-on): Likewise.
11655         * modules/wchar (Depends-on): Likewise.
11656         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11657         * lib/stdlib.in.h (includes): Likewise.
11658         * lib/string.in.h (includes): Likewise.
11659         * lib/time.in.h (includes): Likewise.
11660         * lib/unistd.in.h (includes): Likewise.
11661         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11662         replaced.
11663         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11664         * m4/stddef_h.m4: New file.
11665         * modules/stddef: Likewise.
11666         * lib/stddef.in.h: Likewise.
11667         * modules/stddef-tests: Likewise.
11668         * tests/test-stddef.c: Likewise.
11669         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11670         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11671         * doc/posix-headers/locale.texi (locale.h): Likewise.
11672         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11673         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11674         * doc/posix-headers/string.texi (string.h): Likewise.
11675         * doc/posix-headers/time.texi (time.h): Likewise.
11676         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11677         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11678
11679 2009-08-14  Eric Blake  <ebb9@byu.net>
11680
11681         doc: improve git diff of texinfo files
11682         * .gitattributes: Add rule for *.texi files, with hint on how to
11683         use it.
11684         Copied from m4, and based on a report by Bruno Haible.
11685
11686 2009-08-14  Bruno Haible  <bruno@clisp.org>
11687
11688         Disable multithread support by default on Cygwin 1.5.x for real.
11689         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11690
11691 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11692
11693         update-copyright: much ado about intervals
11694         * build-aux/update-copyright: Implement and document
11695         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11696         of copyright year intervals.
11697         Also, document UPDATE_COPYRIGHT_YEAR.
11698         * tests/test-update-copyright.sh: Test it.
11699
11700         update-copyright: convert 2-digit to 4-digit years
11701         * build-aux/update-copyright: Implement and document.
11702         * tests/test-update-copyright.sh: Update.
11703
11704 2009-08-14  Jim Meyering  <meyering@redhat.com>
11705
11706         test-exclude: avoid coreutils "make check" failure
11707         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11708         just as in test-argmatch.c.
11709
11710 2009-08-13  Eric Blake  <ebb9@byu.net>
11711
11712         test-dup2: fix bad assumption
11713         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11714         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11715
11716         test-version-etc: fix CRLF portability issue
11717         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11718         recognize \r.
11719         * tests/test-argp-version-etc-1.sh: Likewise.
11720
11721         getopt: update client modules
11722         * modules/argp (Depends-on): Use getopt-gnu.
11723         * modules/git-merge-changelog (Depends-on): Likewise.
11724         * modules/long-options (Depends-on): Likewise.
11725         * modules/xstrtol (Depends-on): Likewise.
11726
11727 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11728
11729         * tests/test-version-etc.sh: Don't fail on different
11730         project/version.  Don't fail on CRLF differences.  Rewrite to use
11731         multiple -e instead of multiple sed forks, suggested by Eric Blake
11732         <ebb9@byu.net>.
11733         * tests/test-argp-version-etc-1.sh: Likewise.
11734
11735 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11736
11737         * tests/test-version-etc.sh: Don't fail on different
11738         project/version.
11739
11740 2009-08-12  Bruno Haible  <bruno@clisp.org>
11741
11742         Tests for modules 'getopt-posix', 'getopt-gnu'.
11743         * modules/getopt-posix-tests: New file.
11744         * tests/test-getopt.c: New file.
11745         * tests/test-getopt.h: New file.
11746         * tests/test-getopt_long.h: New file.
11747
11748         New modules 'getopt-posix', 'getopt-gnu'.
11749         * modules/getopt-gnu: New file, renamed from modules/getopt.
11750         * modules/getopt-posix: New file.
11751         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11752         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11753         (gl_GETOPT): Remove macro.
11754         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11755         Disable the test against BSD systems that declare optreset. Test
11756         against mingw bug. Test against lack of support of optional arguments
11757         on many platforms.
11758         * doc/glibc-headers/getopt.texi: Update module name and list of
11759         relevant platforms.
11760         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11761         'getopt-gnu' and more portability problems.
11762         * NEWS: Mention the changes.
11763
11764 2009-08-12  Bruno Haible  <bruno@clisp.org>
11765
11766         Ensure that optarg etc. get declared by <unistd.h>.
11767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11768         AC_USE_SYSTEM_EXTENSIONS.
11769         * modules/getopt (Depends-on): Add 'extensions'.
11770
11771 2009-08-12  Bruno Haible  <bruno@clisp.org>
11772
11773         Avoid test link errors.
11774         * modules/pipe-filter-ii-tests (Makefile.am): Define
11775         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11776         * modules/pipe-filter-gi-tests (Makefile.am): Define
11777         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11779
11780 2009-08-12  Bruno Haible  <bruno@clisp.org>
11781
11782         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11783         gl_GETOPT_SUBSTITUTE before.
11784         (gl_GETOPT): Use it.
11785         * m4/argp.m4 (gl_ARGP): Update.
11786         Reported by Sergey Poznyakoff.
11787
11788         * m4/getopt.m4: Reorder macros.
11789         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11790         (gl_GETOPT_SUBSTITUTE): Remove macro.
11791
11792 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11793
11794         Minor improvement in gitlog-to-changelog
11795
11796         * build-aux/gitlog-to-changelog: New option `--format' makes
11797         output format string configurable.
11798
11799 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11800
11801         Optimize exclude: use hash tables for non-wildcard patterns.
11802
11803         * lib/exclude.c: Include hash.h and mbuiter.h
11804         (struct exclude_pattern, exclude_segment): New data types.
11805         (struct exclude): Rewrite.
11806         (fnmatch_pattern_has_wildcards): New function.
11807         (new_exclude_segment, free_exclude_segment): New functions.
11808         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11809         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11810         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11811         * modules/exclude: Depend on hash and mbuiter.
11812
11813         * modules/exclude-tests: New file.
11814         * tests/test-exclude.c: New file.
11815         * tests/test-exclude1.sh: New file.
11816         * tests/test-exclude2.sh: New file.
11817         * tests/test-exclude3.sh: New file.
11818         * tests/test-exclude4.sh: New file.
11819         * tests/test-exclude5.sh: New file.
11820         * tests/test-exclude6.sh: New file.
11821         * tests/test-exclude7.sh: New file.
11822
11823 2009-08-12  Bruno Haible  <bruno@clisp.org>
11824
11825         Ensure that getopt() gets declared by <unistd.h>.
11826         * lib/unistd.in.h: Conditionally include getopt.h.
11827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11828         Set GNULIB_UNISTD_H_GETOPT.
11829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11830         GNULIB_UNISTD_H_GETOPT.
11831         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11832
11833 2009-08-12  Bruno Haible  <bruno@clisp.org>
11834
11835         Clarify logic.
11836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11837         gl_replace_getopt instead of GETOPT_H.
11838
11839 2009-08-12  Bruno Haible  <bruno@clisp.org>
11840
11841         * m4/getopt.m4: Add comments.
11842
11843 2009-08-12  Bruno Haible  <bruno@clisp.org>
11844
11845         Disable multithread support by default on Cygwin 1.5.x.
11846         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11847         set gl_use_threads=no if not specified otherwise.
11848
11849 2009-08-11  Bruno Haible  <bruno@clisp.org>
11850
11851         Avoid compilation error on NetBSD 5.0.
11852         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11853         * tests/test-stdio.c: Likewise.
11854         * tests/test-stdlib.c: Likewise.
11855         * tests/test-string.c: Likewise.
11856         * tests/test-unistd.c: Likewise.
11857         Reported by Greg Troxel <gdt@ir.bbn.com>
11858         at <https://savannah.gnu.org/support/?106973>.
11859
11860 2009-08-11  Bruno Haible  <bruno@clisp.org>
11861
11862         * modules/dup2-tests (Depends-on): Remove close.
11863
11864         Undo 2009-07-19 commit.
11865         * modules/acl-tests (Depends-on): Remove close.
11866         * modules/binary-io-tests (Depends-on): Likewise.
11867         * modules/closein-tests (Depends-on): Likewise.
11868         * modules/flock-tests (Depends-on): Likewise.
11869         * modules/fsync-tests (Depends-on): Likewise.
11870         * modules/lseek-tests (Depends-on): Likewise.
11871         * modules/pipe-tests (Depends-on): Likewise.
11872         * modules/posix_spawn-tests (Depends-on): Likewise.
11873         * modules/posix_spawnp-tests (Depends-on): Likewise.
11874         * modules/stat-time-tests (Depends-on): Likewise.
11875         * modules/yesno-tests (Depends-on): Likewise.
11876
11877 2009-08-10  Bruno Haible  <bruno@clisp.org>
11878
11879         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11880
11881 2009-08-10  Bruno Haible  <bruno@clisp.org>
11882
11883         Fix a gcc warning.
11884         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11885
11886 2009-08-10  Bruno Haible  <bruno@clisp.org>
11887
11888         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11889         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11890         not only the first time.
11891         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11892         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11893         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11894         is 1, not only the the first time.
11895
11896 2009-08-10  Bruno Haible  <bruno@clisp.org>
11897
11898         Make it possible to use module 'gethostname' without module 'close'.
11899         * lib/unistd.in.h (close): Evoke a link error only if
11900         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11902         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11903         * modules/unistd (Makefile.am): Substitute
11904         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11905         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11906         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11907         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11908         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11909         * modules/sys_ioctl (Makefile.am): Substitute
11910         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11911         * modules/socket (configure.ac): On native Windows, set
11912         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11913         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11914         Reported by Sam Steingold <sds@gnu.org>.
11915
11916 2009-08-10  Bruno Haible  <bruno@clisp.org>
11917
11918         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11919         * modules/ioctl (configure.ac): Likewise.
11920
11921 2009-08-10  Bruno Haible  <bruno@clisp.org>
11922
11923         Avoid collision between gnulib wrapper and libintl wrapper.
11924         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11925         already defined in intl/printf.c.
11926         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11927         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11928
11929 2009-08-09  Bruno Haible  <bruno@clisp.org>
11930
11931         Make <sys/select.h> really self-contained, also on Solaris 10.
11932         * lib/sys_select.in.h: Include <string.h>.
11933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11934         Solaris 10 problem.
11935         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11936         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11937         Reported by Jim Meyering.
11938
11939 2009-08-09  Bruno Haible  <bruno@clisp.org>
11940
11941         Avoid warnings from 'aclocal' that are due to a use of macro name
11942         AM_XGETTEXT_OPTION that is not defined in automake.
11943         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11944         automake.
11945         * modules/error (configure.ac): Likewise.
11946         * modules/propername (configure.ac): Likewise.
11947         * modules/vasprintf (configure.ac): Likewise.
11948         * modules/verror (configure.ac): Likewise.
11949         * modules/xprintf (configure.ac): Likewise.
11950         * modules/xvasprintf (configure.ac): Likewise.
11951
11952 2009-08-08  Bruno Haible  <bruno@clisp.org>
11953
11954         Avoid compilation error in C++ mode.
11955         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11956         Reported by Sam Steingold <sds@gnu.org>.
11957
11958 2009-08-08  Bruno Haible  <bruno@clisp.org>
11959
11960         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11961         for the various Unix platforms.
11962         * doc/posix-headers/limits.texi: Update platforms list regarding
11963         HOST_NAME_MAX.
11964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11965
11966 2009-08-07  Jim Meyering  <meyering@redhat.com>
11967
11968         selinux-at: fix typo in a comment
11969         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11970         Spotted by Paolo Bonzini.
11971
11972         selinux-at: remove redundant m4 code, add documentation
11973         * modules/selinux-at (configure.ac): Remove redundant code.
11974         LIB_SELINUX is already set via the dependent module, selinux-h.
11975         (Include): Add quotes around selinux-at.h.
11976         * lib/selinux-at.h: Add documentation.
11977         Reported by Bruno Haible in
11978         http://marc.info/?l=gnulib-bug&m=124958988300749
11979
11980 2009-08-07  Bruno Haible  <bruno@clisp.org>
11981
11982         Avoid link error on MacOS X 10.3 and 10.4.
11983         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11984         on non-ELF systems.
11985         * lib/argp-pv.c (argp_program_version): Likewise.
11986         Reported by Simon Josefsson.
11987
11988 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11989
11990         * tests/test-version-etc.sh: Use $EXEEXT.
11991
11992 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11993
11994         update-copyright: update documentation to point to maint.mk
11995         * build-aux/update-copyright: Here.
11996
11997 2009-08-06  Jim Meyering  <meyering@redhat.com>
11998
11999         maint.mk: support update-copyright-local
12000         * top/maint.mk (update-copyright-local): Define place-holder.
12001         (update-copyright): Depend on $(update-copyright-local).
12002
12003 2009-08-06  Jim Meyering  <meyering@redhat.com>
12004
12005         selinux-at: new module
12006         Initially written for coreutils, this module will soon be
12007         used by findutils, too.
12008         * MODULES.html.sh [Misc]: Add selinux-at.
12009         * lib/selinux-at.h: New file, from coreutils.
12010         * lib/selinux-at.c: Likewise.
12011         * modules/selinux-at: Likewise.
12012         (License): Change from LGPL to GPL, since it depends
12013         on the GPL'd openat module.
12014
12015         doc: update README
12016         * README: Remove references to cogito.
12017         Remove cvs-repo-updating instructions from 2007.
12018         Don't imply that CVS is better if you have limited disk space.
12019
12020 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12021
12022         update-copyright: support C-style comments
12023         * build-aux/update-copyright: Implement and document.
12024         * tests/test-update-copyright.sh: Test.
12025
12026 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12027
12028         update-copyright: support omitted "(C)"
12029         * build-aux/update-copyright: Implement and document.  Also,
12030         allow variable whitespace before "(C)".
12031         * tests/test-update-copyright.sh: Test.
12032
12033 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12034
12035         update-copyright: don't trip on non-FSF copyright statements
12036         * build-aux/update-copyright: Fix so that the first correctly
12037         formatted FSF copyright statement is recognized no matter what
12038         appears before it.  Update documentation.
12039         * tests/test-update-copyright.sh: Test that.
12040
12041 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12042
12043         update-copyright: clean up code a little
12044         * build-aux/update-copyright: Append "_re" to the name of any
12045         variable holding a regular expression.
12046         Replace "old" and "new" with "stmt" in variable names.
12047         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12048         handled correctly.
12049         Format code more consistently.
12050
12051 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12052
12053         update-copyright-tests: improve portability
12054         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12055         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12056
12057 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12058
12059         update-copyright: support @copyright{} and &copy;
12060         * build-aux/update-copyright: Implement and document.
12061         * tests/test-update-copyright.sh: Test.
12062
12063 2009-08-04  Jim Meyering  <meyering@redhat.com>
12064
12065         update-copyright-tests: correctly test EOL=\r\n handling
12066         * tests/test-update-copyright.sh: Put \r at the end of some lines
12067         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12068
12069         maint.mk: make update-copyright exclusion list more configurable
12070         * top/maint.mk (update-copyright): Default to excluding COPYING,
12071         but allow an override, in case someone does want to update that file.
12072
12073         maint.mk: don't update copyright date in COPYING
12074         * top/maint.mk (update-copyright): Exclude COPYING.
12075
12076         maint.mk: add a copyright-updating rule
12077         * top/maint.mk (update-copyright): New rule.
12078         Derived from coreutils/Makefile.am.
12079
12080         update-copyright: rename some variables
12081         * build-aux/update-copyright: Rename a few variables for clarity.
12082         Tweak syntax.  List Joel E. Denny as coauthor.
12083
12084 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12085
12086         update-copyright: fix bug for 2-digit last year and add tests
12087         * build-aux/update-copyright: Fix bug.
12088         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12089         specified.
12090         * modules/update-copyright-tests: New
12091         * tests/test-update-copyright.sh: New.
12092
12093 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12094
12095         update-copyright: handle leading tabs in line prefix
12096         * build-aux/update-copyright: Count leading tabs as 8 spaces
12097         when computing margin.  This helps with the formatting of
12098         ChangeLogs, for example.
12099         Fix documentation a little.
12100
12101 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12102
12103         update-copyright: support EOL=\r\n
12104         * build-aux/update-copyright: Implement that.
12105
12106 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12107
12108         update-copyright: automatically format copyright statements
12109         * build-aux/update-copyright: Implement that.
12110         Also, be a little more predictable and safer by always failing
12111         when the full copyright format is not perfectly recognized as an
12112         unbroken whole.  Discussed at
12113         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12114         Rewrite documentation.
12115
12116 2009-08-03  Bruno Haible  <bruno@clisp.org>
12117
12118         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12119
12120 2009-08-02  Bruno Haible  <bruno@clisp.org>
12121
12122         Tests for module 'uname'.
12123         * modules/uname-tests: New file.
12124         * tests/test-uname.c: New file.
12125
12126         New module 'uname'.
12127         * lib/uname.c: New file.
12128         * m4/uname.m4: New file.
12129         * modules/uname: New file.
12130         * doc/posix-functions/uname.texi: Mention the new module.
12131
12132 2009-08-02  Bruno Haible  <bruno@clisp.org>
12133
12134         Tests for module 'sys_utsname'.
12135         * modules/sys_utsname-tests: New file.
12136         * tests/test-sys_utsname.c: New file.
12137
12138         New module 'sys_utsname'.
12139         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12140         * m4/sys_utsname_h.m4: New file.
12141         * modules/sys_utsname: New file.
12142         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12143
12144 2009-08-02  Bruno Haible  <bruno@clisp.org>
12145
12146         Implicitly initialize the sockets library.
12147         * lib/gethostname.c: Include sockets.h.
12148         (rpl_gethostname): Invoke gl_sockets_startup.
12149         * lib/socket.c: Include sockets.h.
12150         (rpl_socket): Invoke gl_sockets_startup.
12151         * modules/gethostname (Depends-on): Add sockets.
12152         * modules/socket (Depends-on): Likewise.
12153         * tests/test-poll.c: Don't include sockets.h.
12154         (main): Don't invoke gl_sockets_startup.
12155         * tests/test-select.c: Don't include sockets.h.
12156         (main): Don't invoke gl_sockets_startup.
12157
12158 2009-08-02  Bruno Haible  <bruno@clisp.org>
12159
12160         Allow multiple calls to gl_sockets_startup.
12161         * lib/sockets.c (initialized_sockets_version): New variable.
12162         (gl_sockets_startup): Do nothing if already called for this or a higher
12163         version.
12164         (gl_sockets_cleanup): Reset initialized_sockets_version.
12165
12166 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12167
12168         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12169         different project/version.
12170
12171 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12172             Bruno Haible  <bruno@clisp.org>
12173
12174         Tests for module 'pipe-filter-gi'.
12175         * modules/pipe-filter-gi-tests: New file.
12176         * tests/test-pipe-filter-gi1.sh: New file.
12177         * tests/test-pipe-filter-gi1.c: New file.
12178         * tests/test-pipe-filter-gi2.sh: New file.
12179         * tests/test-pipe-filter-gi2-main.c: New file.
12180         * tests/test-pipe-filter-gi2-child.c: New file.
12181
12182         New module 'pipe-filter-gi'.
12183         * lib/pipe-filter-gi.c: New file.
12184         * modules/pipe-filter-gi: New file.
12185
12186 2009-08-02  Bruno Haible  <bruno@clisp.org>
12187             Paolo Bonzini  <bonzini@gnu.org>
12188
12189         Tests for module 'pipe-filter-ii'.
12190         * modules/pipe-filter-ii-tests: New file.
12191         * tests/test-pipe-filter-ii1.sh: New file.
12192         * tests/test-pipe-filter-ii1.c: New file.
12193         * tests/test-pipe-filter-ii2.sh: New file.
12194         * tests/test-pipe-filter-ii2-main.c: New file.
12195         * tests/test-pipe-filter-ii2-child.c: New file.
12196
12197         New module 'pipe-filter-ii'.
12198         * lib/pipe-filter.h: New file.
12199         * lib/pipe-filter-ii.c: New file.
12200         * lib/pipe-filter-aux.h: New file.
12201         * modules/pipe-filter-ii: New file.
12202
12203 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12204
12205         * lib/gc-libgcrypt.c: Change copyright to FSF.
12206         * lib/gc-gnulib.c: Likewise.
12207
12208 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12209
12210         * lib/gethostname.c: Include limits.h.
12211
12212 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12213             Bruno Haible  <bruno@clisp.org>
12214
12215         Ensure HOST_NAME_MAX as part of the gethostname module.
12216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12217         define also HOST_NAME_MAX.
12218         * tests/test-gethostname.c: Include <limits.h>.
12219         (main): Check also HOST_NAME_MAX.
12220         * doc/posix-headers/limits.texi: Document the mingw problem.
12221
12222 2009-08-02  Bruno Haible  <bruno@clisp.org>
12223
12224         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12225         Add comments.
12226
12227 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12228
12229         * lib/gethostname.c: Add Windows wrapper.
12230         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12231         * modules/gethostname: Depend on sys_socket & errno, for also
12232         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12233         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12234
12235 2009-07-31  Jim Meyering  <meyering@redhat.com>
12236
12237         getloadavg: fix symbol name in comment
12238         * lib/getloadavg.c: Correct a typo I introduced when adding
12239         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12240         Matt Kraai spotted the problem.
12241
12242 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12243
12244         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12245         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12246         code also if ! defined N_NAME_POINTER.
12247         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12248         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12249         but the n_name member is a 12-byte array.
12250
12251 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12252
12253         update-copyright: generalize comment handling
12254         * build-aux/update-copyright: Handle copyright statements
12255         within more comment styles.
12256         Document usage.
12257         Report any file with an external copyright holder or parse failure.
12258
12259 2009-07-29  Jim Meyering  <meyering@redhat.com>
12260
12261         mktime: correct setting of REPLACE_MKTIME
12262         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12263
12264         update-copyright: new module
12265         * modules/update-copyright: New file.
12266         * build-aux/update-copyright: New file.
12267         * MODULES.html.sh (maint+release support): Add update-copyright.
12268
12269 2009-07-27  Bruno Haible  <bruno@clisp.org>
12270
12271         Fix compilation error when <ctime> is used and mktime is replaced.
12272         * lib/time.in.h (mktime): New declaration.
12273         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12274         REPLACE_MKTIME instead of defining mktime in config.h.
12275         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12276         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12277         Reported by Ross McFarland <rwmcfa1@neces.com>.
12278
12279 2009-07-27  Bruno Haible  <bruno@clisp.org>
12280
12281         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12282         Reported by Matt Kraai <mkraai@beckman.com>.
12283
12284 2009-07-25  Jim Meyering  <meyering@redhat.com>
12285
12286         maint.mk: avoid warnings about missing files
12287         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12288         diagnostic when .prev-version does not exist.
12289         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12290         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12291         nonexistent cfg.mk.
12292         Suggestions from Simon Josefsson.
12293
12294 2009-07-25  Bruno Haible  <bruno@clisp.org>
12295
12296         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12297         defined as macros. Needed on QNX 6.4.1.
12298         Reported by Matt Kraai <mkraai@beckman.com>.
12299
12300 2009-07-23  Jim Meyering  <meyering@redhat.com>
12301
12302         maint.mk: invoke "make dist" with a working value of XZ_OPT
12303         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12304
12305 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12306
12307         Make fseeko.c compile on QNX.
12308         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12309
12310 2009-07-22  Peter Simons  <simons@cryp.to>
12311
12312         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12313         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12314         * lib/md4.h: Likewise.
12315         * lib/md5.h: Likewise.
12316         * lib/sha1.h: Likewise.
12317         * lib/sha256.h: Likewise.
12318         * lib/sha512.h: Likewise.
12319
12320         tests-sha1: don't assign literal string to 'char *' variable
12321         * tests/test-sha1.c (main): Declare locals with "const" to match
12322         attributes of the right hand side.
12323
12324 2009-07-21  Eric Blake  <ebb9@byu.net>
12325
12326         dup2: fix more mingw problems
12327         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12328         fd to itself.
12329         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12330         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12331         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12332         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12333         care of mingw bugs.
12334
12335 2009-07-21  Jim Meyering  <meyering@redhat.com>
12336
12337         vc-list-files: avoid failure when /bin/sh is dash
12338         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12339         On some Debian based systems, /bin/sh is a symlink to dash, and running
12340         this command would omit the "/" following each 'tests' prefix:
12341           dash -x build-aux/vc-list-files -C . tests
12342         That is because bash and dash work differently:
12343           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12344           bash ok
12345           dash odd
12346
12347 2009-07-21  Eric Blake  <ebb9@byu.net>
12348
12349         dup2-tests: test previous patch
12350         * modules/dup2-tests: New file.
12351         * tests/test-dup2.c: Likewise.
12352         * tests/test-open.c (main): Avoid unspecified behavior.
12353         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12354         test.
12355
12356         dup2: work around mingw and cygwin 1.5 bug
12357         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12359         * modules/unistd (Makefile.am): Substitute it.
12360         * lib/unistd.in.h (dup2): Declare the replacement.
12361         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12362         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12363         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12364         * modules/execute (Depends-on): Add dup2.
12365         * modules/fseterr (Depends-on): Likewise.
12366         * modules/pipe (Depends-on): Likewise.
12367         * modules/posix_spawn-internal (Depends-on): Likewise.
12368
12369 2009-07-21  Bruno Haible  <bruno@clisp.org>
12370
12371         * modules/.gitattributes: New file.
12372
12373 2009-07-20  Bruno Haible  <bruno@clisp.org>
12374
12375         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12376         (main): Use it.
12377
12378 2009-07-20  Eric Blake  <ebb9@byu.net>
12379
12380         test-pipe: make a bit more robust.
12381         * tests/test-pipe.c (myerr): Allow error messages regardless of
12382         what we do to stderr.
12383         (test_pipe): Rearrange to avoid deadlock.
12384         (child_main): Try a larger read, to ensure we avoided deadlock.
12385         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12386         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12387         if misused.
12388
12389 2009-07-19  Jim Meyering  <meyering@redhat.com>
12390
12391         fts: avoid false-positive cycle-detection
12392         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12393         for each new command line argument.
12394
12395 2009-07-19  Bruno Haible  <bruno@clisp.org>
12396
12397         Fix build error on mingw with the modules sys_select and unistd.
12398         * modules/acl-tests (Depends-on): Add close.
12399         * modules/binary-io-tests (Depends-on): Likewise.
12400         * modules/closein-tests (Depends-on): Likewise.
12401         * modules/flock-tests (Depends-on): Likewise.
12402         * modules/fsync-tests (Depends-on): Likewise.
12403         * modules/lseek-tests (Depends-on): Likewise.
12404         * modules/pipe-tests (Depends-on): Likewise.
12405         * modules/posix_spawn-tests (Depends-on): Likewise.
12406         * modules/posix_spawnp-tests (Depends-on): Likewise.
12407         * modules/stat-time-tests (Depends-on): Likewise.
12408         * modules/yesno-tests (Depends-on): Likewise.
12409
12410 2009-07-19  Bruno Haible  <bruno@clisp.org>
12411
12412         Unify conditionals.
12413         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12414         macros, not at the compiler macros.
12415         * lib/pipe.c: Likewise.
12416         * lib/execute.c: Likewise.
12417         * lib/spawni.c: Likewise.
12418
12419 2009-07-19  Bruno Haible  <bruno@clisp.org>
12420
12421         Fix handling of closed stdin/stdout/stderr on mingw.
12422         * lib/w32spawn.h: Include unistd.h.
12423         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12424         file descriptor with O_NOINHERIT flag.
12425         (fd_safer_noinherit): New function, based on fd-safer.c.
12426         (dup_safer_noinherit): New function, based on dup-safer.c.
12427         (undup_safer_noinherit): New function.
12428         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12429         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12430         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12431         instead of fd_safer.
12432         * tests/test-pipe.c: Include <windows.h>.
12433         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12434
12435         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12436         from main.
12437         (test_pipe): Pass an extra argument for disambiguation.
12438         (main): Invoke parent_main or child_main.
12439
12440         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12441         consistently.
12442
12443 2009-07-18  Eric Blake  <ebb9@byu.net>
12444
12445         test-pipe: fix mingw build
12446         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12447
12448 2009-07-18  Bruno Haible  <bruno@clisp.org>
12449
12450         * modules/pipe-tests (Makefile.am): Fix typo.
12451
12452 2009-07-18  Eric Blake  <ebb9@byu.net>
12453
12454         error: fix mingw build
12455         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12456         Reported by Bruno Haible.
12457
12458         error: avoid undefined use of stdout
12459         * lib/error.c (error, error_at_line): Check that fd 1 is open
12460         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12461         is handling faults and the close_stdout module wants to report the
12462         detection of closed stdout as an error.
12463
12464 2009-07-17  Eric Blake  <ebb9@byu.net>
12465
12466         pipe: be robust in face of closed fds
12467         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12468         should cause child to misbehave.
12469         * modules/pipe-tests: New module.
12470         * tests/test-pipe.c: New file.
12471         * tests/test-pipe.sh: New file.
12472         Reported by Akim Demaille.
12473
12474 2009-07-14  Bruno Haible  <bruno@clisp.org>
12475
12476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12477         Reported by anonymous kc.
12478
12479 2009-07-07  Jim Meyering  <meyering@redhat.com>
12480
12481         maint.mk: don't look for translatable strings in *.m4 or *.mk
12482         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12483         when searching for translatable strings.
12484
12485 2009-07-05  Jim Meyering  <meyering@redhat.com>
12486
12487         remove superfluous parentheses in STREQ definition
12488         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12489         * lib/getugroups.c (STREQ): Likewise.
12490         * lib/fnmatch.c (STREQ): Likewise.
12491         Spotted by Bruno Haible.
12492
12493 2009-07-04  Jim Meyering  <meyering@redhat.com>
12494
12495         argv-iter: new module
12496         * MODULES.html.sh: Add argv-iter.
12497         * lib/argv-iter.c, lib/argv-iter.h: New files.
12498         * modules/argv-iter: New file.
12499         * modules/argv-iter-tests: New file.
12500         * tests/test-argv-iter.c: Test it.
12501
12502 2009-07-04  Bruno Haible  <bruno@clisp.org>
12503
12504         Fix assertion.
12505         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12506         contains more exact copies of a given entry than file2, leave the extra
12507         copies unpaired rather than aborting.
12508         Reported by Eric Blake.
12509
12510 2009-07-02  Bruno Haible  <bruno@clisp.org>
12511
12512         Speedup git-merge-changelog for git cherry-pick.
12513         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12514         (entries_mapping_get): New function, extracted from compute_mapping.
12515         (entries_mapping_reverse_get): New function.
12516         (compute_mapping): Add a 'full' argument. Return the result in a
12517         'struct entries_mapping'.
12518         (main): Update. Access the mappings through entries_mapping_get.
12519         Reported by Eric Blake.
12520
12521 2009-07-02  Bruno Haible  <bruno@clisp.org>
12522
12523         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12524         best_i.
12525
12526 2009-07-02  Bruno Haible  <bruno@clisp.org>
12527
12528         Speed up approximate search for matching ChangeLog entries.
12529         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12530         argument. Call fstrcmp_bounded instead of fstrcmp.
12531         (compute_mapping, try_split_merged_entry, main): Update callers.
12532
12533 2009-07-02  Bruno Haible  <bruno@clisp.org>
12534
12535         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12536
12537 2009-06-30  Bruno Haible  <bruno@clisp.org>
12538
12539         Reduce the number of uc_is_cased calls.
12540         * lib/unicase.h (casing_suffix_context_t): Add
12541         'first_char_except_ignorable' field.
12542         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12543         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12544         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12545         Update initializer.
12546         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12547         case-ignorable characters.
12548         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12549         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12550         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12551         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12552         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12553
12554 2009-06-30  Bruno Haible  <bruno@clisp.org>
12555
12556         Tests for module 'unicase/ignorable'.
12557         * modules/unicase/ignorable-tests: New file.
12558         * tests/unicase/test-ignorable.c: New file, generated by
12559         gen-uni-tables.
12560
12561         Tests for module 'unicase/cased'.
12562         * modules/unicase/cased-tests: New file.
12563         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12564         * tests/unicase/test-predicate-part1.h: New file, derived from
12565         tests/unictype/test-predicate-part1.h.
12566         * tests/unicase/test-predicate-part2.h: New file, same as
12567         tests/unictype/test-predicate-part2.h.
12568
12569         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12570         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12571         (output_casing_properties): New function.
12572         (main): Call it.
12573         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12574         * lib/unicase/cased.c: Include unictype/bitmap.h.
12575         (uc_is_cased): Define through a bitmap lookup.
12576         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12577         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12578         (uc_is_case_ignorable): Define through a bitmap lookup.
12579         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12580         lib/unictype/bitmap.h.
12581         (Depends-on): Add inline. Clean up.
12582         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12583         lib/unictype/bitmap.h.
12584         (Depends-on): Add inline. Clean up.
12585         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12586         recognition.
12587         * tests/unicase/test-u16-tolower.c (main): Likewise.
12588         * tests/unicase/test-u32-tolower.c (main): Likewise.
12589
12590 2009-06-30  Bruno Haible  <bruno@clisp.org>
12591
12592         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12593         * lib/unicase/u16-casemap.c: Likewise.
12594         * lib/unicase/u32-casemap.c: Likewise.
12595
12596 2009-06-29  Bruno Haible  <bruno@clisp.org>
12597
12598         Define u32_casefold as a wrapper around u32_ct_casefold.
12599         * lib/unicase/u32-casefold.c: Update.
12600         * modules/unicase/u32-casefold (Depends-on): Add
12601         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12602         unicase/empty-suffix-context. Clean up.
12603
12604         Define u16_casefold as a wrapper around u16_ct_casefold.
12605         * lib/unicase/u16-casefold.c: Update.
12606         * modules/unicase/u16-casefold (Depends-on): Add
12607         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12608         unicase/empty-suffix-context. Clean up.
12609
12610         Define u8_casefold as a wrapper around u8_ct_casefold.
12611         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12612         * lib/unicase/u8-casefold.c: Update.
12613         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12614         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12615
12616         Define u32_totitle as a wrapper around u32_ct_totitle.
12617         * lib/unicase/u32-totitle.c: Update.
12618         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12619         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12620
12621         Define u16_totitle as a wrapper around u16_ct_totitle.
12622         * lib/unicase/u16-totitle.c: Update.
12623         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12624         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12625
12626         Define u8_totitle as a wrapper around u8_ct_totitle.
12627         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12628         functions.
12629         (FUNC): Delegate to U_CT_TOTITLE.
12630         * lib/unicase/u8-totitle.c: Update.
12631         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12633
12634         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12635         invocation.
12636         * modules/unicase/u32-tolower (Depends-on): Add
12637         unicase/empty-prefix-context, unicase/empty-suffix-context.
12638
12639         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12640         invocation.
12641         * modules/unicase/u16-tolower (Depends-on): Add
12642         unicase/empty-prefix-context, unicase/empty-suffix-context.
12643
12644         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12645         * modules/unicase/u8-tolower (Depends-on): Add
12646         unicase/empty-prefix-context, unicase/empty-suffix-context.
12647
12648         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12649         invocation.
12650         * modules/unicase/u32-toupper (Depends-on): Add
12651         unicase/empty-prefix-context, unicase/empty-suffix-context.
12652
12653         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12654         invocation.
12655         * modules/unicase/u16-toupper (Depends-on): Add
12656         unicase/empty-prefix-context, unicase/empty-suffix-context.
12657
12658         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12659         * modules/unicase/u8-toupper (Depends-on): Add
12660         unicase/empty-prefix-context, unicase/empty-suffix-context.
12661
12662         New module 'unicase/u32-ct-casefold'.
12663         * lib/unicase/u32-ct-casefold.c: New file.
12664         * modules/unicase/u32-ct-casefold: New file.
12665
12666         New module 'unicase/u16-ct-casefold'.
12667         * lib/unicase/u16-ct-casefold.c: New file.
12668         * modules/unicase/u16-ct-casefold: New file.
12669
12670         New module 'unicase/u8-ct-casefold'.
12671         * lib/unicase/u8-ct-casefold.c: New file.
12672         * lib/unicase/u-ct-casefold.h: New file, derived from
12673         lib/unicase/u-casefold.h.
12674         * modules/unicase/u8-ct-casefold: New file.
12675
12676         New module 'unicase/u32-ct-totitle'.
12677         * lib/unicase/u32-ct-totitle.c: New file.
12678         * modules/unicase/u32-ct-totitle: New file.
12679
12680         New module 'unicase/u16-ct-totitle'.
12681         * lib/unicase/u16-ct-totitle.c: New file.
12682         * modules/unicase/u16-ct-totitle: New file.
12683
12684         New module 'unicase/u8-ct-totitle'.
12685         * lib/unicase/u8-ct-totitle.c: New file.
12686         * lib/unicase/u-ct-totitle.h: New file, derived from
12687         lib/unicase/u-totitle.h.
12688         * modules/unicase/u8-ct-totitle: New file.
12689
12690         New module 'unicase/u32-ct-tolower'.
12691         * lib/unicase/u32-ct-tolower.c: New file.
12692         * modules/unicase/u32-ct-tolower: New file.
12693
12694         New module 'unicase/u16-ct-tolower'.
12695         * lib/unicase/u16-ct-tolower.c: New file.
12696         * modules/unicase/u16-ct-tolower: New file.
12697
12698         New module 'unicase/u8-ct-tolower'.
12699         * lib/unicase/u8-ct-tolower.c: New file.
12700         * modules/unicase/u8-ct-tolower: New file.
12701
12702         New module 'unicase/u32-ct-toupper'.
12703         * lib/unicase/u32-ct-toupper.c: New file.
12704         * modules/unicase/u32-ct-toupper: New file.
12705
12706         New module 'unicase/u16-ct-toupper'.
12707         * lib/unicase/u16-ct-toupper.c: New file.
12708         * modules/unicase/u16-ct-toupper: New file.
12709
12710         New module 'unicase/u8-ct-toupper'.
12711         * lib/unicase/u8-ct-toupper.c: New file.
12712         * modules/unicase/u8-ct-toupper: New file.
12713
12714         Add context arguments to u*_casemap functions.
12715         * lib/unicase/unicasemap.h: Include unicase.h.
12716         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12717         suffix_context arguments.
12718         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12719         functions.
12720         (FUNC): Add prefix_context and suffix_context arguments. Use
12721         uc_is_cased and uc_is_case_ignorable.
12722         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12723         * lib/unicase/u16-casemap.c: Likewise.
12724         * lib/unicase/u32-casemap.c: Likewise.
12725         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12726         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12727         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12728         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12729         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12730         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12731
12732         New module 'unicase/u32-suffix-context'.
12733         * lib/unicase/u32-suffix-context.c: New file.
12734         * modules/unicase/u32-suffix-context: New file.
12735
12736         New module 'unicase/u16-suffix-context'.
12737         * lib/unicase/u16-suffix-context.c: New file.
12738         * modules/unicase/u16-suffix-context: New file.
12739
12740         New module 'unicase/u8-suffix-context'.
12741         * lib/unicase/u8-suffix-context.c: New file.
12742         * lib/unicase/u-suffix-context.h: New file.
12743         * modules/unicase/u8-suffix-context: New file.
12744
12745         New module 'unicase/empty-suffix-context'.
12746         * lib/unicase/empty-suffix-context.c: New file.
12747         * modules/unicase/empty-suffix-context: New file.
12748
12749         New module 'unicase/u32-prefix-context'.
12750         * lib/unicase/u32-prefix-context.c: New file.
12751         * modules/unicase/u32-prefix-context: New file.
12752
12753         New module 'unicase/u16-prefix-context'.
12754         * lib/unicase/u16-prefix-context.c: New file.
12755         * modules/unicase/u16-prefix-context: New file.
12756
12757         New module 'unicase/u8-prefix-context'.
12758         * lib/unicase/u8-prefix-context.c: New file.
12759         * lib/unicase/u-prefix-context.h: New file.
12760         * lib/unicase/context.h: New file.
12761         * modules/unicase/u8-prefix-context: New file.
12762
12763         New module 'unicase/empty-prefix-context'.
12764         * lib/unicase/empty-prefix-context.c: New file.
12765         * modules/unicase/empty-prefix-context: New file.
12766
12767         New module 'unicase/ignorable'.
12768         * lib/unicase/ignorable.c: New file.
12769         * modules/unicase/ignorable: New file.
12770
12771         New module 'unicase/cased'.
12772         * lib/unicase/caseprop.h: New file.
12773         * lib/unicase/cased.c: New file.
12774         * modules/unicase/cased: New file.
12775
12776         New functions for case mapping of substrings.
12777         * lib/unicase.h (casing_prefix_context_t): New type.
12778         (unicase_empty_prefix_context): New variable.
12779         (u8_casing_prefix_context, u16_casing_prefix_context,
12780         u32_casing_prefix_context, u8_casing_prefixes_context,
12781         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12782         declarations.
12783         (casing_suffix_context_t): New type.
12784         (unicase_empty_suffix_context): New variable.
12785         (u8_casing_suffix_context, u16_casing_suffix_context,
12786         u32_casing_suffix_context, u8_casing_suffixes_context,
12787         u16_casing_suffixes_context, u32_casing_suffixes_context,
12788         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12789         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12790         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12791         declarations.
12792
12793 2009-06-28  Jim Meyering  <meyering@redhat.com>
12794
12795         boostrap: indent only with spaces
12796         * build-aux/bootstrap: Indent only with spaces, never TABs.
12797
12798         bootstrap: split long lines
12799         * build-aux/bootstrap: Keep line length < 80.
12800
12801         bootstrap: sync from coreutils
12802         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12803         just as autoreconf does.  Verify a list of prerequisite
12804         package-name,version-number pairs if defined in bootstrap.conf.
12805         Refer to README-prereq, if prerequisites are not satisfied.
12806
12807 2009-06-27  Eric Blake  <ebb9@byu.net>
12808
12809         tests: add test for bogus NULL definition
12810         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12811         * tests/test-stdlib.c: Likewise.
12812         * tests/test-string.c: Likewise.
12813         * tests/test-locale.c: Likewise.
12814         * tests/test-unistd.c: Likewise.
12815         * modules/stdio-tests (Depends-on): Add verify.
12816         * modules/stdlib-tests (Depends-on): Likewise.
12817         * modules/string-tests (Depends-on): Likewise.
12818         * modules/locale-tests (Depends-on): Likewise.
12819         * modules/unistd-tests (Depends-on): Likewise.
12820
12821 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12822
12823         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12824         self-explaining comment.
12825         * m4/selinux-selinux-h: Update serial.
12826         (gl_LIBSELINUX): New macro, adding a warning for missing development
12827         packages to code extracted from...
12828         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12829         Add warning for missing development packages here, too.
12830
12831 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12832
12833         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12834
12835 2009-06-25  Eric Blake  <ebb9@byu.net>
12836
12837         version-etc: fix regression
12838         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12839         gcc.
12840         (version_etc): Use it, to catch bugs with trailing NULL.
12841         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12842         (version_etc_va): Fix logic bug.
12843         * modules/version-etc-tests: Add test.
12844         * tests/test-version-etc.c: New file.
12845         * tests/test-version-etc.sh: Likewise.
12846
12847 2009-06-25  Sam Steingold  <sds@gnu.org>
12848
12849         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12850         mbtowc declaration.
12851
12852 2009-06-25  Eric Blake  <ebb9@byu.net>
12853
12854         fpurge: migrate into <stdio.h>
12855         * lib/fpurge.h: Delete...
12856         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12857         * lib/fpurge.c (fpurge): Change declaring header.
12858         * modules/fpurge (Files): Drop deleted file.
12859         (Depends-on): Add stdio.
12860         (configure.ac): Set witness.
12861         * modules/stdio (Makefile.am): Support fpurge macros.
12862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12863         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12864         * lib/fflush.c: Update client.
12865         * tests/test-fpurge.c: Likewise.
12866         * NEWS: Mention the change.
12867
12868 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12869
12870         * lib/argp-version-etc.c (program_authors): Add const
12871         qualifier.
12872         * lib/version-etc.c: Fix typos in the comments.
12873         * modules/argp-version-etc: Depends on version-etc.
12874
12875 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12876
12877         argp-version-etc: new module.
12878
12879         * lib/argp-version-etc.c: New file.
12880         * lib/argp-version-etc.h: New file.
12881         * modules/argp-version-etc: New file.
12882         * modules/argp-version-etc-tests: New file.
12883         * tests/test-argp-version-etc.c: New test.
12884         * tests/test-argp-version-etc-1.sh: New test.
12885
12886 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12887
12888         Provide additional interfaces and documentation for version-etc
12889         module.
12890
12891         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12892         interfaces.
12893         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12894         prototypes.
12895
12896 2009-06-24  Bruno Haible  <bruno@clisp.org>
12897
12898         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12899         HAVE_LIB${NAME} macro.
12900         Reported by Sam Steingold <sds@gnu.org>.
12901
12902 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12903
12904         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12905         needed.
12906
12907 2009-06-21  Bruno Haible  <bruno@clisp.org>
12908
12909         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12910         work.
12911         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12912         together with LIB${NAME}, LTLIB${NAME}.
12913         Reported by Sam Steingold <sds@gnu.org>.
12914
12915 2009-06-20  Jim Meyering  <meyering@redhat.com>
12916
12917         tests: make sc_require_test_exit_idiom more generic
12918         * top/maint.mk (Exit_witness_file): New overridable variable.
12919         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12920         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12921
12922 2009-06-19  Jim Meyering  <meyering@redhat.com>
12923
12924         hash: reverse order of src/dst parameters in an internal interface
12925         * lib/hash.c (transfer_entries): Reverse order of parameters to
12926         put DST before SRC.  Adjust callers.
12927
12928         tests: test-hash: avoid wholesale duplication
12929         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12930         Instead, use a loop and add a single conditional.
12931
12932         tests: test-hash: allow seed selection via a command line argument
12933         * tests/test-hash.c (get_seed): New function.
12934         (main): Use it.
12935
12936 2009-06-19  Eric Blake  <ebb9@byu.net>
12937
12938         hash: avoid memory leak on allocation failure
12939         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12940         failure.  Factor repeated algorithm...
12941         (transfer_entries): ...into new helper routine.
12942         (hash_delete): React to hash_rehash return value.
12943
12944         hash: reduce memory pressure in hash_rehash no-op case
12945         * lib/hash.c (next_prime): Avoid overflow.
12946         (hash_initialize): Factor bucket size computation...
12947         (compute_bucket_size): ...into new helper function.
12948         (hash_rehash): Use new function and open coding to reduce memory
12949         pressure, and avoid a memory leak in USE_OBSTACK code.
12950         Reported by Jim Meyering.
12951
12952 2009-06-18  Eric Blake  <ebb9@byu.net>
12953
12954         hash: make rotation more obvious
12955         * modules/hash (Depends-on): Add bitrotate and stdint.
12956         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12957         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12958         (SIZE_MAX): Rely on headers for definition.
12959         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12960         (raw_hasher): Use rotr_sz.
12961         Suggested by Jim Meyering.
12962
12963         hash: fix memory leak in last patch
12964         * lib/hash.c (hash_rehash): Avoid memory leak.
12965
12966         hash: avoid no-op rehashing
12967         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12968
12969         hash: provide default callback functions
12970         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12971         (hash_initialize): Use them as defaults.
12972         * tests/test-hash.c (main): Test this.
12973
12974         hash: minor optimization
12975         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12976         when possible.
12977         (hash_initialize): Document this promise.
12978         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12979         * tests/test-hash.c (hash_compare_strings): Test this.
12980
12981 2009-06-18  Bruno Haible  <bruno@clisp.org>
12982
12983         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12984         going to be replaced anyway.
12985
12986 2009-06-18  Bruno Haible  <bruno@clisp.org>
12987
12988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12989         in one place.
12990         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12991         be replaced anyway.
12992
12993 2009-06-18  Eric Blake  <ebb9@byu.net>
12994
12995         hash: check for resize before insertion
12996         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12997         threshold before insertion, so that a pathological hash_rehash
12998         that fills every bucket can still trigger another rehash.
12999
13000 2009-06-18  Jim Meyering  <meyering@redhat.com>
13001
13002         hash-tests: add a loop around the small tests
13003         * tests/test-hash.c (main): Repeat small tests with selected
13004         small initial table sizes.
13005
13006 2009-06-17  Eric Blake  <ebb9@byu.net>
13007
13008         hash: minor cleanups
13009         * lib/hash.h (hash_entry): Make opaque, by moving...
13010         * lib/hash.c (hash_entry): ...here.
13011         (hash_insert): Clarify restrictions on what can be inserted.
13012         (hash_get_next): Clarify when it is safe to remove an element
13013         during traversal.
13014         (check_tuning): Skip verification when tuning is known safe.
13015         (hash_initialize): Clarify restrictions on tuning.
13016
13017 2009-06-17  Jim Meyering  <jim@meyering.net>
13018         and Eric Blake  <ebb9@byu.net>
13019
13020         hash-tests: new module
13021         * modules/hash-tests: New file.
13022         * tests/test-hash.c: New file.
13023
13024 2009-06-17  Eric Blake  <ebb9@byu.net>
13025
13026         strstr-simple: document new module
13027         * MODULES.html.sh: Document new module.
13028
13029         strstr, strcasestr: replace on platforms with broken memchr
13030         * modules/strstr: Split into...
13031         * modules/strstr-simple: ...new module that does not care about
13032         performance, but does care about glibc bug.
13033         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13034         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13035         if platform memchr is broken, per Debian bug 521737.
13036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13037         memchr.
13038         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13039         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13040         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13041         * modules/mountlist (Depends-on): Add strstr-simple.
13042         * modules/gen-uni-tables (Depends-on): Likewise.
13043         * modules/argz (Depends-on): Add strstr.
13044
13045 2009-06-17  Bruno Haible  <bruno@clisp.org>
13046
13047         * modules/posix_spawn-internal (Depends-on): Add errno.
13048
13049 2009-06-17  Bruno Haible  <bruno@clisp.org>
13050
13051         Define missing ESTALE on Interix 3.5.
13052         * lib/errno.in.h (ESTALE): Assign a value if missing.
13053         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13054         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13055         missing.
13056         * doc/posix-headers/errno.texi: Mention the Interix bug.
13057         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13058
13059 2009-06-15  Eric Blake  <ebb9@byu.net>
13060
13061         memchr, memchr2: add valgrind exception
13062         * lib/memchr.valgrind: New file.
13063         * lib/memchr2.valgrind: New file.
13064         * modules/memchr (Files): Distribute valgrind file.
13065         * modules/memchr2 (Files): Likewise.
13066
13067         docs: memchr is no longer obsolete
13068         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13069         * lib/string.in.h (memchr): Simplify logic.
13070
13071 2009-06-14  Jim Meyering  <meyering@redhat.com>
13072
13073         link-follow: fix the "checking..." message to not mention trailing slash
13074         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13075         never considered trailing slashes.
13076
13077 2009-06-14  Bruno Haible  <bruno@clisp.org>
13078
13079         * m4/memchr.m4: Mention also the bug on IA-64.
13080         * doc/posix-functions/memchr.texi: Likewise.
13081
13082 2009-06-12  Eric Blake  <ebb9@byu.net>
13083
13084         memchr: detect broken x86_64 and alpha implementations
13085         * modules/memchr-tests (Depends-on): Move mmap detection...
13086         * modules/memchr (Depends-on): ...here.
13087         (configure.ac): Set indicator.
13088         * lib/string.in.h (memchr): Declare replacement.
13089         * modules/string (Makefile.am): Trigger replacement.
13090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13091         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13092         bugs.
13093         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13094         * modules/getpagesize (License): Relax license.
13095
13096 2009-06-11  Bruno Haible  <bruno@clisp.org>
13097
13098         * lib/idpriv.h: Add more references.
13099
13100 2009-06-08  Bruno Haible  <bruno@clisp.org>
13101
13102         Tests for module 'idpriv-droptemp'.
13103         * modules/idpriv-droptemp-tests: New file.
13104         * tests/test-idpriv-droptemp.sh: New file.
13105         * tests/test-idpriv-droptemp.su.sh: New file.
13106         * tests/test-idpriv-droptemp.c: New file.
13107
13108         New module 'idpriv-droptemp'.
13109         * lib/idpriv-droptemp.c: New file.
13110         * modules/idpriv-droptemp: New file.
13111
13112 2009-06-08  Bruno Haible  <bruno@clisp.org>
13113
13114         Tests for module 'idpriv-drop'.
13115         * modules/idpriv-drop-tests: New file.
13116         * tests/test-idpriv-drop.sh: New file.
13117         * tests/test-idpriv-drop.su.sh: New file.
13118         * tests/test-idpriv-drop.c: New file.
13119
13120         New module 'idpriv-drop'.
13121         * lib/idpriv.h: New file.
13122         * lib-idpriv-drop.c: New file.
13123         * m4/idpriv.m4: New file.
13124         * modules/idpriv-drop: New file.
13125
13126 2009-06-08  Bruno Haible  <bruno@clisp.org>
13127
13128         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13129         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13130         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13131         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13132         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13133         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13134         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13135
13136 2009-06-08  Eric Blake  <ebb9@byu.net>
13137
13138         test-strstr: use memory fence, when possible
13139         * tests/test-strstr.c (main): Use memory fence, in order to be
13140         more likely to trigger Debian bug 521737.
13141         * modules/strstr-tests (Files): Pull in additional files.
13142
13143         memchr: no longer obsolete, for wider field testing
13144         * modules/memchr (Status, Notice): Delete, this module is no
13145         longer obsolete.
13146         * modules/vasnprintf (Depends-on): Add memchr.
13147
13148 2009-06-07  Jim Meyering  <meyering@redhat.com>
13149
13150         hash: declare some functions with the warn_unused_result attribute
13151         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13152
13153 2009-06-07  Bruno Haible  <bruno@clisp.org>
13154
13155         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13156         Reported by Eric Blake.
13157
13158 2009-06-06  Eric Blake  <ebb9@byu.net>
13159
13160         test-alignof: fix typo with long double
13161         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13162         compiler error.
13163
13164 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13165
13166         Escape non-texinfo { and }s.
13167         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13168         markup error.
13169
13170 2009-06-04  Jim Meyering  <meyering@redhat.com>
13171
13172         gitlog-to-changelog: don't infloop on an empty commit log
13173         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13174         Reported by Boris Petersen <transacid@centerim.org>.
13175
13176 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13177
13178         version-etc: extend for packagers
13179         Add three new configure options, intended for packagers:
13180           --with-packager="packager name"
13181           --with-packager-version="packager-specific version"
13182           --with-packager-bug-reports="packager bug reporting"
13183         An example with coreutils:
13184           $ ./configure \
13185             --with-packager=Gentoo \
13186             --with-packager-bug-report=http://bugs.gentoo.org/ \
13187             --with-packager-version="patchset 1.6"
13188           $ ./src/ls --version | head -n2
13189           ls (GNU coreutils) 7.1-dirty
13190           Packaged by Gentoo (patchset 1.6)
13191         Note that the bug reporting info via --help doesn't show up because
13192         coreutils uses its own custom emit_bug_reporting_address() implementation
13193         in src/system.h.  If it didn't, it'd look like:
13194           $ ./src/ls --help | tail -n4
13195           Report bugs to <bug-coreutils@gnu.org>.
13196           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13197           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13198           General help using GNU software: <http://www.gnu.org/gethelp/>.
13199         * lib/version-etc.c: Print new information, if provided.
13200         * m4/version-etc.m4: New file.
13201         * modules/version-etc (Files): Add m4/version-etc.m4.
13202         (configure.ac): Add gl_VERSION_ETC.
13203
13204 2009-05-31  Bruno Haible  <bruno@clisp.org>
13205
13206         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13207         and 'int64_t'.
13208         * modules/alignof-tests (Dependencies): Add stdint.
13209         Reported by Eric Blake.
13210
13211 2009-05-31  Bruno Haible  <bruno@clisp.org>
13212
13213         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13214         restriction due to compiler bugs.
13215         Reported by Eric Blake.
13216
13217 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13218             Bruno Haible  <bruno@clisp.org>
13219
13220         Fix test-alignof failure.
13221         * lib/alignof.h (alignof_slot): New macro.
13222         (alignof_type): New macro, with the same semantics as the previous
13223         'alignof'.
13224         (alignof): Alias to alignof_slot.
13225         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13226         check that the results are usable as constant expressions.
13227
13228 2009-05-31  Bruno Haible  <bruno@clisp.org>
13229
13230         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13231         * tests/test-memchr.c (main): Check that memchr does not read past the
13232         first occurrence of the byte.
13233         * tests/test-strstr.c (main): Update comment.
13234         Suggested by Eric Blake.
13235
13236 2009-05-30  Bruno Haible  <bruno@clisp.org>
13237
13238         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13239         detail how to use dumpbin.
13240         Reported by David Byron <dbyron@dbyron.com>.
13241
13242 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13243
13244         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13245
13246 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13247
13248         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13249
13250 2009-05-28  Bruno Haible  <bruno@clisp.org>
13251
13252         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13253         build-aux/ files.
13254
13255 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13256
13257         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13258
13259 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13260
13261         * gnulib-tool (sed_transform_main_lib_file)
13262         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13263         regexps.
13264
13265 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13266
13267         * tests/test-strstr.c: Add another self-test.
13268         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13269         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13270
13271 2009-05-23  Bruno Haible  <bruno@clisp.org>
13272
13273         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13274         change.
13275
13276 2009-05-21  Bruno Haible  <bruno@clisp.org>
13277
13278         Simplify use of mode_t varargs.
13279         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13280         uses 'mode_t' or 'int'.
13281         * lib/openat.c (openat): Likewise.
13282         * lib/open-safer.c (open_safer): Likewise.
13283         * m4/mode_t.m4: New file.
13284         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13285         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13286         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13287         * modules/open (Files): Add m4/mode_t.m4.
13288         * modules/openat (Files): Likewise.
13289         * modules/fcntl-safer (Files): Likewise.
13290         Suggested by Eric Blake.
13291
13292 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13293
13294         * doc/glibc-functions/fallocate.texi: New file.
13295         * doc/gnulib.texi: Include it.
13296
13297 2009-05-21  Eric Blake  <ebb9@byu.net>
13298             Bruno Haible  <bruno@clisp.org>
13299
13300         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13301         invocations.
13302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13303
13304 2009-05-21  Eric Blake  <ebb9@byu.net>
13305             Bruno Haible  <bruno@clisp.org>
13306
13307         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13308         include_next. Fix of 2008-11-20 commit.
13309         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13310         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13311         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13312         NEXT_MATH_H.
13313         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13314         instead of NEXT_MATH_H.
13315
13316 2009-05-21  Bruno Haible  <bruno@clisp.org>
13317
13318         Avoid redefinition warnings for SIZE_MAX.
13319         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13320         Reported by Simon Josefsson.
13321
13322 2009-05-21  Bruno Haible  <bruno@clisp.org>
13323
13324         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13325         AC_CACHE_VAL.
13326
13327 2009-05-20  Bruno Haible  <bruno@clisp.org>
13328
13329         Make zeroptr.h work on mingw.
13330         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13331         mprotect.
13332         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13333         * modules/memchr2-tests (configure.ac): Likewise.
13334         * modules/memcmp-tests (configure.ac): Likewise.
13335         * modules/memmem-tests (configure.ac): Likewise.
13336         * modules/memrchr-tests (configure.ac): Likewise.
13337         Reported by Simon Josefsson.
13338
13339 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13340
13341         * tests/test-glob.c: Include string.h for strcmp prototype.
13342
13343 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13344
13345         * modules/getdelim (Depends-on): Add explicit stdint, although it
13346         was implicitly already pulled in via realloc-posix.
13347         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13348
13349 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13350
13351         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13352         G. Christensen" <tgc@jupiterrise.com>.
13353         * m4/sys_socket_h.m4: Check for sa_family_t.
13354         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13355         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13356         * tests/test-sys_socket.c: Check that sa_family_t works.
13357
13358 2009-05-18  Eric Blake  <ebb9@byu.net>
13359
13360         maint.mk: allow gnulib_dir in VPATH build
13361         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13362
13363 2009-05-15  Jim Meyering  <meyering@redhat.com>
13364
13365         maint.mk: Give gnulib_dir a default definition.
13366         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13367         Thus, most packages no longer need to specify this variable in cfg.mk
13368
13369 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13370
13371         rename.m4: fix typos that would make non-mingw cross-configure fail
13372         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13373
13374 2009-05-13  Eric Blake  <ebb9@byu.net>
13375
13376         mmap-anon: avoid out-of-order autoconf expansion
13377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13378         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13379         * modules/memchr-tests (Depends-on): Add extensions.
13380         * modules/memchr2-tests (Depends-on): Add extensions.
13381         * modules/memcmp-tests (Depends-on): Add extensions.
13382         * modules/memmem-tests (Depends-on): Add extensions.
13383         * modules/memrchr-tests (Depends-on): Add extensions.
13384
13385 2009-05-13  Bruno Haible  <bruno@clisp.org>
13386
13387         Make some tests ISO C 99 compliant.
13388         * tests/zerosize-ptr.h: New file.
13389         * tests/test-memchr.c: Include zerosize-ptr.h.
13390         (main): Use a zero-size object pointer instead of NULL.
13391         * tests/test-memchr2.c: Include zerosize-ptr.h.
13392         (main): Use a zero-size object pointer instead of NULL.
13393         * tests/test-memcmp.c: Include zerosize-ptr.h.
13394         (main): Use a zero-size object pointer instead of NULL.
13395         * tests/test-memmem.c: Include zerosize-ptr.h.
13396         (main): Use a zero-size object pointer instead of NULL.
13397         * tests/test-memrchr.c: Include zerosize-ptr.h.
13398         (main): Use a zero-size object pointer instead of NULL.
13399         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13400         m4/mmap-anon.m4.
13401         (Depends-on): Add getpagesize.
13402         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13403         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13404         m4/mmap-anon.m4.
13405         (Depends-on): Add getpagesize.
13406         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13407         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13408         m4/mmap-anon.m4.
13409         (Depends-on): Add getpagesize.
13410         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13411         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13412         m4/mmap-anon.m4.
13413         (Depends-on): Add getpagesize.
13414         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13415         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13416         m4/mmap-anon.m4.
13417         (Depends-on): Add getpagesize.
13418         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13419
13420 2009-05-12  Bruno Haible  <bruno@clisp.org>
13421
13422         Tests for module 'alignof'.
13423         * modules/alignof-tests: New file.
13424         * tests/test-alignof.c: New file.
13425
13426 2009-05-12  Bruno Haible  <bruno@clisp.org>
13427
13428         Fix alignof macro.
13429         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13430         vendor compilers that are always correct.
13431
13432 2009-05-12  Bruno Haible  <bruno@clisp.org>
13433
13434         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13435         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13436         not whether its fully works.
13437
13438 2009-05-12  Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13441
13442 2009-05-12  Jim Meyering  <meyering@redhat.com>
13443
13444         * top/maint.mk: Adjust backslash alignment.
13445
13446 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13447
13448         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13449
13450 2009-05-11  Eric Blake  <ebb9@byu.net>
13451
13452         argp: avoid undefined behavior
13453         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13454         macros.
13455
13456 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13457
13458         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13459         user.name to prevent git commit from complaining.
13460
13461 2009-05-10  Bruno Haible  <bruno@clisp.org>
13462
13463         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13464         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13465         it rewrites every file name only once.
13466         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13467
13468 2009-05-08  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13471         instead of 'max'.
13472
13473 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13474
13475         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13476         sockaddr_storage test.
13477
13478 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13479
13480         * modules/sys_socket (Makefile.am): Substitute
13481         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13482         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13483         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13484         * tests/test-sys_socket.c: Check sockaddr_storage.
13485
13486 2009-05-08  Bruno Haible  <bruno@clisp.org>
13487
13488         New module 'alignof'.
13489         * lib/alignof.h: New file.
13490         * modules/alignof: New file.
13491
13492 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13493             Bruno Haible  <bruno@clisp.org>
13494
13495         Fix test-file-has-acl on FreeBSD.
13496         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13497         mask is implicitly added.
13498         * tests/test-file-has-acl.c: Include <signal.h>.
13499         (main): Terminate the test after 5 seconds.
13500         * modules/acl-tests (configure.ac): Check for alarm function.
13501
13502 2009-05-04  Bruno Haible  <bruno@clisp.org>
13503
13504         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13506         * modules/errno (configure.ac): Drop AC_REQUIRE.
13507         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13508         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13509
13510 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13511
13512         * modules/glob-tests: New module.
13513         * tests/test-glob.c: Add.
13514
13515 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13516
13517         * modules/fnmatch-tests: New module.
13518         * tests/test-fnmatch.c: Add.
13519
13520 2009-05-04  Eric Blake  <ebb9@byu.net>
13521
13522         maint: make the new no-submodule-changes rule VPATH-safe
13523         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13524
13525 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13526             Bruno Haible  <bruno@clisp.org>
13527
13528         acl: Fix infinite loop on FreeBSD.
13529         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13530         of return value from acl_get_entry.
13531         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13532         Likewise.
13533
13534 2009-05-03  Bruno Haible  <bruno@clisp.org>
13535
13536         * lib/acl-internal.h (acl_entries): Clarify return value.
13537         * lib/acl_entries.c (acl_entries): Likewise.
13538
13539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13540
13541         Bug fix in acl module.
13542         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13543
13544 2009-05-03  Bruno Haible  <bruno@clisp.org>
13545
13546         Create gperf-generated file in the source dir, not in the build dir.
13547         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13548         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13549         * modules/unicase/locale-language (unicase/locale-languages.h):
13550         Likewise.
13551         * modules/unicase/special-casing (unicase/special-casing-table.h):
13552         Likewise.
13553         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13554         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13555         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13556         Reported by Ralf Wildenhues.
13557
13558 2009-05-03  Bruno Haible  <bruno@clisp.org>
13559
13560         * modules/fnmatch (Description, configure.ac): Taken from
13561         fnmatch-posix.
13562         * modules/fnmatch-posix: Turn into a symbolic reference to the
13563         'fnmatch' module, and deprecate.
13564         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13565
13566 2009-05-03  Bruno Haible  <bruno@clisp.org>
13567
13568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13569         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13570         Reported by Ralf Wildenhues.
13571
13572 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13573
13574         * m4/fnmatch.m4: Fix fnmatch re-define.
13575
13576 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13577
13578         priv-set: new module and tests; adapt write-any-file
13579         * lib/priv-set.c: New file.
13580         * lib/priv-set.h: New file.
13581         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13582         * lib/write-any-file.c: Simplify by using priv-set module.
13583         * m4/priv-set.m4: New file.
13584         * modules/priv-set: New file.
13585         * modules/unlinkdir: Add dependency on priv-set module.
13586         * modules/write-any-file: Likewise.
13587
13588         Tests for module 'priv-set'.
13589         * modules/priv-set-tests: New file.
13590         * tests/test-priv-set.c: New file.
13591
13592 2009-05-03  Jim Meyering  <meyering@redhat.com>
13593             Bruno Haible  <bruno@clisp.org>
13594
13595         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13596         use the converted UTF-8 variant of the name instead.
13597
13598 2009-05-03  Jim Meyering  <meyering@redhat.com>
13599
13600         tests: tighten some getdate tests
13601         * tests/test-getdate.c (main): Tighten tests: require equality,
13602         not just greater than.  Set TZ envvar to UTC0.
13603
13604 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13605
13606         getdate: correctly interpret "next monday" when run on a Monday
13607         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13608         that e.g., "next tues" (when run on a tuesday) results in a date
13609         that is one week in the future, and not today's date.
13610         I.e., add a week when the wday is the same as the current one.
13611         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13612         and earlier by Martin Bernreuther and Jan Minář.
13613         * tests/test-getdate.c (main): Check that "next DAY" is always in
13614         the future and that "last DAY" is always in the past.
13615
13616 2009-05-02  Jim Meyering  <meyering@redhat.com>
13617
13618         build: ensure that a release build fails when a submodule is unclean
13619         * top/maint.mk (no-submodule-changes): New rule.
13620         (alpha beta major): Depend on it.
13621
13622 2009-05-02  Bruno Haible  <bruno@clisp.org>
13623
13624         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13626         shell variable gl_fnmatch_required to detect which variant is
13627         requested.
13628         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13629         gl_FUNC_FNMATCH_POSIX.
13630         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13631         exclude fnmatch-posix.
13632
13633 2009-05-02  Bruno Haible  <bruno@clisp.org>
13634
13635         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13636         * modules/mbsrtowcs (License): Change to LGPLv2+.
13637         * modules/strnlen1 (License): Likewise.
13638         Reported by Simon Josefsson.
13639
13640 2009-05-02  Bruno Haible  <bruno@clisp.org>
13641
13642         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13643         "cross".
13644         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13645         gnulib-tool was called with option --source-base=lib.
13646
13647 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13648
13649         Use automake *-local hooks without commands, for extensibility.
13650         * modules/localcharset (Makefile.am): Rename install-exec-local
13651         rule to install-exec-localcharset, and make it a prerequisite of
13652         install-exec-local.  Likewise, rename the uninstall-local rule to
13653         uninstall-localcharset, and make it a prerequisite of the former.
13654
13655 2009-05-01  Bruno Haible  <bruno@clisp.org>
13656
13657         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13658         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13659         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13661         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13662         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13663         m4/locale-zh.m4, m4/codeset.m4.
13664
13665         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13666         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13667         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13668         m4/locale-zh.m4.
13669
13670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13671         REPLACE_WCRTOMB if mbstate_t must be replaced.
13672         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13673         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13674
13675 2009-05-01  Bruno Haible  <bruno@clisp.org>
13676
13677         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13678         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13679         dngettext, dcngettext, textdomain, bindtextdomain,
13680         bind_textdomain_codeset): Undefine before redefining.
13681
13682 2009-04-30  Bruno Haible  <bruno@clisp.org>
13683
13684         Fix bug introduced on 2009-04-25.
13685         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13686         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13687         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13688         is defined.
13689         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13690         is defined.
13691         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13692         is defined.
13693         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13694
13695 2009-04-28  Bruno Haible  <bruno@clisp.org>
13696
13697         Comment tweaks.
13698         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13699         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13700         * lib/unicase.h (u*_casexfrm): Likewise.
13701         Reported by Paolo Bonzini.
13702
13703 2009-04-28  Bruno Haible  <bruno@clisp.org>
13704
13705         Fix a compilation error.
13706         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13707         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13708         Reported by Jim Meyering.
13709
13710 2009-04-27  Bruno Haible  <bruno@clisp.org>
13711
13712         New module 'libunistring'.
13713         * modules/libunistring: New file.
13714         * m4/libunistring.m4: New file.
13715         * MODULES.html.sh (Unicode string functions): Add it.
13716
13717 2009-04-27  Eric Blake  <ebb9@byu.net>
13718
13719         maint.mk: allow package-specific header to provide <config.h>
13720         * top/maint.mk (sc_require_config_h): New variable.
13721         (sc_require_config_h, sc_require_config_h_first): Use it.
13722
13723 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13724
13725         * top/maint.mk (sc_avoid_if_before_free): Except
13726         useless-if-before-free script.
13727
13728 2009-04-27  Eric Blake  <ebb9@byu.net>
13729
13730         maintainer-makefile: depend on all required helper scripts
13731         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13732         useless-if-before-free.
13733         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13734         version, rather than assuming gnulib checkout is available.
13735         Reported by Simen Josefsson.
13736
13737 2009-04-26  Bruno Haible  <bruno@clisp.org>
13738
13739         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13740         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13741         "../" or "..".
13742
13743 2009-04-26  Bruno Haible  <bruno@clisp.org>
13744
13745         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13746         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13747         AC_LIB_HAVE_LINKFLAGS.
13748
13749 2009-04-26  Bruno Haible  <bruno@clisp.org>
13750
13751         Simplify calling convention of u*_conv_from_encoding.
13752         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13753         u32_conv_from_encoding): Expect a resultbuf argument and return the
13754         result directly as a pointer.
13755         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13756         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13757         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13758         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13759         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13760         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13761         Update.
13762         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13763         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13764         * lib/vasnprintf.c (VASNPRINTF): Update.
13765         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13766         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13767         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13768         * NEWS: Mention the change.
13769
13770 2009-04-26  Bruno Haible  <bruno@clisp.org>
13771
13772         Simplify calling convention of u*_conv_to_encoding.
13773         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13774         u32_conv_to_encoding): Expect a resultbuf argument and return the
13775         result directly as a pointer.
13776         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13777         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13778         freeing scaled_offsets if mem_iconveha failed.
13779         * lib/unicase/u-casexfrm.h (FUNC): Update.
13780         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13781         * lib/vasnprintf.c (VASNPRINTF): Update.
13782         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13783         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13784         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13785         * NEWS: Mention the change.
13786
13787 2009-04-26  Bruno Haible  <bruno@clisp.org>
13788
13789         Avoid test failures on AIX and OSF/1.
13790         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13791         malloc(0).
13792         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13793         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13794         Likewise.
13795         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13796         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13797         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13798         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13799         * doc/posix-functions/malloc.texi: Document the portability problem
13800         related to malloc(0).
13801
13802 2009-04-26  Bruno Haible  <bruno@clisp.org>
13803
13804         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13805         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13806         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13807
13808 2009-04-25  Bruno Haible  <bruno@clisp.org>
13809
13810         Avoid link error when creating a namespace clean library.
13811         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13812         as macro with arguments if already defined as an alias.
13813         * lib/signbitf.c (gl_signbitf): Don't undefine.
13814         * lib/signbitd.c (gl_signbitd): Don't undefine.
13815         * lib/signbitl.c (gl_signbitl): Don't undefine.
13816
13817 2009-04-25  Jim Meyering  <meyering@redhat.com>
13818
13819         vc-list-files: fix another quoting bug
13820         * build-aux/vc-list-files: Avoid sed backslash expansion
13821         of pathological directory names.
13822
13823 2009-04-25  Eric Blake  <ebb9@byu.net>
13824
13825         vc-list-files: fix shell quoting error
13826         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13827         timestamp.
13828
13829 2009-04-25  Jim Meyering  <meyering@redhat.com>
13830
13831         vc-list-files: restore lost functionality with subdir argument
13832         * build-aux/vc-list-files: When given a non-"." sub-directory
13833         argument, substitute the $dir/ prefix back onto each resulting name.
13834         Otherwise, coreutils' root_tests check would fail.
13835
13836 2009-04-24  Eric Blake  <ebb9@byu.net>
13837
13838         vc-list-files: ignore git symlinks
13839         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13840         than ls-files, to ignore git symlinks.
13841
13842         maint.mk: import improvements from m4
13843         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13844         (move_if_change): Delete unused macro.
13845         (news-date-check, vc-diff-check): Support VPATH builds.
13846         (announcement): Likewise.  Split --bootstrap-tools list...
13847         (boostrap-tools): ...into separate list, which can be overridden
13848         in cfg.mk.
13849         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13850         requiring dependency on useless-if-before-free module.
13851         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13852         Support VPATH builds.
13853
13854 2009-04-24  Jim Meyering  <meyering@redhat.com>
13855
13856         maint.mk: remove coreutils-specific rules and variables
13857         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13858         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13859         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13860
13861         maint.mk: remove obsolete rule
13862         * top/maint.mk (rel-check): Remove rule.
13863         (WGET, WGETFLAGS): Remove now-unused variables.
13864
13865 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13866
13867         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13868         consistency.
13869
13870         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13871         '$(PATH_SEPARATOR)' instead of ':'.
13872
13873 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13874
13875         * lib/getopt1.c (main): Use 'const' for static array.
13876
13877 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13878
13879         * top/maint.mk: Sync with coreutils.
13880         * NEWS: Explain incompatibilities.
13881
13882 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13883             Bruno Haible  <bruno@clisp.org>
13884
13885         Fix cross-compilation results.
13886         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13887         statement, as third argument of AC_TRY_RUN.
13888         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13889         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13890         Likewise.
13891         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13892         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13893         Likewise.
13894         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13895         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13896         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13897
13898 2009-04-20  Bruno Haible  <bruno@clisp.org>
13899
13900         Avoid test failure on mingw.
13901         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13902
13903 2009-04-20  Bruno Haible  <bruno@clisp.org>
13904
13905         Avoid compilation error on mingw.
13906         * modules/localename-tests (Depends-on): Add locale.
13907
13908 2009-04-19  Bruno Haible  <bruno@clisp.org>
13909
13910         Support for building a shared library on Windows platforms.
13911         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13912         (main): Test the presence of UNINORM_NFC here.
13913         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13914         (main): Test the presence of UNINORM_NFD here.
13915         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13916         (main): Test the presence of UNINORM_NFKC here.
13917         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13918         (main): Test the presence of UNINORM_NFKD here.
13919
13920 2009-04-19  Bruno Haible  <bruno@clisp.org>
13921
13922         Avoid a compiler warning.
13923         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13924         Change type of variable 'sequence'.
13925
13926 2009-04-19  Bruno Haible  <bruno@clisp.org>
13927
13928         * modules/configmake (Makefile.am): When the contents of configmake.h
13929         does not change, arrange to preserve its modification time.
13930
13931 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13932
13933         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13934         gettext domain.
13935
13936 2009-04-16  Jim Meyering  <meyering@redhat.com>
13937
13938         useless-if-before-free: improve conversion code
13939         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13940         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13941
13942 2009-04-14  Bruno Haible  <bruno@clisp.org>
13943
13944         * modules/fcntl (Depends-on): Add extensions.
13945         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13946
13947 2009-04-12  Ben Pfaff  <blp@gnu.org>
13948
13949         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13950         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13951
13952 2009-03-20  Ben Pfaff  <blp@gnu.org>
13953
13954         Make rename replace existing destinations on Windows.
13955         * m4/rename.m4: Add test for Mingw.
13956         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13957         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13958         * doc/posix-functions/rename.texi: Document.
13959
13960 2009-04-10  Bruno Haible  <bruno@clisp.org>
13961
13962         New include file "iconveh.h".
13963         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13964         * lib/striconveh.h: Include it.
13965         (enum iconv_ilseq_handler): Remove definition.
13966         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13967         striconveh.h.
13968         * lib/striconveha.c: Include striconveh.h.
13969         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13970         * modules/striconveh (Files): Add lib/iconveh.h.
13971         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13972         lib/striconveh.h.
13973
13974 2009-04-10  Bruno Haible  <bruno@clisp.org>
13975
13976         * lib/uniconv.h: Update comment.
13977
13978 2009-04-10  Bruno Haible  <bruno@clisp.org>
13979
13980         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13981         always.
13982         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13983         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13984         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13985         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13986         "unistring-notinline.h", so that the function gets defined always.
13987         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13988         * lib/unistr/u8-uctomb.c: Likewise.
13989         * lib/unistr/u16-mbtouc.c: Likewise.
13990         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13991         * lib/unistr/u16-uctomb.c: Likewise.
13992         * lib/unistr/u32-mbtouc.c: Likewise.
13993         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13994         * lib/unistr/u32-uctomb.c: Likewise.
13995
13996 2009-04-10  Bruno Haible  <bruno@clisp.org>
13997
13998         Mark 'utime' obsolete.
13999         * modules/utime (Status, Notice): New sections.
14000         Suggested by Jim Meyering.
14001
14002         Fix cross-compile guess for utime test.
14003         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14004         autoconf.
14005         * doc/posix-functions/utime.texi: Give more precisions.
14006         Reported by Jan <ipif@ymail.com>.
14007
14008 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14009
14010         filevercmp: correct today's change
14011         * lib/filevercmp.c: Also handle coreutils' test inputs.
14012         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14013
14014         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14015         for reporting it.
14016         * lib/filevercmp.c: Special handle for "", "." and "..".
14017         * tests/test-filevercmp.c: Enlarge the set suite.
14018
14019 2009-04-07  Jim Meyering  <meyering@redhat.com>
14020
14021         useless-if-before-free: show how to remove braced useless free, too
14022         * build-aux/useless-if-before-free: still only in a comment, though.
14023
14024 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14025
14026         maint.mk: import changes to syntax-check macros from coreutils
14027         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14028         Use them in the relevant macros.
14029
14030 2009-04-06  Bruno Haible  <bruno@clisp.org>
14031
14032         Fix unportable use of bit-fields.
14033         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14034         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14035         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14036
14037 2009-04-06  Bruno Haible  <bruno@clisp.org>
14038
14039         Avoid test failures on AIX and OSF/1.
14040         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14041         that malloc(0) = NULL.
14042         * tests/unicase/test-u8-tolower.c (check): Likewise.
14043         * tests/unicase/test-u8-totitle.c (check): Likewise.
14044         * tests/unicase/test-u8-toupper.c (check): Likewise.
14045         * tests/unicase/test-u16-casefold.c (check): Likewise.
14046         * tests/unicase/test-u16-tolower.c (check): Likewise.
14047         * tests/unicase/test-u16-totitle.c (check): Likewise.
14048         * tests/unicase/test-u16-toupper.c (check): Likewise.
14049         * tests/unicase/test-u32-casefold.c (check): Likewise.
14050         * tests/unicase/test-u32-tolower.c (check): Likewise.
14051         * tests/unicase/test-u32-totitle.c (check): Likewise.
14052         * tests/unicase/test-u32-toupper.c (check): Likewise.
14053         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14054         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14055         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14056         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14057         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14058         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14059         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14060         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14061         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14062         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14063         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14064         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14065
14066 2009-04-05  Bruno Haible  <bruno@clisp.org>
14067
14068         Work around an autoconf limitation.
14069         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14070         comment line if it would be longer than 3 KB.
14071
14072 2009-04-05  Bruno Haible  <bruno@clisp.org>
14073
14074         Avoid test failure with libiconv-1.13.
14075         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14076         of the expected test results.
14077
14078 2009-04-05  Bruno Haible  <bruno@clisp.org>
14079
14080         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14081         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14082         that it should be installed.
14083
14084 2009-04-05  Bruno Haible  <bruno@clisp.org>
14085
14086         * gnulib-tool: New option --copy-file.
14087         (func_usage): Document it.
14088         (func_dest_tmpfilename): Moved out of func_import.
14089         (func_add_file, func_update_file): New functions, extracted from
14090         func_import.
14091         (func_import): Update.
14092
14093 2009-04-05  Karl Berry  <karl@gnu.org>
14094
14095         * README: prominently mention gnulib-tool.
14096         Rearrange sections so getting the code is near the top.
14097
14098 2009-04-05  Bruno Haible  <bruno@clisp.org>
14099
14100         * lib/unicase.h: Mention u*_cmp2.
14101         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14102         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14103         * lib/unicase/ulc-casecmp.c: Likewise.
14104         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14105         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14106         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14107         unistr/u8-cmp.
14108         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14109         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14110         unistr/u16-cmp.
14111         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14112         unistr/u32-cmp.
14113
14114         * lib/uninorm.h: Mention u*_cmp2.
14115         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14116         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14117         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14118         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14119         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14120         unistr/u8-cmp.
14121         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14122         unistr/u16-cmp.
14123         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14124         unistr/u32-cmp.
14125
14126         New module 'unistr/u32-cmp2'.
14127         * lib/unistr/u32-cmp2.c: New file.
14128         * modules/unistr/u32-cmp2: New file.
14129
14130         New module 'unistr/u16-cmp2'.
14131         * lib/unistr/u16-cmp2.c: New file.
14132         * modules/unistr/u16-cmp2: New file.
14133
14134         New module 'unistr/u8-cmp2'.
14135         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14136         * lib/unistr/u8-cmp2.c: New file.
14137         * lib/unistr/u-cmp2.h: New file.
14138         * modules/unistr/u8-cmp2: New file.
14139
14140 2009-04-05  Bruno Haible  <bruno@clisp.org>
14141
14142         * lib/unictype.h (uc_property_is_valid): New macro.
14143         * tests/unictype/test-pr_byname.c (main): Use it.
14144
14145         * lib/unistr.h: Doc fixes.
14146         * lib/uniconv.h: Doc fixes.
14147         * lib/unictype.h: Doc fixes.
14148
14149 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14150
14151         Port coreutils 7.2 to Solaris 8.
14152
14153         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14154         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14155         for Solaris 8.  This is a bit of a hack, as it means it's the
14156         caller's responsibility to add -lnsl if needed, but most likely it
14157         won't be needed since only getaddrinfo uses this and getaddrinfo
14158         isn't needed on Solaris 8.
14159
14160         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14161         problem to Solaris 8 encountered with coreutils 7.2, which
14162         resulted in a message "fnmatch.c:292: warning: passing argument 4
14163         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14164         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14165
14166 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14167
14168         * m4/ld-version-script.m4: Add FIXME comment.
14169
14170 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14171
14172         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14173         SOVERSION variable.
14174
14175 2009-04-02  Bruno Haible  <bruno@clisp.org>
14176
14177         * Makefile (info, html, dvi, pdf): Combine the rules.
14178         Suggested by Jim Meyering.
14179
14180 2009-04-01  Bruno Haible  <bruno@clisp.org>
14181
14182         * Makefile (info, html, dvi, pdf): New targets.
14183         Reported by Reuben Thomas <rrt@sc3d.org>.
14184
14185 2009-04-01  Bruno Haible  <bruno@clisp.org>
14186
14187         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14188         can be put into PATH.
14189         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14190
14191 2009-04-01  Bruno Haible  <bruno@clisp.org>
14192
14193         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14194
14195 2009-04-01  Bruno Haible  <bruno@clisp.org>
14196
14197         Rename module 'visibility'.
14198         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14199         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14200         * doc/gnulib.texi: Update.
14201         * MODULES.html.sh (Misc): Update.
14202         * NEWS: Mention the change.
14203
14204 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14205
14206         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14207         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14208         Eric Blake <ebb9@byu.net> for review.
14209         * MODULES.html.sh: Add lib-msvc-compat.
14210         * doc/gnulib.texi: Link to new section.
14211         * m4/ld-output-def.m4: New file.
14212         * doc/ld-output-def.texi: New file.
14213
14214 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14215
14216         Rename ld-version-script to lib-symbol-versions.  Suggested by
14217         Bruno Haible <bruno@clisp.org>.
14218         * modules/ld-version-script: Renamed to lib-symbol-versions.
14219         * doc/ld-version-script.texi: Fix module name.
14220         * MODULES.html.sh: Add lib-symbol-versions.
14221
14222 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14223
14224         * modules/u64-tests: New file.
14225         * tests/test-u64.c: New file.
14226
14227 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14228
14229         * MODULES.html.sh: Mention u64.
14230         * modules/u64: New module.
14231         * modules/crypto/sha512: Depend on u64 module instead of providing
14232         u64.h.
14233
14234 2009-03-27  Eric Blake  <ebb9@byu.net>
14235
14236         test-strerror: make debugging EAI_SYSTEM easier
14237         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14238         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14239         failure was EAI_SYSTEM.
14240
14241 2009-03-25  Bruno Haible  <bruno@clisp.org>
14242
14243         Fix a problem with --enable-relocatable on Solaris 7.
14244         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14245         since 2008-02-24.
14246
14247 2009-03-25  Eric Blake  <ebb9@byu.net>
14248
14249         test-sockets: avoid gcc warning
14250         * tests/test-sockets.c (main): Silence compiler warning.
14251
14252 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14253
14254         New modules nproc, pthread, contributed by Glen Lenker.
14255
14256         * MODULES.html.sh: Add pthread, nproc.
14257         * lib/nproc.c: New file.
14258         * lib/nproc.h: New file.
14259         * lib/pthread.in.h: New file.
14260         * m4/pthread.m4: New file.
14261         * modules/nproc: New file.
14262         * modules/pthread: New file.
14263
14264 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14265
14266         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14267         New variable.
14268
14269 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14270
14271         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14272         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14273         * tests/test-filevercmp.c: Add tests for backup suffixes.
14274
14275 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14276
14277         * modules/stdlib (Depends-on): Add stdint, needed when defining
14278         struct random_data on, for example, HP-UX 10.20.  Reported by
14279         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14280
14281 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14282
14283         * lib/readline.c (readline): Call fflush on stdout after printing
14284         prompt.
14285
14286 2009-03-20  Bruno Haible  <bruno@clisp.org>
14287
14288         Remove dependency from 'close' module to -lws2_32 on native Windows.
14289         * lib/close-hook.h: New file.
14290         * lib/close-hook.c: New file.
14291         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14292         w32sock.h.
14293         (_gl_close_fd_maybe_socket): Remove function.
14294         (rpl_close): Invoke execute_all_close_hooks instead of
14295         _gl_close_fd_maybe_socket.
14296         * lib/sockets.c: Include close-hook.h, w32sock.h.
14297         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14298         (close_sockets_hook): New variable.
14299         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14300         (gl_sockets_cleanup): Unregister it.
14301         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14302         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14303         * modules/close-hook: New file.
14304         * modules/close (Files): Remove lib/w32sock.h.
14305         (Depends-on): Add close-hook.
14306         (Link): Remove section.
14307         * modules/sockets (Files): Add lib/w32sock.h.
14308         (Depends-on): Add close-hook.
14309         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14310         invocation.
14311         * NEWS: Mention that LIB_CLOSE is gone.
14312
14313 2009-03-23  Eric Blake  <ebb9@byu.net>
14314
14315         signal-tests: test previous patch
14316         * tests/test-signal.c: New file.
14317         * modules/signal-tests: Likewise.
14318
14319         signal.h: always support 'volatile sig_atomic_t'
14320         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14321         (gl_SIGNAL_H_DEFAULTS): Add a default.
14322         * modules/signal (Makefile.am): Substitute if needed.
14323         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14324         users can blindly add volatile.
14325         * doc/posix-headers/signal.texi (signal.h): Document it.
14326         Reported by Matthew Woehlke.
14327
14328 2009-03-23  Jim Meyering  <meyering@redhat.com>
14329
14330         pathmax: PATH_MAX: use pathconf only when available
14331         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14332         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14333         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14334         This avoids a link failure in a PSP cross-compilation environment
14335         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14336
14337         * lib/vasnprintf.c (divide): Fix typo in comment.
14338
14339 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14340
14341         * gnulib-tool (func_filter_filelist): Fix comment.
14342
14343 2009-03-20  Bruno Haible  <bruno@clisp.org>
14344
14345         Make sockets.h self-contained.
14346         * lib/sockets.c: Include sockets.h first.
14347         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14348
14349 2009-03-19  Eric Blake  <ebb9@byu.net>
14350
14351         doc: mention more functions added in cygwin 1.7.0
14352         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14353         addition.
14354         * doc/posix-functions/log2f.texi: Likewise.
14355
14356 2009-03-19  Jim Meyering  <meyering@redhat.com>
14357
14358         fsusage: avoid syntax error due to statement-before-declaration
14359         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14360         after all declarations.  Reported by Matthew Woehlke in
14361         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14362
14363 2009-03-18  Eric Blake  <ebb9@byu.net>
14364
14365         build-aux/compile: sync from automake
14366         * build-aux/compile: New file, from automake.
14367         * config/srclist.txt: Mention build-aux/compile.
14368
14369 2009-03-17  Bruno Haible  <bruno@clisp.org>
14370
14371         * lib/git-merge-changelog.c: Fix typo in comment.
14372         Reported by Reuben Thomas <rrt@sc3d.org>.
14373
14374 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14375
14376         * m4/regex.m4: update and improve help for
14377         --without-included-regex.
14378
14379 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14380
14381         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14382         failure on missing include files.
14383
14384 2009-03-17  Eric Blake  <ebb9@byu.net>
14385
14386         doc: mention more functions added in cygwin 1.7.0
14387         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14388         addition.
14389         * doc/posix-functions/fwscanf.texi: Likewise.
14390         * doc/posix-functions/swprintf.texi: Likewise.
14391         * doc/posix-functions/swscanf.texi: Likewise.
14392         * doc/posix-functions/vfwprintf.texi: Likewise.
14393         * doc/posix-functions/vfwscanf.texi: Likewise.
14394         * doc/posix-functions/vswprintf.texi: Likewise.
14395         * doc/posix-functions/vswscanf.texi: Likewise.
14396         * doc/posix-functions/vwprintf.texi: Likewise.
14397         * doc/posix-functions/vwscanf.texi: Likewise.
14398         * doc/posix-functions/wcscasecmp.texi: Likewise.
14399         * doc/posix-functions/wcsdup.texi: Likewise.
14400         * doc/posix-functions/wcsftime.texi: Likewise.
14401         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14402         * doc/posix-functions/wprintf.texi: Likewise.
14403         * doc/posix-functions/wscanf.texi: Likewise.
14404         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14405
14406 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14407
14408         maint.mk: really add $(AM_MAKEFLAGS)
14409         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14410         was inadvertently omitted in the last commit.
14411         Spotted by Bruno Haible.
14412
14413         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14414         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14415         $(AM_MAKEFLAGS)' rather than plain `make'.
14416
14417         gnulib-tool: execute $MAKE not make
14418         * gnulib-tool: Default $MAKE to 'make'.
14419         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14420         than make.  Initialize $MAKE in the do-autobuild script.
14421
14422         gnulib-tool: use $MAKE not make in generated files
14423         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14424         make, in generated files.  Initialize $MAKE in the do-autobuild
14425         script.
14426
14427         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14428
14429         GNUmakefile: disable parallelism only for multiple, recursive targets
14430         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14431         additions in the Makefile.
14432         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14433         by Automake.
14434         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14435         are listed on the command line and at least one of them is
14436         listed in $(ALL_RECURSIVE_TARGETS).
14437
14438 2009-03-14  Bruno Haible  <bruno@clisp.org>
14439
14440         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14441         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14442         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14443         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14444         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14445         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14446         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14447         unistr/u8-uctomb.
14448         * modules/unistr/u8-strchr (Depends-on): Likewise.
14449         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14450         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14451         unistr/u16-uctomb.
14452         * modules/unistr/u16-strchr (Depends-on): Likewise.
14453         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14454
14455 2009-03-12  Bruno Haible  <bruno@clisp.org>
14456
14457         Work around select() bug on Interix 3.5.
14458         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14459         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14460         * m4/select.m4: New file.
14461         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14462         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14463         * modules/select (Files): Add m4/select.m4.
14464         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14465         * modules/nanosleep (Depends-on): Add select.
14466         * modules/poll (Depends-on): Likewise.
14467         * doc/posix-functions/select.texi: Mention the Interix bug.
14468         Reported by Markus Duft <mduft@gentoo.org>.
14469
14470         * lib/select.c: Renamed from lib/winsock-select.c.
14471         * modules/select (Files): Add lib/select.c, remove
14472         lib/winsock-select.c.
14473         (configure.ac): Update.
14474
14475 2009-03-12  Jim Meyering  <meyering@redhat.com>
14476
14477         avoid gcc warnings about unused macro definitions
14478         * lib/readtokens.c (STREQ): Remove unused definition.
14479         * lib/xmalloc.c (SIZE_MAX): Likewise.
14480         * lib/openat-die.c (N_): Likewise.
14481         * lib/mountlist.c (SIZE_MAX): Remove definition.
14482         Instead, include <stdint.h>.
14483         * lib/readutmp.c: Likewise.
14484         * modules/readutmp (Depends-on): Add stdint.
14485         * modules/mountlist (Depends-on): Add stdint.
14486         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14487
14488 2009-03-10  Bruno Haible  <bruno@clisp.org>
14489
14490         Tests for module 'mbmemcasecoll'.
14491         * modules/mbmemcasecoll-tests: New file.
14492         * tests/test-mbmemcasecoll1.sh: New file.
14493         * tests/test-mbmemcasecoll2.sh: New file.
14494         * tests/test-mbmemcasecoll3.sh: New file.
14495         * tests/test-mbmemcasecoll.c: New file.
14496
14497         New module 'mbmemcasecoll'.
14498         * lib/mbmemcasecoll.h: New file.
14499         * lib/mbmemcasecoll.c: New file.
14500         * modules/mbmemcasecoll: New file.
14501
14502         * tests/test-mbmemcasecmp.h: New file, extracted from
14503         tests/test-mbmemcasecmp.c.
14504         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14505         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14506         (main): Update.
14507         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14508
14509 2009-03-09  Bruno Haible  <bruno@clisp.org>
14510
14511         Tests for module 'mbmemcasecmp'.
14512         * modules/mbmemcasecmp-tests: New file.
14513         * tests/test-mbmemcasecmp1.sh: New file.
14514         * tests/test-mbmemcasecmp2.sh: New file.
14515         * tests/test-mbmemcasecmp3.sh: New file.
14516         * tests/test-mbmemcasecmp.c: New file.
14517
14518         New module 'mbmemcasecmp'.
14519         * lib/mbmemcasecmp.h: New file.
14520         * lib/mbmemcasecmp.c: New file.
14521         * modules/mbmemcasecmp: New file.
14522
14523 2009-03-09  Bruno Haible  <bruno@clisp.org>
14524
14525         Tests for module 'unicase/ulc-casecoll'.
14526         * modules/unicase/ulc-casecoll-tests: New file.
14527         * tests/unicase/test-ulc-casecoll1.sh: New file.
14528         * tests/unicase/test-ulc-casecoll2.sh: New file.
14529         * tests/unicase/test-ulc-casecoll.c: New file.
14530
14531         New module 'unicase/ulc-casecoll'.
14532         * lib/unicase.h (ulc_casecoll): New declaration.
14533         * lib/unicase/ulc-casecoll.c: New file.
14534         * modules/unicase/ulc-casecoll: New file.
14535
14536         New module 'unicase/ulc-casexfrm'.
14537         * lib/unicase.h (ulc_casexfrm): New declaration.
14538         * lib/unicase/ulc-casexfrm.c: New file.
14539         * modules/unicase/ulc-casexfrm: New file.
14540
14541 2009-03-09  Bruno Haible  <bruno@clisp.org>
14542
14543         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14544         invocations.
14545
14546         * m4/mbscasecmp.m4: Remove file.
14547         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14548         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14549
14550         * m4/mbscasestr.m4: Remove file.
14551         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14552         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14553
14554         * m4/mbschr.m4: Remove file.
14555         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14556         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14557
14558         * m4/mbscspn.m4: Remove file.
14559         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14560         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14561
14562         * m4/mbslen.m4: Remove file.
14563         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14564         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14565
14566         * m4/mbsncasecmp.m4: Remove file.
14567         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14568         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14569
14570         * m4/mbsnlen.m4: Remove file.
14571         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14572         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14573
14574         * m4/mbspbrk.m4: Remove file.
14575         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14576         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14577
14578         * m4/mbspcasecmp.m4: Remove file.
14579         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14580         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14581
14582         * m4/mbsrchr.m4: Remove file.
14583         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14584         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14585
14586         * m4/mbssep.m4: Remove file.
14587         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14588         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14589
14590         * m4/mbsspn.m4: Remove file.
14591         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14592         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14593
14594         * m4/mbsstr.m4: Remove file.
14595         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14596         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14597
14598         * m4/mbstok_r.m4: Remove file.
14599         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14600         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14601
14602         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14603
14604         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14605         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14606
14607         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14608
14609 2009-03-08  Bruno Haible  <bruno@clisp.org>
14610
14611         Tests for module 'unicase/ulc-casecmp'.
14612         * modules/unicase/ulc-casecmp-tests: New file.
14613         * tests/unicase/test-ulc-casecmp1.sh: New file.
14614         * tests/unicase/test-ulc-casecmp2.sh: New file.
14615         * tests/unicase/test-ulc-casecmp.c: New file.
14616
14617         New module 'unicase/ulc-casecmp'.
14618         * lib/unicase.h (ulc_casecmp): New declaration.
14619         * lib/unicase/ulc-casecmp.c: New file.
14620         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14621         'const SRC_UNIT *'.
14622         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14623         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14624         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14625         * modules/unicase/ulc-casecmp: New file.
14626
14627         Tests for module 'unicase/u32-is-cased'.
14628         * modules/unicase/u32-is-cased-tests: New file.
14629         * tests/unicase/test-u32-is-cased.c: New file.
14630
14631         Tests for module 'unicase/u16-is-cased'.
14632         * modules/unicase/u16-is-cased-tests: New file.
14633         * tests/unicase/test-u16-is-cased.c: New file.
14634
14635         Tests for module 'unicase/u8-is-cased'.
14636         * modules/unicase/u8-is-cased-tests: New file.
14637         * tests/unicase/test-u8-is-cased.c: New file.
14638         * tests/unicase/test-is-cased.h: New file.
14639
14640         New module 'unicase/u32-is-cased'.
14641         * lib/unicase/u32-is-cased.c: New file.
14642         * modules/unicase/u32-is-cased: New file.
14643
14644         New module 'unicase/u16-is-cased'.
14645         * lib/unicase/u16-is-cased.c: New file.
14646         * modules/unicase/u16-is-cased: New file.
14647
14648         New module 'unicase/u8-is-cased'.
14649         * lib/unicase/u8-is-cased.c: New file.
14650         * lib/unicase/u-is-cased.h: New file.
14651         * modules/unicase/u8-is-cased: New file.
14652
14653         Tests for module 'unicase/u32-is-casefolded'.
14654         * modules/unicase/u32-is-casefolded-tests: New file.
14655         * tests/unicase/test-u32-is-casefolded.c: New file.
14656
14657         Tests for module 'unicase/u16-is-casefolded'.
14658         * modules/unicase/u16-is-casefolded-tests: New file.
14659         * tests/unicase/test-u16-is-casefolded.c: New file.
14660
14661         Tests for module 'unicase/u8-is-casefolded'.
14662         * modules/unicase/u8-is-casefolded-tests: New file.
14663         * tests/unicase/test-u8-is-casefolded.c: New file.
14664         * tests/unicase/test-is-casefolded.h: New file.
14665
14666         New module 'unicase/u32-is-casefolded'.
14667         * lib/unicase/u32-is-casefolded.c: New file.
14668         * modules/unicase/u32-is-casefolded: New file.
14669
14670         New module 'unicase/u16-is-casefolded'.
14671         * lib/unicase/u16-is-casefolded.c: New file.
14672         * modules/unicase/u16-is-casefolded: New file.
14673
14674         New module 'unicase/u8-is-casefolded'.
14675         * lib/unicase/u8-is-casefolded.c: New file.
14676         * modules/unicase/u8-is-casefolded: New file.
14677
14678         Tests for module 'unicase/u32-is-titlecase'.
14679         * modules/unicase/u32-is-titlecase-tests: New file.
14680         * tests/unicase/test-u32-is-titlecase.c: New file.
14681
14682         Tests for module 'unicase/u16-is-titlecase'.
14683         * modules/unicase/u16-is-titlecase-tests: New file.
14684         * tests/unicase/test-u16-is-titlecase.c: New file.
14685
14686         Tests for module 'unicase/u8-is-titlecase'.
14687         * modules/unicase/u8-is-titlecase-tests: New file.
14688         * tests/unicase/test-u8-is-titlecase.c: New file.
14689         * tests/unicase/test-is-titlecase.h: New file.
14690
14691         New module 'unicase/u32-is-titlecase'.
14692         * lib/unicase/u32-is-titlecase.c: New file.
14693         * modules/unicase/u32-is-titlecase: New file.
14694
14695         New module 'unicase/u16-is-titlecase'.
14696         * lib/unicase/u16-is-titlecase.c: New file.
14697         * modules/unicase/u16-is-titlecase: New file.
14698
14699         New module 'unicase/u8-is-titlecase'.
14700         * lib/unicase/u8-is-titlecase.c: New file.
14701         * modules/unicase/u8-is-titlecase: New file.
14702
14703         Tests for module 'unicase/u32-is-lowercase'.
14704         * modules/unicase/u32-is-lowercase-tests: New file.
14705         * tests/unicase/test-u32-is-lowercase.c: New file.
14706
14707         Tests for module 'unicase/u16-is-lowercase'.
14708         * modules/unicase/u16-is-lowercase-tests: New file.
14709         * tests/unicase/test-u16-is-lowercase.c: New file.
14710
14711         Tests for module 'unicase/u8-is-lowercase'.
14712         * modules/unicase/u8-is-lowercase-tests: New file.
14713         * tests/unicase/test-u8-is-lowercase.c: New file.
14714         * tests/unicase/test-is-lowercase.h: New file.
14715
14716         New module 'unicase/u32-is-lowercase'.
14717         * lib/unicase/u32-is-lowercase.c: New file.
14718         * modules/unicase/u32-is-lowercase: New file.
14719
14720         New module 'unicase/u16-is-lowercase'.
14721         * lib/unicase/u16-is-lowercase.c: New file.
14722         * modules/unicase/u16-is-lowercase: New file.
14723
14724         New module 'unicase/u8-is-lowercase'.
14725         * lib/unicase/u8-is-lowercase.c: New file.
14726         * modules/unicase/u8-is-lowercase: New file.
14727
14728         Tests for module 'unicase/u32-is-uppercase'.
14729         * modules/unicase/u32-is-uppercase-tests: New file.
14730         * tests/unicase/test-u32-is-uppercase.c: New file.
14731
14732         Tests for module 'unicase/u16-is-uppercase'.
14733         * modules/unicase/u16-is-uppercase-tests: New file.
14734         * tests/unicase/test-u16-is-uppercase.c: New file.
14735
14736         Tests for module 'unicase/u8-is-uppercase'.
14737         * modules/unicase/u8-is-uppercase-tests: New file.
14738         * tests/unicase/test-u8-is-uppercase.c: New file.
14739         * tests/unicase/test-is-uppercase.h: New file.
14740
14741         New module 'unicase/u32-is-uppercase'.
14742         * lib/unicase/u32-is-uppercase.c: New file.
14743         * modules/unicase/u32-is-uppercase: New file.
14744
14745         New module 'unicase/u16-is-uppercase'.
14746         * lib/unicase/u16-is-uppercase.c: New file.
14747         * modules/unicase/u16-is-uppercase: New file.
14748
14749         New module 'unicase/u8-is-uppercase'.
14750         * lib/unicase/u8-is-uppercase.c: New file.
14751         * modules/unicase/u8-is-uppercase: New file.
14752
14753         New module 'unicase/u32-is-invariant'.
14754         * lib/unicase/u32-is-invariant.c: New file.
14755         * modules/unicase/u32-is-invariant: New file.
14756
14757         New module 'unicase/u16-is-invariant'.
14758         * lib/unicase/u16-is-invariant.c: New file.
14759         * modules/unicase/u16-is-invariant: New file.
14760
14761         New module 'unicase/u8-is-invariant'.
14762         * lib/unicase/u8-is-invariant.c: New file.
14763         * lib/unicase/invariant.h: New file.
14764         * lib/unicase/u-is-invariant.h: New file.
14765         * modules/unicase/u8-is-invariant: New file.
14766
14767         Tests for module 'unicase/u32-casecoll'.
14768         * modules/unicase/u32-casecoll-tests: New file.
14769         * tests/unicase/test-u32-casecoll.c: New file.
14770
14771         Tests for module 'unicase/u16-casecoll'.
14772         * modules/unicase/u16-casecoll-tests: New file.
14773         * tests/unicase/test-u16-casecoll.c: New file.
14774
14775         Tests for module 'unicase/u8-casecoll'.
14776         * modules/unicase/u8-casecoll-tests: New file.
14777         * tests/unicase/test-u8-casecoll.c: New file.
14778
14779         New module 'unicase/u32-casecoll'.
14780         * lib/unicase/u32-casecoll.c: New file.
14781         * modules/unicase/u32-casecoll: New file.
14782
14783         New module 'unicase/u16-casecoll'.
14784         * lib/unicase/u16-casecoll.c: New file.
14785         * modules/unicase/u16-casecoll: New file.
14786
14787         New module 'unicase/u8-casecoll'.
14788         * lib/unicase/u8-casecoll.c: New file.
14789         * lib/unicase/u-casecoll.h: New file.
14790         * modules/unicase/u8-casecoll: New file.
14791
14792         New module 'unicase/u32-casexfrm'.
14793         * lib/unicase/u32-casexfrm.c: New file.
14794         * modules/unicase/u32-casexfrm: New file.
14795
14796         New module 'unicase/u16-casexfrm'.
14797         * lib/unicase/u16-casexfrm.c: New file.
14798         * modules/unicase/u16-casexfrm: New file.
14799
14800         New module 'unicase/u8-casexfrm'.
14801         * lib/unicase/u8-casexfrm.c: New file.
14802         * lib/unicase/u-casexfrm.h: New file.
14803         * modules/unicase/u8-casexfrm: New file.
14804
14805         Tests for module 'unicase/u32-casecmp'.
14806         * modules/unicase/u32-casecmp-tests: New file.
14807         * tests/unicase/test-u32-casecmp.c: New file.
14808
14809         Tests for module 'unicase/u16-casecmp'.
14810         * modules/unicase/u16-casecmp-tests: New file.
14811         * tests/unicase/test-u16-casecmp.c: New file.
14812
14813         Tests for module 'unicase/u8-casecmp'.
14814         * modules/unicase/u8-casecmp-tests: New file.
14815         * tests/unicase/test-u8-casecmp.c: New file.
14816         * tests/unicase/test-casecmp.h: New file.
14817
14818         New module 'unicase/u32-casecmp'.
14819         * lib/unicase/u32-casecmp.c: New file.
14820         * modules/unicase/u32-casecmp: New file.
14821
14822         New module 'unicase/u16-casecmp'.
14823         * lib/unicase/u16-casecmp.c: New file.
14824         * modules/unicase/u16-casecmp: New file.
14825
14826         New module 'unicase/u8-casecmp'.
14827         * lib/unicase/u8-casecmp.c: New file.
14828         * lib/unicase/u-casecmp.h: New file.
14829         * modules/unicase/u8-casecmp: New file.
14830
14831         Tests for module 'unicase/u32-casefold'.
14832         * modules/unicase/u32-casefold-tests: New file.
14833         * tests/unicase/test-u32-casefold.c: New file.
14834
14835         Tests for module 'unicase/u16-casefold'.
14836         * modules/unicase/u16-casefold-tests: New file.
14837         * tests/unicase/test-u16-casefold.c: New file.
14838
14839         Tests for module 'unicase/u8-casefold'.
14840         * modules/unicase/u8-casefold-tests: New file.
14841         * tests/unicase/test-u8-casefold.c: New file.
14842
14843         New module 'unicase/u32-casefold'.
14844         * lib/unicase/u32-casefold.c: New file.
14845         * modules/unicase/u32-casefold: New file.
14846
14847         New module 'unicase/u16-casefold'.
14848         * lib/unicase/u16-casefold.c: New file.
14849         * modules/unicase/u16-casefold: New file.
14850
14851         New module 'unicase/u8-casefold'.
14852         * lib/unicase/u8-casefold.c: New file.
14853         * lib/unicase/u-casefold.h: New file.
14854         * modules/unicase/u8-casefold: New file.
14855
14856         New module 'unicase/tocasefold'.
14857         * lib/unicase/casefold.h: New file.
14858         * lib/unicase/tocasefold.c: New file.
14859         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14860         * modules/unicase/tocasefold: New file.
14861
14862         Tests for module 'unicase/u32-totitle'.
14863         * modules/unicase/u32-totitle-tests: New file.
14864         * tests/unicase/test-u32-totitle.c: New file.
14865
14866         Tests for module 'unicase/u16-totitle'.
14867         * modules/unicase/u16-totitle-tests: New file.
14868         * tests/unicase/test-u16-totitle.c: New file.
14869
14870         Tests for module 'unicase/u8-totitle'.
14871         * modules/unicase/u8-totitle-tests: New file.
14872         * tests/unicase/test-u8-totitle.c: New file.
14873
14874         New module 'unicase/u32-totitle'.
14875         * lib/unicase/u32-totitle.c: New file.
14876         * modules/unicase/u32-totitle: New file.
14877
14878         New module 'unicase/u16-totitle'.
14879         * lib/unicase/u16-totitle.c: New file.
14880         * modules/unicase/u16-totitle: New file.
14881
14882         New module 'unicase/u8-totitle'.
14883         * lib/unicase/u8-totitle.c: New file.
14884         * lib/unicase/u-totitle.h: New file.
14885         * modules/unicase/u8-totitle: New file.
14886
14887         Tests for module 'unicase/u32-tolower'.
14888         * modules/unicase/u32-tolower-tests: New file.
14889         * tests/unicase/test-u32-tolower.c: New file.
14890
14891         Tests for module 'unicase/u16-tolower'.
14892         * modules/unicase/u16-tolower-tests: New file.
14893         * tests/unicase/test-u16-tolower.c: New file.
14894
14895         Tests for module 'unicase/u8-tolower'.
14896         * modules/unicase/u8-tolower-tests: New file.
14897         * tests/unicase/test-u8-tolower.c: New file.
14898
14899         New module 'unicase/u32-tolower'.
14900         * lib/unicase/u32-tolower.c: New file.
14901         * modules/unicase/u32-tolower: New file.
14902
14903         New module 'unicase/u16-tolower'.
14904         * lib/unicase/u16-tolower.c: New file.
14905         * modules/unicase/u16-tolower: New file.
14906
14907         New module 'unicase/u8-tolower'.
14908         * lib/unicase/u8-tolower.c: New file.
14909         * modules/unicase/u8-tolower: New file.
14910
14911         Tests for module 'unicase/u32-toupper'.
14912         * modules/unicase/u32-toupper-tests: New file.
14913         * tests/unicase/test-u32-toupper.c: New file.
14914
14915         Tests for module 'unicase/u16-toupper'.
14916         * modules/unicase/u16-toupper-tests: New file.
14917         * tests/unicase/test-u16-toupper.c: New file.
14918
14919         Tests for module 'unicase/u8-toupper'.
14920         * modules/unicase/u8-toupper-tests: New file.
14921         * tests/unicase/test-u8-toupper.c: New file.
14922
14923         New module 'unicase/u32-toupper'.
14924         * lib/unicase/u32-toupper.c: New file.
14925         * modules/unicase/u32-toupper: New file.
14926
14927         New module 'unicase/u16-toupper'.
14928         * lib/unicase/u16-toupper.c: New file.
14929         * modules/unicase/u16-toupper: New file.
14930
14931         New module 'unicase/u8-toupper'.
14932         * lib/unicase/u8-toupper.c: New file.
14933         * modules/unicase/u8-toupper: New file.
14934
14935         New module 'unicase/u32-casemap'.
14936         * lib/unicase/u32-casemap.c: New file.
14937         * modules/unicase/u32-casemap: New file.
14938
14939         New module 'unicase/u16-casemap'.
14940         * lib/unicase/u16-casemap.c: New file.
14941         * modules/unicase/u16-casemap: New file.
14942
14943         New module 'unicase/u8-casemap'.
14944         * lib/unicase/unicasemap.h: New file.
14945         * lib/unicase/u8-casemap.c: New file.
14946         * lib/unicase/u-casemap.h: New file.
14947         * modules/unicase/u8-casemap: New file.
14948
14949         New module 'unicase/special-casing'.
14950         * lib/unicase/special-casing.h: New file.
14951         * lib/unicase/special-casing.c: New file.
14952         * lib/unicase/special-casing-table.gperf: New file, generated by
14953         gen-uni-tables.c.
14954         * modules/unicase/special-casing: New file.
14955
14956         Tests for module 'unicase/locale-language'.
14957         * modules/unicase/locale-language-tests: New file.
14958         * tests/unicase/test-locale-language.sh: New file.
14959         * tests/unicase/test-locale-language.c: New file.
14960
14961         New module 'unicase/locale-language'.
14962         * lib/unicase/locale-language.c: New file.
14963         * lib/unicase/locale-languages.gperf: New file.
14964         * modules/unicase/locale-language: New file.
14965
14966         Generate more tables for case conversion and case folding.
14967         * lib/gen-uni-tables.c (SCC_*): New enum items.
14968         (struct special_casing_rule): New type.
14969         (casing_rules, num_casing_rules, allocated_casing_rules): New
14970         variables.
14971         (add_casing_rule, fill_casing_rules): New functions.
14972         (struct casefold_rule): New type.
14973         (casefolding_rules, num_casefolding_rules,
14974         allocated_casefolding_rules): New variables.
14975         (fill_casefolding_rules): New function.
14976         (unicode_casefold): New variable.
14977         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14978         sort_casing_rules, output_casing_rules): New functions.
14979         (main): Accept to more arguments: SpecialCasing.txt and
14980         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14981         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14982         Output mapping for casefolding.
14983
14984         * lib/unicase.h: Include stdbool.h, uninorm.h.
14985         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14986         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14987         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14988         arguments.
14989         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14990         resultp arguments.
14991         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14992         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14993         resultp arguments.
14994         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14995         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14996         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14997         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14998         declarations.
14999         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15000
15001 2009-03-08  Bruno Haible  <bruno@clisp.org>
15002
15003         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15004         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15005         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15006         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15007
15008 2009-03-07  Bruno Haible  <bruno@clisp.org>
15009
15010         Adjust u*_normcmp, u*_normcoll API.
15011         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15012         u16_normcoll, u32_normcoll): Change failure conventions.
15013         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15014         errno and return -1.
15015         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15016
15017 2009-03-07  Bruno Haible  <bruno@clisp.org>
15018
15019         Tests for module 'uninorm/u32-normcoll'.
15020         * modules/uninorm/u32-normcoll-tests: New file.
15021         * tests/uninorm/test-u32-normcoll.c: New file.
15022
15023         Tests for module 'uninorm/u16-normcoll'.
15024         * modules/uninorm/u16-normcoll-tests: New file.
15025         * tests/uninorm/test-u16-normcoll.c: New file.
15026
15027         Tests for module 'uninorm/u8-normcoll'.
15028         * modules/uninorm/u8-normcoll-tests: New file.
15029         * tests/uninorm/test-u8-normcoll.c: New file.
15030
15031 2009-03-07  Bruno Haible  <bruno@clisp.org>
15032
15033         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15034         tests/uninorm/test-u32-normcmp.c.
15035         * tests/uninorm/test-u32-normcmp.c: Include it.
15036         (test_nonascii): New function, extracted from main. Add some more
15037         tests.
15038         (main): Invoke test_ascii and test_nonascii.
15039         * modules/uninorm/u32-normcmp-tests (Files): Add
15040         tests/uninorm/test-u32-normcmp.h.
15041         (Depends-on): Remove uninorm/u32-normcmp.
15042
15043         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15044         tests/uninorm/test-u16-normcmp.c.
15045         * tests/uninorm/test-u16-normcmp.c: Include it.
15046         (test_nonascii): New function, extracted from main. Add some more
15047         tests.
15048         (main): Invoke test_ascii and test_nonascii.
15049         * modules/uninorm/u16-normcmp-tests (Files): Add
15050         tests/uninorm/test-u16-normcmp.h.
15051         (Depends-on): Remove uninorm/u16-normcmp.
15052
15053         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15054         tests/uninorm/test-u8-normcmp.c.
15055         * tests/uninorm/test-u8-normcmp.c: Include it.
15056         (test_nonascii): New function, extracted from main. Add some more
15057         tests.
15058         (main): Invoke test_ascii and test_nonascii.
15059         * modules/uninorm/u8-normcmp-tests (Files): Add
15060         tests/uninorm/test-u8-normcmp.h.
15061         (Depends-on): Remove uninorm/u8-normcmp.
15062
15063 2009-03-07  Bruno Haible  <bruno@clisp.org>
15064
15065         New module 'uninorm/u32-normcoll'.
15066         * lib/uninorm/u32-normcoll.c: New file.
15067         * modules/uninorm/u32-normcoll: New file.
15068
15069         New module 'uninorm/u16-normcoll'.
15070         * lib/uninorm/u16-normcoll.c: New file.
15071         * modules/uninorm/u16-normcoll: New file.
15072
15073         New module 'uninorm/u8-normcoll'.
15074         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15075         declarations.
15076         * lib/uninorm/u8-normcoll.c: New file.
15077         * lib/uninorm/u-normcoll.h: New file.
15078         * modules/uninorm/u8-normcoll: New file.
15079
15080         New module 'uninorm/u32-normxfrm'.
15081         * lib/uninorm/u32-normxfrm.c: New file.
15082         * modules/uninorm/u32-normxfrm: New file.
15083
15084         New module 'uninorm/u16-normxfrm'.
15085         * lib/uninorm/u16-normxfrm.c: New file.
15086         * modules/uninorm/u16-normxfrm: New file.
15087
15088         New module 'uninorm/u8-normxfrm'.
15089         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15090         declarations.
15091         * lib/uninorm/u8-normxfrm.c: New file.
15092         * lib/uninorm/u-normxfrm.h: New file.
15093         * modules/uninorm/u8-normxfrm: New file.
15094
15095 2009-03-07  Bruno Haible  <bruno@clisp.org>
15096
15097         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15098         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15099         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15100
15101 2009-03-07  Bruno Haible  <bruno@clisp.org>
15102
15103         New module 'memxfrm'.
15104         * lib/memxfrm.h: New file.
15105         * lib/memxfrm.c: New file.
15106         * modules/memxfrm: New file.
15107
15108 2009-03-07  Bruno Haible  <bruno@clisp.org>
15109
15110         New module 'memcmp2'.
15111         * lib/memcmp2.h: New file.
15112         * lib/memcmp2.c: New file.
15113         * modules/memcmp2: New file.
15114
15115 2009-03-07  Bruno Haible  <bruno@clisp.org>
15116
15117         Tests for module 'uninorm/decomposing-form'.
15118         * modules/uninorm/decomposing-form-tests: New file.
15119         * tests/uninorm/test-decomposing-form.c: New file.
15120
15121         New module 'uninorm/decomposing-form'.
15122         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15123         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15124         Add 'decomposing_variant' field.
15125         * lib/uninorm/decomposing-form.c: New file.
15126         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15127         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15128         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15129         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15130         * modules/uninorm/decomposing-form: New file.
15131         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15132         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15133
15134 2009-03-07  Bruno Haible  <bruno@clisp.org>
15135
15136         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15137         strings.
15138
15139 2009-03-06  Bruno Haible  <bruno@clisp.org>
15140
15141         Tests for module 'uninorm/u32-normcmp'.
15142         * tests/uninorm/test-u32-normcmp.c: New file.
15143         * modules/uninorm/u32-normcmp-tests: New file.
15144
15145         Tests for module 'uninorm/u16-normcmp'.
15146         * tests/uninorm/test-u16-normcmp.c: New file.
15147         * modules/uninorm/u16-normcmp-tests: New file.
15148
15149         Tests for module 'uninorm/u8-normcmp'.
15150         * tests/uninorm/test-u8-normcmp.c: New file.
15151         * modules/uninorm/u8-normcmp-tests: New file.
15152
15153         New module 'uninorm/u32-normcmp'.
15154         * lib/uninorm/u32-normcmp.c: New file.
15155         * modules/uninorm/u32-normcmp: New file.
15156
15157         New module 'uninorm/u16-normcmp'.
15158         * lib/uninorm/u16-normcmp.c: New file.
15159         * modules/uninorm/u16-normcmp: New file.
15160
15161         New module 'uninorm/u8-normcmp'.
15162         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15163         declarations.
15164         * lib/uninorm/u8-normcmp.c: New file.
15165         * lib/uninorm/u-normcmp.h: New file.
15166         * modules/uninorm/u8-normcmp: New file.
15167
15168 2009-03-06  Bruno Haible  <bruno@clisp.org>
15169
15170         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15171         Reported by Eric Blake.
15172
15173 2009-03-06  Eric Blake  <ebb9@byu.net>
15174             Bruno Haible  <bruno@clisp.org>
15175
15176         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15177         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15178         condition.
15179         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15180         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15181         condition.
15182         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15183
15184 2009-03-06  Eric Blake  <ebb9@byu.net>
15185
15186         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15187         to avoid compiler warnings.
15188         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15189
15190 2009-03-05  Bruno Haible  <bruno@clisp.org>
15191
15192         * tests/test-ftell.c (main): Disable test beyond end of file on
15193         FreeMiNT.
15194         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15195
15196 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15197
15198         * lib/filevercmp.c: Move hidden files up in ordering.
15199         * tests/test-filevercmp.c: Add tests for hidden files.
15200
15201 2009-03-04  Bruno Haible  <bruno@clisp.org>
15202
15203         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15204         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15205         AM_CFLAGS.
15206         Reported by Simon Josefsson.
15207
15208 2009-03-03  Bruno Haible  <bruno@clisp.org>
15209
15210         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15211         Reported by Simon Josefsson.
15212
15213         * doc/ld-version-script.texi: Update node reference.
15214
15215 2009-03-03  Bruno Haible  <bruno@clisp.org>
15216
15217         * modules/visibility (License): Change to 'unlimited'.
15218         Suggested by Simon Josefsson.
15219
15220 2009-03-03  Jim Meyering  <meyering@redhat.com>
15221
15222         unlinkdir: cannot_unlink_dir may modify process state
15223         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15224         it's neither thread-safe nor appropriate for use in a library.
15225
15226 2009-03-03  Eric Blake  <ebb9@byu.net>
15227
15228         test-closein: silence test under Darwin
15229         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15230         care if it dies from EPIPE or EBADF.
15231
15232 2009-03-03  Bruno Haible  <bruno@clisp.org>
15233
15234         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15235         earlier.
15236         * doc/visibility.texi: Fix @node and @section.
15237
15238 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15239
15240         * doc/gnulib.texi: Link to sections for ld version script and
15241         visibility.
15242         * doc/visibility.texi: Add @node and @section.
15243         * modules/ld-version-script: New module.
15244         * m4/ld-version-script.m4: New file.
15245         * doc/ld-version-script.texi: New file.
15246
15247 2009-03-02  David Lutterkort  <lutter@redhat.com>
15248
15249         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15251
15252 2009-03-02  Bruno Haible  <bruno@clisp.org>
15253
15254         * doc/visibility.texi: Mention libtool's -export-symbols option.
15255
15256 2009-03-02  Jim Meyering  <meyering@redhat.com>
15257
15258         announce-gen: new option: --no-print-checksums
15259         * build-aux/announce-gen (usage): Describe it.
15260         (print_checksums): Print a newline here, not in the [*] footnote.
15261         (main): Honor it.
15262
15263 2009-03-01  Bruno Haible  <bruno@clisp.org>
15264
15265         Use socklen_t in the native Windows replacements prototypes.
15266         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15267         instead of 'int'.
15268         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15269         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15270         * modules/getsockopt (Depends-on): Add socklen.
15271         * modules/setsockopt (Depends-on): Add socklen.
15272
15273 2009-03-01  Bruno Haible  <bruno@clisp.org>
15274
15275         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15276         least 4.2.
15277
15278 2009-03-01  Eric Blake  <ebb9@byu.net>
15279             Bruno Haible  <bruno@clisp.org>
15280
15281         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15282         error messages.
15283         * lib/wait-process.c (wait_subprocess): Omit error message about
15284         deadly signal sent to the child of termsigp != NULL.
15285
15286 2009-03-01  Eric Blake  <ebb9@byu.net>
15287
15288         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15289
15290 2009-03-01  Bruno Haible  <bruno@clisp.org>
15291
15292         Avoid a gcc warning.
15293         * tests/test-sched.c (b): Make global.
15294         Reported by Eric Blake.
15295
15296 2009-01-19  Martin Lambers  <marlam@marlam.de>
15297
15298         Provide POSIX semantics for socket timeout options on W32.
15299         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15300         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15301         * modules/setsockopt: Depend on sys_time module for struct timeval.
15302         * modules/getsockopt: Depend on sys_time module for struct timeval.
15303
15304 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15305
15306         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15307         __USE_GNU, for consistency with netdb.in.h.
15308         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15309
15310 2009-03-01  Bruno Haible  <bruno@clisp.org>
15311
15312         More support for FreeMiNT.
15313         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15314         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15315
15316 2009-03-01  Bruno Haible  <bruno@clisp.org>
15317
15318         More support for FreeMiNT.
15319         * lib/fpurge.c (fpurge): Correct last commit.
15320         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15321
15322 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15323
15324         Fix unportable awk script in vc-list-files.
15325         * build-aux/vc-list-files: In the replacement awk script, use
15326         substr with a second argument of 1, not zero.
15327         Report by Simon Josefsson.
15328
15329 2009-02-28  Bruno Haible  <bruno@clisp.org>
15330
15331         More support for FreeMiNT.
15332         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15333         to FreeMiNT today.
15334         * lib/fwriting.c (fwriting): Likewise.
15335         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15336
15337 2009-02-28  Bruno Haible  <bruno@clisp.org>
15338
15339         * tests/test-freadseek.c (main): Disable test beyond end of file on
15340         FreeMiNT.
15341         * tests/test-ftello.c (main): Likewise.
15342         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15343
15344 2009-02-28  Bruno Haible  <bruno@clisp.org>
15345
15346         Add tentative support for FreeMiNT.
15347         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15348         * lib/fpurge.c (fpurge): Likewise.
15349         * lib/freadable.c (freadable): Likewise.
15350         * lib/freading.c (freading): Likewise.
15351         * lib/freadptr.c (freadptr): Likewise.
15352         * lib/freadseek.c (freadptrinc): Likewise.
15353         * lib/fseeko.c (rpl_fseeko): Likewise.
15354         * lib/fseterr.c (fseterr): Likewise.
15355         * lib/fwritable.c (fwritable): Likewise.
15356         * lib/fwriting.c (fwriting): Likewise.
15357         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15358         Hourihane.
15359         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15360
15361 2009-02-28  Bruno Haible  <bruno@clisp.org>
15362
15363         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15364         SIGCHLD.
15365         Reported by Jim Meyering.
15366
15367 2009-02-28  Bruno Haible  <bruno@clisp.org>
15368
15369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15370         Mention the results of these tests on various platforms.
15371         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15372         order.
15373         * doc/posix-functions/printf.texi: Likewise.
15374         * doc/posix-functions/snprintf.texi: Likewise.
15375         * doc/posix-functions/sprintf.texi: Likewise.
15376         * doc/posix-functions/vfprintf.texi: Likewise.
15377         * doc/posix-functions/vprintf.texi: Likewise.
15378         * doc/posix-functions/vsnprintf.texi: Likewise.
15379         * doc/posix-functions/vsprintf.texi: Likewise.
15380         * doc/glibc-functions/obstack_printf.texi: Likewise.
15381         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15382
15383 2009-02-28  Bruno Haible  <bruno@clisp.org>
15384
15385         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15386         Reported by Loïc Minier <lool@dooz.org>.
15387
15388 2009-02-27  Bruno Haible  <bruno@clisp.org>
15389
15390         * gnulib-tool (func_import): Make the sed expression used to create the
15391         sed script for updating the .gitignore file POSIX compliant.
15392         Reported by Eric Blake.
15393
15394 2009-02-27  Bruno Haible  <bruno@clisp.org>
15395
15396         * gnulib-tool (sed): Don't alias as "sed --posix".
15397         Reported by Eric Blake.
15398
15399 2009-02-27  Bruno Haible  <bruno@clisp.org>
15400
15401         Avoid test link errors.
15402         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15403         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15404         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15405         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15407
15408 2009-02-27  Bruno Haible  <bruno@clisp.org>
15409
15410         Avoid spurious "(cached)" in configure output.
15411         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15412         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15413         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15414         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15415         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15416         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15417         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15418         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15419         Reported by Eric Blake.
15420
15421 2009-02-27  Eric Blake  <ebb9@byu.net>
15422
15423         printf: fix regression in previous patch
15424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15425
15426 2009-02-27  Bruno Haible  <bruno@clisp.org>
15427
15428         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15429         value.
15430         * lib/stdint.in.h: Likewise.
15431         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15432
15433 2009-02-27  Eric Blake  <ebb9@byu.net>
15434
15435         doc: mention more functions added in cygwin 1.7.0
15436         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15437         addition.
15438         * doc/posix-functions/open_wmemstream.texi: Likewise.
15439         * doc/posix-functions/wcsnlen.texi: Likewise.
15440         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15441         * doc/posix-functions/wcstod.texi: Likewise.
15442         * doc/posix-functions/wcstof.texi: Likewise.
15443         * doc/posix-functions/wcstoimax.texi: Likewise.
15444         * doc/posix-functions/wcstok.texi: Likewise.
15445         * doc/posix-functions/wcstoumax.texi: Likewise.
15446
15447         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15449         * doc/posix-functions/fprintf.texi: Update.
15450         * doc/posix-functions/printf.texi: Update.
15451         * doc/posix-functions/snprintf.texi: Update.
15452         * doc/posix-functions/sprintf.texi: Update.
15453         * doc/posix-functions/vfprintf.texi: Update.
15454         * doc/posix-functions/vprintf.texi: Update.
15455         * doc/posix-functions/vsnprintf.texi: Update.
15456         * doc/posix-functions/vsprintf.texi: Update.
15457         * doc/glibc-functions/obstack_printf.texi: Update.
15458         * doc/glibc-functions/obstack_vprintf.texi: Update.
15459
15460 2009-02-26  Eric Blake  <ebb9@byu.net>
15461
15462         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15463         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15464         compilation bug by using runtime conversion.
15465         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15466         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15467         * modules/ceill-tests (Files): Use nan.h.
15468         * modules/floorl-tests (Files): Likewise.
15469         * modules/frexpl-tests (Files): Likewise.
15470         * modules/isnanl-tests (Files): Likewise.
15471         * modules/ldexpl-tests (Files): Likewise.
15472         * modules/roundl-tests (Files): Likewise.
15473         * modules/truncl-tests (Files): Likewise.
15474         * tests/test-ceill.c (main): Use a working NaN.
15475         * tests/test-floorl.c (main): Likewise.
15476         * tests/test-frexpl.c (main): Likewise.
15477         * tests/test-isnan.c (test_long_double): Likewise.
15478         * tests/test-isnanl.h (main): Likewise.
15479         * tests/test-ldexpl.h (main): Likewise.
15480         * tests/test-roundl.h (main): Likewise.
15481         * tests/test-truncl.h (main): Likewise.
15482         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15483
15484 2009-02-26  Eric Blake  <ebb9@byu.net>
15485             Bruno Haible  <bruno@clisp.org>
15486
15487         Work around a *printf bug with %ls on Solaris.
15488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15489         precision is specified, sprintf stops converting the wide string
15490         argument when the number of bytes that have been produced by this
15491         conversion equals or exceeds the precision.
15492         * doc/posix-functions/fprintf.texi: Update.
15493         * doc/posix-functions/printf.texi: Update.
15494         * doc/posix-functions/snprintf.texi: Update.
15495         * doc/posix-functions/sprintf.texi: Update.
15496         * doc/posix-functions/vfprintf.texi: Update.
15497         * doc/posix-functions/vprintf.texi: Update.
15498         * doc/posix-functions/vsnprintf.texi: Update.
15499         * doc/posix-functions/vsprintf.texi: Update.
15500         * doc/glibc-functions/obstack_printf.texi: Update.
15501         * doc/glibc-functions/obstack_vprintf.texi: Update.
15502
15503 2009-02-26  Eric Blake  <ebb9@byu.net>
15504
15505         stdlib: favor compiler check of random.h
15506         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15507         to avoid an ObjC random.h installed by Swarm.
15508
15509 2009-02-26  Bruno Haible  <bruno@clisp.org>
15510
15511         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15512         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15513         Reported by Gary V. Vaughan <gary@gnu.org>.
15514
15515 2009-02-26  Bruno Haible  <bruno@clisp.org>
15516
15517         Fix *printf behaviour regarding the %ls directive.
15518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15519         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15520         NEED_PRINTF_DIRECTIVE_LS.
15521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15522         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15524         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15525         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15526         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15527         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15532         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15533         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15536         * doc/posix-functions/fprintf.texi: Update.
15537         * doc/posix-functions/printf.texi: Update.
15538         * doc/posix-functions/snprintf.texi: Update.
15539         * doc/posix-functions/sprintf.texi: Update.
15540         * doc/posix-functions/vfprintf.texi: Update.
15541         * doc/posix-functions/vprintf.texi: Update.
15542         * doc/posix-functions/vsnprintf.texi: Update.
15543         * doc/posix-functions/vsprintf.texi: Update.
15544         * doc/glibc-functions/obstack_printf.texi: Update.
15545         * doc/glibc-functions/obstack_vprintf.texi: Update.
15546         Reported by Eric Blake.
15547
15548 2009-02-25  Bruno Haible  <bruno@clisp.org>
15549
15550         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15551         with known value.
15552         Reported by Gary V. Vaughan <gary@gnu.org>.
15553
15554 2009-02-25  Bruno Haible  <bruno@clisp.org>
15555
15556         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15557         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15558         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15559         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15560         Reported by Gary V. Vaughan <gary@gnu.org>.
15561
15562 2009-02-25  Bruno Haible  <bruno@clisp.org>
15563
15564         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15565         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15566         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15567         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15568         Reported by Gary V. Vaughan <gary@gnu.org>.
15569
15570 2009-02-25  Eric Blake  <ebb9@byu.net>
15571
15572         tests: skip fseek/ftell tests if ungetc is broken
15573         * m4/ungetc.m4: New file.
15574         * modules/fseek-tests: Split test, so ungetc dependency is
15575         separate from rest of test.
15576         * modules/fseeko-tests: Likewise.
15577         * modules/ftell-tests: Likewise.
15578         * modules/ftello-tests: Likewise.
15579         * tests/test-fseek.c (main): Isolate ungetc dependency.
15580         * tests/test-fseeko.c (main): Likewise.
15581         * tests/test-ftell.c (main): Likewise.
15582         * tests/test-ftello.c (main): Likewise.
15583         * tests/test-fseek2.sh: New file.
15584         * tests/test-fseeko2.sh: Likewise.
15585         * tests/test-ftell2.sh: Likewise.
15586         * tests/test-ftello2.sh: Likewise.
15587
15588 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15589
15590         test-getaddrinfo: fix usage of skip return code 77
15591         * tests/test-gettaddrinfo.c: Return skip code 77 only
15592         for first occurance of skip (4x77 is not 77)
15593
15594 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15595
15596         strtod: avoid C99 decl-after-statement
15597         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15598
15599 2009-02-24  Eric Blake  <ebb9@byu.net>
15600
15601         strtod: detect HP-UX 11.31 bug
15602         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15603         Reported by Gary V. Vaughan.
15604
15605 2009-02-23  Bruno Haible  <bruno@clisp.org>
15606
15607         Fix invalid read past end of memory block.
15608         * lib/vasnprintf.c (DCHAR_SET): Define.
15609         (local_wcslen): Define only when needed.
15610         (local_strnlen, local_wcsnlen): New functions.
15611         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15612         directives that involve a conversion ourselves.
15613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15614         wcsnlen, mbrtowc, wcrtomb.
15615         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15616         * tests/test-vasprintf-posix.c (test_function): Likewise.
15617         * tests/test-snprintf-posix.h (test_function): Likewise.
15618         * tests/test-sprintf-posix.h (test_function): Likewise.
15619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15620
15621 2009-02-22  Bruno Haible  <bruno@clisp.org>
15622
15623         Implement new clarified decomposition of Hangul syllables.
15624         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15625         of type LTV, return only a pairwise decomposition.
15626         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15627         Likewise.
15628         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15629         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15630         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15631
15632 2009-02-22  Bruno Haible  <bruno@clisp.org>
15633
15634         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15635         zero-length results and shrink excess allocated memory.
15636         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15637         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15638         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15639         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15640         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15641         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15642         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15643         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15644         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15645         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15646         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15647         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15648
15649 2009-02-21  Bruno Haible  <bruno@clisp.org>
15650
15651         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15652         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15653         spaces after a period. Put a space between a macro name and its
15654         argument list. Trivial rewordings.
15655         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15656         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15657         (main): Return 0 explicitly.
15658
15659 2009-02-21  Bruno Haible  <bruno@clisp.org>
15660
15661         Tests for module 'uninorm/filter'.
15662         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15663         * modules/uninorm/filter-tests: New file.
15664
15665         New module 'uninorm/filter'.
15666         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15667         uninorm_filter_flush, uninorm_filter_free): New declarations.
15668         * lib/uninorm/uninorm-filter.c: New file.
15669         * modules/uninorm/filter: New file.
15670
15671 2009-02-21  Bruno Haible  <bruno@clisp.org>
15672
15673         Tests for module 'uninorm/nfkc'.
15674         * tests/uninorm/test-nfkc.c: New file.
15675         * tests/uninorm/test-u8-nfkc.c: New file.
15676         * tests/uninorm/test-u16-nfkc.c: New file.
15677         * tests/uninorm/test-u32-nfkc.c: New file.
15678         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15679         * tests/uninorm/test-u32-nfkc-big.c: New file.
15680         * modules/uninorm/nfkc-tests: New file.
15681
15682         New module 'uninorm/nfkc'.
15683         * lib/uninorm/nfkc.c: New file.
15684         * modules/uninorm/nfkc: New file.
15685
15686         Tests for module 'uninorm/nfkd'.
15687         * tests/uninorm/test-nfkd.c: New file.
15688         * tests/uninorm/test-u8-nfkd.c: New file.
15689         * tests/uninorm/test-u16-nfkd.c: New file.
15690         * tests/uninorm/test-u32-nfkd.c: New file.
15691         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15692         * tests/uninorm/test-u32-nfkd-big.c: New file.
15693         * modules/uninorm/nfkd-tests: New file.
15694
15695         New module 'uninorm/nfkd'.
15696         * lib/uninorm/nfkd.c: New file.
15697         * modules/uninorm/nfkd: New file.
15698
15699         Tests for module 'uninorm/nfc'.
15700         * tests/uninorm/test-nfc.c: New file.
15701         * tests/uninorm/test-u8-nfc.c: New file.
15702         * tests/uninorm/test-u16-nfc.c: New file.
15703         * tests/uninorm/test-u32-nfc.c: New file.
15704         * tests/uninorm/test-u32-nfc-big.sh: New file.
15705         * tests/uninorm/test-u32-nfc-big.c: New file.
15706         * modules/uninorm/nfc-tests: New file.
15707
15708         New module 'uninorm/nfc'.
15709         * lib/uninorm/nfc.c: New file.
15710         * modules/uninorm/nfc: New file.
15711
15712         Tests for module 'uninorm/nfd'.
15713         * tests/uninorm/test-nfd.c: New file.
15714         * tests/uninorm/test-u8-nfd.c: New file.
15715         * tests/uninorm/test-u16-nfd.c: New file.
15716         * tests/uninorm/test-u32-nfd.c: New file.
15717         * tests/uninorm/test-u32-nfd-big.sh: New file.
15718         * tests/uninorm/test-u32-nfd-big.c: New file.
15719         * tests/uninorm/test-u32-normalize-big.h: New file.
15720         * tests/uninorm/test-u32-normalize-big.c: New file.
15721         * tests/uninorm/NormalizationTest.txt: New file, created from
15722         Unicode 5.1.0 NormalizationTest.txt.
15723         * modules/uninorm/nfd-tests: New file.
15724
15725         New module 'uninorm/nfd'.
15726         * lib/uninorm/nfd.c: New file.
15727         * modules/uninorm/nfd: New file.
15728
15729         New module 'uninorm/u32-normalize'.
15730         * lib/uninorm/u32-normalize.c: New file.
15731         * modules/uninorm/u32-normalize: New file.
15732
15733         New module 'uninorm/u16-normalize'.
15734         * lib/uninorm/u16-normalize.c: New file.
15735         * modules/uninorm/u16-normalize: New file.
15736
15737         New module 'uninorm/u8-normalize'.
15738         * lib/uninorm/u8-normalize.c: New file.
15739         * lib/uninorm/normalize-internal.h: New file.
15740         * lib/uninorm/u-normalize-internal.h: New file.
15741         * modules/uninorm/u8-normalize: New file.
15742
15743         New module 'uninorm/decompose-internal'.
15744         * lib/uninorm/decompose-internal.c: New file.
15745         * modules/uninorm/decompose-internal: New file.
15746
15747         Tests for module 'uninorm/composition'.
15748         * tests/uninorm/test-composition.c: New file.
15749         * modules/uninorm/composition-tests: New file.
15750
15751         New module 'uninorm/composition'.
15752         * lib/uninorm/composition.c: New file.
15753         * lib/uninorm/composition-table.gperf: New file, generated by
15754         gen-uni-tables.
15755         * modules/uninorm/composition: New file.
15756
15757         Tests for module 'uninorm/compat-decomposition'.
15758         * tests/uninorm/test-compat-decomposition.c: New file.
15759         * modules/uninorm/compat-decomposition-tests: New file.
15760
15761         New module 'uninorm/compat-decomposition'.
15762         * lib/uninorm/decompose-internal.h: New file.
15763         * lib/uninorm/compat-decomposition.c: New file.
15764         * modules/uninorm/compat-decomposition: New file.
15765
15766         Tests for module 'uninorm/canonical-decomposition'.
15767         * tests/uninorm/test-canonical-decomposition.c: New file.
15768         * modules/uninorm/canonical-decomposition-tests: New file.
15769
15770         New module 'uninorm/canonical-decomposition'.
15771         * lib/uninorm/canonical-decomposition.c: New file.
15772         * modules/uninorm/canonical-decomposition: New file.
15773
15774         Tests for module 'uninorm/decomposition'.
15775         * tests/uninorm/test-decomposition.c: New file.
15776         * modules/uninorm/decomposition-tests: New file.
15777
15778         New module 'uninorm/decomposition'.
15779         * lib/uninorm/decomposition.c: New file.
15780         * modules/uninorm/decomposition: New file.
15781
15782         New module 'uninorm/decomposition-table'.
15783         * lib/uninorm/decomposition-table.h: New file.
15784         * lib/uninorm/decomposition-table.c: New file.
15785         * lib/uninorm/decomposition-table1.h: New file, generated by
15786         gen-uni-tables.
15787         * lib/uninorm/decomposition-table2.h: New file, generated by
15788         gen-uni-tables.
15789         * modules/uninorm/decomposition-table: New file.
15790
15791         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15792         (UC_DECOMP_*): New enumeration items.
15793         (get_decomposition): New function.
15794         (struct decomp_table): New type.
15795         (output_decomposition, output_decomposition_tables): New functions.
15796         (unicode_composition_exclusions): New variable.
15797         (fill_composition_exclusions, debug_output_composition_tables): New
15798         functions.
15799         (main): Accept one more argument. Invoke fill_composition_exclusions.
15800         Output decomposition and composition tables.
15801
15802         New module 'uninorm/base'.
15803         * lib/uninorm.h: New file.
15804         * lib/unictype.h: Update comment.
15805         * modules/uninorm/base: New file.
15806
15807 2009-02-21  David Lutterkort  <lutter@redhat.com>
15808
15809         Tests for module 'safe-alloc'.
15810         * tests/test-safe-alloc.c: New file.
15811         * modules/safe-alloc-tests: New file.
15812
15813         New module 'safe-alloc'.
15814         * lib/safe-alloc.h: New file.
15815         * lib/safe-alloc.c: New file.
15816         * m4/safe-alloc.m4: New file.
15817         * modules/safe-alloc: New file.
15818         * doc/safe-alloc.texi: New file.
15819         * doc/gnulib.texi: Include it.
15820         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15821         safe-alloc.
15822
15823 2009-02-18  Bruno Haible  <bruno@clisp.org>
15824
15825         Fix link error on non-glibc systems.
15826         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15827         variable.
15828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15829
15830 2009-02-18  Jim Meyering  <meyering@redhat.com>
15831
15832         fts: avoid used-uninitialized error due to recent change
15833         * lib/fts.c (fts_read): Guard uses of the new member,
15834         parent->fts_n_dirs_remaining, since it's not relevant for
15835         the parent of a directory specified on the command-line.
15836
15837 2009-02-17  James Youngman  <jay@gnu.org>
15838             Bruno Haible  <bruno@clisp.org>
15839
15840         * m4/include_next.m4: Reformulate comment.
15841
15842 2009-02-16  Jim Meyering  <meyering@redhat.com>
15843
15844         fts: add #if guards so that the fts_lgpl module still builds
15845         * lib/fts.c: Guard just-added hash-table-using parts with
15846         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15847         Reported by Simon Josefsson.
15848
15849 2009-02-15  Bruno Haible  <bruno@clisp.org>
15850
15851         * modules/array-mergesort-tests: New file.
15852         * tests/test-array-mergesort.c: New file.
15853
15854         New module 'array-mergesort'.
15855         * modules/array-mergesort: New file.
15856         * lib/array-mergesort.h: New file.
15857
15858 2009-02-15  Bruno Haible  <bruno@clisp.org>
15859
15860         Fix 2009-02-07 commit.
15861         * lib/gen-uni-tables.c (output_predicate, output_category,
15862         output_combclass, output_bidi_category, output_decimal_digit,
15863         output_digit, output_numeric, output_mirror, output_scripts,
15864         output_ident_category, output_simple_mapping): Fix format directives.
15865         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15866
15867 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15868
15869         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15870         fixes are available from IBM.
15871
15872 2009-02-13  Jim Meyering  <meyering@redhat.com>
15873
15874         fts: arrange not to stat non-directories in more cases
15875         This makes GNU find (when it doesn't need to stat each file)
15876         *much* more efficient at traversing reiserfs file systems.
15877         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15878         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15879         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15880         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15881         (leaf_optimization_applies): New function.
15882         (LCO_hash, LCO_compare): New helper functions.
15883         (link_count_optimize_ok): New function.
15884         (fts_stat): Initialize new member (if dir).
15885         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15886         we've just stat'ed a directory.  Skip the stat call when possible.
15887         ---
15888         Note this AFS-related exchange:
15889         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15890         and note find's pioctl call in find/fstype.c.
15891         But that is necessary only if you want to enable the
15892         optimization for AFS, and for now, I don't.
15893
15894         fts: move a function definition "up" (no semantic change)
15895         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15896         "up" to precede upcoming use of a related function.
15897
15898 2009-02-11  Jim Meyering  <meyering@redhat.com>
15899
15900         fts: correct internal computation of nlinks (optimization-related)
15901         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15902         whether the current entry is a directory, so don't test it.
15903
15904 2009-02-10  Bruno Haible  <bruno@clisp.org>
15905
15906         Tests for module 'uniwbrk/ulc-wordbreaks'.
15907         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15908         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15909         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15910
15911         Tests for module 'uniwbrk/u32-wordbreaks'.
15912         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15913         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15914
15915         Tests for module 'uniwbrk/u16-wordbreaks'.
15916         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15917         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15918
15919         Tests for module 'uniwbrk/u8-wordbreaks'.
15920         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15921         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15922
15923 2009-02-10  Bruno Haible  <bruno@clisp.org>
15924
15925         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15926         property.
15927         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15928         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15929         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15930
15931 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15932
15933         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15934         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15935
15936 2009-02-10  Bruno Haible  <bruno@clisp.org>
15937
15938         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15939         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15940         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15941         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15942         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15943         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15944
15945 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15946
15947         * lib/sockets.h (gl_fd_to_handle): New function.
15948
15949         * tests/test-sockets.c: Call gl_fd_to_handle.
15950
15951 2009-02-09  Bruno Haible  <bruno@clisp.org>
15952
15953         * doc/havelib.texi: Document the conventions on bi-arch systems.
15954
15955 2009-02-08  Bruno Haible  <bruno@clisp.org>
15956
15957         Document the AC_LIB_LINKFLAGS macro.
15958         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15959         * doc/gnulib.texi: Include it.
15960
15961 2009-02-08  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix wrong order of sections, compared to TOC.
15964         * doc/gnulib.texi: Include relocatable-maint.texi after the
15965         "Regular expressions" node, not before.
15966
15967 2009-02-08  Bruno Haible  <bruno@clisp.org>
15968
15969         Tests for module 'unicase/totitle'.
15970         * modules/unicase/totitle-tests: New file.
15971
15972         Tests for module 'unicase/tolower'.
15973         * modules/unicase/tolower-tests: New file.
15974
15975         Tests for module 'unicase/toupper'.
15976         * modules/unicase/toupper-tests: New file.
15977         * tests/unicase/test-mapping-part1.h: New file.
15978         * tests/unicase/test-mapping-part2.h: New file.
15979
15980         New module 'unicase/totitle'.
15981         * modules/unicase/totitle: New file.
15982         * lib/unicase/totitle.c: New file.
15983
15984         New module 'unicase/tolower'.
15985         * modules/unicase/tolower: New file.
15986         * lib/unicase/tolower.c: New file.
15987
15988         New module 'unicase/toupper'.
15989         * modules/unicase/toupper: New file.
15990         * lib/unicase/toupper.c: New file.
15991         * lib/unicase/simple-mapping.h: New file.
15992
15993         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15994         (mapping_table): New structure.
15995         (output_simple_mapping): New function.
15996         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15997         * modules/gen-uni-tables (Description): Update.
15998         * lib/unicase/toupper.h: New file, automatically generated by
15999         gen-uni-tables.
16000         * lib/unicase/tolower.h: New file, automatically generated by
16001         gen-uni-tables.
16002         * lib/unicase/totitle.h: New file, automatically generated by
16003         gen-uni-tables.
16004         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16005         gen-uni-tables.
16006         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16007         gen-uni-tables.
16008         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16009         gen-uni-tables.
16010
16011         New module 'unicase/base'.
16012         * modules/unicase/base: New file.
16013         * lib/unicase.h: New file.
16014
16015 2009-02-08  Bruno Haible  <bruno@clisp.org>
16016
16017         New module 'uniwbrk/ulc-wordbreaks'.
16018         * modules/uniwbrk/ulc-wordbreaks: New file.
16019         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16020
16021         New module 'uniwbrk/u32-wordbreaks'.
16022         * modules/uniwbrk/u32-wordbreaks: New file.
16023         * lib/uniwbrk/u32-wordbreaks.c: New file.
16024
16025         New module 'uniwbrk/u16-wordbreaks'.
16026         * modules/uniwbrk/u16-wordbreaks: New file.
16027         * lib/uniwbrk/u16-wordbreaks.c: New file.
16028
16029         New module 'uniwbrk/u8-wordbreaks'.
16030         * modules/uniwbrk/u8-wordbreaks: New file.
16031         * lib/uniwbrk/u8-wordbreaks.c: New file.
16032         * lib/uniwbrk/u-wordbreaks.h: New file.
16033
16034         New module 'uniwbrk/table'.
16035         * modules/uniwbrk/table: New file.
16036         * lib/uniwbrk/wbrktable.h: New file.
16037         * lib/uniwbrk/wbrktable.c: New file.
16038
16039         New module 'uniwbrk/wordbreak-property'.
16040         * modules/uniwbrk/wordbreak-property: New file.
16041         * lib/uniwbrk/wordbreak-property.c: New file.
16042
16043         * lib/gen-uni-tables.c (WBP_*): New enum items.
16044         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16045         (unicode_org_wbp): New variable.
16046         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16047         New functions.
16048         (wbp_table): New structure.
16049         (output_wbp, output_wbrk_tables): New functions.
16050         (main): Accept additional argument. Invoke fill_org_wbp,
16051         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16052         output_wbrk_tables.
16053         * modules/gen-uni-tables (Description): Update.
16054         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16055         gen-uni-tables.
16056
16057         New module 'uniwbrk/base'.
16058         * modules/uniwbrk/base: New file.
16059         * lib/uniwbrk.h: New file.
16060
16061 2009-02-08  Bruno Haible  <bruno@clisp.org>
16062
16063         Update to Unicode 5.1.0.
16064         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16065         U+2185..U+2188.
16066         (is_property_default_ignorable_code_point): Don't include characters
16067         of category Cc or Cs and not-a-characters.
16068         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16069         U+0D79, U+109E, U+109F, U+A60C.
16070         * lib/unictype/bidi_of.h: Regenerated.
16071         * lib/unictype/blocks.h: Regenerated.
16072         * lib/unictype/categ_C.h: Regenerated.
16073         * lib/unictype/categ_Cf.h: Regenerated.
16074         * lib/unictype/categ_Cn.h: Regenerated.
16075         * lib/unictype/categ_L.h: Regenerated.
16076         * lib/unictype/categ_Ll.h: Regenerated.
16077         * lib/unictype/categ_Lm.h: Regenerated.
16078         * lib/unictype/categ_Lo.h: Regenerated.
16079         * lib/unictype/categ_Lu.h: Regenerated.
16080         * lib/unictype/categ_M.h: Regenerated.
16081         * lib/unictype/categ_Mc.h: Regenerated.
16082         * lib/unictype/categ_Me.h: Regenerated.
16083         * lib/unictype/categ_Mn.h: Regenerated.
16084         * lib/unictype/categ_N.h: Regenerated.
16085         * lib/unictype/categ_Nd.h: Regenerated.
16086         * lib/unictype/categ_Nl.h: Regenerated.
16087         * lib/unictype/categ_No.h: Regenerated.
16088         * lib/unictype/categ_P.h: Regenerated.
16089         * lib/unictype/categ_Pd.h: Regenerated.
16090         * lib/unictype/categ_Pe.h: Regenerated.
16091         * lib/unictype/categ_Pf.h: Regenerated.
16092         * lib/unictype/categ_Pi.h: Regenerated.
16093         * lib/unictype/categ_Po.h: Regenerated.
16094         * lib/unictype/categ_Ps.h: Regenerated.
16095         * lib/unictype/categ_S.h: Regenerated.
16096         * lib/unictype/categ_Sk.h: Regenerated.
16097         * lib/unictype/categ_Sm.h: Regenerated.
16098         * lib/unictype/categ_So.h: Regenerated.
16099         * lib/unictype/categ_of.h: Regenerated.
16100         * lib/unictype/combining.h: Regenerated.
16101         * lib/unictype/ctype_alnum.h: Regenerated.
16102         * lib/unictype/ctype_alpha.h: Regenerated.
16103         * lib/unictype/ctype_graph.h: Regenerated.
16104         * lib/unictype/ctype_lower.h: Regenerated.
16105         * lib/unictype/ctype_print.h: Regenerated.
16106         * lib/unictype/ctype_punct.h: Regenerated.
16107         * lib/unictype/ctype_upper.h: Regenerated.
16108         * lib/unictype/decdigit.h: Regenerated.
16109         * lib/unictype/digit.h: Regenerated.
16110         * lib/unictype/mirror.h: Regenerated.
16111         * lib/unictype/numeric.h: Regenerated.
16112         * lib/unictype/pr_alphabetic.h: Regenerated.
16113         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16114         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16115         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16116         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16117         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16118         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16119         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16120         * lib/unictype/pr_combining.h: Regenerated.
16121         * lib/unictype/pr_dash.h: Regenerated.
16122         * lib/unictype/pr_decimal_digit.h: Regenerated.
16123         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16124         * lib/unictype/pr_deprecated.h: Regenerated.
16125         * lib/unictype/pr_diacritic.h: Regenerated.
16126         * lib/unictype/pr_extender.h: Regenerated.
16127         * lib/unictype/pr_format_control.h: Regenerated.
16128         * lib/unictype/pr_grapheme_base.h: Regenerated.
16129         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16130         * lib/unictype/pr_grapheme_link.h: Regenerated.
16131         * lib/unictype/pr_id_continue.h: Regenerated.
16132         * lib/unictype/pr_id_start.h: Regenerated.
16133         * lib/unictype/pr_ideographic.h: Regenerated.
16134         * lib/unictype/pr_ignorable_control.h: Regenerated.
16135         * lib/unictype/pr_lowercase.h: Regenerated.
16136         * lib/unictype/pr_math.h: Regenerated.
16137         * lib/unictype/pr_numeric.h: Regenerated.
16138         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16139         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16140         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16141         * lib/unictype/pr_other_id_continue.h: Regenerated.
16142         * lib/unictype/pr_other_lowercase.h: Regenerated.
16143         * lib/unictype/pr_other_math.h: Regenerated.
16144         * lib/unictype/pr_punctuation.h: Regenerated.
16145         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16146         * lib/unictype/pr_soft_dotted.h: Regenerated.
16147         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16148         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16149         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16150         * lib/unictype/pr_uppercase.h: Regenerated.
16151         * lib/unictype/pr_xid_continue.h: Regenerated.
16152         * lib/unictype/pr_xid_start.h: Regenerated.
16153         * lib/unictype/pr_zero_width.h: Regenerated.
16154         * lib/unictype/scripts.h: Regenerated.
16155         * lib/unictype/scripts_byname.gperf: Regenerated.
16156         * lib/unictype/sy_java_ident.h: Regenerated.
16157         * lib/unilbrk/lbrkprop1.h: Regenerated.
16158         * lib/unilbrk/lbrkprop2.h: Regenerated.
16159         * tests/unictype/test-categ_C.c: Regenerated.
16160         * tests/unictype/test-categ_Cf.c: Regenerated.
16161         * tests/unictype/test-categ_Cn.c: Regenerated.
16162         * tests/unictype/test-categ_L.c: Regenerated.
16163         * tests/unictype/test-categ_Ll.c: Regenerated.
16164         * tests/unictype/test-categ_Lm.c: Regenerated.
16165         * tests/unictype/test-categ_Lo.c: Regenerated.
16166         * tests/unictype/test-categ_Lu.c: Regenerated.
16167         * tests/unictype/test-categ_M.c: Regenerated.
16168         * tests/unictype/test-categ_Mc.c: Regenerated.
16169         * tests/unictype/test-categ_Me.c: Regenerated.
16170         * tests/unictype/test-categ_Mn.c: Regenerated.
16171         * tests/unictype/test-categ_N.c: Regenerated.
16172         * tests/unictype/test-categ_Nd.c: Regenerated.
16173         * tests/unictype/test-categ_Nl.c: Regenerated.
16174         * tests/unictype/test-categ_No.c: Regenerated.
16175         * tests/unictype/test-categ_P.c: Regenerated.
16176         * tests/unictype/test-categ_Pd.c: Regenerated.
16177         * tests/unictype/test-categ_Pe.c: Regenerated.
16178         * tests/unictype/test-categ_Pf.c: Regenerated.
16179         * tests/unictype/test-categ_Pi.c: Regenerated.
16180         * tests/unictype/test-categ_Po.c: Regenerated.
16181         * tests/unictype/test-categ_Ps.c: Regenerated.
16182         * tests/unictype/test-categ_S.c: Regenerated.
16183         * tests/unictype/test-categ_Sk.c: Regenerated.
16184         * tests/unictype/test-categ_Sm.c: Regenerated.
16185         * tests/unictype/test-categ_So.c: Regenerated.
16186         * tests/unictype/test-ctype_alnum.c: Regenerated.
16187         * tests/unictype/test-ctype_alpha.c: Regenerated.
16188         * tests/unictype/test-ctype_graph.c: Regenerated.
16189         * tests/unictype/test-ctype_lower.c: Regenerated.
16190         * tests/unictype/test-ctype_print.c: Regenerated.
16191         * tests/unictype/test-ctype_punct.c: Regenerated.
16192         * tests/unictype/test-ctype_upper.c: Regenerated.
16193         * tests/unictype/test-decdigit.h: Regenerated.
16194         * tests/unictype/test-digit.h: Regenerated.
16195         * tests/unictype/test-numeric.h: Regenerated.
16196         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16197         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16198         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16199         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16200         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16201         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16202         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16203         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16204         * tests/unictype/test-pr_combining.c: Regenerated.
16205         * tests/unictype/test-pr_dash.c: Regenerated.
16206         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16207         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16208         * tests/unictype/test-pr_deprecated.c: Regenerated.
16209         * tests/unictype/test-pr_diacritic.c: Regenerated.
16210         * tests/unictype/test-pr_extender.c: Regenerated.
16211         * tests/unictype/test-pr_format_control.c: Regenerated.
16212         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16213         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16214         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16215         * tests/unictype/test-pr_id_continue.c: Regenerated.
16216         * tests/unictype/test-pr_id_start.c: Regenerated.
16217         * tests/unictype/test-pr_ideographic.c: Regenerated.
16218         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16219         * tests/unictype/test-pr_lowercase.c: Regenerated.
16220         * tests/unictype/test-pr_math.c: Regenerated.
16221         * tests/unictype/test-pr_numeric.c: Regenerated.
16222         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16223         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16224         Regenerated.
16225         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16226         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16227         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16228         * tests/unictype/test-pr_other_math.c: Regenerated.
16229         * tests/unictype/test-pr_punctuation.c: Regenerated.
16230         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16231         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16232         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16233         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16234         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16235         * tests/unictype/test-pr_uppercase.c: Regenerated.
16236         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16237         * tests/unictype/test-pr_xid_start.c: Regenerated.
16238         * tests/unictype/test-pr_zero_width.c: Regenerated.
16239
16240         Update to Unicode 5.1.0.
16241         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16242         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16243         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16244         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16245         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16246         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16247         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16248         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16249         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16250         (nonspacing_table_ind): Update.
16251         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16252
16253         Update to Unicode 5.1.0.
16254         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16255         code transform.
16256         * lib/uniname/uniname.c (unicode_character_name,
16257         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16258         * lib/uniname/uninames.h: Regenerated.
16259         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16260
16261 2009-02-07  Bruno Haible  <bruno@clisp.org>
16262
16263         Merge gen-ctype and gen-lbrk into a single program.
16264         * lib/gen-uni-tables.c: New file, incorporating
16265         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16266         Add directory prefixes to the names of the generated files.
16267         * lib/unictype/gen-ctype.c: Remove file.
16268         * lib/unilbrk/gen-lbrk.c: Remove file.
16269         * modules/gen-uni-tables: New file.
16270         * modules/unictype/gen-ctype: Remove file.
16271         * modules/unilbrk/gen-lbrk: Remove file.
16272
16273 2009-02-07  Bruno Haible  <bruno@clisp.org>
16274
16275         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16276
16277         New module 'unistr/u32-strcoll'.
16278         * modules/unistr/u32-strcoll: New file.
16279         * lib/unistr/u32-strcoll.c: New file.
16280
16281         New module 'unistr/u16-strcoll'.
16282         * modules/unistr/u16-strcoll: New file.
16283         * lib/unistr/u16-strcoll.c: New file.
16284
16285         New module 'unistr/u8-strcoll'.
16286         * modules/unistr/u8-strcoll: New file.
16287         * lib/unistr/u8-strcoll.c: New file.
16288         * lib/unistr/u-strcoll.h: New file.
16289
16290 2009-02-07  Bruno Haible  <bruno@clisp.org>
16291
16292         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16293         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16294         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16295         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16296         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16297         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16298
16299 2009-02-07  Bruno Haible  <bruno@clisp.org>
16300
16301         Make 64-bit clean.
16302         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16303         output_combclass, output_bidi_category, output_decimal_digit,
16304         output_digit, output_numeric, output_mirror, output_scripts,
16305         output_ident_category): Use proper width specifier in format strings.
16306
16307 2009-02-07  Bruno Haible  <bruno@clisp.org>
16308
16309         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16310         failure behaviour.
16311
16312 2009-02-07  Jim Meyering  <meyering@redhat.com>
16313
16314         regex: avoid compilation failure with upcoming gcc-4.4
16315         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16316         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16317         "... error: integer overflow in preprocessor expression".
16318
16319 2009-02-05  Ben Pfaff  <blp@gnu.org>
16320
16321         Fix link errors on Windows when close module is used.
16322         * modules/close: Add $(LIB_CLOSE) to Link section.
16323         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16324         $(LIB_CLOSE) on Windows.
16325
16326 2009-02-05  Jim Meyering  <meyering@redhat.com>
16327
16328         still avoid unused-parameter warnings, but do it cleanly
16329         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16330         (get_fs_usage): Cast to void instead.
16331         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16332         (dev_from_mount_options, read_file_system_list): Cast to void.
16333         Prompted by Bruno Haible.
16334
16335 2009-02-04  Jim Meyering  <meyering@redhat.com>
16336
16337         fsusage.c: correct copyright year
16338         * lib/fsusage.c: Reflect year in which the change is pushed into
16339
16340         avoid misc. warnings
16341         * lib/fsusage.c (UNUSED_PARAM): Define.
16342         (get_fs_usage): Mark parameter "disk" as unused.
16343         * lib/getugroups.c (getgrent): Use "void" in prototype.
16344         * lib/mountlist.c: Mark unused parameters.
16345         (read_file_system_list): Declare a local with "const".
16346         * lib/nanosleep.c (getnow): Declare static.
16347         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16348
16349         dirfd: set errno upon failure
16350         * lib/dirfd.c: Include <errno.h>.
16351         Set errno to ENOTSUP when returning -1.
16352         * modules/dirfd (Depends-on): Add errno.
16353         Suggested by John Kodis <kodis@comcast.net>.
16354
16355 2009-02-01  Bruno Haible  <bruno@clisp.org>
16356
16357         Don't assume sizeof (long) >= sizeof (void *).
16358         * lib/memcmp.c: Include stdint.h.
16359         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16360         srcp2 to 'const byte *'.
16361         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16362         types to uintptr_t.
16363         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16364         * modules/memcmp (Depends-on): Add stdint.
16365         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16366
16367 2009-01-30  Eric Blake  <ebb9@byu.net>
16368
16369         fix more require-before-expand issues
16370         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16371         expand, AC_PROG_AWK.
16372         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16373
16374 2009-01-28  Eric Blake  <ebb9@byu.net>
16375
16376         version-etc: use consistent URL formatting
16377         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16378         Improve formatting.  Use fputs for string without %.
16379
16380 2009-01-28  Jim Meyering  <meyering@redhat.com>
16381
16382         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16383         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16384         "underquoted definition of NAME" from autoconf-2.59.
16385
16386 2009-01-28  Bruno Haible  <bruno@clisp.org>
16387
16388         * doc/gnulib.texi: Add "Obsolete modules" to index.
16389
16390 2009-01-28  Jim Meyering  <meyering@redhat.com>
16391
16392         useless-if-before-free: recognize more variants
16393         * build-aux/useless-if-before-free: Also recognize e.g.,
16394         if (NULL != p) free (p);
16395
16396 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16397
16398         test-getaddrinfo: skip (don't fail) this test when there's no network
16399         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16400         on the presumption that it means you lack network access.
16401
16402 2009-01-26  Jim Meyering  <meyering@redhat.com>
16403
16404         fflush: avoid warnings on modern systems
16405         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16406         pos and result, into scopes where they're used.
16407
16408 2009-01-26  Eric Blake  <ebb9@byu.net>
16409
16410         Silence warning reintroduced by recent extensions patch.
16411         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16412         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16413         autoconf.
16414
16415         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16416         * m4/00gnulib.m4: New file.
16417         * gnulib-tool (func_get_filelist): Always use it.
16418         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16419         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16420
16421 2009-01-25  Bruno Haible  <bruno@clisp.org>
16422
16423         Make test-quotearg work on MacOS X and AIX.
16424         * tests/test-quotearg.sh: New file.
16425         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16426         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16427         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16428         include <libintl.h>.
16429         (fake_locale): Remove variable.
16430         (gettext, dgettext, dcgettext): Remove functions.
16431         (main): Instead of setting a fake locale, set a real locale. Call
16432         textdomain and bindtextdomain.
16433         * modules/quotearg-tests (Files): Add the new files.
16434         (Depends-on): Add gettext, setenv, unsetenv.
16435         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16436         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16437         Augment TESTS_ENVIRONMENT.
16438
16439 2009-01-25  Bruno Haible  <bruno@clisp.org>
16440
16441         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16442         fr_FR.ISO8859-1 locale on MacOS X.
16443         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16444         ja_JP.eucJP locale on MacOS X.
16445         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16446         zh_CN.GB18030 locale on MacOS X.
16447
16448 2009-01-25  Bruno Haible  <bruno@clisp.org>
16449
16450         Avoid link errors on MacOS X 10.3.
16451         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16452         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16453
16454 2009-01-25  Bruno Haible  <bruno@clisp.org>
16455
16456         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16457         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16458         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16459         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16460         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16461         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16462         posix_spawnattr_init, posix_spawnattr_setsigmask,
16463         posix_spawnattr_setflags, posix_spawnattr_destroy.
16464
16465         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16466         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16467         * modules/execute (Files): Remove m4/posix_spawn.m4.
16468         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16469         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16470         posix_spawnattr_init, posix_spawnattr_setsigmask,
16471         posix_spawnattr_setflags, posix_spawnattr_destroy.
16472
16473 2009-01-25  Bruno Haible  <bruno@clisp.org>
16474
16475         * lib/glthread/threadlib.c: Include <stdlib.h>.
16476
16477 2009-01-25  Bruno Haible  <bruno@clisp.org>
16478
16479         * lib/glthread/threadlib.c (dummy): New declaration.
16480
16481 2009-01-25  Bruno Haible  <bruno@clisp.org>
16482
16483         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16484         multibyte characters also for the GB18030 encoding. Don't crash when
16485         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16486
16487 2009-01-25  Bruno Haible  <bruno@clisp.org>
16488
16489         Avoid redefining 'struct random_data' on OSF/1 5.1.
16490         * lib/stdlib.in.h: Include <random.h> if it exists.
16491         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16492         HAVE_RANDOM_H. Include <random.h> when testing whether
16493         'struct random_data' exists.
16494         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16495
16496 2009-01-25  Bruno Haible  <bruno@clisp.org>
16497
16498         Don't install charset.alias on MacOS X >= 10.3.
16499         * lib/localcharset.c (DARWIN7): New macro.
16500         (get_charset_aliases): Hardcode the result for Darwin7.
16501         * modules/localcharset (install-exec-local): Don't install
16502         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16503
16504 2009-01-25  Bruno Haible  <bruno@clisp.org>
16505
16506         Don't install charset.alias on mingw and Cygwin.
16507         * modules/localcharset (install-exec-local): Don't install
16508         charset.alias on mingw and Cygwin, if the file does not yet exist.
16509         The result for these platforms is hardcoded in localcharset.c.
16510
16511 2009-01-25  Bruno Haible  <bruno@clisp.org>
16512
16513         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16515         before requiring AC_USE_SYSTEM_EXTENSIONS.
16516
16517 2009-01-25  Jim Meyering  <meyering@redhat.com>
16518
16519         c-strtod: avoid warnings
16520         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16521         "assignment discards qualifiers from pointer target type" warnings.
16522
16523 2009-01-24  Bruno Haible  <bruno@clisp.org>
16524
16525         Add support for non-UTF-8 locales on MacOS X.
16526         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16527         canonical encodings. For Darwin 7 and newer, don't map traditional
16528         encodings to UTF-8.
16529         Reported by Vincent Lefevre <vincent@vinc17.org>
16530         at <http://savannah.gnu.org/bugs/?25235>.
16531
16532 2009-01-24  Bruno Haible  <bruno@clisp.org>
16533
16534         * doc/gnulib.texi (Obsolete modules): New section.
16535         Reported by Mike Frysinger <vapier@gentoo.org>.
16536
16537 2009-01-24  Bruno Haible  <bruno@clisp.org>
16538
16539         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16540         (%.dvi): New rule.
16541
16542 2009-01-24  Bruno Haible  <bruno@clisp.org>
16543
16544         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16545         Reported by Eric Blake.
16546
16547 2009-01-24  Bruno Haible  <bruno@clisp.org>
16548
16549         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16550         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16551         Reported by Gary V. Vaughan <gary@gnu.org>.
16552
16553 2009-01-24  Bruno Haible  <bruno@clisp.org>
16554
16555         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16556
16557 2009-01-23  Bruno Haible  <bruno@clisp.org>
16558
16559         Make c-strtod, c-strtold usable in libraries.
16560         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16561         (C_STRTOD): Call strdup instead of xstrdup.
16562         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16563         * modules/c-strtold (Depends-on): Likewise.
16564         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16565         * NEWS: Mention the change.
16566         Reported by Michael Gold <mgold@ncf.ca>.
16567
16568 2009-01-23  Jim Meyering  <meyering@redhat.com>
16569
16570         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16571         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16572         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16573
16574 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16575
16576         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16577         GNU CoreUtils.
16578         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16579         * modules/version-etc (Description): Update.
16580
16581 2009-01-22  Bruno Haible  <bruno@clisp.org>
16582
16583         Cache the C locale object.
16584         * lib/c-strtod.c (c_locale_cache): New variable.
16585         (c_locale): New function.
16586         (C_STRTOD): Use it, and don't call freelocale.
16587         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16588         Suggested by Paolo Bonzini.
16589
16590 2009-01-21  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16593         conditions other than overflow.
16594
16595 2009-01-21  Bruno Haible  <bruno@clisp.org>
16596
16597         * lib/c-strtod.c: Include errno.h.
16598         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16599         value from STRTOD_L and STRTOD.
16600
16601 2009-01-21  Bruno Haible  <bruno@clisp.org>
16602         and Jim Meyering  <meyering@redhat.com>
16603
16604         nanosleep: skip configure test (fail it) for apple universal builds
16605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16606         universal builds, assume that nanosleep does not work.
16607         * modules/nanosleep (Depends-on): Add multiarch.
16608
16609         mktime: skip configure test (fail it) for apple universal builds
16610         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16611         universal builds, assume that mktime does not work.
16612         * modules/mktime (Depends-on): Add multiarch.
16613
16614 2009-01-21  Eric Blake  <ebb9@byu.net>
16615
16616         multiarch: avoid expand-before-require warning
16617         * modules/multiarch (configure.ac): Require, rather than expand,
16618         gl_MULTIARCH.
16619         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16620         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16621         enforce that all clients require it.  Partial reversion of
16622         2008-12-29 patch.
16623
16624         error: avoid expand-before-require warning
16625         * modules/errno (configure.ac): Require, rather than expand,
16626         gl_HEADER_ERRNO_H.
16627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16628         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16629         enforce that all clients require it.
16630
16631         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16632         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16633         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16634         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16635
16636 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16637
16638         Revert:
16639         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16640
16641         regex: do not depend on obsolete modules.
16642         * modules/regex: Remove memcmp and memmove.
16643
16644 2009-01-20  Bruno Haible  <bruno@clisp.org>
16645
16646         Make the 'link' module link on Windows NT 4.
16647         * lib/link.c (_WIN32_WINNT): Don't define.
16648         (CreateHardLinkFuncType): New type.
16649         (CreateHardLinkFunc, initialized): New variables.
16650         (initialize): New function.
16651         (link): Invoke CreateHardLink indirectly through the function pointer.
16652
16653 2009-01-20  Bruno Haible  <bruno@clisp.org>
16654
16655         Fix compilation failure on mingw.
16656         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16657
16658 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16659
16660         * doc/c-strtod.texi: Mention a couple of restrictions.
16661
16662 2009-01-20  Jim Meyering  <meyering@redhat.com>
16663
16664         gettimeofday: move more declarations out of functions
16665         * lib/gettimeofday.c: Move extern declarations of tzset and
16666         gmtime out of containing functions.  Prompted by Bruno Haible.
16667
16668 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16669
16670         regex: do not depend on obsolete modules.
16671         * modules/regex: Remove memcmp and memmove.
16672
16673 2009-01-19  Bruno Haible  <bruno@clisp.org>
16674
16675         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16676         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16677         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16678         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16679         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16680
16681 2009-01-19  Bruno Haible  <bruno@clisp.org>
16682
16683         * tests/test-link.c: Include <errno.h>.
16684         (main): Exit with code 77 when a hard link cannot be created due to
16685         the file system.
16686         * tests/test-link.sh: Skip test when a hard link cannot be created due
16687         to the file system.
16688         Suggested by Eric Blake.
16689
16690 2009-01-19  Martin Lambers  <marlam@marlam.de>
16691
16692         * modules/link-tests: New file.
16693         * tests/test-link.sh: New file.
16694         * tests/test-link.c: New file.
16695
16696 2009-01-19  Eric Blake  <ebb9@byu.net>
16697
16698         doc: mention another function added in cygwin 1.7.0
16699         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16700         Another new function in cygwin 1.7.
16701
16702 2009-01-19  Bruno Haible  <bruno@clisp.org>
16703
16704         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16705         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16706         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16707         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16708         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16709         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16710         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16711         * m4/md4.m4 (gl_MD4): Likewise.
16712         * m4/md5.m4 (gl_MD5): Likewise.
16713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16714         * m4/sha1.m4 (gl_SHA1): Likewise.
16715         * m4/sha256.m4 (gl_SHA256): Likewise.
16716         * m4/sha512.m4 (gl_SHA512): Likewise.
16717
16718 2009-01-19  Bruno Haible  <bruno@clisp.org>
16719
16720         * modules/uniname/uniname-tests (Depends-on): Add progname.
16721         * tests/uniname/test-uninames.c: Include progname.h.
16722         (main): Call set_program_name.
16723
16724         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16725         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16726         (main): Call set_program_name.
16727
16728         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16729         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16730         (main): Call set_program_name.
16731
16732         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16733         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16734         (main): Call set_program_name.
16735
16736         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16737         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16738         (main): Call set_program_name.
16739
16740         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16741         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16742         (main): Call set_program_name.
16743
16744         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16745         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16746         (main): Call set_program_name.
16747
16748         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16749         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16750         (main): Call set_program_name.
16751
16752         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16753         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16754         (main): Call set_program_name.
16755
16756 2009-01-19  Eric Blake  <ebb9@byu.net>
16757
16758         test-unistd: test previous patch
16759         * tests/test-unistd.c: Test *_FILENO macros.
16760
16761         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16762         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16763         Guarantee a definition.
16764         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16765         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16766         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16767         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16768         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16769         Likewise.
16770         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16771         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16772         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16773         Likewise.
16774         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16775         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16776         (STDERR_FILENO): Likewise.
16777         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16778         (STDERR_FILENO): Likewise.
16779         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16780         (STDERR_FILENO): Likewise.
16781         Reported by Elbert Pol.
16782
16783 2009-01-19  Eric Blake  <ebb9@byu.net>
16784
16785         doc: mention more functions added in cygwin 1.7.0
16786         * doc/posix-functions/abort.texi (abort): Update wording related
16787         to cygwin.
16788         * doc/posix-functions/daylight.texi (daylight): Likewise.
16789         * doc/posix-functions/optarg.texi (optarg): Likewise.
16790         * doc/posix-functions/optarg.texi (opterr): Likewise.
16791         * doc/posix-functions/optarg.texi (optind): Likewise.
16792         * doc/posix-functions/optarg.texi (optopt): Likewise.
16793         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16794         worked in 1.5.x, and was withdrawn in 1.7.
16795         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16796         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16797         cygwin versions.
16798         * doc/posix-functions/perror.texi (perror): Likewise.
16799         * doc/posix-functions/printf.texi (printf): Likewise.
16800         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16801         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16802         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16803         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16804         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16805         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16806         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16807         Likewise.
16808         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16809         Likewise.
16810         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16811         this function.
16812         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16813         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16814         Likewise.
16815         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16816         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16817         * doc/posix-functions/confstr.texi (confstr): Likewise.
16818         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16819         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16820         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16821         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16822         * doc/posix-functions/fputws.texi (fputws): Likewise.
16823         * doc/posix-functions/fwide.texi (fwide): Likewise.
16824         * doc/posix-functions/getwc.texi (getwc): Likewise.
16825         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16826         * doc/posix-functions/putwc.texi (putwc): Likewise.
16827         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16828         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16829         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16830         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16831         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16832         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16833         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16834         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16835         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16836         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16837         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16838
16839 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16840
16841         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16842         * lib/ioctl.c: Include <sys/ioctl.h>.
16843
16844 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16845
16846         * modules/getdate-tests (Depends-on): Add progname.
16847         * tests/test-getdate.c: Use progname module, to avoid link errors
16848         on non-glibc systems.
16849
16850 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16851
16852         * modules/filenamecat-tests (Depends-on): Add progname.
16853         * modules/fstrcmp-tests (Depends-on): Likewise.
16854
16855         * tests/test-filenamecat.c: Use progname module, to avoid link
16856         errors on non-glibc systems.
16857         * tests/test-fstrcmp.c: Likewise.
16858
16859 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16860
16861         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16862         * lib/gettimeofday.c: Move extern declaration out of function.
16863
16864 2009-01-18  Bruno Haible  <bruno@clisp.org>
16865
16866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16867         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16868         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16869
16870 2009-01-18  Bruno Haible  <bruno@clisp.org>
16871
16872         * lib/strftime.c (MEMPCPY): Remove unused macro.
16873         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16874
16875 2009-01-18  Martin Lambers  <marlam@marlam.de>
16876
16877         New module 'link'.
16878         * lib/unistd.in.h (link): New declaration.
16879         * lib/link.c: New file.
16880         * m4/link.m4: New file.
16881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16882         HAVE_LINK.
16883         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16884         * modules/link: New file.
16885         * doc/posix-functions/link.texi: Mention the new module.
16886
16887 2009-01-18  Bruno Haible  <bruno@clisp.org>
16888
16889         * tests/test-avltree_list.c (main): Call set_program_name.
16890         * tests/test-avltree_oset.c (main): Likewise.
16891         * tests/test-obstack-printf.c: Include progname.h.
16892         (main): Call set_program_name.
16893         * tests/test-quotearg.c: Include progname.h.
16894         (main): Call set_program_name.
16895         * tests/test-xmemdup0.c: Include progname.h.
16896         (main): Call set_program_name.
16897
16898 2009-01-18  Bruno Haible  <bruno@clisp.org>
16899
16900         New module 'alphasort'.
16901         * lib/dirent.in.h (alphasort): New declaration.
16902         * lib/alphasort.c: New file, from glibc with modifications.
16903         * m4/alphasort.m4: New file.
16904         * modules/alphasort: New file.
16905         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16906         HAVE_ALPHASORT.
16907         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16908         HAVE_ALPHASORT.
16909         * doc/posix-functions/alphasort.texi: Mention the new module and the
16910         portability problems.
16911
16912 2009-01-18  Bruno Haible  <bruno@clisp.org>
16913
16914         New module 'scandir'.
16915         * lib/dirent.in.h (scandir): New declaration.
16916         * lib/scandir.c: New file, from glibc with modifications.
16917         * m4/scandir.m4: New file.
16918         * modules/scandir: New file.
16919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16920         HAVE_SCANDIR.
16921         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16922         HAVE_SCANDIR.
16923         * doc/posix-functions/scandir.texi: Mention the new module and the
16924         portability problems.
16925
16926 2009-01-17  Bruno Haible  <bruno@clisp.org>
16927
16928         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16929         Update documentation.
16930         (func_remove_suffix): Escape all dots in the suffix. Update
16931         documentation.
16932         (func_filter_filelist): Update documentation.
16933         Reported by Ralf Wildenhues.
16934
16935 2009-01-17  Bruno Haible  <bruno@clisp.org>
16936
16937         * modules/dprintf-posix-tests: New file.
16938         * tests/test-dprintf-posix.sh: New file.
16939         * tests/test-dprintf-posix.c: New file.
16940
16941         New modules 'dprintf', 'dprintf-posix'.
16942         * lib/stdio.in.h (dprintf): New declaration.
16943         * lib/dprintf.c: New file.
16944         * m4/dprintf.m4: New file.
16945         * m4/dprintf-posix.m4: New file.
16946         * modules/dprintf: New file.
16947         * modules/dprintf-posix: New file.
16948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16949         HAVE_DPRINTF, REPLACE_DPRINTF.
16950         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16951         HAVE_DPRINTF, REPLACE_DPRINTF.
16952         * doc/posix-functions/dprintf.texi: Mention the new modules.
16953
16954 2009-01-17  Bruno Haible  <bruno@clisp.org>
16955
16956         * modules/vdprintf-posix-tests: New file.
16957         * tests/test-vdprintf-posix.sh: New file.
16958         * tests/test-vdprintf-posix.c: New file.
16959
16960         New modules 'vdprintf', 'vdprintf-posix'.
16961         * lib/stdio.in.h (vdprintf): New declaration.
16962         * lib/vdprintf.c: New file.
16963         * m4/vdprintf.m4: New file.
16964         * m4/vdprintf-posix.m4: New file.
16965         * modules/vdprintf: New file.
16966         * modules/vdprintf-posix: New file.
16967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16968         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16969         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16970         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16971         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16972
16973 2009-01-17  Bruno Haible  <bruno@clisp.org>
16974
16975         Fix replacement of fopen on mingw.
16976         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16977         mingw.
16978
16979 2009-01-17  Bruno Haible  <bruno@clisp.org>
16980
16981         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16982         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16983
16984 2009-01-17  Bruno Haible  <bruno@clisp.org>
16985
16986         Avoid test-fflush2.sh failure on mingw.
16987         * tests/test-fflush2.c: Include binary-io.h.
16988         (main): Put standard input into binary mode.
16989         * modules/fflush-tests (Depends-on): Add binary-io.
16990
16991 2009-01-17  Bruno Haible  <bruno@clisp.org>
16992
16993         * lib/wchar.in.h: In another particular situation, include only the
16994         system's <wchar.h> file.
16995         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16996         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16997         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16998
16999 2009-01-17  Bruno Haible  <bruno@clisp.org>
17000
17001         Support for stripping executables in --enable-relocatable.
17002         * build-aux/install-reloc: Expect one more argument, or an environment
17003         variable RELOC_STRIP_PROG. If set, strip the destination program and
17004         its wrapper.
17005         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17006         RELOC_STRIP_PROG.
17007         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17008         to set RELOCATABLE_STRIP.
17009         * NEWS: Mention the new Makefile requirement.
17010
17011 2009-01-17  Bruno Haible  <bruno@clisp.org>
17012
17013         * build-aux/install-reloc: Remove debugging information left over by
17014         C compiler on MacOS X.
17015
17016 2009-01-17  Bruno Haible  <bruno@clisp.org>
17017
17018         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17019         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17020         _NSGetExecutablePath.
17021
17022 2009-01-16  Jim Meyering  <meyering@redhat.com>
17023
17024         strerror: avoid warnings about discarding "const"
17025         * lib/strerror.c (rpl_strerror): Instead of returning a const
17026         string from each and every "case", use a variable, and add a single
17027         cast after the switch.
17028
17029 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17030
17031         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17032
17033 2009-01-16  Bruno Haible  <bruno@clisp.org>
17034
17035         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17036         array initializer syntax that also works in C++ mode.
17037         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17038
17039 2009-01-16  Jim Meyering  <meyering@redhat.com>
17040
17041         poll: suppress a warning
17042         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17043         to ignore "...unsigned expression < 0 is always false" warnings.
17044
17045 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17046
17047         poll: remove declarations of unused variables
17048         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17049         sockbuf and optlen.
17050
17051 2009-01-15  Bruno Haible  <bruno@clisp.org>
17052
17053         Make fflush-after-ungetc POSIX compliant on BSD systems.
17054         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17055         (clear_ungetc_buffer): Implement also for other systems.
17056         (rpl_fflush): On glibc systems, invoke
17057         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17058         clear_ungetc_buffer after fetching the stream's position, not before.
17059
17060 2009-01-15  Bruno Haible  <bruno@clisp.org>
17061
17062         Make fflush-after-ungetc POSIX compliant on glibc systems.
17063         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17064         after ungetc.
17065         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17066         (rpl_fflush): On glibc systems, simply call the system's fflush
17067         function after clearing the ungetc buffer.
17068         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17069         Instead, lseek only to the end of file, then use the system's fseeko
17070         for the rest. On glibc systems, reset the EOF indicator bit.
17071
17072 2009-01-15  Jim Meyering  <meyering@redhat.com>
17073
17074         openmp.m4: revert quote-adding change, for portability to older autoconf
17075         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17076         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17077         Simon Josefsson noticed the problem when using autoconf-2.61.
17078
17079 2009-01-15  Bruno Haible  <bruno@clisp.org>
17080
17081         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17082         * tests/test-fflush2.c (ASSERT): Always fail.
17083         (main): Add two tests for fflush() after ungetc(), taking into account
17084         the Austin Group's clarification.
17085         Suggested by Eric Blake.
17086
17087 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17088
17089         mktime.m4: remove K&R-style function prototypes
17090         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17091         for the Sun C++ compiler.
17092
17093 2009-01-14  Bruno Haible  <bruno@clisp.org>
17094
17095         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17096         while including <wchar.h>.
17097         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17098         the system's <wchar.h> file.
17099         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17100
17101 2009-01-14  Bruno Haible  <bruno@clisp.org>
17102
17103         * m4/csharp.m4: Don't mention gettext on the serial number line.
17104         * m4/csharpexec.m4: Likewise.
17105         * m4/eaccess.m4: Likewise.
17106         * m4/javaexec.m4: Likewise.
17107         * m4/sig_atomic_t.m4: Likewise.
17108         * m4/tmpdir.m4: Likewise.
17109         * m4/intldir.m4: Bump gettext version.
17110         * m4/lib-ld.m4: Likewise.
17111
17112 2009-01-14  Bruno Haible  <bruno@clisp.org>
17113
17114         * lib/progname.c (set_program_name): Add more comments.
17115         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17116
17117 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17118
17119         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17120         were sys/stat.h does not define it.
17121
17122 2009-01-14  Jim Meyering  <meyering@redhat.com>
17123
17124         many *.m4 files: improve m4 quoting
17125         99% of this change was performed by running the following commands:
17126         git ls-files | grep '\.m4$' | xargs perl -pi \
17127           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17128           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17129           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17130           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17131         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17132         The remainder were to add Copyright dates, increment serial numbers,
17133         undo some changes in comments, exclude m4/intl.m4, and add quotes
17134         around the "1" in ",1" where the unusual spacing prohibited the
17135         above regexps from doing the job.  For more details, see
17136         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17137         * m4/acl.m4: Modified.
17138         * m4/afs.m4: Likewise.
17139         * m4/alloca.m4: Likewise.
17140         * m4/argp.m4: Likewise.
17141         * m4/argz.m4: Likewise.
17142         * m4/atexit.m4: Likewise.
17143         * m4/bison-i18n.m4: Likewise.
17144         * m4/bison.m4: Likewise.
17145         * m4/byteswap.m4: Likewise.
17146         * m4/c-stack.m4: Likewise.
17147         * m4/c-strtod.m4: Likewise.
17148         * m4/calloc.m4: Likewise.
17149         * m4/canonicalize-lgpl.m4: Likewise.
17150         * m4/chown.m4: Likewise.
17151         * m4/clock_time.m4: Likewise.
17152         * m4/codeset.m4: Likewise.
17153         * m4/copy-file.m4: Likewise.
17154         * m4/csharp.m4: Likewise.
17155         * m4/csharpcomp.m4: Likewise.
17156         * m4/csharpexec.m4: Likewise.
17157         * m4/d-ino.m4: Likewise.
17158         * m4/d-type.m4: Likewise.
17159         * m4/dirfd.m4: Likewise.
17160         * m4/double-slash-root.m4: Likewise.
17161         * m4/eaccess.m4: Likewise.
17162         * m4/eealloc.m4: Likewise.
17163         * m4/environ.m4: Likewise.
17164         * m4/errno_h.m4: Likewise.
17165         * m4/euidaccess.m4: Likewise.
17166         * m4/execute.m4: Likewise.
17167         * m4/fatal-signal.m4: Likewise.
17168         * m4/fchdir.m4: Likewise.
17169         * m4/fcntl_h.m4: Likewise.
17170         * m4/fileblocks.m4: Likewise.
17171         * m4/filenamecat.m4: Likewise.
17172         * m4/findprog.m4: Likewise.
17173         * m4/flexmember.m4: Likewise.
17174         * m4/fnmatch.m4: Likewise.
17175         * m4/fopen.m4: Likewise.
17176         * m4/fpending.m4: Likewise.
17177         * m4/fprintf-posix.m4: Likewise.
17178         * m4/free.m4: Likewise.
17179         * m4/frexp.m4: Likewise.
17180         * m4/frexpl.m4: Likewise.
17181         * m4/fsusage.m4: Likewise.
17182         * m4/ftruncate.m4: Likewise.
17183         * m4/gc-camellia.m4: Likewise.
17184         * m4/gc-random.m4: Likewise.
17185         * m4/gc.m4: Likewise.
17186         * m4/getaddrinfo.m4: Likewise.
17187         * m4/getcwd-abort-bug.m4: Likewise.
17188         * m4/getcwd-path-max.m4: Likewise.
17189         * m4/getdate.m4: Likewise.
17190         * m4/getdomainname.m4: Likewise.
17191         * m4/getgroups.m4: Likewise.
17192         * m4/gethostname.m4: Likewise.
17193         * m4/gethrxtime.m4: Likewise.
17194         * m4/getline.m4: Likewise.
17195         * m4/getloadavg.m4: Likewise.
17196         * m4/getndelim2.m4: Likewise.
17197         * m4/getpass.m4: Likewise.
17198         * m4/gettext.m4: Likewise.
17199         * m4/gettime.m4: Likewise.
17200         * m4/gettimeofday.m4: Likewise.
17201         * m4/gnulib-common.m4: Likewise.
17202         * m4/group-member.m4: Likewise.
17203         * m4/host-os.m4: Likewise.
17204         * m4/iconv.m4: Likewise.
17205         * m4/iconv_open.m4: Likewise.
17206         * m4/inet_ntop.m4: Likewise.
17207         * m4/inet_pton.m4: Likewise.
17208         * m4/inline.m4: Likewise.
17209         * m4/intldir.m4: Likewise.
17210         * m4/intlmacosx.m4: Likewise.
17211         * m4/intmax.m4: Likewise.
17212         * m4/intmax_t.m4: Likewise.
17213         * m4/inttypes.m4: Likewise.
17214         * m4/inttypes_h.m4: Likewise.
17215         * m4/inttypes-pri.m4: Likewise.
17216         * m4/isapipe.m4: Likewise.
17217         * m4/isnand.m4: Likewise.
17218         * m4/isnanf.m4: Likewise.
17219         * m4/isnanl.m4: Likewise.
17220         * m4/javacomp.m4: Likewise.
17221         * m4/javaexec.m4: Likewise.
17222         * m4/jm-winsz1.m4: Likewise.
17223         * m4/jm-winsz2.m4: Likewise.
17224         * m4/lchown.m4: Likewise.
17225         * m4/lcmessage.m4: Likewise.
17226         * m4/ldexpl.m4: Likewise.
17227         * m4/lib-ld.m4: Likewise.
17228         * m4/lib-link.m4: Likewise.
17229         * m4/libsigsegv.m4: Likewise.
17230         * m4/link-follow.m4: Likewise.
17231         * m4/localcharset.m4: Likewise.
17232         * m4/locale-fr.m4: Likewise.
17233         * m4/locale-ja.m4: Likewise.
17234         * m4/locale-tr.m4: Likewise.
17235         * m4/locale-zh.m4: Likewise.
17236         * m4/lock.m4: Likewise.
17237         * m4/longlong.m4: Likewise.
17238         * m4/ls-mntd-fs.m4: Likewise.
17239         * m4/lstat.m4: Likewise.
17240         * m4/malloc.m4: Likewise.
17241         * m4/mathl.m4: Likewise.
17242         * m4/mbrtowc.m4: Likewise.
17243         * m4/mbstate_t.m4: Likewise.
17244         * m4/mbswidth.m4: Likewise.
17245         * m4/memchr.m4: Likewise.
17246         * m4/memcmp.m4: Likewise.
17247         * m4/memcpy.m4: Likewise.
17248         * m4/memmem.m4: Likewise.
17249         * m4/memmove.m4: Likewise.
17250         * m4/mempcpy.m4: Likewise.
17251         * m4/memrchr.m4: Likewise.
17252         * m4/memset.m4: Likewise.
17253         * m4/minmax.m4: Likewise.
17254         * m4/mkdir-slash.m4: Likewise.
17255         * m4/mkdtemp.m4: Likewise.
17256         * m4/mktime.m4: Likewise.
17257         * m4/mmap-anon.m4: Likewise.
17258         * m4/mountlist.m4: Likewise.
17259         * m4/nanosleep.m4: Likewise.
17260         * m4/nls.m4: Likewise.
17261         * m4/nocrash.m4: Likewise.
17262         * m4/open.m4: Likewise.
17263         * m4/openat.m4: Likewise.
17264         * m4/openmp.m4: Likewise.
17265         * m4/pathmax.m4: Likewise.
17266         * m4/perl.m4: Likewise.
17267         * m4/physmem.m4: Likewise.
17268         * m4/pipe.m4: Likewise.
17269         * m4/po.m4: Likewise.
17270         * m4/poll.m4: Likewise.
17271         * m4/posixtm.m4: Likewise.
17272         * m4/posixver.m4: Likewise.
17273         * m4/printf-frexp.m4: Likewise.
17274         * m4/printf-frexpl.m4: Likewise.
17275         * m4/printf-posix.m4: Likewise.
17276         * m4/printf-posix-rpl.m4: Likewise.
17277         * m4/printf.m4: Likewise.
17278         * m4/progtest.m4: Likewise.
17279         * m4/putenv.m4: Likewise.
17280         * m4/readline.m4: Likewise.
17281         * m4/readlink.m4: Likewise.
17282         * m4/readutmp.m4: Likewise.
17283         * m4/realloc.m4: Likewise.
17284         * m4/regex.m4: Likewise.
17285         * m4/relocatable.m4: Likewise.
17286         * m4/relocatable-lib.m4: Likewise.
17287         * m4/rename-dest-slash.m4: Likewise.
17288         * m4/rename.m4: Likewise.
17289         * m4/rmdir-errno.m4: Likewise.
17290         * m4/rmdir.m4: Likewise.
17291         * m4/roundf.m4: Likewise.
17292         * m4/roundl.m4: Likewise.
17293         * m4/rpmatch.m4: Likewise.
17294         * m4/save-cwd.m4: Likewise.
17295         * m4/selinux-selinux-h.m4: Likewise.
17296         * m4/setenv.m4: Likewise.
17297         * m4/settime.m4: Likewise.
17298         * m4/sig2str.m4: Likewise.
17299         * m4/sig_atomic_t.m4: Likewise.
17300         * m4/signalblocking.m4: Likewise.
17301         * m4/signbit.m4: Likewise.
17302         * m4/sigpipe.m4: Likewise.
17303         * m4/sockets.m4: Likewise.
17304         * m4/sockpfaf.m4: Likewise.
17305         * m4/st_dm_mode.m4: Likewise.
17306         * m4/stat-time.m4: Likewise.
17307         * m4/stdbool.m4: Likewise.
17308         * m4/stdint.m4: Likewise.
17309         * m4/stdint_h.m4: Likewise.
17310         * m4/stpcpy.m4: Likewise.
17311         * m4/stpncpy.m4: Likewise.
17312         * m4/strcase.m4: Likewise.
17313         * m4/strchrnul.m4: Likewise.
17314         * m4/strcspn.m4: Likewise.
17315         * m4/strdup.m4: Likewise.
17316         * m4/strftime.m4: Likewise.
17317         * m4/strndup.m4: Likewise.
17318         * m4/strnlen.m4: Likewise.
17319         * m4/strpbrk.m4: Likewise.
17320         * m4/strptime.m4: Likewise.
17321         * m4/strsep.m4: Likewise.
17322         * m4/strtod.m4: Likewise.
17323         * m4/strtoimax.m4: Likewise.
17324         * m4/strtok_r.m4: Likewise.
17325         * m4/strtol.m4: Likewise.
17326         * m4/strtoll.m4: Likewise.
17327         * m4/strtoul.m4: Likewise.
17328         * m4/strtoull.m4: Likewise.
17329         * m4/strtoumax.m4: Likewise.
17330         * m4/strverscmp.m4: Likewise.
17331         * m4/threadlib.m4: Likewise.
17332         * m4/timegm.m4: Likewise.
17333         * m4/tm_gmtoff.m4: Likewise.
17334         * m4/tmpdir.m4: Likewise.
17335         * m4/tmpfile.m4: Likewise.
17336         * m4/tzset.m4: Likewise.
17337         * m4/uintmax_t.m4: Likewise.
17338         * m4/unlinkdir.m4: Likewise.
17339         * m4/unlocked-io.m4: Likewise.
17340         * m4/uptime.m4: Likewise.
17341         * m4/userspec.m4: Likewise.
17342         * m4/utimbuf.m4: Likewise.
17343         * m4/utime.m4: Likewise.
17344         * m4/utimes-null.m4: Likewise.
17345         * m4/utimes.m4: Likewise.
17346         * m4/vararrays.m4: Likewise.
17347         * m4/vasnprintf.m4: Likewise.
17348         * m4/vfprintf-posix.m4: Likewise.
17349         * m4/vprintf-posix.m4: Likewise.
17350         * m4/wait-process.m4: Likewise.
17351         * m4/wchar_t.m4: Likewise.
17352         * m4/wint_t.m4: Likewise.
17353         * m4/write-any-file.m4: Likewise.
17354         * m4/yield.m4: Likewise.
17355
17356 2009-01-13  Bruno Haible  <bruno@clisp.org>
17357
17358         Avoid test-copy-file.sh failures when ACL support insufficient.
17359         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17360         TESTS_ENVIRONMENT.
17361         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17362         Reported by Jim Meyering.
17363
17364 2009-01-13  Bruno Haible  <bruno@clisp.org>
17365
17366         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17367         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17368         * modules/unistdio/u8-printf-parse (Files): Likewise.
17369         * modules/unistdio/u32-printf-parse (Files): Likewise.
17370         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17371
17372 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17373
17374         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17375         and m4/inttypes_h.m4 too.
17376
17377 2009-01-12  Eric Blake  <ebb9@byu.net>
17378
17379         tests: IRIX 6.2 cc can't compile -0.0 into .data
17380         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17381         rather than at compile-time.
17382         * tests/test-floorl.c (minus_zero): Likewise.
17383         * tests/test-frexpl.c (minus_zero): Likewise.
17384         * tests/test-isnan.c (minus_zerol): Likewise.
17385         * tests/test-isnanl.h (minus_zero): Likewise.
17386         * tests/test-ldexpl.c (minus_zero): Likewise.
17387         * tests/test-roundl.c (minus_zero): Likewise.
17388         * tests/test-signbit.c (minus_zerol): Likewise.
17389         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17390         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17391         * tests/test-truncl.c (minus_zero): Likewise.
17392         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17393         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17394         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17395
17396 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17397
17398         regex: fix glibc bug 9697
17399         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17400         handling.
17401
17402 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17403
17404         regex: fix glibc bug 697
17405         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17406         being NULL also if there are no backreferences.
17407
17408 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17409
17410         regex: merge glibc changes
17411         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17412         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17413         re_string_skip_chars, re_string_reconstruct): Likewise.
17414         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17415
17416 2009-01-07  Jim Meyering  <meyering@redhat.com>
17417
17418         poll: filter through cppi
17419         * lib/poll.c: Indent cpp directives to reflect nesting.
17420
17421 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17422
17423         poll: don't return uninitialized
17424         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17425
17426 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17427
17428         avoid compile failure on AIX 6.1
17429         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17430         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17431
17432 2009-01-04  Jim Meyering  <meyering@redhat.com>
17433
17434         remove duplicate inclusion of <stdio.h>
17435         * tests/test-fprintf-posix.c: Likewise.
17436         * tests/test-printf-posix.c: Likewise.
17437         * tests/test-snprintf-posix.c: Likewise.
17438         * tests/test-sprintf-posix.c: Likewise.
17439         * tests/test-vasprintf-posix.c: Likewise.
17440         * tests/test-vfprintf-posix.c: Likewise.
17441         * tests/test-vprintf-posix.c: Likewise.
17442         * tests/test-vsnprintf-posix.c: Likewise.
17443         * tests/test-vsprintf-posix.c: Likewise.
17444
17445 2009-01-03  Jim Meyering  <meyering@redhat.com>
17446
17447         gnulib-tool: fix sed-based filtering
17448         * gnulib-tool (func_filter_filelist): Remove extra backslash
17449         in sed_fff_filter definition.
17450
17451 2009-01-02  Jim Meyering  <meyering@redhat.com>
17452
17453         strftime: avoid compilation failure on Solaris 2.6
17454         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17455         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17456         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17457         be available.  Reported by Tom G. Christensen.  Details in
17458         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17459
17460 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17461             Bruno Haible  <bruno@clisp.org>
17462
17463         Speed up gnulib-tool by doing more string processing through shell
17464         built-ins.
17465         * gnulib-tool (fast_func_append): New variable.
17466         (func_remove_prefix, func_remove_suffix): New functions.
17467         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17468         (func_filter_filelist): New function.
17469         (func_get_dependencies): Use func_remove_suffix instead of sed.
17470         (func_get_automake_snippet): Use func_filter_filelist instead of a
17471         subshell and sed invocation.
17472
17473 2009-01-01  Bruno Haible  <bruno@clisp.org>
17474
17475         Fix a security bug.
17476         * gnulib-tool (func_import, import, update): Don't allow the characters
17477         '"', '$', '`', '\' in macro arguments that become part of commands that
17478         are evaluated.
17479
17480 2009-01-01  Bruno Haible  <bruno@clisp.org>
17481
17482         * gnulib-tool (func_reset_sigpipe): Add more comments.
17483
17484 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17485
17486         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17487         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17488         already know the answer.
17489
17490 2009-01-01  Jim Meyering  <meyering@redhat.com>
17491
17492         * lib/version-etc.c (version_etc_va): Update copyright year.
17493
17494 2008-12-30  Bruno Haible  <bruno@clisp.org>
17495
17496         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17497         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17498         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17499
17500 2008-12-29  Eric Blake  <ebb9@byu.net>
17501
17502         multiarch: avoid autoconf AC_REQUIRE bug
17503         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17504         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17505         2.63 and older.
17506         Reported by Bruno Haible, and analyzed in
17507         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17508
17509 2008-12-29  Bruno Haible  <bruno@clisp.org>
17510
17511         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17512         files in subdirectories correctly.
17513         Reported by Ralf Wildenhues.
17514
17515 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17516
17517         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17518         rather than 'join FILE -', for Solaris join.
17519
17520 2008-12-29  Bruno Haible  <bruno@clisp.org>
17521
17522         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17523         quoting.
17524         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17525         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17526         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17527         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17528         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17529         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17530         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17531         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17532         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17533         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17534         * m4/nls.m4 (AM_NLS): Likewise.
17535         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17536         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17537         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17538         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17539         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17540         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17541         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17542         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17543         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17544         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17545         * m4/xsize.m4 (gl_XSIZE): Likewise.
17546         Suggested by Jim Meyering.
17547
17548 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17549
17550         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17551         * lib/parse-duration.c: use a switch instead of cascading if's.
17552
17553 2008-12-29  Eric Blake  <ebb9@byu.net>
17554
17555         wchar.h: supply WEOF on Irix 5.3
17556         * lib/wchar.in.h (wint_t): Also supply WEOF.
17557         * lib/wctype.in.h (wint_t): Likewise.
17558         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17559         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17560         Reported by Tom G. Christensen.
17561
17562 2008-12-26  Bruno Haible  <bruno@clisp.org>
17563
17564         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17565         i486, i586, i686.
17566
17567 2008-12-26  Bruno Haible  <bruno@clisp.org>
17568
17569         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17570
17571 2008-12-26  Bruno Haible  <bruno@clisp.org>
17572
17573         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17574         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17575         not __STDC_CONSTANT_MACROS.
17576         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17577
17578 2008-12-25  Bruno Haible  <bruno@clisp.org>
17579
17580         Add support for universal builds to vasnprintf.
17581         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17582         universal builds, guess no.
17583         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17584         * modules/vasprintf-posix (Depends-on): Likewise.
17585         * modules/fprintf-posix (Depends-on): Likewise.
17586         * modules/vfprintf-posix (Depends-on): Likewise.
17587         * modules/snprintf-posix (Depends-on): Likewise.
17588         * modules/vsnprintf-posix (Depends-on): Likewise.
17589         * modules/sprintf-posix (Depends-on): Likewise.
17590         * modules/vsprintf-posix (Depends-on): Likewise.
17591         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17592         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17593         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17594         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17595         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17596         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17597         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17598
17599         Add support for universal builds to <inttypes.h>.
17600         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17601         _SCNu64_PREFIX): In Apple
17602         universal builds, define directly, using _LP64.
17603         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17604         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17605         * modules/inttypes (Depends-on): Add multiarch.
17606         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17607
17608         Add support for universal builds to <stdint.h>.
17609         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17610         universal builds, define directly, using _LP64.
17611         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17612         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17613         and size_t.
17614         * modules/stdint (Depends-on): Add multiarch.
17615         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17616
17617         New module 'multiarch'.
17618         * modules/multiarch: New file.
17619         * m4/multiarch.m4: New file.
17620
17621 2008-12-25  Bruno Haible  <bruno@clisp.org>
17622
17623         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17624
17625 2008-12-25  Bruno Haible  <bruno@clisp.org>
17626
17627         * modules/btowc (License): Relicense under LGPLv2+.
17628         * modules/mbsinit (License): Likewise.
17629         * modules/mbrtowc (License): Likewise.
17630         * modules/wcrtomb (License): Likewise.
17631         * modules/streq (License): Likewise.
17632         Reported by David Lutterkort <lutter@redhat.com>.
17633
17634 2008-12-23  Bruno Haible  <bruno@clisp.org>
17635
17636         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17637
17638 2008-12-23  Bruno Haible  <bruno@clisp.org>
17639
17640         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17642         GETADDRINFO_LIB, not in LIBS.
17643         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17644         * modules/canon-host (Link): Likewise.
17645         * NEWS: Mention the change.
17646         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17647         GETADDRINFO_LIB.
17648
17649 2008-12-22  Bruno Haible  <bruno@clisp.org>
17650
17651         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17652         * doc/posix-functions/iswalpha_l.texi: Likewise.
17653         * doc/posix-functions/iswblank_l.texi: Likewise.
17654         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17655         * doc/posix-functions/iswctype_l.texi: Likewise.
17656         * doc/posix-functions/iswdigit_l.texi: Likewise.
17657         * doc/posix-functions/iswgraph_l.texi: Likewise.
17658         * doc/posix-functions/iswlower_l.texi: Likewise.
17659         * doc/posix-functions/iswprint_l.texi: Likewise.
17660         * doc/posix-functions/iswpunct_l.texi: Likewise.
17661         * doc/posix-functions/iswspace_l.texi: Likewise.
17662         * doc/posix-functions/iswupper_l.texi: Likewise.
17663         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17664         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17665         * doc/posix-functions/open_wmemstream.texi: Likewise.
17666         * doc/posix-functions/swscanf.texi: Likewise.
17667         * doc/posix-functions/towctrans_l.texi: Likewise.
17668         * doc/posix-functions/towlower.texi: Likewise.
17669         * doc/posix-functions/towlower_l.texi: Likewise.
17670         * doc/posix-functions/towupper.texi: Likewise.
17671         * doc/posix-functions/towupper_l.texi: Likewise.
17672         * doc/posix-functions/vfwprintf.texi: Likewise.
17673         * doc/posix-functions/vfwscanf.texi: Likewise.
17674         * doc/posix-functions/vswscanf.texi: Likewise.
17675         * doc/posix-functions/vwprintf.texi: Likewise.
17676         * doc/posix-functions/vwscanf.texi: Likewise.
17677         * doc/posix-functions/wcpcpy.texi: Likewise.
17678         * doc/posix-functions/wcpncpy.texi: Likewise.
17679         * doc/posix-functions/wcscasecmp.texi: Likewise.
17680         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17681         * doc/posix-functions/wcscoll_l.texi: Likewise.
17682         * doc/posix-functions/wcsdup.texi: Likewise.
17683         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17684         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17685         * doc/posix-functions/wcsnlen.texi: Likewise.
17686         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17687         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17688         * doc/posix-functions/wctrans_l.texi: Likewise.
17689         * doc/posix-functions/wctype_l.texi: Likewise.
17690         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17691         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17692         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17693         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17694         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17695         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17696         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17697         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17698         * doc/glibc-functions/wcschrnul.texi: Likewise.
17699         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17700         * doc/glibc-functions/wcstod_l.texi: Likewise.
17701         * doc/glibc-functions/wcstof_l.texi: Likewise.
17702         * doc/glibc-functions/wcstol_l.texi: Likewise.
17703         * doc/glibc-functions/wcstold_l.texi: Likewise.
17704         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17705         * doc/glibc-functions/wcstoq.texi: Likewise.
17706         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17707         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17708         * doc/glibc-functions/wcstouq.texi: Likewise.
17709         * doc/glibc-functions/wmempcpy.texi: Likewise.
17710
17711 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17712             Eric Blake  <ebb9@byu.net>
17713             Paolo Bonzini  <bonzini@gnu.org>
17714             Bruno Haible  <bruno@clisp.org>
17715
17716         Make c-stack work on Haiku.
17717         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17718         (c_stack_action): Use SA_ONSTACK flag.
17719
17720 2008-12-22  Bruno Haible  <bruno@clisp.org>
17721
17722         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17723
17724 2008-12-22  Bruno Haible  <bruno@clisp.org>
17725
17726         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17727         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17728         being overridden.
17729         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17730         New macros.
17731         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17733         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17734         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17735
17736 2008-12-22  Bruno Haible  <bruno@clisp.org>
17737
17738         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17739         from test code.
17740
17741 2008-12-22  Eric Blake  <ebb9@byu.net>
17742
17743         Avoid gcc warnings on cygwin.
17744         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17745         Avoid unused variable.
17746         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17747         Likewise.
17748
17749 2008-12-22  Bruno Haible  <bruno@clisp.org>
17750
17751         Remove HAVE_MBRTOWC conditionals.
17752         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17753         (mbscasecmp): Assume mbrtowc function.
17754         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17755         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17756         * lib/mbschr.c: Include mbuiter.h unconditionally.
17757         (mbschr): Assume mbrtowc function.
17758         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17759         (mbscspn): Assume mbrtowc function.
17760         * lib/mbslen.c: Include mbuiter.h unconditionally.
17761         (mbslen): Assume mbrtowc function.
17762         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17763         (mbsncasecmp): Assume mbrtowc function.
17764         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17765         (mbsnlen): Assume mbrtowc function.
17766         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17767         (mbspbrk): Assume mbrtowc function.
17768         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17769         (mbspcasecmp): Assume mbrtowc function.
17770         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17771         (mbsrchr): Assume mbrtowc function.
17772         * lib/mbssep.c: Include mbuiter.h unconditionally.
17773         (mbssep): Assume mbrtowc function.
17774         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17775         (mbsspn): Assume mbrtowc function.
17776         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17777         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17778         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17779         (mbstok_r): Assume mbrtowc function.
17780         * lib/propername.c: Include mbuiter.h unconditionally.
17781         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17782         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17783         (trim2): Assume mbrtowc function.
17784         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17785         (mbsnwidth): Assume mbrtowc function.
17786         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17787         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17788         fallback definitions.
17789         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17790
17791 2008-12-22  Bruno Haible  <bruno@clisp.org>
17792
17793         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17794
17795 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17796
17797         * modules/regex: Request emulations for the mb*/wc* functions we need.
17798         * m4/regex.m4: Don't look for those functions here.
17799         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17800
17801 2008-12-22  Bruno Haible  <bruno@clisp.org>
17802
17803         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17804
17805 2008-12-21  Bruno Haible  <bruno@clisp.org>
17806
17807         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17808         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17809         (Include): Remove conditionalization.
17810         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17811         (Include): Remove conditionalization.
17812         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17813         (Include): Remove conditionalization.
17814         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17815         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17816         * NEWS: Mention the change.
17817         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17818         via Sergey Poznyakoff <gray@gnu.org.ua>.
17819
17820 2008-12-21  Bruno Haible  <bruno@clisp.org>
17821
17822         * MODULES.html.sh (Extended multibyte and wide character utilities
17823         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17824         wcrtomb, wcsrtombs.
17825         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17826         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17827         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17828         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17829
17830 2008-12-21  Bruno Haible  <bruno@clisp.org>
17831
17832         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17833
17834 2008-12-21  Bruno Haible  <bruno@clisp.org>
17835
17836         * modules/wcsnrtombs-tests: New file.
17837         * tests/test-wcsnrtombs1.sh: New file.
17838         * tests/test-wcsnrtombs2.sh: New file.
17839         * tests/test-wcsnrtombs3.sh: New file.
17840         * tests/test-wcsnrtombs4.sh: New file.
17841         * tests/test-wcsnrtombs.c: New file.
17842
17843         New module 'wcsnrtombs'.
17844         * lib/wchar.in.h (wcsnrtombs): New declaration.
17845         * lib/wcsnrtombs.c: New file.
17846         * lib/wcsrtombs-state.c: New file.
17847         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17848         (internal_state): Remove variable.
17849         * m4/wcsnrtombs.m4: New file.
17850         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17851         compilation units.
17852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17853         HAVE_WCSNRTOMBS.
17854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17855         HAVE_WCSNRTOMBS.
17856         * modules/wcsnrtombs: New file.
17857         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17858         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17859
17860 2008-12-21  Bruno Haible  <bruno@clisp.org>
17861
17862         * modules/wcsrtombs-tests: New file.
17863         * tests/test-wcsrtombs1.sh: New file.
17864         * tests/test-wcsrtombs2.sh: New file.
17865         * tests/test-wcsrtombs3.sh: New file.
17866         * tests/test-wcsrtombs4.sh: New file.
17867         * tests/test-wcsrtombs.c: New file.
17868
17869         New module 'wcsrtombs'.
17870         * lib/wchar.in.h (wcsrtombs): New declaration.
17871         * lib/wcsrtombs.c: New file.
17872         * m4/wcsrtombs.m4: New file.
17873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17874         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17876         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17877         * modules/wcsrtombs: New file.
17878         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17879         bugs.
17880
17881 2008-12-21  Bruno Haible  <bruno@clisp.org>
17882
17883         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17884         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17885         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17886         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17887         if not correct.
17888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17889         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17890         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17891         m4/locale-zh.m4, m4/codeset.m4.
17892         * doc/posix-functions/wcrtomb.texi: Document the bug.
17893
17894 2008-12-21  Bruno Haible  <bruno@clisp.org>
17895
17896         Work around a btowc() bug on IRIX 6.5.
17897         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17898         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17899         REPLACE_WTOBC if not.
17900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17901         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17902         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17903
17904 2008-12-21  Bruno Haible  <bruno@clisp.org>
17905
17906         * modules/wcrtomb-tests: New file.
17907         * tests/test-wcrtomb.sh: New file.
17908         * tests/test-wcrtomb.c: New file.
17909
17910         New module 'wcrtomb'.
17911         * lib/wchar.in.h (wcrtomb): New declaration.
17912         * lib/wcrtomb.c: New file.
17913         * m4/wcrtomb.m4: New file.
17914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17915         HAVE_WCRTOMB.
17916         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17917         HAVE_WCRTOMB.
17918         * modules/wcrtomb: New file.
17919         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17920
17921 2008-12-21  Bruno Haible  <bruno@clisp.org>
17922
17923         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17924         * modules/mbsrtowcs (Files): Likewise.
17925         * modules/wctob (Files): Likewise.
17926         * modules/c-strcase-tests (Files): Likewise.
17927         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17928         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17929         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17930         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17931         * modules/vasnprintf-posix-tests (Files): Likewise.
17932
17933 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17934
17935         gitlog-to-changelog: pass all command-line arguments to git-log
17936         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17937         it is sometimes convenient to filter the commits in various ways.
17938         gitlog-to-changelog only allows --since to specify a start date,
17939         but git-log itself supports many other filtering mechanisms.
17940         At the moment, I want to filter by branch name.  Rather than
17941         adding a --branch option to gitlog-to-changelog, it seems more
17942         flexible to simply pass all options directly to git-log and let
17943         git do the work.  Notice that this effectively makes --since a
17944         redundant option for gitlog-to-changelog, but removing it would
17945         require current usage to change since calls would then require
17946         an additional '--'.
17947
17948 2008-12-21  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/mbsnrtowcs-tests: New file.
17951         * tests/test-mbsnrtowcs1.sh: New file.
17952         * tests/test-mbsnrtowcs2.sh: New file.
17953         * tests/test-mbsnrtowcs3.sh: New file.
17954         * tests/test-mbsnrtowcs4.sh: New file.
17955         * tests/test-mbsnrtowcs.c: New file.
17956
17957         New module 'mbsnrtowcs'.
17958         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17959         * lib/mbsnrtowcs.c: New file.
17960         * lib/mbsrtowcs-state.c: New file.
17961         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17962         (internal_state): Remove variable.
17963         * m4/mbsnrtowcs.m4: New file.
17964         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17965         compilation units.
17966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17967         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17968         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17969         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17970         * modules/mbsnrtowcs: New file.
17971         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17972         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17973         portability problem.
17974
17975 2008-12-21  Bruno Haible  <bruno@clisp.org>
17976
17977         Work around mbsrtowcs bug.
17978         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17979         (gl_FUNC_MBSRTOWCS): Invoke it.
17980         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17981         m4/locale-zh.m4.
17982         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17983
17984 2008-12-21  Bruno Haible  <bruno@clisp.org>
17985
17986         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17987
17988 2008-12-21  Bruno Haible  <bruno@clisp.org>
17989
17990         Update doc for AIX.
17991         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17992         16-bit wchar_t type.
17993         * doc/posix-functions/btowc.texi: Likewise.
17994         * doc/posix-functions/fgetwc.texi: Likewise.
17995         * doc/posix-functions/fgetws.texi: Likewise.
17996         * doc/posix-functions/fputwc.texi: Likewise.
17997         * doc/posix-functions/fputws.texi: Likewise.
17998         * doc/posix-functions/fwide.texi: Likewise.
17999         * doc/posix-functions/fwprintf.texi: Likewise.
18000         * doc/posix-functions/fwscanf.texi: Likewise.
18001         * doc/posix-functions/getwchar.texi: Likewise.
18002         * doc/posix-functions/getwc.texi: Likewise.
18003         * doc/posix-functions/iswalnum.texi: Likewise.
18004         * doc/posix-functions/iswalpha.texi: Likewise.
18005         * doc/posix-functions/iswblank.texi: Likewise.
18006         * doc/posix-functions/iswcntrl.texi: Likewise.
18007         * doc/posix-functions/iswctype.texi: Likewise.
18008         * doc/posix-functions/iswdigit.texi: Likewise.
18009         * doc/posix-functions/iswgraph.texi: Likewise.
18010         * doc/posix-functions/iswlower.texi: Likewise.
18011         * doc/posix-functions/iswprint.texi: Likewise.
18012         * doc/posix-functions/iswpunct.texi: Likewise.
18013         * doc/posix-functions/iswspace.texi: Likewise.
18014         * doc/posix-functions/iswupper.texi: Likewise.
18015         * doc/posix-functions/iswxdigit.texi: Likewise.
18016         * doc/posix-functions/mbrtowc.texi: Likewise.
18017         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18018         * doc/posix-functions/mbstowcs.texi: Likewise.
18019         * doc/posix-functions/mbtowc.texi: Likewise.
18020         * doc/posix-functions/putwchar.texi: Likewise.
18021         * doc/posix-functions/putwc.texi: Likewise.
18022         * doc/posix-functions/swprintf.texi: Likewise.
18023         * doc/posix-functions/tolower.texi: Likewise.
18024         * doc/posix-functions/toupper.texi: Likewise.
18025         * doc/posix-functions/towctrans.texi: Likewise.
18026         * doc/posix-functions/ungetwc.texi: Likewise.
18027         * doc/posix-functions/vswprintf.texi: Likewise.
18028         * doc/posix-functions/wcrtomb.texi: Likewise.
18029         * doc/posix-functions/wcscat.texi: Likewise.
18030         * doc/posix-functions/wcschr.texi: Likewise.
18031         * doc/posix-functions/wcscmp.texi: Likewise.
18032         * doc/posix-functions/wcscoll.texi: Likewise.
18033         * doc/posix-functions/wcscpy.texi: Likewise.
18034         * doc/posix-functions/wcscspn.texi: Likewise.
18035         * doc/posix-functions/wcsftime.texi: Likewise.
18036         * doc/posix-functions/wcslen.texi: Likewise.
18037         * doc/posix-functions/wcsncat.texi: Likewise.
18038         * doc/posix-functions/wcsncmp.texi: Likewise.
18039         * doc/posix-functions/wcsncpy.texi: Likewise.
18040         * doc/posix-functions/wcspbrk.texi: Likewise.
18041         * doc/posix-functions/wcsrchr.texi: Likewise.
18042         * doc/posix-functions/wcsrtombs.texi: Likewise.
18043         * doc/posix-functions/wcsspn.texi: Likewise.
18044         * doc/posix-functions/wcsstr.texi: Likewise.
18045         * doc/posix-functions/wcstod.texi: Likewise.
18046         * doc/posix-functions/wcstof.texi: Likewise.
18047         * doc/posix-functions/wcstoimax.texi: Likewise.
18048         * doc/posix-functions/wcstok.texi: Likewise.
18049         * doc/posix-functions/wcstold.texi: Likewise.
18050         * doc/posix-functions/wcstoll.texi: Likewise.
18051         * doc/posix-functions/wcstol.texi: Likewise.
18052         * doc/posix-functions/wcstombs.texi: Likewise.
18053         * doc/posix-functions/wcstoull.texi: Likewise.
18054         * doc/posix-functions/wcstoul.texi: Likewise.
18055         * doc/posix-functions/wcstoumax.texi: Likewise.
18056         * doc/posix-functions/wcswidth.texi: Likewise.
18057         * doc/posix-functions/wcsxfrm.texi: Likewise.
18058         * doc/posix-functions/wctob.texi: Likewise.
18059         * doc/posix-functions/wctomb.texi: Likewise.
18060         * doc/posix-functions/wctrans.texi: Likewise.
18061         * doc/posix-functions/wctype.texi: Likewise.
18062         * doc/posix-functions/wcwidth.texi: Likewise.
18063         * doc/posix-functions/wmemchr.texi: Likewise.
18064         * doc/posix-functions/wmemcmp.texi: Likewise.
18065         * doc/posix-functions/wmemcpy.texi: Likewise.
18066         * doc/posix-functions/wmemmove.texi: Likewise.
18067         * doc/posix-functions/wmemset.texi: Likewise.
18068         * doc/posix-functions/wprintf.texi: Likewise.
18069         * doc/posix-functions/wscanf.texi: Likewise.
18070
18071 2008-12-21  Bruno Haible  <bruno@clisp.org>
18072
18073         Update doc for HP-UX 11.11.
18074         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18075         in HP-UX version 11.00, not in all versions of HP-UX 11.
18076         * doc/posix-functions/fwide.texi: Likewise.
18077         * doc/posix-functions/fwprintf.texi: Likewise.
18078         * doc/posix-functions/fwscanf.texi: Likewise.
18079         * doc/posix-functions/inet_ntop.texi: Likewise.
18080         * doc/posix-functions/inet_pton.texi: Likewise.
18081         * doc/posix-functions/mbrlen.texi: Likewise.
18082         * doc/posix-functions/mbrtowc.texi: Likewise.
18083         * doc/posix-functions/mbsinit.texi: Likewise.
18084         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18085         * doc/posix-functions/swprintf.texi: Likewise.
18086         * doc/posix-functions/swscanf.texi: Likewise.
18087         * doc/posix-functions/towctrans.texi: Likewise.
18088         * doc/posix-functions/vfwprintf.texi: Likewise.
18089         * doc/posix-functions/vswprintf.texi: Likewise.
18090         * doc/posix-functions/vwprintf.texi: Likewise.
18091         * doc/posix-functions/wcrtomb.texi: Likewise.
18092         * doc/posix-functions/wcsrtombs.texi: Likewise.
18093         * doc/posix-functions/wcsstr.texi: Likewise.
18094         * doc/posix-functions/wctob.texi: Likewise.
18095         * doc/posix-functions/wctrans.texi: Likewise.
18096         * doc/posix-functions/wmemchr.texi: Likewise.
18097         * doc/posix-functions/wmemcmp.texi: Likewise.
18098         * doc/posix-functions/wmemcpy.texi: Likewise.
18099         * doc/posix-functions/wmemmove.texi: Likewise.
18100         * doc/posix-functions/wmemset.texi: Likewise.
18101         * doc/posix-functions/wprintf.texi: Likewise.
18102         * doc/posix-functions/wscanf.texi: Likewise.
18103
18104 2008-12-21  Bruno Haible  <bruno@clisp.org>
18105
18106         Work around a portability problem.
18107         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18108         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18109
18110 2008-12-20  Bruno Haible  <bruno@clisp.org>
18111
18112         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18113         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18114         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18116         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18117
18118         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18119         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18120         set.
18121         (GNULIB_defined_mbstate_t): New macro.
18122         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18123         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18124         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18125         reuses the system's mbrtowc function but works around the bugs.
18126         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18127         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18128         macros.
18129         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18130         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18131         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18132         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18133         REPLACE_MBSINIT if mbsinit needs to be overridden.
18134         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18135         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18136         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18137         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18138         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18139         m4/locale-zh.m4.
18140         (Depends): Add mbsinit.
18141         * modules/mbsinit (Depends): Add mbrtowc.
18142         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18143
18144 2008-12-20  Bruno Haible  <bruno@clisp.org>
18145
18146         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18147         so that there are no conversion errors on AIX.
18148         * tests/test-mbsrtowcs.c (main): LIkewise.
18149
18150 2008-12-20  Bruno Haible  <bruno@clisp.org>
18151
18152         Work around wctob bug on Solaris <= 9.
18153         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18154         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18155         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18156         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18157         * modules/wctob (Files): Add m4/locale-fr.m4.
18158         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18159
18160 2008-12-20  Bruno Haible  <bruno@clisp.org>
18161
18162         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18163         /dev/null.
18164         * tests/test-select-in.sh: Likewise.
18165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18166
18167 2008-12-20  Bruno Haible  <bruno@clisp.org>
18168
18169         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18170         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18171         Cygwin 1.5.x.
18172
18173 2008-12-20  Bruno Haible  <bruno@clisp.org>
18174
18175         Ensure mbstate_t is defined on HP-UX 11.11.
18176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18177         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18178         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18179         AC_USE_SYSTEM_EXTENSIONS.
18180         * modules/fnmatch (Depends-on): Add extensions.
18181         * modules/mbrlen (Depends-on): Likewise.
18182         * modules/mbrtowc (Depends-on): Likewise.
18183         * modules/mbsinit (Depends-on): Likewise.
18184         * modules/mbsrtowcs (Depends-on): Likewise.
18185         * modules/mbswidth (Depends-on): Likewise.
18186         * modules/quotearg (Depends-on): Likewise.
18187         * modules/strftime (Depends-on): Likewise.
18188
18189 2008-12-20  Bruno Haible  <bruno@clisp.org>
18190
18191         Ensure wctob is declared on IRIX 6.5.
18192         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18193         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18194         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18196         of HAVE_WCTOB.
18197         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18198         HAVE_WCTOB.
18199         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18200
18201 2008-12-19  Bruno Haible  <bruno@clisp.org>
18202
18203         * modules/mbsrtowcs-tests: New file.
18204         * tests/test-mbsrtowcs1.sh: New file.
18205         * tests/test-mbsrtowcs2.sh: New file.
18206         * tests/test-mbsrtowcs3.sh: New file.
18207         * tests/test-mbsrtowcs4.sh: New file.
18208         * tests/test-mbsrtowcs.c: New file.
18209
18210         New module 'mbsrtowcs'.
18211         * lib/wchar.in.h (mbsrtowcs): New declaration.
18212         * lib/mbsrtowcs.c: New file.
18213         * m4/mbsrtowcs.m4: New file.
18214         * modules/mbsrtowcs: New file.
18215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18216         HAVE_MBSRTOWCS.
18217         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18218         HAVE_MBSRTOWCS.
18219         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18220
18221 2008-12-19  Bruno Haible  <bruno@clisp.org>
18222
18223         New module 'mbrlen'.
18224         * lib/wchar.in.h (mbrlen): New declaration.
18225         * lib/mbrlen.c: New file.
18226         * m4/mbrlen.m4: New file.
18227         * modules/mbrlen: New file.
18228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18229         HAVE_MBRLEN.
18230         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18231         HAVE_MBRLEN.
18232         * doc/posix-functions/mbrlen.texi: Document the new module.
18233
18234 2008-12-19  Bruno Haible  <bruno@clisp.org>
18235
18236         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18237         * modules/mbrtowc (Depends-on): Add verify.
18238         Suggested by Paul Eggert.
18239
18240 2008-12-18  Bruno Haible  <bruno@clisp.org>
18241
18242         * modules/mbsinit-tests: New file.
18243         * tests/test-mbsinit.sh: New file.
18244         * tests/test-mbsinit.c: New file.
18245
18246 2008-12-18  Bruno Haible  <bruno@clisp.org>
18247
18248         * modules/mbrtowc-tests: New file.
18249         * tests/test-mbrtowc1.sh: New file.
18250         * tests/test-mbrtowc2.sh: New file.
18251         * tests/test-mbrtowc3.sh: New file.
18252         * tests/test-mbrtowc4.sh: New file.
18253         * tests/test-mbrtowc.c: New file.
18254
18255         New module 'mbrtowc'.
18256         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18257         mbsinit and mbrtowc.
18258         (mbrtowc): New declaration.
18259         * lib/mbrtowc.c: New file.
18260         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18261         * modules/mbrtowc: New file.
18262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18263         HAVE_MBRTOWC.
18264         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18265         HAVE_MBRTOWC.
18266         * doc/posix-functions/mbrtowc.texi: Document the new module.
18267
18268 2008-12-18  Bruno Haible  <bruno@clisp.org>
18269
18270         New module 'wctob'.
18271         * lib/wchar.in.h (wctob): New declaration.
18272         * lib/wctob.c: New file.
18273         * m4/wctob.m4: New file.
18274         * modules/wctob: New file.
18275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18276         HAVE_WCTOB.
18277         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18278         * doc/posix-functions/wctob.texi: Document the new module.
18279
18280 2008-12-18  Bruno Haible  <bruno@clisp.org>
18281
18282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18283         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18284
18285 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18286
18287         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18288         G. Christensen" <tgc@jupiterrise.com>.
18289
18290         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18291         G. Christensen" <tgc@jupiterrise.com>.
18292
18293         * lib/flock.c: Need to include string.h.  Reported by "Tom
18294         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18295         <ebb9@byu.net>.
18296
18297 2008-12-18  Bruno Haible  <bruno@clisp.org>
18298
18299         * m4/locale-ja.m4: New file, from GNU gettext.
18300
18301 2008-12-17  Bruno Haible  <bruno@clisp.org>
18302
18303         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18304         Suggested by Eric Blake.
18305
18306 2008-12-17  Bruno Haible  <bruno@clisp.org>
18307
18308         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18309
18310 2008-12-17  Bruno Haible  <bruno@clisp.org>
18311
18312         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18313         * modules/mbsinit (Depends-on): Add verify.
18314         Suggested by Paul Eggert.
18315
18316 2008-12-17  Bruno Haible  <bruno@clisp.org>
18317
18318         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18319         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18320         gl_FUNC_MBRTOWC.
18321         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18322         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18323         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18324         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18325         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18326         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18327         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18328         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18329         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18330         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18331         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18332         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18333         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18334         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18335         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18336         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18337         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18338         * modules/trim (configure.ac): Likewise.
18339
18340 2008-12-17  Bruno Haible  <bruno@clisp.org>
18341
18342         * modules/btowc-tests: New file.
18343         * tests/test-btowc1.sh: New file.
18344         * tests/test-btowc2.sh: New file.
18345         * tests/test-btowc.c: New file.
18346
18347         New module 'btowc'.
18348         * lib/wchar.in.h (btowc): New declaration.
18349         * lib/btowc.c: New file.
18350         * m4/btowc.m4: New file.
18351         * modules/btowc: New file.
18352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18353         HAVE_BTOWC.
18354         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18355         * doc/posix-functions/btowc.texi: Document the new module.
18356
18357 2008-12-17  Bruno Haible  <bruno@clisp.org>
18358
18359         New module 'mbsinit'.
18360         * lib/wchar.in.h (mbsinit): New declaration.
18361         * lib/mbsinit.c: New file.
18362         * m4/mbsinit.m4: New file.
18363         * modules/mbsinit: New file.
18364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18365         HAVE_MBSINIT.
18366         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18367         HAVE_MBSINIT.
18368         * doc/posix-functions/mbsinit.texi: Document the new module.
18369
18370 2008-12-16  Bruno Haible  <bruno@clisp.org>
18371
18372         * lib/unistd.in.h: Add comment.
18373         * tests/test-environ.c: Don't include <stdlib.h>.
18374
18375 2008-12-16  Bruno Haible  <bruno@clisp.org>
18376
18377         * lib/parse-duration.h (parse_duration): Document return value
18378         convention.
18379         * lib/parse-duration.c: Include specification header first. Add
18380         comments.
18381         (_): Remove macro.
18382         (parse_year_month_day, parse_hour_minute_second): Move side effects
18383         outside of strchr call.
18384         (parse_non_iso8601): Move side effects outside of isspace call.
18385         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18386         call.
18387
18388 2008-12-16  Bruno Haible  <bruno@clisp.org>
18389
18390         * tests/test-parse-duration.sh: Produce no output when the test
18391         succeeds.
18392
18393 2008-12-16  Bruno Haible  <bruno@clisp.org>
18394
18395         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18396         expressions.
18397
18398 2008-12-15  Bruno Haible  <bruno@clisp.org>
18399
18400         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18401         * doc/glibc-functions/flistxattr.texi: Likewise.
18402         * doc/glibc-functions/fopencookie.texi: Likewise.
18403         * doc/glibc-functions/fremovexattr.texi: Likewise.
18404         * doc/glibc-functions/fsetxattr.texi: Likewise.
18405         * doc/glibc-functions/getxattr.texi: Likewise.
18406         * doc/glibc-functions/lgetxattr.texi: Likewise.
18407         * doc/glibc-functions/listxattr.texi: Likewise.
18408         * doc/glibc-functions/llistxattr.texi: Likewise.
18409         * doc/glibc-functions/lremovexattr.texi: Likewise.
18410         * doc/glibc-functions/lsetxattr.texi: Likewise.
18411         * doc/glibc-functions/removexattr.texi: Likewise.
18412         * doc/glibc-functions/setxattr.texi: Likewise.
18413         * doc/posix-functions/open_memstream.texi: Likewise.
18414
18415 2008-12-15  Eric Blake  <ebb9@byu.net>
18416
18417         Update doc for cygwin 1.7.
18418         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18419         functions.
18420         * doc/posix-functions/fchmodat.texi: Likewise.
18421         * doc/posix-functions/fchownat.texi: Likewise.
18422         * doc/posix-functions/fdopendir.texi: Likewise.
18423         * doc/posix-functions/fmemopen.texi: Likewise.
18424         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18425         * doc/posix-functions/fstatat.texi: Likewise.
18426         * doc/posix-functions/futimens.texi: Likewise.
18427         * doc/posix-functions/gai_strerror.texi: Likewise.
18428         * doc/posix-functions/getaddrinfo.texi: Likewise.
18429         * doc/posix-functions/getnameinfo.texi: Likewise.
18430         * doc/posix-functions/if_freenameindex.texi: Likewise.
18431         * doc/posix-functions/if_indextoname.texi: Likewise.
18432         * doc/posix-functions/if_nameindex.texi: Likewise.
18433         * doc/posix-functions/if_nametoindex.texi: Likewise.
18434         * doc/posix-functions/insque.texi: Likewise.
18435         * doc/posix-functions/linkat.texi: Likewise.
18436         * doc/posix-functions/llrint.texi: Likewise.
18437         * doc/posix-functions/llrintf.texi: Likewise.
18438         * doc/posix-functions/llrintl.texi: Likewise.
18439         * doc/posix-functions/lockf.texi: Likewise.
18440         * doc/posix-functions/lrintl.texi: Likewise.
18441         * doc/posix-functions/mkdirat.texi: Likewise.
18442         * doc/posix-functions/mkfifoat.texi: Likewise.
18443         * doc/posix-functions/mknodat.texi: Likewise.
18444         * doc/posix-functions/mq_close.texi: Likewise.
18445         * doc/posix-functions/mq_getattr.texi: Likewise.
18446         * doc/posix-functions/mq_notify.texi: Likewise.
18447         * doc/posix-functions/mq_open.texi: Likewise.
18448         * doc/posix-functions/mq_receive.texi: Likewise.
18449         * doc/posix-functions/mq_send.texi: Likewise.
18450         * doc/posix-functions/mq_setattr.texi: Likewise.
18451         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18452         * doc/posix-functions/mq_timedsend.texi: Likewise.
18453         * doc/posix-functions/mq_unlink.texi: Likewise.
18454         * doc/posix-functions/open_memstream.texi: Likewise.
18455         * doc/posix-functions/openat.texi: Likewise.
18456         * doc/posix-functions/posix_fadvise.texi: Likewise.
18457         * doc/posix-functions/posix_fallocate.texi: Likewise.
18458         * doc/posix-functions/posix_madvise.texi: Likewise.
18459         * doc/posix-functions/posix_memalign.texi: Likewise.
18460         * doc/posix-functions/posix_openpt.texi: Likewise.
18461         * doc/posix-functions/readlinkat.texi: Likewise.
18462         * doc/posix-functions/remque.texi: Likewise.
18463         * doc/posix-functions/renameat.texi: Likewise.
18464         * doc/posix-functions/rintl.texi: Likewise.
18465         * doc/posix-functions/sem_unlink.texi: Likewise.
18466         * doc/posix-functions/shm_open.texi: Likewise.
18467         * doc/posix-functions/shm_unlink.texi: Likewise.
18468         * doc/posix-functions/signgam.texi: Likewise.
18469         * doc/posix-functions/sigset.texi: Likewise.
18470         * doc/posix-functions/stpcpy.texi: Likewise.
18471         * doc/posix-functions/stpncpy.texi: Likewise.
18472         * doc/posix-functions/strerror.texi: Likewise.
18473         * doc/posix-functions/strtod.texi: Likewise.
18474         * doc/posix-functions/symlinkat.texi: Likewise.
18475         * doc/posix-functions/unlinkat.texi: Likewise.
18476         * doc/posix-functions/utimensat.texi: Likewise.
18477         * doc/glibc-functions/bindresvport.texi: Likewise.
18478         * doc/glibc-functions/dn_expand.texi: Likewise.
18479         * doc/glibc-functions/exp10.texi: Likewise.
18480         * doc/glibc-functions/exp10f.texi: Likewise.
18481         * doc/glibc-functions/fgetxattr.texi: Likewise.
18482         * doc/glibc-functions/flistxattr.texi: Likewise.
18483         * doc/glibc-functions/fopencookie.texi: Likewise.
18484         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18485         * doc/glibc-functions/fremovexattr.texi: Likewise.
18486         * doc/glibc-functions/fsetxattr.texi: Likewise.
18487         * doc/glibc-functions/getifaddrs.texi: Likewise.
18488         * doc/glibc-functions/getxattr.texi: Likewise.
18489         * doc/glibc-functions/lgetxattr.texi: Likewise.
18490         * doc/glibc-functions/listxattr.texi: Likewise.
18491         * doc/glibc-functions/llistxattr.texi: Likewise.
18492         * doc/glibc-functions/lremovexattr.texi: Likewise.
18493         * doc/glibc-functions/lsetxattr.texi: Likewise.
18494         * doc/glibc-functions/pow10.texi: Likewise.
18495         * doc/glibc-functions/pow10f.texi: Likewise.
18496         * doc/glibc-functions/rcmd_af.texi: Likewise.
18497         * doc/glibc-functions/removexattr.texi: Likewise.
18498         * doc/glibc-functions/res_init.texi: Likewise.
18499         * doc/glibc-functions/res_mkquery.texi: Likewise.
18500         * doc/glibc-functions/res_query.texi: Likewise.
18501         * doc/glibc-functions/res_querydomain.texi: Likewise.
18502         * doc/glibc-functions/res_send.texi: Likewise.
18503         * doc/glibc-functions/rresvport_af.texi: Likewise.
18504         * doc/glibc-functions/setxattr.texi: Likewise.
18505         * doc/glibc-functions/strcasestr.texi: Likewise.
18506
18507 2008-12-15  Bruno Haible  <bruno@clisp.org>
18508
18509         Fix compilation error on OSF/1 4.0.
18510         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18511         <sys/time.h>, simply delegate to the system header.
18512         Reported by Daniel Richard G. <oss@teragram.com>.
18513
18514 2008-12-15  Bruno Haible  <bruno@clisp.org>
18515
18516         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18517         * doc/posix-functions/fchmodat.texi: Likewise.
18518         * doc/posix-functions/fchownat.texi: Likewise.
18519         * doc/posix-functions/fdopendir.texi: Likewise.
18520         * doc/posix-functions/fstatat.texi: Likewise.
18521         * doc/posix-functions/mkdirat.texi: Likewise.
18522         * doc/posix-functions/unlinkat.texi: Likewise.
18523
18524 2008-12-14  Bruno Haible  <bruno@clisp.org>
18525
18526         Update doc for POSIX:2008.
18527         * doc/posix-functions/faccessat.texi: New file.
18528         * doc/posix-functions/fchmodat.texi: New file.
18529         * doc/posix-functions/fchownat.texi: New file.
18530         * doc/posix-functions/fdopendir.texi: New file.
18531         * doc/posix-functions/fstatat.texi: New file.
18532         * doc/posix-functions/futimens.texi: New file.
18533         * doc/posix-functions/linkat.texi: New file.
18534         * doc/posix-functions/mkdirat.texi: New file.
18535         * doc/posix-functions/mkfifoat.texi: New file.
18536         * doc/posix-functions/mknodat.texi: New file.
18537         * doc/posix-functions/open_wmemstream.texi: New file.
18538         * doc/posix-functions/openat.texi: New file.
18539         * doc/posix-functions/psiginfo.texi: New file.
18540         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18541         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18542         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18543         * doc/posix-functions/readlinkat.texi: New file.
18544         * doc/posix-functions/renameat.texi: New file.
18545         * doc/posix-functions/strerror_l.texi: New file.
18546         * doc/posix-functions/symlinkat.texi: New file.
18547         * doc/posix-functions/unlinkat.texi: New file.
18548         * doc/posix-functions/utimensat.texi: New file.
18549         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18550
18551 2008-12-14  Bruno Haible  <bruno@clisp.org>
18552
18553         Update doc for POSIX:2008.
18554         * doc/posix-functions/alphasort.texi: Renamed from
18555         doc/glibc-functions/alphasort.texi.
18556         * doc/posix-functions/dirfd.texi: Renamed from
18557         doc/glibc-functions/dirfd.texi.
18558         * doc/posix-functions/dprintf.texi: Renamed from
18559         doc/glibc-functions/dprintf.texi.
18560         * doc/posix-functions/duplocale.texi: Renamed from
18561         doc/glibc-functions/duplocale.texi.
18562         * doc/posix-functions/fexecve.texi: Renamed from
18563         doc/glibc-functions/fexecve.texi.
18564         * doc/posix-functions/fmemopen.texi: Renamed from
18565         doc/glibc-functions/fmemopen.texi.
18566         * doc/posix-functions/freelocale.texi: Renamed from
18567         doc/glibc-functions/freelocale.texi.
18568         * doc/posix-functions/getdate_err.texi: Renamed from
18569         doc/glibc-functions/getdate_err.texi.
18570         * doc/posix-functions/isalnum_l.texi: Renamed from
18571         doc/glibc-functions/isalnum_l.texi.
18572         * doc/posix-functions/isalpha_l.texi: Renamed from
18573         doc/glibc-functions/isalpha_l.texi.
18574         * doc/posix-functions/isblank_l.texi: Renamed from
18575         doc/glibc-functions/isblank_l.texi.
18576         * doc/posix-functions/iscntrl_l.texi: Renamed from
18577         doc/glibc-functions/iscntrl_l.texi.
18578         * doc/posix-functions/isdigit_l.texi: Renamed from
18579         doc/glibc-functions/isdigit_l.texi.
18580         * doc/posix-functions/isgraph_l.texi: Renamed from
18581         doc/glibc-functions/isgraph_l.texi.
18582         * doc/posix-functions/islower_l.texi: Renamed from
18583         doc/glibc-functions/islower_l.texi.
18584         * doc/posix-functions/isprint_l.texi: Renamed from
18585         doc/glibc-functions/isprint_l.texi.
18586         * doc/posix-functions/ispunct_l.texi: Renamed from
18587         doc/glibc-functions/ispunct_l.texi.
18588         * doc/posix-functions/isspace_l.texi: Renamed from
18589         doc/glibc-functions/isspace_l.texi.
18590         * doc/posix-functions/isupper_l.texi: Renamed from
18591         doc/glibc-functions/isupper_l.texi.
18592         * doc/posix-functions/iswalnum_l.texi: Renamed from
18593         doc/glibc-functions/iswalnum_l.texi.
18594         * doc/posix-functions/iswalpha_l.texi: Renamed from
18595         doc/glibc-functions/iswalpha_l.texi.
18596         * doc/posix-functions/iswblank_l.texi: Renamed from
18597         doc/glibc-functions/iswblank_l.texi.
18598         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18599         doc/glibc-functions/iswcntrl_l.texi.
18600         * doc/posix-functions/iswctype_l.texi: Renamed from
18601         doc/glibc-functions/iswctype_l.texi.
18602         * doc/posix-functions/iswdigit_l.texi: Renamed from
18603         doc/glibc-functions/iswdigit_l.texi.
18604         * doc/posix-functions/iswgraph_l.texi: Renamed from
18605         doc/glibc-functions/iswgraph_l.texi.
18606         * doc/posix-functions/iswlower_l.texi: Renamed from
18607         doc/glibc-functions/iswlower_l.texi.
18608         * doc/posix-functions/iswprint_l.texi: Renamed from
18609         doc/glibc-functions/iswprint_l.texi.
18610         * doc/posix-functions/iswpunct_l.texi: Renamed from
18611         doc/glibc-functions/iswpunct_l.texi.
18612         * doc/posix-functions/iswspace_l.texi: Renamed from
18613         doc/glibc-functions/iswspace_l.texi.
18614         * doc/posix-functions/iswupper_l.texi: Renamed from
18615         doc/glibc-functions/iswupper_l.texi.
18616         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18617         doc/glibc-functions/iswxdigit_l.texi.
18618         * doc/posix-functions/isxdigit_l.texi: Renamed from
18619         doc/glibc-functions/isxdigit_l.texi.
18620         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18621         doc/glibc-functions/mbsnrtowcs.texi.
18622         * doc/posix-functions/mkdtemp.texi: Renamed from
18623         doc/glibc-functions/mkdtemp.texi.
18624         * doc/posix-functions/newlocale.texi: Renamed from
18625         doc/glibc-functions/newlocale.texi.
18626         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18627         doc/glibc-functions/nl_langinfo_l.texi.
18628         * doc/posix-functions/open_memstream.texi: Renamed from
18629         doc/glibc-functions/open_memstream.texi.
18630         * doc/posix-functions/opterr.texi: Renamed from
18631         doc/glibc-functions/opterr.texi.
18632         * doc/posix-functions/optind.texi: Renamed from
18633         doc/glibc-functions/optind.texi.
18634         * doc/posix-functions/optopt.texi: Renamed from
18635         doc/glibc-functions/optopt.texi.
18636         * doc/posix-functions/psignal.texi: Renamed from
18637         doc/glibc-functions/psignal.texi.
18638         * doc/posix-functions/scandir.texi: Renamed from
18639         doc/glibc-functions/scandir.texi.
18640         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18641         doc/glibc-functions/sched_get_priority_min.texi.
18642         * doc/posix-functions/signgam.texi: Renamed from
18643         doc/glibc-functions/signgam.texi.
18644         * doc/posix-functions/stpcpy.texi: Renamed from
18645         doc/glibc-functions/stpcpy.texi.
18646         * doc/posix-functions/stpncpy.texi: Renamed from
18647         doc/glibc-functions/stpncpy.texi.
18648         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18649         doc/glibc-functions/strcasecmp_l.texi.
18650         * doc/posix-functions/strcoll_l.texi: Renamed from
18651         doc/glibc-functions/strcoll_l.texi.
18652         * doc/posix-functions/strfmon_l.texi: Renamed from
18653         doc/glibc-functions/strfmon_l.texi.
18654         * doc/posix-functions/strftime_l.texi: Renamed from
18655         doc/glibc-functions/strftime_l.texi.
18656         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18657         doc/glibc-functions/strncasecmp_l.texi.
18658         * doc/posix-functions/strndup.texi: Renamed from
18659         doc/glibc-functions/strndup.texi.
18660         * doc/posix-functions/strnlen.texi: Renamed from
18661         doc/glibc-functions/strnlen.texi.
18662         * doc/posix-functions/strsignal.texi: Renamed from
18663         doc/glibc-functions/strsignal.texi.
18664         * doc/posix-functions/strxfrm_l.texi: Renamed from
18665         doc/glibc-functions/strxfrm_l.texi.
18666         * doc/posix-functions/timer_gettime.texi: Renamed from
18667         doc/glibc-functions/timer_gettime.texi.
18668         * doc/posix-functions/tolower_l.texi: Renamed from
18669         doc/glibc-functions/tolower_l.texi.
18670         * doc/posix-functions/toupper_l.texi: Renamed from
18671         doc/glibc-functions/toupper_l.texi.
18672         * doc/posix-functions/towctrans_l.texi: Renamed from
18673         doc/glibc-functions/towctrans_l.texi.
18674         * doc/posix-functions/towlower_l.texi: Renamed from
18675         doc/glibc-functions/towlower_l.texi.
18676         * doc/posix-functions/towupper_l.texi: Renamed from
18677         doc/glibc-functions/towupper_l.texi.
18678         * doc/posix-functions/uselocale.texi: Renamed from
18679         doc/glibc-functions/uselocale.texi.
18680         * doc/posix-functions/vdprintf.texi: Renamed from
18681         doc/glibc-functions/vdprintf.texi.
18682         * doc/posix-functions/wcpcpy.texi:
18683         Renamed from doc/glibc-functions/wcpcpy.texi.
18684         * doc/posix-functions/wcpncpy.texi: Renamed from
18685         doc/glibc-functions/wcpncpy.texi.
18686         * doc/posix-functions/wcscasecmp.texi: Renamed from
18687         doc/glibc-functions/wcscasecmp.texi.
18688         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18689         doc/glibc-functions/wcscasecmp_l.texi.
18690         * doc/posix-functions/wcscoll_l.texi: Renamed from
18691         doc/glibc-functions/wcscoll_l.texi.
18692         * doc/posix-functions/wcsdup.texi: Renamed from
18693         doc/glibc-functions/wcsdup.texi.
18694         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18695         doc/glibc-functions/wcsncasecmp.texi.
18696         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18697         doc/glibc-functions/wcsncasecmp_l.texi.
18698         * doc/posix-functions/wcsnlen.texi: Renamed from
18699         doc/glibc-functions/wcsnlen.texi.
18700         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18701         doc/glibc-functions/wcsnrtombs.texi.
18702         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18703         doc/glibc-functions/wcsxfrm_l.texi.
18704         * doc/posix-functions/wctrans_l.texi: Renamed from
18705         doc/glibc-functions/wctrans_l.texi.
18706         * doc/posix-functions/wctype_l.texi: Renamed from
18707         doc/glibc-functions/wctype_l.texi.
18708         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18709         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18710         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18711         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18712         these subsections.
18713         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18714         Remove sections.
18715
18716 2008-12-14  Bruno Haible  <bruno@clisp.org>
18717
18718         Update doc for POSIX:2008.
18719         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18720
18721 2008-12-14  Bruno Haible  <bruno@clisp.org>
18722
18723         Update doc for POSIX:2008.
18724         * doc/pastposix-functions/bcmp.texi: Renamed from
18725         doc/posix-functions/bcmp.texi.
18726         * doc/pastposix-functions/bcopy.texi: Renamed from
18727         doc/posix-functions/bcopy.texi.
18728         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18729         doc/posix-functions/bsd_signal.texi.
18730         * doc/pastposix-functions/bzero.texi: Renamed from
18731         doc/posix-functions/bzero.texi.
18732         * doc/pastposix-functions/ecvt.texi: Renamed from
18733         doc/posix-functions/ecvt.texi.
18734         * doc/pastposix-functions/fcvt.texi: Renamed from
18735         doc/posix-functions/fcvt.texi.
18736         * doc/pastposix-functions/ftime.texi: Renamed from
18737         doc/posix-functions/ftime.texi.
18738         * doc/pastposix-functions/gcvt.texi: Renamed from
18739         doc/posix-functions/gcvt.texi.
18740         * doc/pastposix-functions/getcontext.texi: Renamed from
18741         doc/posix-functions/getcontext.texi.
18742         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18743         doc/posix-functions/gethostbyaddr.texi.
18744         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18745         doc/posix-functions/gethostbyname.texi.
18746         * doc/pastposix-functions/getwd.texi: Renamed from
18747         doc/posix-functions/getwd.texi.
18748         * doc/pastposix-functions/h_errno.texi: Renamed from
18749         doc/posix-functions/h_errno.texi.
18750         * doc/pastposix-functions/index.texi: Renamed from
18751         doc/posix-functions/index.texi.
18752         * doc/pastposix-functions/makecontext.texi: Renamed from
18753         doc/posix-functions/makecontext.texi.
18754         * doc/pastposix-functions/mktemp.texi: Renamed from
18755         doc/posix-functions/mktemp.texi.
18756         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18757         doc/posix-functions/pthread_attr_getstackaddr.texi.
18758         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18759         doc/posix-functions/pthread_attr_setstackaddr.texi.
18760         * doc/pastposix-functions/rindex.texi: Renamed from
18761         doc/posix-functions/rindex.texi.
18762         * doc/pastposix-functions/scalb.texi: Renamed from
18763         doc/posix-functions/scalb.texi.
18764         * doc/pastposix-functions/setcontext.texi: Renamed from
18765         doc/posix-functions/setcontext.texi.
18766         * doc/pastposix-functions/swapcontext.texi: Renamed from
18767         doc/posix-functions/swapcontext.texi.
18768         * doc/pastposix-functions/ualarm.texi: Renamed from
18769         doc/posix-functions/ualarm.texi.
18770         * doc/pastposix-functions/usleep.texi: Renamed from
18771         doc/posix-functions/usleep.texi.
18772         * doc/pastposix-functions/vfork.texi: Renamed from
18773         doc/posix-functions/vfork.texi.
18774         * doc/pastposix-functions/wcswcs.texi: Renamed from
18775         doc/posix-functions/wcswcs.texi.
18776         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18777         (Function Substitutes): Update.
18778
18779 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18780
18781         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18782         m4/strerror.m4.
18783
18784 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18785             Bruno Haible  <bruno@clisp.org>
18786
18787         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18788
18789 2008-12-13  Bruno Haible  <bruno@clisp.org>
18790
18791         * modules/strtoull (Depends-on): Remove unistd.
18792
18793 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18794
18795         * modules/strtoull (Depends-on): Add stdlib.
18796
18797 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18798
18799         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18800
18801 2008-12-10  Jim Meyering  <meyering@redhat.com>
18802
18803         gl_ASSERT: don't say assertions are disabled when they're not
18804         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18805         "checking whether to enable assertions... no", when they are in
18806         fact enabled.  This is solely a bug in the output of configure.
18807         In spite of saying "no", NDEBUG was not defined in that case.
18808         Also, as noted by Eric Blake, leave assertions enabled upon
18809         --enable-assert=INVALID.
18810
18811 2008-12-10  Bruno Haible  <bruno@clisp.org>
18812
18813         Change MODULES.html to refer to POSIX:2008 where possible.
18814         * MODULES.html.sh (POSIX2008_URL): New variable.
18815         (posix_headers): Remove sys/timeb, ucontext.
18816         (posix2001_headers): New variable.
18817         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18818         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18819         index, makecontext, mktemp, pthread_attr_getstackaddr,
18820         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18821         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18822         (posix2001_functions): New variable.
18823         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18824         otherwise.
18825
18826 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18827
18828         add missing include to parse-duration.c
18829         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18830         * modules/parse-duration (Depends-on): Add xalloc.
18831
18832         fix sed script reading maint.mk
18833         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18834         (syntax-check-rules): Use it.
18835
18836 2008-12-09  Bruno Haible  <bruno@clisp.org>
18837
18838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18839         MacOS X 10.4/PowerPC.
18840         Reported by Simon Josefsson.
18841
18842 2008-12-08  Jim Meyering  <meyering@redhat.com>
18843
18844         work around mingw's lack of some S_IF definitions
18845         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18846         Reported by Simon Josefsson.
18847
18848 2008-12-08  Bruno Haible  <bruno@clisp.org>
18849
18850         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18851         applied to variables. Needed on MacOS X 10.4/PowerPC.
18852         Reported by Simon Josefsson.
18853
18854 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18855         and Eric Blake  <ebb9@byu.net>
18856
18857         assert: honor --enable-assert
18858         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18859         order to honor --enable-assert, rather than treating it as a
18860         synonym for --disable-assert.
18861
18862 2008-12-08  Jim Meyering  <meyering@redhat.com>
18863
18864         * lib/posixtm.c: Remove now-useless declaration of mktime.
18865
18866         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18867
18868 2008-12-07  Bruno Haible  <bruno@clisp.org>
18869
18870         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18871         test_once): Mark functions as static.
18872         * tests/test-tls.c (test_tls): Likewise.
18873
18874 2008-12-07  Bruno Haible  <bruno@clisp.org>
18875
18876         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18877         iconv_register_autodetect.
18878
18879 2008-12-07  Jim Meyering  <meyering@redhat.com>
18880
18881         posixtm.c: avoid a warning
18882         * lib/posixtm.c (posixtime): Don't initialize tm0.
18883         It's no longer needed to placate gcc4's -Wuninitialized,
18884         and the attempt to placate would elicit a new warning.
18885
18886         unicodeio.c: mark unused parameters
18887         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18888         (fallback_failure_callback): Likewise.
18889
18890 2008-12-07  Bruno Haible  <bruno@clisp.org>
18891
18892         * gnulib-tool (func_create_testdir): When building the tests
18893         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18894         Reported by Simon Josefsson.
18895
18896 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18897
18898         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18899
18900 2008-12-06  Bruno Haible  <bruno@clisp.org>
18901
18902         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18903         Suggested by Eric Blake.
18904
18905 2008-12-06  Bruno Haible  <bruno@clisp.org>
18906
18907         Fix a c-stack test failure on MacOS X.
18908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18909         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18910         handler for SIGBUS as well.
18911         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18912         install a signal handler for SIGBUS as well.
18913         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18914
18915 2008-12-06  Bruno Haible  <bruno@clisp.org>
18916
18917         Advocacy documentation.
18918         * doc/gnulib-intro.texi (Benefits): New section.
18919         * doc/gnulib.texi: Update.
18920
18921 2008-12-06  Bruno Haible  <bruno@clisp.org>
18922
18923         Document the 'manywarnings' module.
18924         * doc/manywarnings.texi: New file.
18925         * doc/gnulib.texi: Include it.
18926
18927 2008-12-05  Eric Blake  <ebb9@byu.net>
18928
18929         tests: silence some gcc warnings
18930         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18931         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18932         type mismatches.
18933
18934 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18935             Bruno Haible  <bruno@clisp.org>
18936
18937         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18938
18939 2008-11-29  Jim Meyering  <meyering@redhat.com>
18940
18941         unicodeio.c: mark unused parameters
18942         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18943         (fallback_failure_callback): Likewise.
18944
18945         fts: fix a thinko
18946         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18947         (set_stat_type): Return S_IF*-valued "type" directly.
18948         Prompted by James Youngman's spotting a related bug.
18949         Confirmed by further testing through find.
18950
18951         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18952         * lib/fts.c (D_TYPE): Define.
18953         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18954         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18955         (s_ifmt_shift_bits): New function.
18956         (set_stat_type): New function.
18957         (fts_build): When not calling fts_stat, call set_stat_type
18958         to propagate dirent.d_type info to fts_read caller.
18959         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18960         fts_statp->st_mode type information may be valid.
18961
18962 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18963
18964         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18965         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18966         <sds@gnu.org>.
18967
18968 2008-11-20  Bruno Haible  <bruno@clisp.org>
18969
18970         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18971         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18972         INCLUDE_NEXT.
18973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18974         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18975         * modules/math (Makefile.am): Substitute
18976         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18977         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18978
18979 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18980             Bruno Haible  <bruno@clisp.org>
18981
18982         * lib/stdint.in.h: Define all type macros so that their expansion is
18983         a single typedef'ed token. Fixes a compilation failure in Boost which
18984         does "using ::int8_t;".
18985
18986 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18987
18988         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18989         gl_MANYWARN_ALL_GCC.
18990         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18991         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18992         * modules/manywarnings: New file.
18993         * MODULES.html.sh: Mention manywarnings module.
18994
18995 2008-11-18  Bruno Haible  <bruno@clisp.org>
18996
18997         * doc/gnulib-tool.texi (Unit tests): New section.
18998
18999 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19000
19001         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19002         paths like 'lib/po/foo.po'.
19003
19004 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19005
19006         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19007         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19008
19009 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19010
19011         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19012         parameter works.
19013
19014 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19015
19016         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19017
19018 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19019
19020         * modules/parse-duration-tests: New file.
19021         * tests/test-parse-duration.sh: New file.
19022         * tests/test-parse-duration.c: New file.
19023
19024         New module 'parse-duration'.
19025         * lib/parse-duration.h: New file.
19026         * lib/parse-duration.c: New file.
19027         * modules/parse-duration: New file.
19028
19029 2008-11-17  Bruno Haible  <bruno@clisp.org>
19030
19031         * tests/test-select-out.sh: Comment out the first pipe test.
19032         Reported by Simon Josefsson.
19033
19034 2008-11-17  Bruno Haible  <bruno@clisp.org>
19035
19036         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19038         gl_HOSTENT.
19039
19040 2008-11-17  Bruno Haible  <bruno@clisp.org>
19041
19042         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19043         -lnetwork and -lnet. Needed for Haiku and BeOS.
19044
19045 2008-11-16  Bruno Haible  <bruno@clisp.org>
19046
19047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19048
19049 2008-11-16  Bruno Haible  <bruno@clisp.org>
19050
19051         Avoid test failure on Haiku.
19052         * tests/test-fsync.c: Include <errno.h>.
19053         (main): Don't require that fsync (0) fails.
19054
19055 2008-11-15  Bruno Haible  <bruno@clisp.org>
19056
19057         New module 'hostent'.
19058         * modules/hostent: New file.
19059         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19060
19061 2008-11-15  Bruno Haible  <bruno@clisp.org>
19062
19063         New module 'servent'.
19064         * modules/servent: New file.
19065         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19066
19067 2008-11-15  Bruno Haible  <bruno@clisp.org>
19068
19069         Avoid generating same test program with two different rules.
19070         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19071         test-frexp to test-frexp-nolibm.
19072         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19073         test-frexpl to test-frexpl-nolibm.
19074
19075 2008-11-15  Bruno Haible  <bruno@clisp.org>
19076
19077         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19078         $(FREXPL_LIBM).
19079
19080 2008-11-15  Bruno Haible  <bruno@clisp.org>
19081
19082         * lib/netdb.in.h: Activate the definitions also when the system's
19083         <netdb.h> has 'struct addrinfo'.
19084         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19085         EAI_OVERFLOW or AI_NUMERICSERV.
19086         * doc/posix-headers/netdb.texi: Document the problem.
19087
19088 2008-11-15  Bruno Haible  <bruno@clisp.org>
19089
19090         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19091
19092         Make the 'sched' module work on platforms where <sched.h> exists but
19093         is incomplete (such as Haiku).
19094         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19095         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19096         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19097         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19098         HAVE_STRUCT_SCHED_PARAM.
19099         * modules/sched (Depends-on): Add include_next.
19100         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19101         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19102         * doc/posix-headers/sched.texi: Document the issue.
19103
19104 2008-11-13  Jim Meyering  <meyering@redhat.com>
19105
19106         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19107         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19108         test would fail due to the difference in the Report bugs to ...
19109         line.  The expected address is empty, "<>", while the actual
19110         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19111
19112 2008-11-12  Bruno Haible  <bruno@clisp.org>
19113
19114         lstat: don't compile lstat.c on systems lacking lstat
19115         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19116         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19117         Reported by Daniel P. Berrange via Jim Meyering.
19118
19119 2008-11-12  Jim Meyering  <meyering@redhat.com>
19120
19121         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19122
19123 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19124
19125         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19126         instead.
19127
19128 2008-11-12  Bruno Haible  <bruno@clisp.org>
19129
19130         * lib/unicodeio.c: Include unistr.h.
19131         (utf8_wctomb): Remove function.
19132         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19133
19134 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19135
19136         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19137         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19138         <bruno@clisp.org>.
19139         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19140
19141 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19142
19143         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19144         * doc/gnulib.texi: Add section for warnings.
19145
19146 2008-11-11  Bruno Haible  <bruno@clisp.org>
19147
19148         * lib/sockets.h: Add a comment.
19149
19150 2008-11-11  Karl Berry  <karl@gnu.org>
19151
19152         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19153
19154 2008-11-11  Eric Blake  <ebb9@byu.net>
19155
19156         fdl.texi: avoid git symlinks
19157         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19158
19159 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19160
19161         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19162
19163 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19164
19165         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19166         (gl_WARN_ADD): Substitute $2 if literal.
19167
19168 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19169
19170         * m4/warning.m4: Remove.
19171
19172 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19173
19174         * m4/warnings.m4: Almost complete rewrite. :-)
19175
19176 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19177
19178         * modules/warnings: New module.
19179         * m4/warnings.m4: New file.
19180         * MODULES.html.sh: Mention warnings module.
19181         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19182         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19183
19184 2008-11-10  Eric Blake  <ebb9@byu.net>
19185
19186         fdl.texi: make a symlink to the latest version
19187         * doc/standards.texi: Revert today's earlier change.
19188         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19189         * doc/fdl.texi: ...and replace this with a symlink to the newer
19190         fdl-1.3.texi.
19191
19192 2008-11-10  Bruno Haible  <bruno@clisp.org>
19193
19194         * tests/test-select-fd.c (main): Accept the result file name as fourth
19195         argument.
19196         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19197         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19198
19199 2008-11-10  Bruno Haible  <bruno@clisp.org>
19200
19201         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19202         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19203         as autoconf-substituted macros.
19204         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19206         gl_NETDB_H_DEFAULTS. Set these variables.
19207         * modules/netdb (Makefile.am): Substitute these variables.
19208
19209 2008-11-10  Eric Blake  <ebb9@byu.net>
19210
19211         standards.texi: include correct file for FDL 1.3
19212         * doc/standards.texi (GNU Free Documentation License): Change
19213         include file to pull in FDL 1.3, not 1.2.
19214
19215         fdl.texi: revert accidental change to license
19216         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19217
19218 2008-11-10  Bruno Haible  <bruno@clisp.org>
19219
19220         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19221         cross-compiling guesses also when the native compile gives no result.
19222
19223 2008-11-10  Bruno Haible  <bruno@clisp.org>
19224
19225         * lib/spawni.c (__spawni): Force variable into the stack.
19226
19227 2008-11-10  Bruno Haible  <bruno@clisp.org>
19228
19229         Add support for Haiku.
19230         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19231         glibc and BeOS, but also on Haiku.
19232         * lib/fpurge.c (fpurge): Likewise.
19233         * lib/freadable.c (freadable): Likewise.
19234         * lib/freadahead.c (freadahead): Likewise.
19235         * lib/freading.c (freading): Likewise.
19236         * lib/freadptr.c (freadptr): Likewise.
19237         * lib/freadseek.c (freadptrinc): Likewise.
19238         * lib/fseeko.c (rpl_fseeko): Likewise.
19239         * lib/fseterr.c (fseterr): Likewise.
19240         * lib/fwritable.c (fwritable): Likewise.
19241         * lib/fwriting.c (fwriting): Likewise.
19242         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19243
19244 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19245
19246         * lib/config.charset: Treat Haiku like BeOS.
19247
19248 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19249
19250         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19251         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19252
19253 2008-11-08  Bruno Haible  <bruno@clisp.org>
19254
19255         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19256         AC_CACHE_CHECK.
19257
19258 2008-11-08  Bruno Haible  <bruno@clisp.org>
19259
19260         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19261
19262 2008-11-08  Bruno Haible  <bruno@clisp.org>
19263
19264         * tests/test-select-fd.c: New file.
19265         * tests/test-select-in.sh: New file.
19266         * tests/test-select-out.sh: New file.
19267         * tests/test-select-stdin.c: New file.
19268         * modules/select-tests (Files): Add the new files.
19269         (Depends-on): Add gettimeofday.
19270         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19271         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19272         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19273
19274 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19275             Bruno Haible  <bruno@clisp.org>
19276
19277         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19278
19279 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19280
19281         * build-aux/pmccabe2html: Added support for C++ source files.
19282
19283 2008-11-05  Ben Pfaff  <blp@gnu.org>
19284
19285         Fix lib/close.c build on Windows.
19286         * modules/close (Files): Add lib/w32sock.h.
19287
19288 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19289
19290         Accept Bison's NEWS format.
19291         * build-aux/announce-gen (print_news_deltas): Tweak
19292         $re_prefix.
19293
19294 2008-11-04  Bruno Haible  <bruno@clisp.org>
19295
19296         * modules/random_r (Maintainer): Add glibc.
19297
19298 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19299
19300         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19301         by karl@freefriends.org (Karl Berry).
19302         * doc/alloca.texi: Likewise.
19303         * doc/c-ctype.texi: Likewise.
19304         * doc/c-strcase.texi: Likewise.
19305         * doc/c-strcaseeq.texi: Likewise.
19306         * doc/c-strcasestr.texi: Likewise.
19307         * doc/c-strstr.texi: Likewise.
19308         * doc/c-strtod.texi: Likewise.
19309         * doc/c-strtold.texi: Likewise.
19310         * doc/ctime.texi: Likewise.
19311         * doc/error.texi: Likewise.
19312         * doc/fdl.texi: Likewise.
19313         * doc/gcd.texi: Likewise.
19314         * doc/getdate.texi: Likewise.
19315         * doc/gnulib-intro.texi: Likewise.
19316         * doc/gnulib-tool.texi: Likewise.
19317         * doc/gnulib.texi: Likewise.
19318         * doc/inet_ntoa.texi: Likewise.
19319         * doc/maintain.texi: Likewise.
19320         * doc/make-stds.texi: Likewise.
19321         * doc/quote.texi: Likewise.
19322         * doc/regexprops-generic.texi: Likewise.
19323         * doc/standards.texi: Likewise.
19324         * doc/verify.texi: Likewise.
19325         * doc/visibility.texi: Likewise.
19326         * doc/gnulib.texi (GNU Free Documentation License): Include
19327         fdl-1.3.texi instead of fdl.texi.
19328
19329 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19330
19331         * doc/fdl-1.3.texi: New file, from
19332         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19333         * modules/fdl-1.3: Add.
19334         * MODULES.html.sh: Add fdl-1.3.
19335
19336 2008-11-03  Bruno Haible  <bruno@clisp.org>
19337
19338         Make determination of absolute name of header file work with AIX xlc.
19339         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19340         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19341         preprocessing.
19342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19343         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19344
19345 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19346
19347         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19348         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19349         <ludo@gnu.org>.
19350
19351 2008-11-02  Bruno Haible  <bruno@clisp.org>
19352
19353         Mark 'strpbrk' obsolete.
19354         * modules/strpbrk (Status, Notice): New sections.
19355         * modules/strtok_r (Depends-on): Add strpbrk.
19356
19357 2008-11-02  Bruno Haible  <bruno@clisp.org>
19358
19359         Mark 'strdup' obsolete.
19360         * modules/strdup (Status, Notice): New sections.
19361         * modules/findprog (Depends-on): Add strdup.
19362         * modules/getaddrinfo (Depends-on): Likewise.
19363         * modules/localename (Depends-on): Likewise.
19364         * modules/relocatable-lib (Depends-on): Likewise.
19365         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19366         * modules/relocatable-prog (Depends-on): Likewise.
19367         * modules/trim (Depends-on): Likewise.
19368         * modules/unictype/gen-ctype (Depends-on): Likewise.
19369         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19370
19371 2008-11-02  Bruno Haible  <bruno@clisp.org>
19372
19373         Mark 'strcspn' obsolete.
19374         * modules/strcspn (Status, Notice): New sections.
19375
19376 2008-11-02  Bruno Haible  <bruno@clisp.org>
19377
19378         Mark 'rmdir' obsolete.
19379         * modules/rmdir (Status, Notice): New sections.
19380         * modules/clean-temp (Depends-on): Add rmdir.
19381         * modules/openat (Depends-on): Likewise.
19382
19383 2008-11-02  Bruno Haible  <bruno@clisp.org>
19384
19385         Mark 'raise' obsolete.
19386         * modules/raise (Status, Notice): New sections.
19387         (Include): Specify <signal.h>.
19388         * modules/stdio (Depends-on): Add raise.
19389         * modules/write (Depends-on): Likewise.
19390
19391 2008-11-02  Bruno Haible  <bruno@clisp.org>
19392
19393         Mark 'memset' obsolete.
19394         * modules/memset (Status, Notice): New sections.
19395
19396 2008-11-02  Bruno Haible  <bruno@clisp.org>
19397
19398         Mark 'memmove' obsolete.
19399         * modules/memmove (Status, Notice): New sections.
19400         * modules/argp (Depends-on): Add memmove.
19401         * modules/argz (Depends-on): Likewise.
19402         * modules/canonicalize (Depends-on): Likewise.
19403         * modules/canonicalize-lgpl (Depends-on): Likewise.
19404         * modules/fts (Depends-on): Likewise.
19405         * modules/getcwd (Depends-on): Likewise.
19406         * modules/human (Depends-on): Likewise.
19407         * modules/regex (Depends-on): Likewise.
19408         * modules/striconveh (Depends-on): Likewise.
19409         * modules/trim (Depends-on): Likewise.
19410         * modules/unistr/u8-move (Depends-on): Likewise.
19411         * modules/unistr/u16-move (Depends-on): Likewise.
19412         * modules/unistr/u32-move (Depends-on): Likewise.
19413
19414 2008-11-02  Bruno Haible  <bruno@clisp.org>
19415
19416         Mark 'memcpy' obsolete.
19417         * modules/memcpy (Status, Notice): New sections.
19418
19419 2008-11-02  Bruno Haible  <bruno@clisp.org>
19420
19421         Mark 'memcmp' obsolete.
19422         * modules/memcmp (Status, Notice): New sections.
19423         * modules/argmatch (Depends-on): Add memchr.
19424         * modules/backupfile (Depends-on): Likewise.
19425         * modules/c-strcasestr (Depends-on): Likewise.
19426         * modules/crypto/des (Depends-on): Likewise.
19427         * modules/csharpcomp (Depends-on): Likewise.
19428         * modules/fnmatch (Depends-on): Likewise.
19429         * modules/git-merge-changelog (Depends-on): Likewise.
19430         * modules/isnand (Depends-on): Likewise.
19431         * modules/isnand-nolibm (Depends-on): Likewise.
19432         * modules/isnanf (Depends-on): Likewise.
19433         * modules/isnanf-nolibm (Depends-on): Likewise.
19434         * modules/isnanl (Depends-on): Likewise.
19435         * modules/isnanl-nolibm (Depends-on): Likewise.
19436         * modules/mbchar (Depends-on): Likewise.
19437         * modules/memcoll (Depends-on): Likewise.
19438         * modules/quotearg (Depends-on): Likewise.
19439         * modules/regex (Depends-on): Likewise.
19440         * modules/relocatable-prog (Depends-on): Likewise.
19441         * modules/same (Depends-on): Likewise.
19442         * modules/signbit (Depends-on): Likewise.
19443         * modules/strcasestr-simple (Depends-on): Likewise.
19444         * modules/unictype/gen-ctype (Depends-on): Likewise.
19445         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19446         * modules/uniname/uniname (Depends-on): Likewise.
19447         * modules/unistr/u8-cmp (Depends-on): Likewise.
19448
19449 2008-11-02  Bruno Haible  <bruno@clisp.org>
19450
19451         Mark 'memchr' obsolete.
19452         * modules/memchr (Status, Notice): New sections.
19453         * modules/argp (Depends-on): Add memchr.
19454         * modules/base64 (Depends-on): Likewise.
19455         * modules/c-strcasestr (Depends-on): Likewise.
19456         * modules/chdir-long (Depends-on): Likewise.
19457         * modules/fnmatch (Depends-on): Likewise.
19458         * modules/getsubopt (Depends-on): Likewise.
19459         * modules/git-merge-changelog (Depends-on): Likewise.
19460         * modules/glob (Depends-on): Likewise.
19461         * modules/strcasestr-simple (Depends-on): Likewise.
19462         * modules/strnlen (Depends-on): Likewise.
19463
19464 2008-11-02  Bruno Haible  <bruno@clisp.org>
19465
19466         Mark 'atexit' obsolete.
19467         * modules/atexit (Status, Notice): New sections.
19468         * modules/chdir-long (Depends-on): Add atexit.
19469         * modules/wait-process (Depends-on): Likewise.
19470
19471 2008-11-02  Bruno Haible  <bruno@clisp.org>
19472
19473         * gnulib-tool: New option --with-obsolete.
19474         (func_usage): Document it.
19475         (func_modules_transitive_closure): Drop obsolete dependencies if
19476         incobsolete is not true.
19477         (func_import): Read and save the incobsolete variable to the cache.
19478
19479 2008-11-02  Bruno Haible  <bruno@clisp.org>
19480
19481         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19482         * gnulib-tool: New option --extract-status.
19483         (func_usage): Document it.
19484         (sed_extract_prog): Recognize it.
19485         (func_get_status): New function.
19486
19487 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19488
19489         * modules/sockets (License): Change from LGPL to LGPLv2+.
19490
19491 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19492
19493         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19494
19495 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19496
19497         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19498         Mention times and sys_times.
19499         * modules/sys_times, modules/sys_times-tests: New modules.
19500         * modules/times, modules/times-tests: Likewise
19501         * m4/sys_times_h.m4: New file.
19502         * lib/sys_times.in.h: Likewise
19503         * lib/times.c: Likewise.
19504         * tests/test-sys_times.c: Likewise.
19505         * tests/test-times.c: Likewise.
19506         * doc/posix-headers/sys_times.texi: Update.
19507         * doc/posix-functions/times.texi: Update.
19508
19509 2008-10-28  Jim Meyering  <meyering@redhat.com>
19510
19511         * modules/tempname (Depends-on): Add lstat.
19512
19513         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19514
19515 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19516
19517         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19518         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19519         using idiom used elsewhere in gnulib.
19520
19521 2008-10-27  Jim Meyering  <meyering@redhat.com>
19522
19523         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19524
19525 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19526
19527         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19528         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19529         programs.
19530         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19531
19532 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19533
19534         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19535
19536 2008-10-27  Bruno Haible  <bruno@clisp.org>
19537
19538         * tests/test-lstat.c: Include <stdio.h>.
19539
19540 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19541
19542         * modules/lstat-tests: New module.
19543         * tests/test-lstat.c: New file.
19544
19545 2008-10-26  Jim Meyering  <meyering@redhat.com>
19546
19547         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19548
19549 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19550             Bruno Haible  <bruno@clisp.org>
19551
19552         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19553         * modules/configmake (Include): Add a note that the include must come
19554         after all system headers.
19555         * lib/javaversion.c: Include configmake.h after all other includes.
19556
19557 2008-10-26  Bruno Haible  <bruno@clisp.org>
19558
19559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19560         HAVE_STRUCT_RANDOM_DATA to 1.
19561         (gl_STDLIB_H): Simplify.
19562
19563 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19564
19565         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19566         substitute HAVE_STRUCT_RANDOM_DATA.
19567         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19568         random_data.
19569         * modules/stdlib (Makefile.am): Substitute
19570         HAVE_STRUCT_RANDOM_DATA.
19571
19572 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19573
19574         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19575         * doc/gnulib-intro.texi (Copyright): Likewise.
19576
19577 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19578
19579         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19580         findings.
19581
19582 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19583             Bruno Haible  <bruno@clisp.org>
19584
19585         * lib/unistd.in.h: Include <winsock2.h>.
19586         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19587         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19588         Provide dummy declarations.
19589         (gethostname): Override.
19590         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19591         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19592         gl_PREREQ_SYS_H_WINSOCK2.
19593         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19594         * doc/posix-functions/gethostname.texi: More details.
19595
19596 2008-10-25  Bruno Haible  <bruno@clisp.org>
19597
19598         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19599         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19600         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19601
19602         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19603         here ...
19604         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19605         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19606         gl_UNISTD_H_DEFAULTS.
19607
19608 2008-10-25  Eric Blake  <ebb9@byu.net>
19609
19610         signbit: avoid spurious compiler failure
19611         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19612         declarations inside function.
19613
19614 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19615             Bruno Haible  <bruno@clisp.org>
19616
19617         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19618         * modules/random_r (Depends-on): Add stdint.
19619
19620 2008-10-24  Bruno Haible  <bruno@clisp.org>
19621
19622         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19623         Eggert.
19624         * modules/strerror (License): Likewise.
19625
19626 2008-10-24  Jim Meyering  <meyering@redhat.com>
19627
19628         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19629         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19630
19631 2008-10-24  Eric Blake  <ebb9@byu.net>
19632
19633         getgroups: fix compilation when getgroups is available
19634         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19635         but with <config.h> override of getgroups disabled.
19636
19637 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19638
19639         * doc/gnulib.texi (Header files): Add note about C++ problems.
19640         Explained by Bruno Haible <bruno@clisp.org>.
19641
19642 2008-10-23  Bruno Haible  <bruno@clisp.org>
19643
19644         Define a dummy SA_NODEFER macro on Interix.
19645         * lib/signal.in.h (SA_NODEFER): Define fallback.
19646         Reported by Aleksey Cheusov <cheusov@tut.by> via
19647         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19648
19649 2008-10-23  Bruno Haible  <bruno@clisp.org>
19650
19651         * modules/freadahead (License): Change to LGPLv2+.
19652         Suggested by Simon Josefsson.
19653
19654 2008-10-23  Jim Meyering  <meyering@redhat.com>
19655
19656         random_r: new module
19657         * modules/random_r: New file.
19658         * m4/random_r.m4: New file.
19659         * lib/random_r.c: New file, from glibc.
19660         * modules/random_r-tests: New file.
19661         * tests/test-random_r.c: New file.
19662         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19663          Declare.
19664         (RAND_MAX): Define.
19665         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19666         * modules/stdlib: Substitute them, too.
19667         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19668         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19669         * doc/glibc-functions/random_r.texi: Likewise.
19670         * doc/glibc-functions/setstate_r.texi: Likewise.
19671         * doc/glibc-functions/srandom_r.texi: Likewise.
19672         * config/srclist.txt: Mention it.
19673
19674 2008-10-23  David Lutterkort  <lutter@redhat.com>
19675
19676         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19677         link requirement
19678
19679 2008-10-23  Jim Meyering  <meyering@redhat.com>
19680
19681         selinux-h: mark parameters of stub functions as intentionally unused
19682         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19683         * lib/se-context.in.h: Likewise.
19684
19685 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19686
19687         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19688
19689 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19690
19691         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19692
19693 2008-10-22  Eric Blake  <ebb9@byu.net>
19694
19695         glthread/thread: avoid compiler warning
19696         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19697         Add unreachable abort to silence compiler.
19698
19699 2008-10-22  Eric Blake  <ebb9@byu.net>
19700
19701         netdb: also supply struct addrinfo for cygwin 1.5.x
19702         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19703         older cygwin.
19704         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19705         cygwin.
19706         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19707
19708 2008-10-22  Bruno Haible  <bruno@clisp.org>
19709
19710         * users.txt: Update entry about pspp.
19711
19712 2008-10-21  Bruno Haible  <bruno@clisp.org>
19713
19714         Simplification.
19715         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19716         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19717
19718         Simplification.
19719         * lib/ioctl.c (ioctl): Don't undefine.
19720         * lib/socket.c (socket): Don't undefine.
19721
19722         Remove unused module indicator macros.
19723         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19724         GNULIB_$1 as a C macro.
19725
19726         * doc/posix-functions/close.texi: Undo last change.
19727         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19728         Windows platforms.
19729
19730 2008-10-21  Bruno Haible  <bruno@clisp.org>
19731
19732         Add gethostname() declaration to <unistd.h>.
19733         * lib/unistd.in.h (gethostname): New declaration.
19734         * lib/gethostname.c: Include <unistd.h>.
19735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19736         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19738         and HAVE_GETHOSTNAME.
19739         * modules/gethostname (Depends-on): Add unistd.
19740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19741         (Include): Specify <unistd.h>.
19742         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19743         HAVE_GETHOSTNAME.
19744         * tests/test-gethostname.c: Include <unistd.h> first.
19745
19746 2008-10-21  Bruno Haible  <bruno@clisp.org>
19747
19748         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19749         * modules/select-tests (Depends-on): Likewise.
19750         Reported by Simon Josefsson.
19751
19752 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19753
19754         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19755         * lib/accept.c: New file, based on winsock.c.
19756         * lib/bind.c: New file, based on winsock.c.
19757         * lib/connect.c: New file, based on winsock.c.
19758         * lib/getpeername.c: New file, based on winsock.c.
19759         * lib/getsockname.c: New file, based on winsock.c.
19760         * lib/getsockopt.c: New file, based on winsock.c.
19761         * lib/ioctl.c: New file, based on winsock.c.
19762         * lib/listen.c: New file, based on winsock.c.
19763         * lib/recv.c: New file, based on winsock.c.
19764         * lib/recvfrom.c: New file, based on winsock.c.
19765         * lib/send.c: New file, based on winsock.c.
19766         * lib/sendto.c: New file, based on winsock.c.
19767         * lib/setsockopt.c: New file, based on winsock.c.
19768         * lib/shutdown.c: New file, based on winsock.c.
19769         * lib/socket.c: New file, based on winsock.c.
19770         * lib/w32sock.h: New file, based on winsock.c.
19771         * lib/winsock.c: Remove file.
19772         * modules/accept: Likewise.
19773         * modules/bind: Likewise.
19774         * modules/connect: Likewise.
19775         * modules/getpeername: Likewise.
19776         * modules/getsockname: Likewise.
19777         * modules/getsockopt: Likewise.
19778         * modules/ioctl: Likewise.
19779         * modules/listen: Likewise.
19780         * modules/recv: Likewise.
19781         * modules/recvfrom: Likewise.
19782         * modules/send: Likewise.
19783         * modules/sendto: Likewise.
19784         * modules/setsockopt: Likewise.
19785         * modules/shutdown: Likewise.
19786         * modules/socket: Use socket.c instead of winsock.c.
19787         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19788         * doc/posix-functions/accept.texi: Doc fix.
19789         * doc/posix-functions/bind.texi: Doc fix.
19790         * doc/posix-functions/close.texi: Doc fix.
19791         * doc/posix-functions/connect.texi: Doc fix.
19792         * doc/posix-functions/getpeername.texi: Doc fix.
19793         * doc/posix-functions/getsockname.texi: Doc fix.
19794         * doc/posix-functions/getsockopt.texi: Doc fix.
19795         * doc/posix-functions/ioctl.texi: Doc fix.
19796         * doc/posix-functions/listen.texi: Doc fix.
19797         * doc/posix-functions/recv.texi: Doc fix.
19798         * doc/posix-functions/recvfrom.texi: Doc fix.
19799         * doc/posix-functions/send.texi: Doc fix.
19800         * doc/posix-functions/sendto.texi: Doc fix.
19801         * doc/posix-functions/setsockopt.texi: Doc fix.
19802         * doc/posix-functions/shutdown.texi: Doc fix.
19803         * doc/posix-functions/socket.texi: Doc fix.
19804
19805 2008-10-20  Bruno Haible  <bruno@clisp.org>
19806
19807         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19808         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19809         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19810         as an alias for SIGABRT.
19811         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19812         (sigaction): Map it to SIGABRT.
19813         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19814
19815 2008-10-20  Bruno Haible  <bruno@clisp.org>
19816
19817         * lib/fts.c: Don't include lstat.h.
19818         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19819
19820         Move the lstat() declaration to <sys/stat.h>.
19821         * lib/lstat.h: Remove file.
19822         * lib/sys_stat.in.h: Add special invocation convention.
19823         (lstat): New declaration.
19824         * lib/lstat.c (orig_lstat): New function.
19825         (rpl_lstat): Use orig_lstat instead of lstat.
19826         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19827         AC_C_INLINE. Set REPLACE_LSTAT.
19828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19829         and REPLACE_LSTAT.
19830         * modules/lstat (Files): Remove lib/lstat.h.
19831         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19832         (Include): Specify <sys/stat.h> instead of lstat.h.
19833         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19834         REPLACE_LSTAT.
19835         * NEWS: Mention the change.
19836
19837 2008-10-20  Bruno Haible  <bruno@clisp.org>
19838
19839         * modules/posix_spawn-tests: New file.
19840         * tests/test-posix_spawn3.c: New file.
19841
19842 2008-10-20  Bruno Haible  <bruno@clisp.org>
19843
19844         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19845         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19846         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19847         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19848         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19849
19850 2008-10-20  Bruno Haible  <bruno@clisp.org>
19851
19852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19853         of posix_spawn on AIX 5.3.
19854
19855 2008-10-20  Bruno Haible  <bruno@clisp.org>
19856
19857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19858
19859 2008-10-20  Bruno Haible  <bruno@clisp.org>
19860
19861         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19862         of AC_LANG_PROGRAM.
19863
19864 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19865
19866         * lib/netdb.in.h: Don't define GNU specific constants until they
19867         are supported or needed.  Reported by Bruno Haible
19868         <bruno@clisp.org>.
19869
19870 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19871
19872         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19873
19874 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19875
19876         * lib/getaddrinfo.h: Remove file.
19877         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19878         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19879         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19880         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19881         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19882         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19883         * tests/test-getaddrinfo.c: Likewise.
19884         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19885         * NEWS: Mention change.
19886
19887 2008-10-19  Bruno Haible  <bruno@clisp.org>
19888
19889         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19890
19891 2008-10-19  Bruno Haible  <bruno@clisp.org>
19892
19893         * lib/wait-process.c: Include simply <sys/wait.h>.
19894         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19895         WIFSTOPPED): Remove fallback definitions.
19896         * modules/wait-process (Depends-on): Add sys_wait.
19897
19898         New module 'sys_wait'.
19899         * modules/sys_wait: New file.
19900         * lib/sys_wait.in.h: New file, partially copied from
19901         lib/wait-process.c.
19902         * m4/sys_wait_h.m4: New file.
19903         * doc/posix-headers/sys_wait.texi: Mention the new module.
19904
19905 2008-10-19  Bruno Haible  <bruno@clisp.org>
19906
19907         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19908
19909 2008-10-19  Bruno Haible  <bruno@clisp.org>
19910
19911         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19912         * lib/wait-process.c (WAIT_T): Remove type.
19913         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19914         (wait_subprocess): Update.
19915
19916 2008-10-19  Bruno Haible  <bruno@clisp.org>
19917
19918         New module 'atoll'.
19919         * modules/atoll: New file.
19920         * lib/stdlib.in.h (atoll): New declaration.
19921         * lib/atoll.c: New file, from glibc with modifications.
19922         * m4/atoll.m4: New file.
19923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19924         HAVE_ATOLL.
19925         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19926         * doc/posix-functions/atoll.texi: Mention the new module.
19927
19928 2008-10-19  Bruno Haible  <bruno@clisp.org>
19929
19930         Add strtoull() declaration to <stdlib.h>.
19931         * lib/stdlib.in.h (strtoull): New declaration.
19932         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19933         Set HAVE_STRTOULL.
19934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19935         HAVE_STRTOULL.
19936         * modules/strtoull (Depends-on): Add stdlib.
19937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19938         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19939         HAVE_STRTOULL.
19940
19941 2008-10-19  Bruno Haible  <bruno@clisp.org>
19942
19943         Add strtoll() declaration to <stdlib.h>.
19944         * lib/stdlib.in.h (strtoll): New declaration.
19945         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19946         Set HAVE_STRTOLL.
19947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19948         HAVE_STRTOLL.
19949         * modules/strtoll (Depends-on): Add stdlib.
19950         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19951         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19952
19953 2008-10-19  Bruno Haible  <bruno@clisp.org>
19954
19955         * modules/bcopy (Depends-on): Add strings.
19956         (Include): Specify <strings.h>.
19957
19958 2008-10-19  Bruno Haible  <bruno@clisp.org>
19959
19960         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19961
19962 2008-10-19  Bruno Haible  <bruno@clisp.org>
19963
19964         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19965         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19966         mingw.
19967
19968 2008-10-19  Bruno Haible  <bruno@clisp.org>
19969
19970         * lib/atanl.c: Don't include isnanl.h.
19971         * lib/cosl.c: Likewise.
19972         * lib/ldexpl.c: Likewise.
19973         * lib/logl.c: Likewise.
19974         * lib/sinl.c: Likewise.
19975         * lib/sqrtl.c: Likewise.
19976         * lib/tanl.c: Likewise.
19977
19978         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19979         * lib/isnanf.h: Remove file.
19980         * lib/isnand.h: Remove file.
19981         * lib/isnanl.h: Remove file.
19982         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19983         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19984         macros.
19985         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19986         HAVE_ISNANF, don't define it as a C macro.
19987         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19988         HAVE_ISNAND, don't define it as a C macro.
19989         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19990         HAVE_ISNANL, don't define it as a C macro.
19991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19992         HAVE_ISNAN[FDL].
19993         * modules/isnanf (Files): Remove lib/isnanf.h.
19994         (Depends-on): Add math.
19995         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19996         (Include): Specify <math.h> instead of isnanf.h.
19997         * modules/isnand (Files): Remove lib/isnand.h.
19998         (Depends-on): Add math.
19999         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20000         (Include): Specify <math.h> instead of isnand.h.
20001         * modules/isnanl (Files): Remove lib/isnanl.h.
20002         (Depends-on): Add math.
20003         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20004         (Include): Specify <math.h> instead of isnanl.h.
20005         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20006         HAVE_ISNAN[FDL].
20007         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20008         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20009         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20010         * NEWS: Mention the change.
20011
20012 2008-10-18  Bruno Haible  <bruno@clisp.org>
20013
20014         Add getusershell(), setusershell(), endusershell() declarations to
20015         <unistd.h>.
20016         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20017         declarations.
20018         * lib/getusershell.c: Include unistd.h.
20019         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20020         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20021         HAVE_GETUSERSHELL.
20022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20023         and HAVE_GETUSERSHELL.
20024         * modules/getusershell (Depends-on): Add unistd, extensions.
20025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20026         (Include): Specify <unistd.h>.
20027         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20028         HAVE_GETUSERSHELL.
20029
20030 2008-10-18  Bruno Haible  <bruno@clisp.org>
20031
20032         Add a getloadavg() declaration to <stdlib.h>.
20033         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20034         getloadavg declaration.
20035         (getloadavg): New declaration.
20036         * lib/getloadavg.c: Include <stdlib.h> first.
20037         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20038         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20039         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20041         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20042         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20043         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20044         (Include): Specify <stdlib.h>.
20045         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20046         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20047
20048 2008-10-18  Bruno Haible  <bruno@clisp.org>
20049
20050         * lib/dirchownmod.c: Don't include lchmod.h.
20051
20052         Move the lchmod() declaration to <sys/stat.h>.
20053         * lib/lchmod.h: Remove file.
20054         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20055         (lchmod): New declaration, moved here from lib/lchown.h.
20056         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20057         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20058         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20059         and HAVE_LCHMOD.
20060         * modules/lchmod (Files): Remove lib/lchmod.h.
20061         (Depends-on): Add sys_stat, extensions.
20062         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20063         (Include): Specify <sys/stat.h> instead of lchmod.h.
20064         * modules/sys_stat (Depends-on): Add link-warning.
20065         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20066         definition of GL_LINK_WARNING.
20067         * NEWS: Mention the change.
20068
20069 2008-10-18  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/fchdir.c: Don't include dirfd.h.
20072         * lib/fts.c: Likewise.
20073         * lib/getcwd.c: Likewise.
20074         * lib/glob.c: Likewise.
20075
20076         Move the dirfd() declaration to <dirent.h>.
20077         * lib/dirfd.h: Remove file.
20078         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20079         (dirfd): New declaration.
20080         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20081         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20082         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20083         HAVE_DECL_DIRFD.
20084         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20085         HAVE_DECL_DIRFD.
20086         * modules/dirfd (Files): Remove lib/dirfd.h.
20087         (Depends-on): Add dirent, extensions.
20088         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20089         (Include): Specify <dirent.h> instead of dirfd.h.
20090         * modules/dirent (Depends-on): Add link-warning.
20091         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20092         definition of GL_LINK_WARNING.
20093         * NEWS: Mention the change.
20094
20095 2008-10-18  Bruno Haible  <bruno@clisp.org>
20096
20097         Move the euidaccess() declaration to <unistd.h>.
20098         * lib/euidaccess.h: Remove file.
20099         * lib/unistd.in.h (euidaccess): New declaration.
20100         * lib/euidaccess.c: Don't include euidaccess.h.
20101         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20102         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20104         and HAVE_EUIDACCESS.
20105         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20106         (Depends-on): Add unistd.
20107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20108         (Include): Specify <unistd.h> instead of euidaccess.h.
20109         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20110         HAVE_EUIDACCESS.
20111         * NEWS: Mention the change.
20112
20113 2008-10-18  Bruno Haible  <bruno@clisp.org>
20114
20115         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20116
20117         Move the getdomainname() declaration to <unistd.h>.
20118         * lib/getdomainname.h: Remove file.
20119         * lib/unistd.in.h (getdomainname): New declaration.
20120         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20121         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20122         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20123         HAVE_GETDOMAINNAME.
20124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20125         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20126         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20127         (Depends-on): Add unistd, extensions.
20128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20129         (Includes): Specify <unistd.h> instead of getdomainname.h.
20130         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20131         HAVE_GETDOMAINNAME.
20132         * NEWS: Mention the change.
20133
20134 2008-10-18  Bruno Haible  <bruno@clisp.org>
20135
20136         * modules/dirent: New file.
20137         * m4/dirent_h.m4: New file.
20138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20139         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20140         * modules/fchdir (Files): Remove lib/dirent.in.h.
20141         (Depends-on): Add dirent.
20142         (Makefile.am): Move rules to modules/dirent.
20143         * doc/posix-headers/dirent.texi: Mention the new module.
20144
20145 2008-10-18  Bruno Haible  <bruno@clisp.org>
20146
20147         Avoid -Wunused-parameter warnings in public gnulib header files.
20148         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20149         macro.
20150         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20151
20152 2008-10-18  Bruno Haible  <bruno@clisp.org>
20153
20154         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20155         * doc/glibc-functions/error.texi: Mention the module 'error'.
20156         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20157         * doc/glibc-functions/getdomainname.texi: Mention the module
20158         'getdomainname'.
20159         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20160         * doc/glibc-functions/getpagesize.texi: Mention the module
20161         'getpagesize'.
20162         * doc/glibc-functions/getusershell.texi: Mention the module
20163         'getusershell'.
20164         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20165         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20166         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20167         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20168         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20169         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20170         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20171         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20172         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20173         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20174         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20175         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20176         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20177         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20178
20179 2008-10-17  Bruno Haible  <bruno@clisp.org>
20180
20181         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20182         HP-UX and IRIX, use -0.0L.
20183         * tests/test-ceill.c (minus_zero): Likewise.
20184         * tests/test-floorl.c (minus_zero): Likewise.
20185         * tests/test-frexpl.c (minus_zero): Likewise.
20186         * tests/test-isnan.c (minus_zerol): Likewise.
20187         * tests/test-isnanl.h (minus_zero): Likewise.
20188         * tests/test-ldexpl.c (minus_zero): Likewise.
20189         * tests/test-roundl.c (minus_zero): Likewise.
20190         * tests/test-signbit.c (minus_zerol): Likewise.
20191         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20192         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20193         * tests/test-truncl.c (minus_zero): Likewise.
20194         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20195         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20196         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20197         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20198
20199 2008-10-17  Bruno Haible  <bruno@clisp.org>
20200
20201         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20202         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20203         that it gets activated only for gcc >= 3.0.
20204         * lib/dirent.in.h: Likewise.
20205         * lib/errno.in.h: Likewise.
20206         * lib/fcntl.in.h: Likewise.
20207         * lib/float.in.h: Likewise.
20208         * lib/iconv.in.h: Likewise.
20209         * lib/inttypes.in.h: Likewise.
20210         * lib/locale.in.h: Likewise.
20211         * lib/math.in.h: Likewise.
20212         * lib/netdb.in.h: Likewise.
20213         * lib/netinet_in.in.h: Likewise.
20214         * lib/search.in.h: Likewise.
20215         * lib/signal.in.h: Likewise.
20216         * lib/spawn.in.h: Likewise.
20217         * lib/stdarg.in.h: Likewise.
20218         * lib/stdint.in.h: Likewise.
20219         * lib/stdio.in.h: Likewise.
20220         * lib/stdlib.in.h: Likewise.
20221         * lib/string.in.h: Likewise.
20222         * lib/strings.in.h: Likewise.
20223         * lib/sys_file.in.h: Likewise.
20224         * lib/sys_ioctl.in.h: Likewise.
20225         * lib/sys_select.in.h: Likewise.
20226         * lib/sys_socket.in.h: Likewise.
20227         * lib/sys_stat.in.h: Likewise.
20228         * lib/sys_time.in.h: Likewise.
20229         * lib/sysexits.in.h: Likewise.
20230         * lib/time.in.h: Likewise.
20231         * lib/unistd.in.h: Likewise.
20232         * lib/wchar.in.h: Likewise.
20233         * lib/wctype.in.h: Likewise.
20234         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20235
20236 2008-10-17  Jim Meyering  <meyering@redhat.com>
20237
20238         ignore-value: don't depend on inline module
20239         * modules/ignore-value (Depends-on): Remove 'inline'.
20240         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20241         Suggestion from Bruno Haible.
20242
20243 2008-10-17  Bruno Haible  <bruno@clisp.org>
20244
20245         New implementation of condition variables for Win32.
20246         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20247         (gl_linked_waitqueue_t): New type.
20248         (gl_cond_t): Use it.
20249         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20250         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20251         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20252         (glthread_cond_init_func, glthread_cond_wait_func,
20253         glthread_cond_timedwait_func, glthread_cond_signal_func,
20254         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20255         Reimplemented on the basis of gl_linked_waitqueue_t.
20256         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20257         gl_waitqueue_t.
20258         (gl_rwlock_t): Update.
20259         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20260
20261 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20262
20263         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20264         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20265
20266 2008-10-17  Jim Meyering  <meyering@redhat.com>
20267
20268         ignore-value: new module
20269         * modules/ignore-value: New file.
20270         * lib/ignore-value.h: New file.
20271         * MODULES.html.sh (Compiler warning management): New section,
20272         just for this module.  More to come.
20273
20274 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20277         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20278         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20279
20280 2008-10-16  Jim Meyering  <meyering@redhat.com>
20281
20282         openat-die.c: avoid 'no previous prototype' warning
20283         * lib/openat-die.c: Include "openat.h".
20284         Reported by Reuben Thomas <rrt@sc3d.org>.
20285
20286 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20287
20288         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20289         * lib/netdb.in.h: Fix typo.
20290         Reported by Bruno Haible  <bruno@clisp.org>
20291
20292         * lib/netdb.in.h: Include sys/socket.h for platforms without
20293         netdb.h, to get structures like hostent on MinGW.
20294         * modules/netdb (Depends-on): Add sys_socket.
20295
20296 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20297
20298         * modules/netdb, modules/netdb-tests: New file.
20299         * m4/netdb_h.m4: New file.
20300         * lib/netdb.in.h: Add, currently just an empty file pending
20301         definitions.
20302         * tests/test-netdb.c: New file.
20303         * doc/posix-headers/netdb.texi: Mention that we replace it if
20304         needed.
20305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20306         netdb.
20307
20308 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20309
20310         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20311         with code.
20312
20313 2008-10-13  Bruno Haible  <bruno@clisp.org>
20314
20315         * lib/glthread/cond.c (glthread_cond_wait_func,
20316         glthread_cond_timedwait_func): Add a comment.
20317
20318 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20319
20320         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20321         * tests/test-select.c: Likewise,
20322
20323 2008-10-13  Bruno Haible  <bruno@clisp.org>
20324
20325         * lib/glthread/cond.c (glthread_cond_wait_func,
20326         glthread_cond_timedwait_func): Fix variable name.
20327         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20328
20329 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20330
20331         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20333         struct sockaddr.sa_len.
20334         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20335
20336 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20337
20338         * build-aux/pmccabe2html: Add css and css_url parameters.
20339
20340 2008-10-12  Bruno Haible  <bruno@clisp.org>
20341
20342         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20343         calling aclx_get.
20344         Reported by Rainer Tammer <tammer@tammer.net>.
20345
20346 2008-10-12  Bruno Haible  <bruno@clisp.org>
20347
20348         Use msvcrt aware primitives for creation/termination of Win32 threads.
20349         * lib/glthread/thread.c: Include <process.h>.
20350         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20351         (wrapper_func): Update signature.
20352         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20353
20354 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20355             Bruno Haible  <bruno@clisp.org>
20356
20357         Provide a Win32 implementation of the 'cond' module.
20358         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20359         * lib/glthread/cond.c (glthread_cond_init_func,
20360         glthread_cond_wait_func, glthread_cond_timedwait_func,
20361         glthread_cond_signal_func, glthread_cond_broadcast_func,
20362         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20363         * modules/cond (Dependencies): Add gettimeofday.
20364
20365 2008-10-11  Bruno Haible  <bruno@clisp.org>
20366
20367         Make sleep work on older versions of mingw.
20368         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20369         only whether it exists.
20370         * doc/posix-functions/sleep.texi: Mention the problem with older
20371         versions of mingw.
20372
20373 2008-10-11  Bruno Haible  <bruno@clisp.org>
20374
20375         New module 'shutdown'.
20376         * modules/shutdown: New file.
20377         * lib/sys_socket.in.h (shutdown): New declaration.
20378         * lib/winsock.c (shutdown): New function.
20379         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20380         GNULIB_SHUTDOWN.
20381         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20382         * doc/posix-functions/shutdown.texi: Document the new module.
20383
20384 2008-10-11  Jim Meyering  <meyering@redhat.com>
20385
20386         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20387
20388 2008-10-11  Bruno Haible  <bruno@clisp.org>
20389
20390         New module 'fclose'.
20391         * modules/fclose: New file.
20392         * lib/stdio.in.h (fclose): New declaration.
20393         * lib/fclose.c: New file.
20394         * m4/fclose.m4: New file.
20395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20396         REPLACE_FCLOSE.
20397         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20398         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20399         REPLACE_FCLOSE.
20400         * modules/close (Depends-on): fclose.
20401         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20402
20403 2008-10-11  Bruno Haible  <bruno@clisp.org>
20404
20405         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20406         set errno and don't call _close.
20407
20408 2008-10-10  Bruno Haible  <bruno@clisp.org>
20409
20410         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20411         ACL, not afterwards. Fixes test failure on Cygwin.
20412
20413 2008-10-09  Ben Pfaff  <blp@gnu.org>
20414
20415         * build-aux/announce-gen: Fix gnulib version related part of usage
20416         message.  Die with a useful error message if no tarballs are
20417         found.
20418
20419 2008-10-10  Jim Meyering  <meyering@redhat.com>
20420
20421         bootstrap: use git's --depth=N option only if it's supported
20422         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20423         recognize the --depth option.  Reported by Pádraig Brady.
20424
20425 2008-10-09  Bruno Haible  <bruno@clisp.org>
20426
20427         New module 'ioctl'.
20428         * modules/ioctl: New file.
20429         * lib/sys_socket.in.h (ioctl): Remove declaration.
20430         * lib/winsock.c: Include <sys/ioctl.h>.
20431         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20432         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20433         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20434         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20435         * doc/posix-functions/ioctl.texi: Mention the new module.
20436
20437 2008-10-09  Bruno Haible  <bruno@clisp.org>
20438
20439         New module 'sys_ioctl'.
20440         * lib/sys_ioctl.in.h: New file.
20441         * m4/sys_ioctl_h.m4: New file.
20442         * modules/sys_ioctl: New file.
20443         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20444
20445 2008-10-09  Bruno Haible  <bruno@clisp.org>
20446
20447         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20448         * lib/winsock.c: Include <stdarg.h>.
20449         (rpl_ioctl): Change to second argument 'int' and then varargs.
20450
20451 2008-10-09  Bruno Haible  <bruno@clisp.org>
20452
20453         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20454         when the sys_socket module is present and the system has <winsock2.h>.
20455
20456 2008-10-09  Bruno Haible  <bruno@clisp.org>
20457
20458         * doc/posix-functions/close.texi: Mention module 'close' instead of
20459         module 'sys_socket'.
20460
20461 2008-10-09  Bruno Haible  <bruno@clisp.org>
20462
20463         * doc/glibc-headers/sys_ioctl.texi: New file.
20464         * doc/gnulib.texi: Include it.
20465
20466 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20467             Bruno Haible  <bruno@clisp.org>
20468
20469         Combine the two replacements of 'close'.
20470         * lib/sys_socket.in.h (close): Define to a reminder to include
20471         <unistd.h>.
20472         (_gl_close_fd_maybe_socket): New declaration.
20473         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20474         * lib/winsock.c (close): Remove undefinition.
20475         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20476         needed for the gnulib module 'close'.
20477         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20478         define to an error symbol or to a warning, if suitable.
20479         * lib/close.c: Include <sys/socket.h>.
20480         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20481         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20482         UNISTD_H_HAVE_WINSOCK2_H.
20483         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20485         UNISTD_H_HAVE_WINSOCK2_H.
20486         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20487         (configure.ac): Set a module indicator.
20488         (Makefile.am): Substitute GNULIB_CLOSE.
20489         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20490         * modules/poll-tests (Depends-on): Add close.
20491         * modules/select-tests (Depends-on): Likewise.
20492
20493 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20494             Bruno Haible  <bruno@clisp.org>
20495
20496         New module 'close'.
20497         * modules/close: New file.
20498         * lib/unistd.in.h (close): Move declaration out of the
20499         FCHDIR_REPLACEMENT scope.
20500         (_gl_unregister_fd): New declaration.
20501         * lib/close.c: New file.
20502         * lib/fchdir.c (rpl_close): Remove function.
20503         * m4/close.m4: New file.
20504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20505         close.
20506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20507         REPLACE_CLOSE.
20508         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20509         REPLACE_CLOSE.
20510         * modules/fchdir (Depends-on): Add close.
20511
20512 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20513             Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/fcntl.in.h (open): Simplify conditionals.
20516         (_gl_register_fd): New declaration.
20517         * lib/fchdir.c (rpl_open): Remove function.
20518         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20519         also.
20520         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20522         open.
20523
20524 2008-10-09  Jim Meyering  <meyering@redhat.com>
20525
20526         GNUmakefile: use the more name-space-friendly "_version"
20527         * top/GNUmakefile (_dummy): Update.
20528         (_version): Rename from "version".
20529
20530 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20531             Bruno Haible  <bruno@clisp.org>
20532
20533         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20534         rpl_close.
20535         (_gl_register_fd): New function, extracted from rpl_open.
20536         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20537         (rpl_open, rpl_opendir): Use _gl_register_fd.
20538
20539 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20540
20541         Fix organization of 'open' replacement.
20542         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20543         (gl_FUNC_OPEN): Use it.
20544         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20545
20546 2008-10-08  Bruno Haible  <bruno@clisp.org>
20547
20548         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20549
20550 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20551
20552         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20553         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20554         listen).
20555
20556 2008-10-08  Eric Blake  <ebb9@byu.net>
20557
20558         GNUmakefile: add 'make version' target
20559         * top/GNUmakefile (_curr-ver): Split version update rules...
20560         (version): ...into a target.
20561
20562 2008-10-07  Bruno Haible  <bruno@clisp.org>
20563
20564         Use a more portable replacement expression for -0.0L.
20565         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20566         instead of -0.0L. Fix m4 quotation.
20567
20568         * tests/test-signbit.c: Include <float.h>.
20569         (minus_zero): New variable.
20570         (test_signbitl): Use minus_zero instead of -zero.
20571         * modules/signbit-tests (Depends-on): Add float.
20572
20573         * tests/test-ceill.c: Include <float.h>.
20574         (zero): Remove variable.
20575         (minus_zero): New variable.
20576         (main): Use minus_zero instead of -zero.
20577         * modules/ceill-tests (Depends-on): Add float.
20578
20579         * tests/test-floorl.c: Include <float.h>.
20580         (zero): Remove variable.
20581         (minus_zero): New variable.
20582         (main): Use minus_zero instead of -zero.
20583         * modules/floorl-tests (Depends-on): Add float.
20584
20585         * tests/test-roundl.c: Include <float.h>.
20586         (zero): Remove variable.
20587         (minus_zero): New variable.
20588         (main): Use minus_zero instead of -zero.
20589         * modules/roundl-tests (Depends-on): Add float.
20590
20591         * tests/test-truncl.c: Include <float.h>.
20592         (zero): Remove variable.
20593         (minus_zero): New variable.
20594         (main): Use minus_zero instead of -zero.
20595         * modules/truncl-tests (Depends-on): Add float.
20596
20597         * tests/test-frexpl.c (zero): Remove variable.
20598         (minus_zero): New variable.
20599         (main): Use minus_zero instead of -zero.
20600         * modules/frexpl-tests (Depends-on): Add float.
20601
20602         * tests/test-isnan.c (zerol): Remove variable.
20603         (minus_zerol): New variable.
20604         (test_long_double): Use minus_zerol instead of -zerol.
20605         * modules/isnan-tests (Depends-on): Add float.
20606
20607         * tests/test-isnanl.h (zero): Remove variable.
20608         (minus_zero): New variable.
20609         (main): Use minus_zero instead of -zero.
20610         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20611         * modules/isnanl-tests (Depends-on): Add float.
20612
20613         * tests/test-ldexpl.c (zero): Remove variable.
20614         (minus_zero): New variable.
20615         (main): Use minus_zero instead of -zero.
20616         * modules/ldexpl-tests (Depends-on): Add float.
20617
20618         * tests/test-snprintf-posix.h (zerol): Remove variable.
20619         (minus_zerol): New variable.
20620         (test_function): Use minus_zerol instead of -zerol.
20621         * modules/snprintf-posix-tests (Depends-on): Add float.
20622         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20623
20624         * tests/test-sprintf-posix.h (zerol): Remove variable.
20625         (minus_zerol): New variable.
20626         (test_function): Use minus_zerol instead of -zerol.
20627         * modules/sprintf-posix-tests (Depends-on): Add float.
20628         * modules/vsprintf-posix-tests (Depends-on): Add float.
20629
20630         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20631         (minus_zerol): New variable.
20632         (test_function): Use minus_zerol instead of -zerol.
20633         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20634
20635         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20636         (minus_zerol): New variable.
20637         (test_function): Use minus_zerol instead of -zerol.
20638         * modules/vasprintf-posix-tests (Depends-on): Add float.
20639
20640 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20641
20642         * MODULES.html.sh (Support for building documentation): Mention
20643         pmccabe2html.  Sort entries.
20644
20645         Add pmccabe2html module, from gnupdf.
20646         * build-aux/pmccabe.css: New file.
20647         * build-aux/pmccabe2html: New file.
20648         * m4/pmccabe2html.m4: New file.
20649         * modules/pmccabe2html: New file.
20650
20651 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20652
20653         flock: new module
20654         * MODULES.html.sh: Add to list of modules.
20655         * lib/flock.c: flock implementation for Windows and Unix systems
20656         which have fcntl.
20657         * doc/glibc-functions/flock.texi: Update documentation.
20658         * lib/sys_file.in.h: <sys/file.h> header file.
20659         * m4/flock.m4: M4 macros.
20660         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20661         * modules/flock: flock module.
20662         * modules/flock-tests: flock tests module.
20663         * modules/sys_file: sys/file.h module.
20664         * tests/test-flock.c: test suite for flock.
20665
20666 2008-10-06  Jim Meyering  <meyering@redhat.com>
20667
20668         bootstrap: check for LT_INIT more portably still ;-)
20669         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20670         Spotted by Bruno Haible.
20671
20672 2008-10-06  Eric Blake  <ebb9@byu.net>
20673
20674         test-signbit: avoid tripping Irix cc bug on -0.0L
20675         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20676         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20677         entire testsuite consistent and avoids an Irix 6.2 bug.
20678
20679 2008-10-05  Bruno Haible  <bruno@clisp.org>
20680             Jim Meyering  <jim@meyering.net>
20681
20682         Add an option for ignoring EPIPE during close_stdout.
20683         * lib/closeout.h: Include <stdbool.h>.
20684         (close_stdout_set_ignore_EPIPE): New declaration.
20685         * lib/closeout.c: Include <stdbool.h>.
20686         (ignore_EPIPE): New variable.
20687         (close_stdout_set_ignore_EPIPE): New function.
20688         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20689         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20690         failure.
20691         * modules/closeout (Depends-on): Add stdbool.
20692
20693 2008-10-05  Bruno Haible  <bruno@clisp.org>
20694
20695         * modules/accept: New file.
20696         * modules/bind: New file.
20697         * modules/connect: New file.
20698         * modules/getpeername: New file.
20699         * modules/getsockname: New file.
20700         * modules/getsockopt: New file.
20701         * modules/listen: New file.
20702         * modules/recv: New file.
20703         * modules/recvfrom: New file.
20704         * modules/send: New file.
20705         * modules/sendto: New file.
20706         * modules/setsockopt: New file.
20707         * modules/socket: New file.
20708         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20709         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20710         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20711         the particular module is requested. Add a link warning when the
20712         particular module is not requested.
20713         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20714         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20715         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20716         the particular module is requested.
20717         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20718         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20719         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20720         * modules/sys_socket (Depends-on): Add link-warning.
20721         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20722         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20723         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20724         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20725         GL_LINK_WARNING.
20726         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20727         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20728         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20729         * doc/posix-functions/getpeername.texi: Mention the new module
20730         'getpeername'.
20731         * doc/posix-functions/getsockname.texi: Mention the new module
20732         'getsockname'.
20733         * doc/posix-functions/getsockopt.texi: Mention the new module
20734         'getsockopt'.
20735         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20736         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20737         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20738         * doc/posix-functions/send.texi: Mention the new module 'send'.
20739         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20740         * doc/posix-functions/setsockopt.texi: Mention the new module
20741         'setsockopt'.
20742         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20743         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20744         listen, connect, accept.
20745         * modules/select-tests (Depends-on): Likewise.
20746
20747 2008-10-05  Bruno Haible  <bruno@clisp.org>
20748
20749         * lib/winsock.c (strerror): Remove unused #undef.
20750         (rpl_close): Remove unused local variable.
20751
20752         * modules/sys_socket (Depends-on); Add errno.
20753
20754 2008-10-05  Bruno Haible  <bruno@clisp.org>
20755
20756         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20757         (select): Add a link warning when the 'select' module is not used.
20758         * modules/sys_select (Depends-on): Add link-warning.
20759         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20760         Suggested by Paolo Bonzini.
20761
20762 2008-10-05  Jim Meyering  <meyering@redhat.com>
20763
20764         bootstrap: check for LT_INIT more portably
20765         * build-aux/bootstrap: Avoid using grep -E, since it's not
20766         portable enough.  Suggestion from Bruno Haible.
20767
20768 2008-10-05  Bruno Haible  <bruno@clisp.org>
20769
20770         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20771         as being fixed by gnulib.
20772
20773 2008-10-05  Bruno Haible  <bruno@clisp.org>
20774
20775         * modules/select-tests: New file, mostly copied from
20776         modules/sys_select-tests.
20777         * tests/test-select.c: New file, mostly copied from
20778         tests/test-sys_select.c.
20779         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20780         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20781         (Makefile.am): Remove test_sys_select_LDADD.
20782
20783         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20784         to an undefined symbol, for an error message.
20785         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20786         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20787         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20788         winsock-select.c here.
20789         * modules/sys_select (Files): Remove lib/winsock-select.c.
20790         (Depends-on): Remove alloca.
20791         (Makefile.am): Substitute GNULIB_SELECT.
20792         * modules/select: New file.
20793         * doc/posix-functions/select.texi: Update.
20794
20795 2008-10-05  Bruno Haible  <bruno@clisp.org>
20796
20797         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20798         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20799         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20800         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20801         getdtablesize.
20802         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20803         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20804
20805 2008-10-05  Bruno Haible  <bruno@clisp.org>
20806
20807         * modules/getdtablesize-tests: New file.
20808         * tests/test-getdtablesize.c: New file.
20809
20810         New module 'getdtablesize'.
20811         * lib/unistd.in.h (getdtablesize): New declaration.
20812         * lib/getdtablesize.c: New file.
20813         * m4/getdtablesize.m4: New file.
20814         * modules/getdtablesize: New file.
20815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20816         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20817         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20818         HAVE_GETDTABLESIZE.
20819         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20820
20821 2008-10-05  Bruno Haible  <bruno@clisp.org>
20822
20823         * modules/sched (Makefile.am): Fix typo.
20824         Reported by Simon Josefsson.
20825
20826 2008-10-05  Jim Meyering  <meyering@redhat.com>
20827
20828         bootstrap: check for LT_INIT, too
20829         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20830         are deprecated.  Suggestion from Ralf Wildenhues.
20831
20832 2008-10-05  Bruno Haible  <bruno@clisp.org>
20833
20834         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20835         overriding them by ours.
20836         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20837
20838 2008-10-05  Jim Meyering  <meyering@redhat.com>
20839
20840         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20841         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20842         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20843
20844 2008-10-04  Bruno Haible  <bruno@clisp.org>
20845
20846         * modules/dup2 (License): Change to LGPLv2+.
20847         * modules/sleep (License): Likewise.
20848         * modules/perror (License): Likewise.
20849         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20850         Blake.
20851         * modules/signal (License): Likewise.
20852         * modules/sigprocmask (License): Likewise.
20853         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20854         Meyering.
20855
20856 2008-10-04  Bruno Haible  <bruno@clisp.org>
20857
20858         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20859         Reported by Rainer Tammer <tammer@tammer.net>.
20860
20861 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20862             Bruno Haible  <bruno@clisp.org>
20863
20864         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20865         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20866         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20867
20868 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20869
20870         filevercmp: new module
20871         * lib/filevercmp.h: New function filevercmp comparing version strings.
20872         * lib/filevercmp.c: Implementation of filevercmp function.
20873         * modules/filevercmp: Module metadata.
20874         * tests/test-filevercmp.c: Unit test for new module.
20875         * modules/filevercmp-tests: Unit test metadata.
20876         * MODULES.html.sh: Add filevercmp module.
20877
20878 2008-10-03  Bruno Haible  <bruno@clisp.org>
20879
20880         * lib/c-ctype.h: Add comment.
20881         Reported by Jim Meyering.
20882
20883 2008-10-02  Bruno Haible  <bruno@clisp.org>
20884
20885         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20886
20887 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20888
20889         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20890         name of bootstrap.conf accordingly.
20891
20892 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20893
20894         * build-aux/bootstrap: Install git-merge-changelog configuration
20895         items into .gitconfig if needed.
20896
20897 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20898
20899         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20900         git repository, and initialize/update it accordingly.
20901
20902 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20903
20904         * modules/fsync-tests: New file.
20905         * tests/test-fsync.c: New file.
20906
20907         New module 'fsync'.
20908         * lib/fsync.c: New file.
20909         * m4/fsync.m4: New file.
20910         * modules/fsync: New file.
20911         * lib/unistd.in.h (fsync): New declaration.
20912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20913         GNULIB_FSYNC and HAVE_FSYNC.
20914         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20915         * MODULES.html.sh (posix_functions): Add fsync.
20916         * doc/posix-functions/fsync.texi: Mention the new module.
20917
20918 2008-10-02  Jim Meyering  <meyering@redhat.com>
20919
20920         fts.c: sync with similar code from coreutils' remove.c
20921         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20922         Guard also with "#if defined __linux__", since for now at least,
20923         this code is Linux-kernel-specific.
20924
20925 2008-10-02  Jim Meyering  <meyering@redhat.com>
20926
20927         fts: bug fixes
20928         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20929         Include <sys/vfs.h>, not <sys/statfs.h>.
20930
20931         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20932         Include <sys/vfs.h>, not <sys/statfs.h>.
20933
20934 2008-10-01  Bruno Haible  <bruno@clisp.org>
20935
20936         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20937         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20938         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20939         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20940         * doc/posix-functions/posix_spawnp.texi: Likewise.
20941         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20942         whether posix_spawn actually works.
20943         * m4/pipe.m4 (gl_PIPE): Likewise.
20944         * modules/execute (Files): Add m4/posix_spawn.m4.
20945         * modules/pipe (Files): Add m4/posix_spawn.m4.
20946         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20947
20948 2008-10-01  Jim Meyering  <meyering@redhat.com>
20949
20950         remove trailing spaces
20951         * NEWS: Likewise.
20952         * lib/poll.c (poll): Likewise.
20953         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20954         * lib/winsock.c (rpl_close): Likewise.
20955         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20956         * modules/yield: Likewise.
20957         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20958         * tests/test-sys_select.c (connect_to_socket): Likewise.
20959
20960         fts.c: adjust a new interface to be more generally useful
20961         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20962         (fts_build): Adjust caller.
20963
20964 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20965
20966         * modules/cond-tests: New file.
20967         * tests/test-cond.c: New file.
20968
20969 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20970             Bruno Haible  <bruno@clisp.org>
20971
20972         * modules/cond (Dependencies): Add errno, time.
20973         * lib/glthread/cond.h: Include <time.h>.
20974         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20975         across platforms.
20976
20977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20978             Bruno Haible  <bruno@clisp.org>
20979
20980         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20981
20982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20983             Bruno Haible  <bruno@clisp.org>
20984
20985         * modules/tls-tests (Depends-on): Add thread, yield.
20986         (configure.ac): Remove all checks.
20987         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20988         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20989         gl_thread_self): Remove definitions. Include glthread/thread.h and
20990         glthread/yield.h instead.
20991         (test_tls): Pass an additional NULL argument to gl_thread_join.
20992
20993 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20994             Bruno Haible  <bruno@clisp.org>
20995
20996         * modules/lock-tests (Depends-on): Add thread, yield.
20997         (configure.ac): Remove all checks.
20998         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20999         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21000         gl_thread_self): Remove definitions. Include glthread/thread.h and
21001         glthread/yield.h instead.
21002         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21003         additional NULL argument to gl_thread_join.
21004
21005 2008-09-30  Bruno Haible  <bruno@clisp.org>
21006
21007         Fix the Win32 implementation of the 'thread' module.
21008         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21009         pointer type.
21010         (gl_thread_self): Invoke gl_thread_self_func.
21011         (gl_thread_self_func): New declaration.
21012         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21013         (do_init_self_key, init_self_key): New functions.
21014         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21015         Remove some fields.
21016         (running_threads, running_lock): Remove variables.
21017         (get_current_thread_handle): New function.
21018         (gl_thread_self_func, wrapper_func, glthread_create_func,
21019         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21020         simplified.
21021
21022 2008-09-30  Bruno Haible  <bruno@clisp.org>
21023
21024         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21025         files.
21026
21027 2008-09-30  Jim Meyering  <meyering@redhat.com>
21028
21029         fts.m4: correct the test for statfs.f_type
21030         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21031         when checking for statfs.f_type.
21032
21033 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21034
21035         tests: avoid some compiler warnings
21036         * tests/test-memchr.c (main): Pass NULL indirectly.
21037         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21038
21039 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21040
21041         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21042         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21043         exactly specified dayshifts.
21044         (dayshift): New rule.
21045         (rel): Add dayshift.
21046         (relative_time_table) [tomorrow, yesterday, today, now]:
21047         Use tDAY_SHIFT in place of tDAY_UNIT.
21048         * tests/test-getdate.c: Add tests for now-disallowed countable
21049         dayshifts, e.g., "4 yesterday ago".
21050
21051 2008-09-29  Bruno Haible  <bruno@clisp.org>
21052
21053         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21054         * tests/test-posix_spawn1.in.sh: Renamed from
21055         tests/test-posix_spawn.in.sh.
21056         * tests/test-posix_spawn2.c: New file.
21057         * tests/test-posix_spawn2.in.sh: New file.
21058         * modules/posix_spawnp-tests (Files): Update.
21059         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21060
21061 2008-09-29  Bruno Haible  <bruno@clisp.org>
21062
21063         Propagate effects of putenv/setenv/unsetenv to child processes.
21064         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21065         * lib/pipe.c (create_pipe): Likewise.
21066
21067 2008-09-29  Bruno Haible  <bruno@clisp.org>
21068
21069         Enable use of shell scripts as executables in mingw.
21070         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21071         run the program as a shell script.
21072         * lib/pipe.c (create_pipe): Likewise.
21073         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21074         resulting array.
21075
21076 2008-09-29  Eric Blake  <ebb9@byu.net>
21077
21078         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21079
21080 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21081
21082         * doc/posix-functions/accept.texi: Update mingw problems.
21083         * doc/posix-functions/bind.texi: Update mingw problems.
21084         * doc/posix-functions/close.texi: Update mingw problems.
21085         * doc/posix-functions/connect.texi: Update mingw problems.
21086         * doc/posix-functions/getpeername.texi: Update mingw problems.
21087         * doc/posix-functions/getsockname.texi: Update mingw problems.
21088         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21089         * doc/posix-functions/ioctl.texi: Update mingw problems.
21090         * doc/posix-functions/listen.texi: Update mingw problems.
21091         * doc/posix-functions/recv.texi: Update mingw problems.
21092         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21093         * doc/posix-functions/select.texi: Update mingw problems.
21094         * doc/posix-functions/send.texi: Update mingw problems.
21095         * doc/posix-functions/sendto.texi: Update mingw problems.
21096         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21097         * doc/posix-functions/socket.texi: Update mingw problems.
21098
21099 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         * lib/sys_select.in.h: Include sys/time.h.
21103         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21104         * modules/sys_select: Depend on sys_time.
21105         * tests/test-sys_select.c: Test that sys/select.h defines struct
21106         timeval fully.
21107
21108 2008-09-29  Bruno Haible  <bruno@clisp.org>
21109
21110         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21111         * lib/sys_select.in.h: Likewise.
21112
21113 2008-09-29  Bruno Haible  <bruno@clisp.org>
21114
21115         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21116
21117 2008-09-29  Bruno Haible  <bruno@clisp.org>
21118
21119         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21120         Set LIBSOCKET instead of augmenting LIBS.
21121         * modules/sockets (Link): New section.
21122         * modules/sockets-tests (test_sockets_LDADD): New variable.
21123         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21124         * modules/poll-tests (test_poll_LDADD): New variable.
21125         * NEWS: Document the change.
21126
21127 2008-09-29  Bruno Haible  <bruno@clisp.org>
21128
21129         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21130         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21131         ARPA_INET_H directly.
21132         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21133
21134 2008-09-28  Bruno Haible  <bruno@clisp.org>
21135
21136         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21137         from gl_HEADER_SYS_SOCKET.
21138         (gl_HEADER_SYS_SOCKET): Invoke it.
21139         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21140
21141 2008-09-28  Bruno Haible  <bruno@clisp.org>
21142
21143         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21144         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21145         Needed on OSF/1 4.0.
21146
21147 2008-09-28  Bruno Haible  <bruno@clisp.org>
21148
21149         Override open more carefully.
21150         * lib/open.c (orig_open): New function.
21151         (rpl_open): Use orig_open instead of open.
21152         * lib/fcntl.in.h: Add special invocation convention.
21153         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21154         (gl_FUNC_OPEN): Invoke it.
21155
21156         Override freopen more carefully.
21157         * lib/freopen.c (orig_freopen): New function.
21158         (rpl_freopen): Use orig_freopen instead of freopen.
21159         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21160         (gl_FUNC_FREOPEN): Invoke it.
21161
21162         Override fopen more carefully.
21163         * lib/fopen.c (orig_fopen): New function.
21164         (rpl_fopen): Use orig_fopen instead of fopen.
21165         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21166         (gl_FUNC_FOPEN): Invoke it.
21167         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21168
21169 2008-09-28  Bruno Haible  <bruno@clisp.org>
21170
21171         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21172         SIGPIPE.
21173
21174 2008-09-28  Bruno Haible  <bruno@clisp.org>
21175
21176         * tests/test-sigaction.c (handler, main): Disable the check whether
21177         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21178         glibc systems with LinuxThreads.
21179
21180 2008-09-28  Bruno Haible  <bruno@clisp.org>
21181
21182         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21183
21184         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21185         with AIX xlc.
21186         * lib/fcntl.in.h (open): Likewise.
21187         Reported by Rainer Tammer <tammer@tammer.net>.
21188
21189 2008-09-28  Bruno Haible  <bruno@clisp.org>
21190
21191         * modules/posix_spawnp-tests: New file.
21192         * tests/test-posix_spawn.c: New file.
21193         * tests/test-posix_spawn.in.sh: New file.
21194
21195         New module 'posix_spawnp'.
21196         * modules/posix_spawnp: New file.
21197         * lib/spawnp.c: New file, from GNU libc with modifications.
21198         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21199
21200         New module 'posix_spawn'.
21201         * modules/posix_spawn: New file.
21202         * lib/spawn.c: New file, from GNU libc with modifications.
21203         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21204
21205         New module 'posix_spawnattr_destroy'.
21206         * modules/posix_spawnattr_destroy: New file.
21207         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21208         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21209         module.
21210
21211         New module 'posix_spawnattr_setsigmask'.
21212         * modules/posix_spawnattr_setsigmask: New file.
21213         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21214         modifications.
21215         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21216         new module.
21217
21218         New module 'posix_spawnattr_getsigmask'.
21219         * modules/posix_spawnattr_getsigmask: New file.
21220         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21221         modifications.
21222         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21223         new module.
21224
21225         New module 'posix_spawnattr_setsigdefault'.
21226         * modules/posix_spawnattr_setsigdefault: New file.
21227         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21228         modifications.
21229         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21230         new module.
21231
21232         New module 'posix_spawnattr_getsigdefault'.
21233         * modules/posix_spawnattr_getsigdefault: New file.
21234         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21235         modifications.
21236         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21237         new module.
21238
21239         New module 'posix_spawnattr_setschedpolicy'.
21240         * modules/posix_spawnattr_setschedpolicy: New file.
21241         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21242         modifications.
21243         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21244         new module.
21245
21246         New module 'posix_spawnattr_getschedpolicy'.
21247         * modules/posix_spawnattr_getschedpolicy: New file.
21248         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21249         modifications.
21250         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21251         new module.
21252
21253         New module 'posix_spawnattr_setschedparam'.
21254         * modules/posix_spawnattr_setschedparam: New file.
21255         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21256         modifications.
21257         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21258         new module.
21259
21260         New module 'posix_spawnattr_getschedparam'.
21261         * modules/posix_spawnattr_getschedparam: New file.
21262         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21263         modifications.
21264         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21265         new module.
21266
21267         New module 'posix_spawnattr_setpgroup'.
21268         * modules/posix_spawnattr_setpgroup: New file.
21269         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21270         modifications.
21271         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21272         module.
21273
21274         New module 'posix_spawnattr_getpgroup'.
21275         * modules/posix_spawnattr_getpgroup: New file.
21276         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21277         modifications.
21278         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21279         module.
21280
21281         New module 'posix_spawnattr_setflags'.
21282         * modules/posix_spawnattr_setflags: New file.
21283         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21284         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21285         module.
21286
21287         New module 'posix_spawnattr_getflags'.
21288         * modules/posix_spawnattr_getflags: New file.
21289         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21290         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21291         module.
21292
21293         New module 'posix_spawnattr_init'.
21294         * modules/posix_spawnattr_init: New file.
21295         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21296         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21297         module.
21298
21299         New module 'posix_spawn_file_actions_destroy'.
21300         * modules/posix_spawn_file_actions_destroy: New file.
21301         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21302         modifications.
21303         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21304         the new module.
21305
21306         New module 'posix_spawn_file_actions_addopen'.
21307         * modules/posix_spawn_file_actions_addopen: New file.
21308         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21309         modifications.
21310         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21311         the new module.
21312
21313         New module 'posix_spawn_file_actions_adddup2'.
21314         * modules/posix_spawn_file_actions_adddup2: New file.
21315         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21316         modifications.
21317         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21318         the new module.
21319
21320         New module 'posix_spawn_file_actions_addclose'.
21321         * modules/posix_spawn_file_actions_addclose: New file.
21322         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21323         modifications.
21324         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21325         the new module.
21326
21327         New module 'posix_spawn_file_actions_init'.
21328         * modules/posix_spawn_file_actions_init: New file.
21329         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21330         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21331         new module.
21332
21333         New module 'posix_spawn-internal'.
21334         * modules/posix_spawn-internal: New file.
21335         * lib/spawn_int.h: New file, from GNU libc with modifications.
21336         * lib/spawni.c: New file, from GNU libc with modifications.
21337         * m4/posix_spawn.m4: New file.
21338
21339         New module 'spawn'.
21340         * modules/spawn: New file.
21341         * lib/spawn.in.h: New file, from GNU libc with modifications.
21342         * m4/spawn_h.m4: New file.
21343         * doc/posix-headers/spawn.texi: Mention the new module.
21344
21345 2008-09-28  Bruno Haible  <bruno@clisp.org>
21346
21347         * modules/sched-tests: New file.
21348         * tests/test-sched.c: New file.
21349
21350         New module 'sched'.
21351         * modules/sched: New file.
21352         * lib/sched.in.h: New file.
21353         * m4/sched_h.m4: New file.
21354         * doc/posix-headers/sched.texi: Mention the new module.
21355
21356 2008-09-27  Eric Blake  <ebb9@byu.net>
21357
21358         Fix previous patch, and tweak references to $0.
21359         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21360         (func_version, func_gnulib_dir): Don't call this program
21361         gnulib-tool.
21362         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21363         with using $0 in function.
21364         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21365         (func_fatal_error): Reuse the name the user invoked us with.
21366
21367 2008-09-27  Bruno Haible  <bruno@clisp.org>
21368
21369         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21370         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21371         (gl_ICONV_H): Not here.
21372         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21373         instead of assigning ICONV_H directly.
21374
21375         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21377         WCHAR_H directly.
21378
21379 2008-09-27  Bruno Haible  <bruno@clisp.org>
21380
21381         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21382         * modules/arpa_inet (Depends-on): Add link-warning.
21383         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21384         * modules/unistd (Makefile.am): Likewise.
21385
21386 2008-09-26  Bruno Haible  <bruno@clisp.org>
21387
21388         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21389         variables.
21390         (func_version): Essentially copied from gnulib-tool.
21391         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21392         func_readlink): Copied from gnulib-tool.
21393
21394 2008-09-26  Bruno Haible  <bruno@clisp.org>
21395
21396         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21397         invoking git-version-gen.
21398
21399 2008-09-26  Bruno Haible  <bruno@clisp.org>
21400
21401         * posix-modules: Update to directory names changed on 2008-01-19.
21402         Remove commas in output before splitting into words. No more need to
21403         avoid 'ftruncate' since 2007-02-19.
21404
21405 2008-09-26  Bruno Haible  <bruno@clisp.org>
21406
21407         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21408
21409 2008-09-26  Bruno Haible  <bruno@clisp.org>
21410
21411         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21412         * modules/fwriteerror (Depends-on): Add errno.
21413
21414 2008-09-26  Bruno Haible  <bruno@clisp.org>
21415
21416         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21417         * tests/test-vc-list-files-cvs.sh: Likewise.
21418
21419 2008-09-26  Bruno Haible  <bruno@clisp.org>
21420
21421         * doc/posix-headers/sys_resource.texi: Reorder items.
21422
21423 2008-09-26  Jim Meyering  <meyering@redhat.com>
21424
21425         fts: tweak inode comparison function
21426         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21427         inode numbers, as documented.
21428
21429         fts: sort dirent entries on inode number before traversing
21430         This avoids a quadratic, seek-related performance penalty when
21431         operating on a directory containing many entries (measurable at 10k;
21432         3.5 hours at 2 million entries with a cold cache) on certain types
21433         of file systems, including ext3 and ext4, but not tmpfs.
21434         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21435         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21436         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21437         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21438         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21439         (fts_build): Set the stat.st_ino member from D_INO.
21440         If it is likely to be useful, sort dirent entries on inode number.
21441
21442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21443         and the struct statfs.f_type member.
21444         * modules/fts (Depends-on): Add d-ino.
21445
21446 2008-09-26  Bruno Haible  <bruno@clisp.org>
21447
21448         * modules/sigpipe-die (Depends-on): Add sigpipe.
21449
21450         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21451         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21452         and GNULIB_STDIO_H_SIGPIPE are set.
21453         * lib/stdio-write.c: New file.
21454         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21455         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21456         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21457         REPLACE_STDIO_WRITE_FUNCS.
21458         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21459         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21460         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21461         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21462         * modules/stdio (Files): Add lib/stdio-write.c.
21463         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21464         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21465         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21466         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21467         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21468         REPLACE_FPRINTF_POSIX.
21469         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21470         REPLACE_PRINTF_POSIX.
21471         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21472         REPLACE_VFPRINTF_POSIX.
21473         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21474         REPLACE_VPRINTF_POSIX.
21475         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21476         SIGPIPE issue.
21477         * doc/posix-functions/fputc.texi: Likewise.
21478         * doc/posix-functions/fputs.texi: Likewise.
21479         * doc/posix-functions/fwrite.texi: Likewise.
21480         * doc/posix-functions/printf.texi: Likewise.
21481         * doc/posix-functions/putc.texi: Likewise.
21482         * doc/posix-functions/putchar.texi: Likewise.
21483         * doc/posix-functions/puts.texi: Likewise.
21484         * doc/posix-functions/vfprintf.texi: Likewise.
21485         * doc/posix-functions/vprintf.texi: Likewise.
21486
21487         * modules/safe-write (Depends-on): Add write.
21488
21489         * modules/sigpipe-tests: New file.
21490         * tests/test-sigpipe.c: New file.
21491         * tests/test-sigpipe.sh: New file.
21492
21493         * modules/write: New file.
21494         * lib/unistd.in.h: Include <sys/types.h>.
21495         (write): New declaration.
21496         * lib/write.c: New file.
21497         * m4/write.m4: New file.
21498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21499         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21500         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21501         GNULIB_WRITE, REPLACE_WRITE.
21502         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21503         and the SIGPIPE issue.
21504
21505         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21506         (raise): New declaration.
21507         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21508         (ext_signal): New function.
21509         (rpl_raise): New function.
21510         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21511         GNULIB_SIGNAL_H_SIGPIPE.
21512         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21513         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21514
21515         * modules/sigpipe: New file.
21516         * m4/sigpipe.m4: New file.
21517
21518 2008-09-25  Derek Price  <derek@ximbiot.com>
21519             Bruno Haible  <bruno@clisp.org>
21520
21521         * gnulib-tool (func_import): Report all license incompatibilities, not
21522         just the first one.
21523
21524 2008-09-25  Bruno Haible  <bruno@clisp.org>
21525
21526         * gnulib-tool (func_import): When computing the edits, consider not
21527         only the Makefile.ams that exist but also those that will be generated.
21528
21529 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21530
21531         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21532         fixes gnulib-tool --test warning about duplicate dependency.
21533
21534 2008-09-25  Bruno Haible  <bruno@clisp.org>
21535
21536         * gnulib-tool: Don't ask the user to perform edits in the generated
21537         Makefile.ams.
21538         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21539         apply to the Makefile.am being generated.
21540         (func_emit_tests_Makefile_am): Execute edits that apply to the
21541         Makefile.am being generated.
21542         (func_import): Setup list of Makefile.am edits before emitting the
21543         Makefile.ams, not at the end.
21544         (func_create_testdir): Update.
21545         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21546
21547 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21548
21549         * gnulib-tool (func_import): Store the --tests-base option in the
21550         comment in gnulib-cache.m4.
21551
21552 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21553
21554         * NEWS: Document increased portability that sys_select now provides.
21555
21556         * lib/sys_select.in.h: Install select wrapper.
21557         * lib/sys_socket.in.h: Use more descriptive name when there is no
21558         select wrapper.
21559         * lib/winsock-select.c: New.
21560         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21561         Require gl_HEADER_SYS_SOCKET.
21562         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21563         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21564         * tests/test-sys_select.c: Add functional tests.
21565
21566 2008-09-24  Eric Blake  <ebb9@byu.net>
21567
21568         open, fopen: close fd leak in last patch
21569         * lib/open.c (rpl_open): Close fd before returning error.
21570         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21571         * doc/posix-functions/open.texi (open): Document that Irix also
21572         has the bug.
21573         * doc/posix-functions/fopen.texi (fopen): Likewise.
21574         Reported by Paolo Bonzini.
21575
21576 2008-09-24  Bruno Haible  <bruno@clisp.org>
21577
21578         Ensure that a filename ending in a slash cannot be used to access a
21579         non-directory.
21580         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21581         to check whether it's really a directory.
21582         * lib/fopen.c: Include fcntl.h, unistd.h.
21583         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21584         and fdopen().
21585         * modules/fopen (Depends-on): Add unistd.
21586         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21587         * tests/test-fopen.c (main): Likewise.
21588         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21589         * doc/posix-functions/fopen.texi: Likewise.
21590         Reported by Eric Blake.
21591
21592 2008-09-23  Eric Blake  <ebb9@byu.net>
21593
21594         c-stack: avoid compiler optimizations when provoking overflow
21595         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21596         recursion harder to optimize, to ensure a stack overflow occurs.
21597         * tests/test-c-stack.c (recurse): Likewise.
21598         Borrowed from libsigsegv.
21599
21600         c-stack: work around Irix sigaltstack bug
21601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21602         whether sigaltstack uses wrong end of stack_t (copied in part from
21603         libsigsegv).
21604         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21605         Irix bug, without requiring an over-allocation.
21606         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21607         bug.
21608
21609         fopen: document mingw bug on directories
21610         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21611         not allowing a stream visiting a directory, even though reading
21612         from such a stream is not portable.
21613
21614 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21615
21616         * lib/poll.c: Rewrite.
21617         * modules/poll: Depend on alloca.
21618
21619 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21620
21621         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21622         instead define prototypes for a full set of wrappers.  Ensure
21623         that Cygwin does not use the compatibility code, which is only
21624         for MinGW.
21625         * lib/winsock.c: New.
21626         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21627         * modules/sys_socket: Add lib/winsock.c.
21628
21629         * modules/poll-tests: Add errno and perror.
21630         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21631
21632 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21633
21634         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21635
21636 2008-09-23  Bruno Haible  <bruno@clisp.org>
21637
21638         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21639         * doc/glibc-functions/*: Likewise.
21640
21641 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21642
21643         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21644         success.
21645
21646 2008-09-22  Eric Blake  <ebb9@byu.net>
21647             Bruno Haible  <bruno@clisp.org>
21648
21649         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21650         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21651         supply %A but mishandle pseudo-NaN.
21652         Reported by Simon Josefsson.
21653
21654 2008-09-21  Bruno Haible  <bruno@clisp.org>
21655
21656         * tests/test-lock.c (main): Tweak skip message.
21657         * tests/test-tls.c (main): Likewise.
21658
21659 2008-09-21  Bruno Haible  <bruno@clisp.org>
21660
21661         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21662         whether 'struct sigaction' has sa_sigaction here...
21663         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21664         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21665
21666 2008-09-21  Bruno Haible  <bruno@clisp.org>
21667
21668         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21669         section.
21670         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21671         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21672         the new section.
21673         (Support for obsolete systems lacking POSIX:2001): New section.
21674         (String handling <string.h>): Move strdup to the new section.
21675         Suggested by Simon Josefsson and Paolo Bonzini.
21676
21677 2008-09-21  Bruno Haible  <bruno@clisp.org>
21678
21679         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21680         exponents in %e and %g results on 'long double'. Needed for mingw's
21681         improved *printf functions.
21682         * tests/test-vasprintf-posix.c (test_function): Likewise.
21683         * tests/test-snprintf-posix.h (test_function): Likewise.
21684         * tests/test-sprintf-posix.h (test_function): Likewise.
21685         Reported by Eric Blake.
21686
21687 2008-09-21  Bruno Haible  <bruno@clisp.org>
21688
21689         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21690         * tests/test-sprintf-posix.h (test_function): Likewise.
21691
21692 2008-09-21  Bruno Haible  <bruno@clisp.org>
21693
21694         * modules/getpass (Depends-on): Add strdup-posix.
21695
21696         New module 'strdup-posix'.
21697         * modules/strdup-posix: New file.
21698         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21699         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21701         REPLACE_STRDUP.
21702         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21703         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21705         strdup-posix.
21706
21707         * modules/strdup (Depends-on): Remove malloc-posix.
21708
21709 2008-09-20  Bruno Haible  <bruno@clisp.org>
21710
21711         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21712         Wildenhues.
21713
21714 2008-09-20  Bruno Haible  <bruno@clisp.org>
21715
21716         Ensure that wint_t gets defined on IRIX 5.3.
21717         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21718         * lib/wctype.in.h (wint_t): Likewise.
21719         (__wctype_wint_t): Remove type.
21720         (isw*): Use wint_t instead of __wctype_wint_t.
21721         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21722         * modules/wchar (Files): Add m4/wint_t.m4.
21723         (Makefile.am): Substitute HAVE_WINT_T.
21724         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21725         * tests/test-wctype.c: Check that wint_t is defined.
21726         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21727         * doc/posix-headers/wctype.texi: Likewise.
21728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21729
21730 2008-09-18  Bruno Haible  <bruno@clisp.org>
21731
21732         * gnulib-tool (func_exit): Update comment.
21733
21734 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21735
21736         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21737         assumes strdup exists and does not depend on strdup to return
21738         ENOMEM on out of memory conditions.
21739
21740 2008-09-18  Bruno Haible  <bruno@clisp.org>
21741
21742         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21743         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21744         digits for the exponent.
21745
21746 2008-09-18  Jim Meyering  <meyering@redhat.com>
21747             Bruno Haible  <bruno@clisp.org>
21748
21749         * lib/vasnprintf.c (decimal_point_char): Define also if
21750         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21751
21752 2008-09-16  Bruno Haible  <bruno@clisp.org>
21753         and Eric Blake  <ebb9@byu.net>
21754
21755         vasnprintf: support Irix 5.3
21756         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21757         that mishandle long double infinity.
21758         Reported by Tom G. Christensen.
21759
21760 2008-09-16  Bruno Haible  <bruno@clisp.org>
21761
21762         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21763         Solaris 9.
21764         * doc/glibc-functions/alphasort.texi: Likewise.
21765         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21766
21767 2008-09-16  Jim Meyering  <meyering@redhat.com>
21768
21769         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21770         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21771         a umask modification leak out of a subshell.  Otherwise, the
21772         opensolaris /bin/sh would be accepted and thus cause unwarranted
21773         failures in the coreutils test suite.
21774
21775 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21776
21777         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21778         to succeed.
21779
21780 2008-09-16  Jim Meyering  <meyering@redhat.com>
21781
21782         avoid spurious test failure when library is built without ACL support
21783         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21784         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21785         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21786         * tests/test-copy-acl.sh: Likewise.
21787
21788 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21789
21790         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21791         based on character occurrence counts.
21792
21793 2008-09-15  Eric Blake  <ebb9@byu.net>
21794
21795         tests: avoid some compiler warnings
21796         * tests/test-memchr.c (main): Pass NULL indirectly.
21797         * tests/test-closein.c (main): Avoid unused variable.
21798
21799 2008-09-15  Bruno Haible  <bruno@clisp.org>
21800
21801         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21802         are missing on OpenBSD 4.0 individually.
21803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21804
21805 2008-09-15  Bruno Haible  <bruno@clisp.org>
21806
21807         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21808         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21809         * doc/posix-functions/perror.texi: Likewise.
21810         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21811         is missing.
21812         Reported by Eric Blake.
21813
21814         * lib/errno.in.h: Use replacement values >= 2000.
21815         Reported by Eric Blake.
21816
21817 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21818
21819         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21820         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21821         limit.
21822         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21823         compareseq was aborted.
21824
21825 2008-09-14  Bruno Haible  <bruno@clisp.org>
21826
21827         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21828         yvec_edit_count.
21829         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21830         (fstrcmp_bounded): Simplify result computation accordingly.
21831
21832 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21833
21834         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21835         (fstrcmp): Define in terms of fstrcmp_bounded.
21836         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21837         lower_bound argument.
21838         Return quickly if the result is certainly < lower_bound.
21839         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21840
21841 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21842
21843         * lib/diffseq.h (EARLY_ABORT): New macro.
21844         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21845         evaluates to true.
21846
21847 2008-09-14  Bruno Haible  <bruno@clisp.org>
21848
21849         * modules/perror-tests: New file.
21850         * tests/test-perror.sh: New file.
21851         * tests/test-perror.c: New file.
21852
21853         New module 'perror'.
21854         * lib/stdio.in.h (perror): New declaration.
21855         * lib/perror.c: New file.
21856         * m4/perror.m4: New file.
21857         * modules/perror: New file.
21858         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21859         * doc/posix-functions/perror.texi: Mention the perror module.
21860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21861         REPLACE_PERROR.
21862         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21863         REPLACE_PERROR.
21864
21865 2008-09-14  Bruno Haible  <bruno@clisp.org>
21866
21867         * modules/stdio (Makefile.am): Reorder to match the order in
21868         lib/stdio.in.h.
21869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21870
21871 2008-09-13  Bruno Haible  <bruno@clisp.org>
21872
21873         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21874
21875 2008-09-13  Bruno Haible  <bruno@clisp.org>
21876
21877         Extend strerror to cover the added errno values.
21878         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21879         (rpl_strerror): Provide error messages for the added errno values and
21880         for the WSA* values.
21881         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21882         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21883         strerror.
21884         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21885         * modules/strerror (Depends-on): Add errno.
21886         * doc/posix-functions/strerror.texi: Document the change.
21887         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21888         and EOVERFLOW.
21889
21890 2008-09-13  Bruno Haible  <bruno@clisp.org>
21891
21892         * modules/EOVERFLOW: Remove file.
21893         * m4/eoverflow.m4: Remove file.
21894         * modules/EOVERFLOW-tests: Remove file.
21895         * tests/test-EOVERFLOW.c: Remove file.
21896         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21897         * modules/ftell (Depends-on): Likewise.
21898         * modules/getdelim (Depends-on): Likewise.
21899         * modules/getugroups (Depends-on): Likewise.
21900         * modules/poll (Depends-on): Likewise.
21901         * modules/snprintf (Depends-on): Likewise.
21902         * modules/sprintf-posix (Depends-on): Likewise.
21903         * modules/vasnprintf (Depends-on): Likewise.
21904         * modules/vasprintf (Depends-on): Likewise.
21905         * modules/vfprintf-posix (Depends-on): Likewise.
21906         * modules/vsnprintf (Depends-on): Likewise.
21907         * modules/vsprintf-posix (Depends-on): Likewise.
21908         * modules/xvasprintf (Depends-on): Likewise.
21909         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21910         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21911         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21912         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21913         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21914         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21915         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21916         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21917         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21918         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21919         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21920         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21921         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21922         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21923         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21924         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21925         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21926         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21927         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21928         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21930         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21931         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21932         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21933         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21934         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21935         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21936         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21937         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21938         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21939         * MODULES.html.sh: Remove EOVERFLOW.
21940         * NEWS: Mention the change.
21941
21942 2008-09-13  Bruno Haible  <bruno@clisp.org>
21943
21944         * modules/errno-tests: New file.
21945         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21946
21947         * lib/errno.in.h: New file.
21948         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21949         * modules/errno: New file.
21950         * doc/posix-headers/errno.texi: Update documentation.
21951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21952
21953 2008-09-13  Bruno Haible  <bruno@clisp.org>
21954
21955         * tests/test-poll.c: Use #if for native Windows, rather than testing
21956         __MSVCRT__.
21957
21958 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21959             Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/glob.c: Don't include <pwd.h> on native Windows.
21962         (WINDOWS32): New macro.
21963         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21964
21965 2008-09-13  Bruno Haible  <bruno@clisp.org>
21966
21967         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21968         (ETIMEDOUT): Remove macro.
21969         (glthread_cond_timedwait_multithreaded): New declaration.
21970         (glthread_cond_timedwait): Use it.
21971         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21972         (glthread_cond_timedwait_multithreaded): New function.
21973
21974 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21975
21976         * modules/poll-tests: Do not check for io.h.
21977         * tests/test-poll.c: Check for __MSVCRT__ instead.
21978
21979 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21980
21981         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21982         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21983         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21984
21985 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21986
21987         * modules/poll-tests: New.
21988         * tests/test-poll.c: New.
21989
21990 2008-09-12  Eric Blake  <ebb9@byu.net>
21991
21992         frexp: test for NetBSD failure on -0.0
21993         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21994         not all, bugs from NetBSD 3.0 have been fixed.
21995         * doc/posix-functions/frexp.texi (frexp): Document bug.
21996         Reported by Thomas Klausner.
21997
21998         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22000         literal -0.0.
22001         Reported by Jonathan C. Patschke <jp@centtech.com>.
22002
22003 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22004
22005         * lib/glthread/cond.h: Use dummy implementation also if
22006         USE_WIN32_THREADS.
22007
22008 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22009
22010         * modules/fnmatch-posix (License): Change to LGPLv2+.
22011         * modules/fnmatch-gnu (License): Likewise.
22012
22013 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22014
22015         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22016
22017 2008-09-11  Jim Meyering  <meyering@redhat.com>
22018
22019         * users.txt: Add gtk-vnc.
22020
22021 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22022
22023         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22024         rotate amounts.
22025
22026         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22027         required for 16-bit and 8-bit rotates.
22028         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22029         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22030         UINT8_MAX instead of hard-coded constants.
22031         Suggested by Paul Eggert.
22032
22033 2008-09-07  Bruno Haible  <bruno@clisp.org>
22034
22035         * tests/test-striconveh.c (main): Check behaviour when converting from
22036         UTF-7.
22037
22038         Make striconveh work better with stateful encodings.
22039         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22040         that iconv does not increment the inptr when returning -1/EINVAL.
22041
22042 2008-09-07  Bruno Haible  <bruno@clisp.org>
22043
22044         * build-aux/config.rpath: Update according to libtool-2.2.6.
22045         * build-aux/config.libpath: Likewise.
22046
22047 2008-09-06  Bruno Haible  <bruno@clisp.org>
22048
22049         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22050         * lib/freadptr.c (freadptr): Likewise.
22051         * lib/freadseek.c (freadptrinc): Likewise.
22052         Reported by Simon Josefsson.
22053
22054 2008-09-06  Bruno Haible  <bruno@clisp.org>
22055
22056         * modules/freadptr (License): Change to LGPLv2+.
22057         * modules/freadseek (License): Likewise.
22058         Suggested by Eric Blake.
22059
22060         * modules/memchr2 (License): Change to LGPLv2+.
22061         Approved by Eric Blake.
22062
22063 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22064             Bruno Haible  <bruno@clisp.org>
22065
22066         Make gnulib-tool work with native 'sed' on AIX.
22067         * gnulib-tool (sed_noop): New variable.
22068         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22069         func_add_or_update, func_create_testdir): Use it to initialize sed
22070         script variables.
22071         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22072
22073 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22074             Bruno Haible  <bruno@clisp.org>
22075
22076         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22077         also works after #include directives.
22078
22079 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22080
22081         getdate.y: reject an out-of-range timezone value
22082         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22083         the range [-24...+24].  When specified with only one or two digits,
22084         * tests/test-getdate.c: Tests for the fix.
22085         * doc/getdate.texi: Document this change.
22086
22087 2008-09-03  Bruno Haible  <bruno@clisp.org>
22088
22089         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22090
22091 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22092
22093         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22094         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22095         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22096         Blake <ebb9@byu.net>.
22097
22098         * tests/test-bitrotate.c: Add more test vectors.
22099
22100 2008-09-02  Eric Blake  <ebb9@byu.net>
22101
22102         vasnprintf-posix: handle large precision via %.*d
22103         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22104         when handling it ourselves.
22105         * tests/test-vasnprintf-posix.c (test_function): Add test.
22106         * tests/test-snprintf-posix.h (test_function): Likewise.
22107         * tests/test-sprintf-posix.h (test_function): Likewise.
22108         * tests/test-vasprintf-posix.c (test_function): Likewise.
22109         Reported by Alain Guibert.
22110
22111 2008-09-01  Eric Blake  <ebb9@byu.net>
22112
22113         c-stack: make configure-time check more robust
22114         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22115         successful sigaction call.
22116         Reported by Tom G. Christensen.
22117
22118 2008-09-01  Bruno Haible  <bruno@clisp.org>
22119
22120         New module 'findprog-lgpl'.
22121         * modules/findprog-lgpl: New file.
22122         * lib/findprog-lgpl.c: New file.
22123         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22124         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22125         to decide whether to use strdup or xstrdup, concatenated_filename or
22126         xconcatenated_filename.
22127
22128 2008-09-01  Bruno Haible  <bruno@clisp.org>
22129
22130         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22131         'xconcat-filename' (GPL).
22132         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22133         (License): Change to LGPLv2+.
22134         * modules/xconcat-filename: New file.
22135         * lib/concat-filename.h (concatenated_filename): Change specification.
22136         (xconcatenated_filename): New declaration.
22137         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22138         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22139         memory situations.
22140         * lib/xconcat-filename.c: New file.
22141         * NEWS: Mention the change.
22142         * lib/findprog.c: Include concat-filename.h, not filename.h.
22143         (find_in_path): Use xconcatenated_filename instead of
22144         concatenated_filename.
22145         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22146         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22147         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22148         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22149         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22150         instead of concatenated_filename.
22151         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22152         (execute_java_class): Use xconcatenated_filename instead of
22153         concatenated_filename.
22154         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22155         * modules/javacomp (Depends-on): Likewise.
22156         * modules/javaexec (Depends-on): Likewise.
22157
22158 2008-09-01  Bruno Haible  <bruno@clisp.org>
22159
22160         Split module 'filename' into 'filename' and 'concat-filename'.
22161         * modules/filename: Keep only lib/filename.h.
22162         (License): Change to LGPLv2+.
22163         * modules/concat-filename: New file, extracted from modules/filename.
22164         * lib/filename.h (concatenated_filename): Remove declaration.
22165         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22166         * lib/concat-filename.c: Include concat-filename.h.
22167         * NEWS: Mention the change.
22168
22169 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22170
22171         * lib/bitrotate.h (rotl8, rotr8): Add.
22172
22173         * modules/bitrotate (configure.ac): Need
22174         AC_REQUIRE([AC_C_INLINE]).
22175         (Description): Mention stdint.h.  Reported by Bruno Haible
22176         <bruno@clisp.org>.
22177
22178         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22179         Paolo Bonzini <bonzini@gnu.org>.
22180
22181 2008-08-31  Bruno Haible  <bruno@clisp.org>
22182
22183         Assume Solaris specific bi-arch conventions on Solaris systems.
22184         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22185         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22186         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22187         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22188         like acl_libdirstem.
22189         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22190         acl_libdirstem.
22191         * NEWS: Mention the change.
22192         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22193
22194 2008-08-31  Jim Meyering  <meyering@redhat.com>
22195
22196         * lib/strftime.h: Add comments describing the two added arguments.
22197
22198         remove duplicate #include directives
22199         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22200         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22201
22202 2008-08-31  Bruno Haible  <bruno@clisp.org>
22203
22204         New module 'sigpipe-die'.
22205         * modules/sigpipe-die: New file.
22206         * lib/sigpipe-die.h: New file.
22207         * lib/sigpipe-die.c: New file.
22208         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22209
22210 2008-08-31  Bruno Haible  <bruno@clisp.org>
22211
22212         Don't override previously installed signal handlers.
22213         * lib/fatal-signal.c (saved_sigactions): New variable.
22214         (uninstall_handlers): Reset the signal to the saved handler, not
22215         to SIG_DFL (except when ignored).
22216         (install_handlers): Save the previous handlers.
22217
22218 2008-08-30  Bruno Haible  <bruno@clisp.org>
22219
22220         * gnulib-tool (func_reset_sigpipe): New function.
22221         (func_get_automake_snippet, func_modules_transitive_closure,
22222         func_import): Invoke it before a join command that reads from stdin,
22223         to avoid "echo: write error: Broken pipe" error messages on stderr.
22224         Reported by Sam Steingold <sds@gnu.org>.
22225
22226 2008-08-30  Bruno Haible  <bruno@clisp.org>
22227
22228         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22229         Code copied from m4/open.m4.
22230         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22231         access and the filename ends in a slash. Code copied from lib/open.c.
22232         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22233         * tests/test-fopen.c (main): Check against bug with trailing slash.
22234
22235 2008-08-29  Bruno Haible  <bruno@clisp.org>
22236
22237         Avoid some "gcc -pedantic" warnings.
22238         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22239         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22240         * lib/dirent.in.h: Likewise.
22241         * lib/fcntl.in.h: Likewise.
22242         * lib/float.in.h: Likewise.
22243         * lib/iconv.in.h: Likewise.
22244         * lib/inttypes.in.h: Likewise.
22245         * lib/locale.in.h: Likewise.
22246         * lib/math.in.h: Likewise.
22247         * lib/netinet_in.in.h: Likewise.
22248         * lib/search.in.h: Likewise.
22249         * lib/signal.in.h: Likewise.
22250         * lib/stdarg.in.h: Likewise.
22251         * lib/stdint.in.h: Likewise.
22252         * lib/stdio.in.h: Likewise.
22253         * lib/stdlib.in.h: Likewise.
22254         * lib/string.in.h: Likewise.
22255         * lib/strings.in.h: Likewise.
22256         * lib/sys_select.in.h: Likewise.
22257         * lib/sys_socket.in.h: Likewise.
22258         * lib/sys_stat.in.h: Likewise.
22259         * lib/sys_time.in.h: Likewise.
22260         * lib/sysexits.in.h: Likewise.
22261         * lib/time.in.h: Likewise.
22262         * lib/unistd.in.h: Likewise.
22263         * lib/wchar.in.h: Likewise.
22264         * lib/wctype.in.h: Likewise.
22265         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22266         * modules/fchdir (Makefile.am): Likewise.
22267         * modules/fcntl (Makefile.am): Likewise.
22268         * modules/float (Makefile.am): Likewise.
22269         * modules/iconv_open (Makefile.am): Likewise.
22270         * modules/inttypes (Makefile.am): Likewise.
22271         * modules/locale (Makefile.am): Likewise.
22272         * modules/math (Makefile.am): Likewise.
22273         * modules/netinet_in (Makefile.am): Likewise.
22274         * modules/search (Makefile.am): Likewise.
22275         * modules/signal (Makefile.am): Likewise.
22276         * modules/stdarg (Makefile.am): Likewise.
22277         * modules/stdint (Makefile.am): Likewise.
22278         * modules/stdio (Makefile.am): Likewise.
22279         * modules/stdlib (Makefile.am): Likewise.
22280         * modules/string (Makefile.am): Likewise.
22281         * modules/strings (Makefile.am): Likewise.
22282         * modules/sys_select (Makefile.am): Likewise.
22283         * modules/sys_socket (Makefile.am): Likewise.
22284         * modules/sys_stat (Makefile.am): Likewise.
22285         * modules/sys_time (Makefile.am): Likewise.
22286         * modules/sysexits (Makefile.am): Likewise.
22287         * modules/time (Makefile.am): Likewise.
22288         * modules/unistd (Makefile.am): Likewise.
22289         * modules/wchar (Makefile.am): Likewise.
22290         * modules/wctype (Makefile.am): Likewise.
22291         Reported by Reuben Thomas <rrt@sc3d.org>.
22292
22293 2008-08-29  Bruno Haible  <bruno@clisp.org>
22294
22295         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22296         any more.
22297
22298 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22299
22300         * MODULES.html.sh (Misc): Add bitrotate.
22301
22302         * modules/bitrotate: New file.
22303
22304         * lib/bitrotate.h: New file.
22305
22306         * modules/bitrotate-tests: New file.
22307
22308         * tests/test-bitrotate.c: New file.
22309
22310         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22311         on the bitrotate module.
22312
22313         * lib/arctwo.c: Use new bitrotate module.
22314
22315 2008-08-29  Jim Meyering  <meyering@redhat.com>
22316
22317         bootstrap: merge changes from coreutils
22318         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22319         of copied files.  Remove a kludge, now that this is fixed.
22320         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22321         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22322         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22323
22324 2008-08-29  Bruno Haible  <bruno@clisp.org>
22325
22326         * MODULES.html.sh: Remove --cvs-urls option.
22327
22328 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22329
22330         maint.mk: adjust to file name change
22331         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22332
22333 2008-08-28  Jim Meyering  <meyering@redhat.com>
22334
22335         * modules/getndelim2 (License): Relicense to LGPLv2+.
22336         Approved by Richard Stallman for the version of 1995, and by
22337         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22338
22339 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22340
22341         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22342         dummy if one is not available.  Do not touch them if
22343         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22344         (getc_maybe_unlocked): New.
22345         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22346
22347 2008-08-26  Eric Blake  <ebb9@byu.net>
22348
22349         doc/INSTALL: resync from autoconf
22350         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22351         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22352         moving...
22353         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22354         * INSTALL: Regenerate.
22355         * INSTALL.ISO: New file.
22356         * INSTALL.UTF-8: Likewise.
22357
22358 2008-08-26  Jim Meyering  <meyering@redhat.com>
22359
22360         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22361         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22362         these definitions conditional, so that they may be overridden, too.
22363
22364 2008-08-26  Bruno Haible  <bruno@clisp.org>
22365
22366         Generate INSTALL file variants with prettier quotes.
22367         * doc/Makefile (INSTALL_PRELUDE): New macro.
22368         (INSTALL): Use it.
22369         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22370
22371 2008-08-26  Bruno Haible  <bruno@clisp.org>
22372
22373         Run makeinfo in an English locale.
22374         * doc/Makefile (MAKEINFO): New variable.
22375
22376 2008-08-26  Bruno Haible  <bruno@clisp.org>
22377
22378         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22379         Suggested by Eric Blake.
22380
22381 2008-08-25  Bruno Haible  <bruno@clisp.org>
22382
22383         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22384
22385 2008-08-25  Eric Blake  <ebb9@byu.net>
22386
22387         c-stack: test that stack overflow can be caught
22388         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22389         that platform allows handling stack overflow; at least OS/2 EMX
22390         has sigaltstack, but crashes before transferring control to
22391         handler on stack overflow.
22392         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22393         check for HAVE_STACK_OVERFLOW_HANDLING.
22394         Reported by Elbert Pol.
22395
22396 2008-08-25  Bruno Haible  <bruno@clisp.org>
22397
22398         * doc/posix-functions/strftime.texi: Fix description of strftime
22399         module.
22400
22401 2008-08-24  Bruno Haible  <bruno@clisp.org>
22402
22403         * tests/uniwidth/test-uc_width2.c: New file.
22404         * tests/uniwidth/test-uc_width2.sh: New file.
22405         * modules/uniwidth/width-tests (Files): Add the new files.
22406         (TESTS): Add uniwidth/test-uc_width2.sh.
22407         (TESTS_ENVIRONMENT): New variable.
22408         (check_PROGRAMS): Add test-uc_width2.
22409         (test_uc_width2_SOURCES): New variable.
22410
22411         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22412         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22413         not 0x00AB.
22414         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22415
22416 2008-08-22  Eric Blake  <ebb9@byu.net>
22417
22418         test-lock, test-tls: mention why a test is skipped
22419         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22420         skipped.
22421         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22422
22423         count-one-bits: relax license
22424         * modules/count-one-bits (License): Relicense to LGPLv2+.
22425         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22426
22427 2008-08-22  Andreas Schwab  <schwab@suse.de>
22428
22429         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22430         Remove spurious space in assignment.
22431
22432 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22433
22434         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22435         Paul Eggert <eggert@CS.UCLA.EDU>.
22436
22437 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22438
22439         * modules/gettext: Add m4/threadlib.m4.
22440
22441 2008-08-19  Eric Blake  <ebb9@byu.net>
22442
22443         test-c-stack: fix compilation failure on FreeBSD 5.0
22444         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22445         headers before <sys/resource.h>.
22446         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22447         the bug.
22448         Reported by Nelson H. F. Beebe.
22449
22450         strverscmp: migrate from "strverscmp.h" to <string.h>
22451         * modules/string (Makefile.am): Add new hooks.
22452         * modules/strverscmp (Files): Remove strverscmp.h.
22453         (Depends-on): Add string.
22454         (configure.ac): Add indicator.
22455         (Include): Mention new header.
22456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22457         defaults.
22458         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22459         results.
22460         * lib/strverscmp.h: Delete.
22461         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22462         * tests/test-strverscmp.c (includes): Adjust client.
22463         * lib/check-version.c (includes): Likewise.
22464         * NEWS: Document the change.
22465
22466         strverscmp: add unit test
22467         * modules/strverscmp-tests: New file.
22468         * tests/test-strverscmp.c: Likewise.
22469
22470 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22471
22472         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22473         regarding Windows crypto stuff, from Mono.
22474
22475 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22476
22477         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22478         if present, for intel RND.  Return error on failures.
22479
22480 2008-08-18  Ben Pfaff  <blp@gnu.org>
22481
22482         gitlog-to-changelog: give better diagnostic for failed pipe-open
22483         * build-aux/gitlog-to-changelog: Improve error message: suggest
22484         that the version of Git may be too old.
22485
22486 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22487
22488         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22489         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22490
22491 2008-08-18  Bruno Haible  <bruno@clisp.org>
22492
22493         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22494         pthread_in_use().
22495
22496 2008-08-18  Bruno Haible  <bruno@clisp.org>
22497
22498         * lib/glthread/threadlib.c: Include <pthread.h>.
22499
22500 2008-08-18  Bruno Haible  <bruno@clisp.org>
22501
22502         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22503         glthread_recursive_lock_* macros.
22504         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22505         Fix syntax error.
22506
22507 2008-08-18  Bruno Haible  <bruno@clisp.org>
22508
22509         * lib/glthread/thread.c: Avoid forcing a context switch right after
22510         thread creation.
22511
22512 2008-08-17  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22515         * lib/glthread/thread.h: Provide Win32 specific implementation.
22516         * modules/thread (Files): Add lib/glthread/thread.c.
22517         (Depends-on): Add lock.
22518         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22519
22520 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22521
22522         New module 'yield'.
22523         * modules/yield: New file.
22524         * lib/glthread/yield.h: New file.
22525         * m4/yield.m4: New file.
22526         * MODULES.html.sh (Multithreading): Add yield.
22527
22528 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22529
22530         New module 'thread'.
22531         * modules/thread: New file.
22532         * lib/glthread/thread.h: New file.
22533         * m4/thread.m4: New file.
22534         * MODULES.html.sh (Multithreading): Add thread.
22535
22536 2008-08-17  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/glthread/lock.h: Include <stdlib.h> always.
22539         * lib/glthread/tls.h: Likewise.
22540         * lib/glthread/cond.h: Likewise.
22541
22542 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22543
22544         New module 'cond'.
22545         * modules/cond: New file.
22546         * lib/glthread/cond.h: New file.
22547         * lib/glthread/cond.c: New file.
22548         * m4/cond.m4: New file.
22549         * MODULES.html.sh (Multithreading): Add cond.
22550
22551 2008-08-16  Eric Blake  <ebb9@byu.net>
22552
22553         c-stack: fix regression on Irix 5.3 from 2008-06-21
22554         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22555         sa_sigaction...
22556         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22557         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22558         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22559         * modules/signal (Makefile.am): Use the value.
22560         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22561         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22562         * doc/posix-headers/signal.texi (signal.h): Document this
22563         portability issue.
22564         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22565         Reported by Tom G. Christensen.
22566
22567 2008-08-17  Bruno Haible  <bruno@clisp.org>
22568
22569         New module 'threadlib'.
22570         * modules/threadlib: New file.
22571         * lib/glthread/threadlib.c: New file, extracted from
22572         lib/glthread/lock.c.
22573         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22574         functions.
22575         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22576         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22577         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22578         macros.
22579         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22580         (gl_DISABLE_THREADS): Remove macro.
22581         * modules/lock (Files): Remove build-aux/config.rpath.
22582         (Depends-on): Remove havelib. Add threadlib.
22583         (configure.ac-early): Remove section.
22584         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22585         * modules/tls (Depends-on): Remove lock. Add threadlib.
22586         (Link): New section, copied from threadlib.
22587         * MODULES.html.sh (Multithreading): Add threadlib.
22588
22589 2008-08-14  Bruno Haible  <bruno@clisp.org>
22590
22591         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22592         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22593         glthread_rwlock_unlock, glthread_rwlock_destroy,
22594         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22595         glthread_recursive_lock_destroy): Define as macros always.
22596         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22597         glthread_lock_lock.
22598         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22599         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22600         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22601         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22602         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22603         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22604         (glthread_recursive_lock_lock_func): Renamed from
22605         glthread_recursive_lock_lock.
22606         (glthread_recursive_lock_unlock_func): Renamed from
22607         glthread_recursive_lock_unlock.
22608         (glthread_recursive_lock_destroy_func): Renamed from
22609         glthread_recursive_lock_destroy.
22610
22611 2008-08-14  Bruno Haible  <bruno@clisp.org>
22612
22613         * lib/glthread/lock.h: Renamed from lib/lock.h.
22614         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22615         * lib/glthread/tls.h: Renamed from lib/tls.h.
22616         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22617         * lib/fstrcmp.c: Update includes.
22618         * lib/strsignal.c: Update includes.
22619         * modules/lock (Files, Makefile.am): Update.
22620         (Include): Change to "glthread/lock.h".
22621         * modules/tls (Files, Makefile.am): Update.
22622         (Include): Change to "glthread/tls.h".
22623         * tests/test-lock.c: Update includes.
22624         * tests/test-tls.c: Update includes.
22625         * NEWS: Mention the renamed header files.
22626
22627 2008-08-11  Jim Meyering  <meyering@redhat.com>
22628
22629         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22630
22631 2008-08-11  Eric Blake  <ebb9@byu.net>
22632
22633         test-c-stack: avoid C99-ism
22634         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22635         before statement.
22636         Reported by Alain Guibert.
22637
22638 2008-08-10  Jim Meyering  <meyering@redhat.com>
22639
22640         ensure that return value of uinttostr et al are not ignored
22641         * lib/inttostr.h (__GNUC_PREREQ): Define.
22642         (__attribute_warn_unused_result__): Define.
22643         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22644
22645 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22646
22647         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22648         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22649
22650 2008-08-07  Jim Meyering  <meyering@redhat.com>
22651
22652         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22653
22654         * modules/mkstemp (License): Relicense under LGPLv2+.
22655         * modules/tempname (License): Likewise.
22656
22657 2008-08-06  Bruno Haible  <bruno@clisp.org>
22658
22659         * lib/poll.c (poll): Further micro-optimization.
22660
22661 2008-08-06  Jim Meyering  <meyering@redhat.com>
22662
22663         inet_pton.c: use locale-independent tolower
22664         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22665         (inet_pton6): Use c_tolower rather than tolower.
22666         * modules/inet_pton (Depends-on): Add c-ctype.
22667
22668 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22669
22670         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22671         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22672
22673 2008-08-06  Jim Meyering  <meyering@redhat.com>
22674
22675         * modules/inet_pton (License): Relicense under LGPLv2+.
22676
22677 2008-08-03  Bruno Haible  <bruno@clisp.org>
22678
22679         Additional non-aborting API for lock and tls.
22680         * lib/lock.h: Include <errno.h>.
22681         (glthread_lock_init): New macro/function.
22682         (gl_lock_init): Define as wrapper around glthread_lock_init.
22683         (glthread_lock_lock): New macro/function.
22684         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22685         (glthread_lock_unlock): New macro/function.
22686         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22687         (glthread_lock_destroy): New macro/function.
22688         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22689         (glthread_rwlock_init): New macro/function.
22690         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22691         (glthread_rwlock_rdlock): New macro/function.
22692         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22693         (glthread_rwlock_wrlock): New macro/function.
22694         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22695         (glthread_rwlock_unlock): New macro/function.
22696         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22697         (glthread_rwlock_destroy): New macro/function.
22698         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22699         (glthread_recursive_lock_init): New macro/function.
22700         (gl_recursive_lock_init): Define as wrapper around
22701         glthread_recursive_lock_init.
22702         (glthread_recursive_lock_lock): New macro/function.
22703         (gl_recursive_lock_lock): Define as wrapper around
22704         glthread_recursive_lock_lock.
22705         (glthread_recursive_lock_unlock): New macro/function.
22706         (gl_recursive_lock_unlock): Define as wrapper around
22707         glthread_recursive_lock_unlock.
22708         (glthread_recursive_lock_destroy): New macro/function.
22709         (gl_recursive_lock_destroy): Define as wrapper around
22710         glthread_recursive_lock_destroy.
22711         (glthread_once): New macro/function.
22712         (gl_once): Define as wrapper around glthread_once.
22713         Update function declarations.
22714         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22715         glthread_rwlock_init. Return error code.
22716         (glthread_rwlock_rdlock_multithreaded): Renamed from
22717         glthread_rwlock_rdlock. Return error code.
22718         (glthread_rwlock_wrlock_multithreaded): Renamed from
22719         glthread_rwlock_wrlock. Return error code.
22720         (glthread_rwlock_unlock_multithreaded): Renamed from
22721         glthread_rwlock_unlock. Return error code.
22722         (glthread_rwlock_destroy_multithreaded): Renamed from
22723         glthread_rwlock_destroy. Return error code.
22724         (glthread_recursive_lock_init_multithreaded): Renamed from
22725         glthread_recursive_lock_init. Return error code.
22726         (glthread_recursive_lock_lock_multithreaded): Renamed from
22727         glthread_recursive_lock_lock. Return error code.
22728         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22729         glthread_recursive_lock_unlock. Return error code.
22730         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22731         glthread_recursive_lock_destroy. Return error code.
22732         (glthread_once_call): Make static.
22733         (glthread_once_multithreaded): Renamed from glthread_once.
22734         * lib/tls.h: Include <errno.h>.
22735         (glthread_tls_key_init): New macro/function.
22736         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22737         (glthread_tls_set): New macro/function.
22738         (gl_tls_set): Define as wrapper around glthread_tls_set.
22739         (glthread_tls_key_destroy): New macro/function.
22740         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22741         Update function declarations.
22742         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22743         glthread_tls_get.
22744         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22745
22746 2008-08-04  Eric Blake  <ebb9@byu.net>
22747
22748         gnumakefile: use space, not TAB, outside of targets
22749         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22750
22751 2008-08-02  Jim Meyering  <meyering@redhat.com>
22752
22753         getdate.y: avoid locale-dependent date parsing failure
22754         In Turkish locales, getdate would fail to recognize keywords
22755         containing a lowercase "i".  The solution is not to rely on
22756         locale-sensitive case-conversion.
22757         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22758         (lookup_word): Use c_toupper in place of toupper.
22759         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22760         Reported by Vefa Bicakci <bicave@superonline.com> in
22761         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22762         * modules/getdate (Depends-on): Add c-ctype.
22763
22764 2008-08-02  Bruno Haible  <bruno@clisp.org>
22765
22766         * gnulib-tool (func_import): When updating or creating a .gitignore
22767         file, prepend each added line with a slash, and ignore leading slashes
22768         from the existing lines.
22769         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22770
22771 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22772
22773         Portability fix for GNU make 3.79.1.
22774         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22775         versions do not understand.
22776
22777 2008-08-01  Bruno Haible  <bruno@clisp.org>
22778
22779         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22780         * tests/test-isnanf.h (zero): New variable.
22781         (main): Avoid literal -0.0f.
22782         * tests/test-isnand.h (zero): New variable.
22783         (main): Avoid literal -0.0.
22784         * tests/test-isnanl.h (zero): New variable.
22785         (main): Avoid literal -0.0L.
22786         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22787         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22788         -0.0, -0.0L.
22789         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22790         (test_signbitd): Avoid literal -0.0.
22791         (test_signbitl): Avoid literal -0.0L.
22792         * tests/test-ceilf1.c (zero): New variable.
22793         (main): Avoid literal -0.0f.
22794         * tests/test-ceill.c (zero): New variable.
22795         (main): Avoid literal -0.0L.
22796         * tests/test-floorf1.c (zero): New variable.
22797         (main): Avoid literal -0.0f.
22798         * tests/test-floorl.c (zero): New variable.
22799         (main): Avoid literal -0.0L.
22800         * tests/test-roundf1.c (zero): New variable.
22801         (main): Avoid literal -0.0f.
22802         * tests/test-round1.c (zero): New variable.
22803         (main): Avoid literal -0.0.
22804         * tests/test-roundl.c (zero): New variable.
22805         (main): Avoid literal -0.0L.
22806         * tests/test-truncf1.c (zero): New variable.
22807         (main): Avoid literal -0.0f.
22808         * tests/test-trunc1.c (zero): New variable.
22809         (main): Avoid literal -0.0.
22810         * tests/test-truncl.c (zero): New variable.
22811         (main): Avoid literal -0.0L.
22812         * tests/test-frexp.c (zero): New variable.
22813         (main): Avoid literal -0.0.
22814         * tests/test-frexpl.c (zero): New variable.
22815         (main): Avoid literal -0.0L.
22816         * tests/test-ldexpl.c (zero): New variable.
22817         (main): Avoid literal -0.0L.
22818         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22819         (zerod, zerol): New variables.
22820         (test_function): Avoid literals -0.0, -0.0L.
22821         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22822         (zerod, zerol): New variables.
22823         (test_function): Avoid literals -0.0, -0.0L.
22824         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22825         (zerod, zerol): New variables.
22826         (test_function): Avoid literals -0.0, -0.0L.
22827         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22828         (zerod, zerol): New variables.
22829         (test_function): Avoid literals -0.0, -0.0L.
22830         * tests/test-strtod.c (zero): New variable.
22831         (main): Avoid literal -0.0.
22832         Reported by Jonathan C. Patschke <jp@centtech.com>.
22833
22834 2008-07-31  Jim Meyering  <meyering@redhat.com>
22835
22836         sha256.h: correct definition of SHA224_DIGEST_SIZE
22837         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22838         Reported by Paulie Pena IV <paulie4@gmail.com>.
22839         Define as 224 / 8, rather than as a literal.
22840         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22841         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22842         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22843
22844 2008-07-31  Bruno Haible  <bruno@clisp.org>
22845
22846         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22847         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22848         Reported by Jonathan Patschke <jp@centtech.com>.
22849
22850 2008-07-31  Bruno Haible  <bruno@clisp.org>
22851
22852         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22853         Reported by Paolo Bonzini <bonzini@gnu.org>.
22854
22855 2008-07-30  Eric Blake  <ebb9@byu.net>
22856
22857         test-strtod: allow compilation without -lm
22858         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22859         Reported by Dennis Clarke <blastwave@gmail.com>.
22860
22861 2008-07-28  Jim Meyering  <meyering@redhat.com>
22862
22863         bootstrap: work also when there are no .po files in po/
22864         * build-aux/bootstrap (update_po_files): Complete the change
22865         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22866
22867 2008-07-27  Jim Meyering  <meyering@redhat.com>
22868
22869         * users.txt: Add zile.
22870
22871 2008-07-26  Ben Pfaff  <blp@gnu.org>
22872
22873         Add missing dependencies on new m4/exponent[fdl].m4 files.
22874         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22875         * modules/isnand-nolibm: Add m4/exponentd.m4.
22876         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22877         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22878         m4/isnan[fdl].m4, because the macros actually used moved.
22879         Reported by Jim Meyering.
22880
22881 2008-07-14  Ben Pfaff  <blp@gnu.org>
22882
22883         Add isinf module.
22884         * lib/isinf.c: New file.
22885         * lib/math.in.h: Define isinf macro if we have decided to replace
22886         it.
22887         * m4/isinf.m4: New file.
22888         * m4/math_h.m4: Initialize and substitute variables for isinf
22889         module.
22890         * modules/isinf: New file.
22891         * modules/isinf-tests: New file.
22892         * modules/math: Add substitutions for new module.
22893         * tests/test-isinf.c: New file.
22894         * doc/posix-functions/isinf.texi: Mention new module.
22895         * MODULES.html.sh: Mention new module.
22896
22897 2008-07-14  Ben Pfaff  <blp@gnu.org>
22898
22899         Factor out some macros for use by additional modules.
22900         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22901         exponentf.m4.
22902         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22903         exponentd.m4.
22904         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22905         file exponentl.m4.
22906         * m4/exponentf.m4: New file.
22907         * m4/exponentd.m4: New file.
22908         * m4/exponentl.m4: New file.
22909         * modules/isnanf: Use new file m4/exponentf.m4.
22910         * modules/isnand: Use new file m4/exponentd.m4.
22911         * modules/isnanl: Use new file m4/exponentl.m4.
22912
22913 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22914
22915         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22916         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22917         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22918         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22919
22920         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22921         readlink on platforms without PATH_MAX.
22922
22923 2008-07-21  Eric Blake  <ebb9@byu.net>
22924
22925         Warn, not fail, on stale version.
22926         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22927
22928         Don't allow installation with stale devel version number.
22929         * top/GNUmakefile (_is-install-target): New macro.
22930         (_curr-ver): Forbid installation with stale version number.
22931
22932 2008-07-20  Bruno Haible  <bruno@clisp.org>
22933
22934         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22935         TESTS_ENVIRONMENT.
22936         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22937
22938 2008-07-20  Bruno Haible  <bruno@clisp.org>
22939
22940         * lib/c-stack.h (c_stack_action): Add documentation.
22941         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22942
22943 2008-07-20  Bruno Haible  <bruno@clisp.org>
22944
22945         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22946         * modules/readlink (License): Likewise.
22947
22948 2008-07-17  Eric Blake  <ebb9@byu.net>
22949
22950         * modules/c-stack (Link): Fix typo.
22951
22952         Make c-stack use libsigsegv, when available.
22953         * modules/c-stack (Depends-on): Add libsigsegv.
22954         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22955         needed.
22956         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22957         (segv_handler, overflow_handler, c_stack_action)
22958         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22959         implementation when libsigsegv is available, but only when using
22960         the library is necessary.
22961         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22962         comment, explaining why XSI check fails on Linux.
22963         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22964         * tests/test-c-stack2.sh: Tweak skip message.
22965         * NEWS: Document new link-time requirements.
22966
22967 2008-07-16  Eric Blake  <ebb9@byu.net>
22968
22969         c-stack: Expose false positives when not using libsigsegv.
22970         * modules/c-stack-tests (Files): Expand test.
22971         * tests/test-c-stack.c (main): Add means to conditionally trigger
22972         non-overflow SIGSEGV.
22973         * tests/test-c-stack2.sh: New file.
22974
22975 2008-07-14  Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22978         Reported by Eric Blake.
22979
22980 2008-07-14  Sam Steingold  <sds@gnu.org>
22981             Bruno Haible  <bruno@clisp.org>
22982
22983         New module libsigsegv.
22984         * modules/libsigsegv: New file.
22985         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22986         modifications.
22987         * MODULES.html.sh (Signal handling): New section.
22988
22989 2008-07-14  Bruno Haible  <bruno@clisp.org>
22990
22991         * modules/unictype/ctype-* (Description): Add the word "function".
22992         Improves the resulting doc in MODULES.html.
22993
22994 2008-07-12  Ben Pfaff  <blp@gnu.org>
22995
22996         Add longlong module.
22997         * modules/longlong: New file.
22998
22999 2008-07-12  Bruno Haible  <bruno@clisp.org>
23000
23001         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23002         to empty.
23003
23004 2008-07-10  Ben Pfaff  <blp@gnu.org>
23005
23006         Add isnan module.
23007         * doc/posix-functions/isnan.texi: Mention new module.
23008         * lib/math.in.h: Define isnan macro if we have decided to replace
23009         it.
23010         * m4/isnan.m4: New file.
23011         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23012         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23013         also.
23014         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23015         redundancy.
23016         * m4/math_h.m4: Initialize and substitute variables for isnan
23017         module.
23018         * modules/isnan: New file.
23019         * modules/isnan-tests: New file.
23020         * modules/math: Add substitutions for new module.
23021         * tests/test-isnan.c: New file.
23022         * MODULES.html.sh: Mention new module.
23023
23024 2008-07-10  Ben Pfaff  <blp@gnu.org>
23025
23026         Add isnanf module.
23027         * lib/isnanf.m4: New file.
23028         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23029         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23030         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23031         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23032         * modules/isnanf: New file.
23033         * modules/isnanf-tests: New file.
23034         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23035         files.
23036         * tests/test-isnanf-nolibm.c: factored most of its contents into
23037         new file tests/test-isnanf.h.
23038         * tests/test-isnanf.h: New file.
23039         * tests/test-isnanf.c: New file.
23040         * MODULES.html.sh: Mention new module.
23041         * doc/glibc-functions/isnanf.texi: Mention new module.
23042
23043 2008-07-10  Ben Pfaff  <blp@gnu.org>
23044
23045         Add isnand module.
23046         * lib/isnand.h: New file.
23047         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23048         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23049         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23050         functionality also.
23051         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23052         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23053         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23054         * modules/isnand: New file.
23055         * modules/isnand-tests: New file.
23056         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23057         files.
23058         * tests/test-isnand-nolibm.c: factored most of its contents into
23059         new file tests/test-isnand.h.
23060         * tests/test-isnand.h: New file.
23061         * tests/test-isnand.c: New file.
23062         * MODULES.html.sh: Mention new module.
23063
23064 2008-07-10  Ben Pfaff  <blp@gnu.org>
23065
23066         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23067         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23068         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23069         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23070         * modules/isnanf-nolibm: Update references to renamed files.
23071         * modules/isnand-nolibm: Likewise.
23072         * modules/isnanf-nolibm-tests: Likewise.
23073         * modules/isnand-nolibm-tests: Likewise.
23074         * lib/frexp.c: Likewise.
23075         * lib/isfinite.c: Likewise.
23076         * lib/signbitd.c: Likewise.
23077         * lib/signbitf.c: Likewise.
23078         * lib/vasnprintf.c: Likewise.
23079         * tests/test-ceilf1.c: Likewise.
23080         * tests/test-ceilf2.c: Likewise.
23081         * tests/test-floorf1.c: Likewise.
23082         * tests/test-floorf2.c: Likewise.
23083         * tests/test-frexp.c: Likewise.
23084         * tests/test-round1.c: Likewise.
23085         * tests/test-round2.c: Likewise.
23086         * tests/test-roundf1.c: Likewise.
23087         * tests/test-strtod.c: Likewise.
23088         * tests/test-trunc1.c: Likewise.
23089         * tests/test-trunc2.c: Likewise.
23090         * tests/test-truncf1.c: Likewise.
23091         * tests/test-truncf2.c: Likewise.
23092         * NEWS: Mention the renamed header files.
23093
23094 2008-07-11  Jim Meyering  <meyering@redhat.com>
23095
23096         vc-list-files: make the last-resort awk code more portable
23097         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23098         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23099         does not support it.
23100
23101 2008-07-10  Eric Blake  <ebb9@byu.net>
23102
23103         Work with tar's bootstrap.
23104         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23105         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23106         an m4 comment.
23107
23108 2008-07-09  Jim Meyering  <meyering@redhat.com>
23109
23110         posix-shell.m4: fix typo that made this test malfunction
23111         * m4/posix-shell.m4: Remove capitalization in variable name.
23112
23113 2008-07-08  Bruno Haible  <bruno@clisp.org>
23114
23115         * m4/onceonly.m4: Update comments.
23116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23117
23118 2008-07-04  Jim Meyering  <meyering@redhat.com>
23119
23120         * users.txt: Add vc-dwim.
23121         (bison, coreutils): Use the gitweb URL.
23122
23123 2008-07-03  Jim Meyering  <meyering@redhat.com>
23124
23125         * users.txt: Add libffcall.  From Sam Steingold.
23126
23127 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23128
23129         getdate.y: do not ignore TZ with relative day, month or year offset
23130         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23131         relative-date-handling, since otherwise, the latter would clobber the
23132         sole output (an updated Start value) of the tz-handling block.
23133         * tests/test-getdate.c: Tests for the fix
23134
23135 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23136
23137         Recognize 'foo_LIBRARIES += libgnu.a'.
23138         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23139         makefile snippet has already specified an installation location,
23140         also using '+='.
23141
23142 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23143
23144         getdate.y: factor out common actions
23145         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23146         Use them in place of open-coded actions.
23147
23148 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23149
23150         Add self-test for getdate module.
23151         * modules/getdate-tests: New file.
23152         * tests/test-getdate.c: New file.
23153
23154 2008-06-29  Bruno Haible  <bruno@clisp.org>
23155
23156         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23157         .gitignore.
23158         Reported by Sylvain Beucler <beuc@beuc.net>.
23159
23160 2008-06-29  Bruno Haible  <bruno@clisp.org>
23161
23162         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23163         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23164
23165 2008-06-29  Bruno Haible  <bruno@clisp.org>
23166
23167         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23168         EXTRA_DIST.
23169         Reported by Sylvain Beucler <beuc@beuc.net>.
23170
23171 2008-06-26  Jim Meyering  <meyering@redhat.com>
23172
23173         make several modules depend on the "open" module
23174         This provides slightly increased consistency when opening-for-write
23175         the name of a non-directory spelled with a trailing slash.
23176         * modules/chdir-safer: Likewise.
23177         * modules/chown: Likewise.
23178         * modules/clean-temp: Likewise.
23179         * modules/copy-file: Likewise.
23180         * modules/fchdir: Likewise.
23181         * modules/fcntl-safer: Likewise.
23182         * modules/pipe: Likewise.
23183         * modules/utime: Likewise.
23184         Prompted by Eric Blake and Bruno Haible.
23185
23186 2008-06-24  Andreas Schwab  <schwab@suse.de>
23187
23188         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23189         literals can be used as initializers for global variables.
23190
23191 2008-06-23  Eric Blake  <ebb9@byu.net>
23192
23193         Make gnulib-cache.m4 easier to diff.
23194         * gnulib-tool (func_import): Allow newlines when reading cached
23195         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23196
23197 2008-06-23  Bruno Haible  <bruno@clisp.org>
23198
23199         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23200         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23201         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23202         m4/signalblocking.m4.
23203         (gl_PREREQ_SIGACTION): Don't invoke it.
23204         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23205         gl_PREREQ_SIG_HANDLER_H.
23206         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23207         Don't check for sigaction here.
23208
23209 2008-06-23  Bruno Haible  <bruno@clisp.org>
23210
23211         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23212         (install_handlers): Don't set the SA_RESETHAND flag.
23213
23214 2008-06-23  Bruno Haible  <bruno@clisp.org>
23215
23216         * m4/sigaction.m4: Comment fixes.
23217         * lib/signal.in.h: Likewise.
23218
23219 2008-06-23  Eric Blake  <ebb9@byu.net>
23220
23221         Fix typo.
23222         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23223
23224         Avoid SA_ namespace.
23225         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23226         Reported by Ralf Wildenhues.
23227
23228         Avoid test failure due to SA_RESTORER.
23229         * tests/test-sigaction.c (SA_MASK): New macro.
23230         (main): Avoid failing due to extension flags being set.
23231         Reported by Jim Meyering.
23232
23233         Revert use of sig-handler.h in sigprocmask.c.
23234         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23235         it requires the existence of struct sigaction.
23236         * lib/sigprocmask.c (handler_t): Restore typedef.
23237         (rpl_signal, old_handlers): Use local type.
23238
23239 2008-06-22  Bruno Haible  <bruno@clisp.org>
23240
23241         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23242         conditionally.
23243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23244
23245 2008-06-22  Bruno Haible  <bruno@clisp.org>
23246
23247         * doc/posix-functions/siginterrupt.texi: Move note.
23248
23249         * lib/signal.in.h (SA_RESTART): New macro.
23250         * lib/sigaction.c: Update comment.
23251
23252         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23253
23254         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23255         (gl_PREREQ_SIGPROCMASK): Invoke it.
23256         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23257
23258         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23259
23260         * lib/sigprocmask.c: Update a comment.
23261
23262 2008-06-21  Eric Blake  <ebb9@byu.net>
23263
23264         Use sigaction module rather than signal().
23265         * modules/c-stack (Depends-on): Add sigaction.
23266         * modules/fatal-signal (Depends-on): Likewise.
23267         * modules/nanosleep (Depends-on): Likewise.
23268         * modules/sigprocmask (Files): Add sig-handler.h.
23269         * modules/sigaction (Files): Likewise.
23270         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23271         Eggert.
23272         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23273         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23274         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23275         (init_fatal_signals): Likewise.
23276         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23277         (siginterrupt): Delete fallback.
23278         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23279         instead.
23280         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23281         siginterrupt.
23282
23283         New module sigaction, for mingw.
23284         * modules/sigaction: New module...
23285         * modules/sigaction-tests: ...and its test.
23286         * m4/sigaction.m4: New file.
23287         * lib/sigaction.c: Likewise.
23288         * tests/test-sigaction.c: Likewise.
23289         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23290         * modules/signal (Makefile.am): Likewise.
23291         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23292         needed.
23293         * doc/posix-headers/signal.texi (signal.h): Mention provided
23294         types.
23295         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23296         that sigaction is preferable.
23297         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23298         module.
23299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23300         sigaction.
23301
23302         Improve robustness of sigprocmask by overriding signal.
23303         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23304         is in use.
23305         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23306         (SIGKILL, SIGSTOP): Provide fallbacks.
23307         (rpl_signal): Implement.
23308         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23309         signal can be called inside handlers.
23310
23311         Fix nanosleep module on mingw.
23312         * modules/nanosleep (Depends-on): Add sys_select.
23313         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23314
23315         Fix licensing of sigprocmask.
23316         * modules/raise (License): Relicense as LGPL.
23317
23318 2008-06-21  Bruno Haible  <bruno@clisp.org>
23319
23320         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23321         result if it contains question marks.
23322         Reported by Michael Geng <linux@michaelgeng.de>.
23323
23324 2008-06-19  Bruno Haible  <bruno@clisp.org>
23325
23326         Fix CVS-ism.
23327         * doc/gnulib.texi: Include updated-stamp.texi.
23328         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23329         (updated-stamp.texi): New rule.
23330         (gnulib.info): Depend on it.
23331         * doc/.gitignore: Add updated-stamp.texi.
23332         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23333
23334 2008-06-19  Bruno Haible  <bruno@clisp.org>
23335
23336         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23337         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23338
23339 2008-06-19  Eric Blake  <ebb9@byu.net>
23340
23341         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23342         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23343         Reported by Stepan Kasal.
23344
23345 2008-06-18  Bruno Haible  <bruno@clisp.org>
23346
23347         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23348         Reported by Eric Blake.
23349
23350 2008-06-18  Eric Blake  <ebb9@byu.net>
23351
23352         Work around cygwin 1.5.25 strsignal bug.
23353         * tests/test-strsignal.c: Allow for const char *.
23354         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23355
23356 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23357
23358         * users.txt: Update URL to article and add author/date
23359         information.
23360
23361 2008-06-17  Bruno Haible  <bruno@clisp.org>
23362
23363         New macro gl_DISABLE_THREADS.
23364         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23365         if the user did not pass --enable-threads or --disable-threads option.
23366         (gl_DISABLE_THREADS): New macro.
23367         Reported by Eric Blake <ebb9@byu.net>.
23368
23369 2008-06-17  Bruno Haible  <bruno@clisp.org>
23370
23371         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23372         when the macro ignores it.
23373         Based on a patch by Eric Blake <ebb9@byu.net>.
23374
23375 2008-06-17  Bruno Haible  <bruno@clisp.org>
23376
23377         * modules/tls (License): Change to LGPLv2+.
23378         Reported by Eric Blake.
23379
23380 2008-06-17  Eric Blake  <ebb9@byu.net>
23381
23382         Simplify c-stack prerequisites.
23383         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23385         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23386         check.
23387         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23388         <sys/resource.h>.
23389
23390         Move c-stack test into testsuite.
23391         * modules/c-stack-tests: New file.
23392         * lib/c-stack.c [DEBUG]: Move test program...
23393         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23394         fail test if sigaltstack is lacking.
23395         * tests/test-c-stack.sh: New driver file.
23396
23397 2008-06-16  Eric Blake  <ebb9@byu.net>
23398
23399         Use raise module consistently.
23400         * modules/fatal-signal (Depends-on): Add raise.
23401         * modules/sigprocmask (Depends-on): Likewise.
23402         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23403         * lib/sigprocmask.c (sigprocmask): Likewise.
23404         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23405         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23406
23407         Fix compliance bug in sigpending.
23408         * lib/sigprocmask.c (sigpending): Return pending array via
23409         parameter, not return value.
23410
23411 2008-06-14  Eric Blake  <ebb9@byu.net>
23412
23413         Improve obstack-printf test code.
23414         * tests/test-obstack-printf.c (test_function): Fix comment, and
23415         simplify usage of obstack_* in macros.  Add a test for coverage.
23416         Reported by Bruno Haible.
23417
23418 2008-06-14  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23421         array size as a constant, not as a const variable.
23422         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23423         AC_USE_SYSTEM_EXTENSIONS.
23424         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23425         Test whether the obstack_printf function actually exists.
23426         * modules/obstack-printf (Depends-on): Add extensions.
23427         (Include): Remove obstack.h.
23428         * modules/obstack-printf-posix (Depends-on): Add extensions.
23429         (Include): Remove obstack.h.
23430
23431 2008-06-13  Eric Blake  <ebb9@byu.net>
23432
23433         Add obstack-printf and obstack-printf-posix modules.
23434         * modules/obstack-printf: New file.
23435         * modules/obstack-printf-posix: Likewise.
23436         * MODULES.html.sh (Misc): Mention them.
23437         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23438         Likewise.
23439         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23440         Likewise.
23441         * modules/stdio (Makefile.am): Accomodate new modules.
23442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23443         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23444         Declare.
23445         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23446         functions.
23447         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23448         (gl_REPLACE_OBSTACK_PRINTF): New macros
23449         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23450         * tests/test-obstack-printf.c: New file.
23451         * modules/obstack-printf-tests: Likewise.
23452         * modules/obstack-printf-posix-tests: Likewise.
23453
23454 2008-06-11  Bruno Haible  <bruno@clisp.org>
23455
23456         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23457         * lib/open.c: Include errno.h.
23458         (open): Fail when attempting to write to a file that has a trailing
23459         slash.
23460         * tests/test-open.c (main): Test against trailing slash bug.
23461         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23462
23463 2008-06-10  Bruno Haible  <bruno@clisp.org>
23464
23465         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23466         for $? to work inside the trap command, with various /bin/sh-s.
23467         * tests/test-vc-list-files-cvs.sh: Likewise.
23468
23469 2008-06-10  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/acl-internal.h: Don't include gettext.h here.
23472         * lib/set-mode-acl.c: Include gettext.h here.
23473         * lib/copy-acl.c: Likewise.
23474
23475 2008-06-10  Bruno Haible  <bruno@clisp.org>
23476
23477         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23478         * lib/wait-process.c (wait_subprocess): Likewise.
23479         * lib/execute.h (execute): Add termsigp argument.
23480         * lib/execute.c (execute): Likewise.
23481         * lib/csharpcomp.c (compile_csharp_using_pnet,
23482         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23483         * lib/csharpexec.c (execute_csharp_using_pnet,
23484         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23485         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23486         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23487         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23488         is_jikes_present): Update.
23489         * lib/javaexec.c (execute_java_class): Update.
23490         * lib/javaversion.c (execute_and_read_line): Update.
23491         * NEWS: Document the changes.
23492         Reported by Eric Blake.
23493
23494 2008-06-10  Eric Blake  <ebb9@byu.net>
23495
23496         Add missing include.
23497         * tests/test-strstr.c (includes): Add <signal.h>.
23498         * tests/test-strcasestr.c (includes): Likewise.
23499         * tests/test-memmem.c (includes): Likewise.
23500
23501 2008-06-10  Bruno Haible  <bruno@clisp.org>
23502
23503         * lib/wait-process.c (wait_subprocess): Add an assertion.
23504
23505 2008-06-10  Bruno Haible  <bruno@clisp.org>
23506
23507         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23508
23509 2008-06-10  Bruno Haible  <bruno@clisp.org>
23510
23511         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23512         using alarm().
23513         * tests/test-strcasestr.c (main): Likewise.
23514         * tests/test-strstr.c (main): Likewise.
23515
23516 2008-06-09  Bruno Haible  <bruno@clisp.org>
23517
23518         Work around the Solaris 10 ACE ACLs ABI change.
23519         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23520         declare if ACL_NO_TRIVIAL is present.
23521         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23522         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23523         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23524         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23525         define if ACL_NO_TRIVIAL is present.
23526         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23527         and use the current ABI.
23528         (file_has_acl): Use same #if condition as elsewhere.
23529         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23530         in use, and use the current ABI.
23531         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23532         Reported by Jim Meyering.
23533
23534 2008-06-09  Eric Blake  <ebb9@byu.net>
23535
23536         Work around environments that (stupidly) ignore SIGALRM.
23537         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23538         before using alarm().
23539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23541         Reported by Ian Beckwith <ianb@erislabs.net>.
23542
23543         Produce autobuild blurb earlier in log.
23544         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23545
23546 2008-06-09  Jim Meyering  <meyering@redhat.com>
23547         and Ondřej Vašík  <ovasik@redhat.com>
23548
23549         utimens.c: correct kernel bug work-around
23550         Ondřej Vašík found that the invalid return value of 280 indicates
23551         failure, not success, and the kernel bug we're trying to work
23552         around affects not just the utimensat call, but also the fallback
23553         futimens call.
23554         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23555         not success.
23556         [HAVE_FUTIMENS]: Use the same work-around, here.
23557
23558 2008-06-09  Jim Meyering  <meyering@redhat.com>
23559
23560         add more guards around definition of ACE_-related code
23561         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23562         ALLOW and ACE_OWNER are also defined.
23563
23564 2008-06-08  Bruno Haible  <bruno@clisp.org>
23565
23566         * lib/acl-internal.h: Add me as co-author.
23567         * lib/file-has-acl.c: Likewise.
23568         * lib/set-mode-acl.c: Likewise.
23569         * lib/copy-acl.c: Likewise.
23570
23571 2008-06-08  Bruno Haible  <bruno@clisp.org>
23572
23573         Add support for AIX ACLs.
23574         * lib/acl-internal.h (acl_nontrivial): New declaration.
23575         * lib/file-has-acl.c (acl_nontrivial): New function.
23576         (file_has_acl): Add implementation using AIX 4 ACL API.
23577         * lib/set-mode-acl.c (qset_acl): Likewise.
23578         * lib/copy-acl.c (qcopy_acl): Likewise.
23579
23580 2008-06-08  Bruno Haible  <bruno@clisp.org>
23581
23582         Add support for HP-UX ACLs.
23583         * lib/acl-internal.h (acl_nontrivial): New declaration.
23584         * lib/file-has-acl.c (acl_nontrivial): New function.
23585         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23586         * lib/set-mode-acl.c (qset_acl): Likewise.
23587         * lib/copy-acl.c (qcopy_acl): Likewise.
23588
23589 2008-06-08  Bruno Haible  <bruno@clisp.org>
23590
23591         Add support for Cygwin ACLs.
23592         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23593         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23594         the chmod_or_fchmod call.
23595         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23596
23597 2008-06-08  Bruno Haible  <bruno@clisp.org>
23598
23599         Fix bug with setuid modes in Solaris 10+ code.
23600         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23601         succeeded, when the mode contains some special bits.
23602
23603 2008-06-08  Bruno Haible  <bruno@clisp.org>
23604
23605         Add support for Solaris 7..10 ACLs.
23606         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23607         declarations.
23608         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23609         functions.
23610         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23611         * lib/set-mode-acl.c (qset_acl): Likewise.
23612         * lib/copy-acl.c (qcopy_acl): Likewise.
23613
23614 2008-06-08  Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23617         declaration.
23618         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23619         (acl_access_nontrivial): Remove MacOS X case.
23620         (file_has_acl): Use acl_extended_nontrivial.
23621         * lib/copy-acl.c (qcopy_acl): Likewise.
23622
23623 2008-06-08  Bruno Haible  <bruno@clisp.org>
23624
23625         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23626
23627 2008-06-08  Jim Meyering  <meyering@redhat.com>
23628
23629         * modules/acl (Maintainer): Add Bruno Haible.
23630
23631 2008-06-07  Bruno Haible  <bruno@clisp.org>
23632
23633         Improve support for Tru64 ACLs.
23634         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23635         ACL on OSF/1.
23636
23637 2008-06-07  Bruno Haible  <bruno@clisp.org>
23638
23639         Add support for MacOS X ACLs.
23640         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23641         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23642         * lib/set-mode-acl.c (qset_acl): Likewise.
23643         * lib/copy-acl.c (qcopy_acl): Likewise.
23644
23645 2008-06-07  Bruno Haible  <bruno@clisp.org>
23646
23647         Fix memory leak introduced on 2008-05-22.
23648         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23649         use.
23650
23651 2008-06-07  Bruno Haible  <bruno@clisp.org>
23652
23653         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23654         to construct an empty ACL.
23655
23656 2008-06-07  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23659         precisely.
23660         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23661
23662 2008-06-07  Bruno Haible  <bruno@clisp.org>
23663
23664         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23665         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23666
23667 2008-06-07  Bruno Haible  <bruno@clisp.org>
23668
23669         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23670         regardless of POSIX.
23671         * doc/posix-functions/_longjmp.texi: Likewise.
23672         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23673         SystemV platform in this case.
23674
23675 2008-06-06  Eric Blake  <ebb9@byu.net>
23676
23677         Document abort() bugs.
23678         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23679
23680         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23681         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23682         sigsetjmp.
23683         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23684         siglongjmp, but only as a macro.
23685         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23686         is obsolete.
23687         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23688
23689         Tweak documentation to cover cygwin argz bugs.
23690         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23691         argz bug fix; no code change needed since no cygwin releases
23692         occurred between the last fix and the bug being tested.
23693         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23694         module and recently fixed cygwin bugs.
23695         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23696         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23697         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23698         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23699         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23700         Likewise.
23701         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23702         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23703         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23704         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23705         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23706         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23707         Likewise.
23708
23709         Avoid gcc warning on cygwin.
23710         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23711         !ACL_NO_TRIVIAL]: Avoid unused variable.
23712
23713 2008-06-05  Eric Blake  <ebb9@byu.net>
23714
23715         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23716         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23717         git-version-gen fails to come up with a version.
23718         Reported by Simon Josefsson.
23719
23720 2008-06-05  Jim Meyering  <meyering@redhat.com>
23721             Paul Eggert  <eggert@cs.ucla.edu>
23722
23723         utimens.c: work around a probable Linux kernel bug
23724         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23725         appears to be a kernel bug that causes utimensat to return 280
23726         instead of 0, indicating success.
23727
23728 2008-06-04  Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23731         2008-06-01 commit.
23732
23733 2008-06-04  Bruno Haible  <bruno@clisp.org>
23734
23735         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23736         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23737         (file_has_acl): Use it. Save errno afterwards.
23738         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23739
23740 2008-06-03  Bruno Haible  <bruno@clisp.org>
23741
23742         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23743         draft code. Simplify #ifs.
23744         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23745         Put Solaris code after POSIX-draft code. Fix comments regarding
23746         Solaris 10, HP-UX. Mention Cygwin.
23747         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23748
23749 2008-06-03  Eric Blake  <ebb9@byu.net>
23750
23751         Provide fallback for older kernels.
23752         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23753         Provide runtime fallback if kernel lacks support.
23754         Reported by Mike Frysinger.
23755
23756 2008-06-02  Bruno Haible  <bruno@clisp.org>
23757
23758         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23759         it exists.
23760
23761 2008-06-02  Bruno Haible  <bruno@clisp.org>
23762
23763         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23764         * lib/copy-acl.c (qcopy_acl): Update comment.
23765
23766 2008-06-02  Bruno Haible  <bruno@clisp.org>
23767
23768         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23769         like ACL APIs.
23770
23771 2008-06-02  Bruno Haible  <bruno@clisp.org>
23772
23773         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23774         * tests/test-set-mode-acl.sh: Likewise.
23775         * tests/test-copy-acl.sh: Likewise.
23776         * tests/test-copy-file.sh: Likewise.
23777
23778 2008-06-02  Bruno Haible  <bruno@clisp.org>
23779
23780         * tests/test-file-has-acl.sh: Remove unused code.
23781
23782 2008-06-01  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23785         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23786         messages.
23787         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23788
23789 2008-06-01  Bruno Haible  <bruno@clisp.org>
23790
23791         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23792         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23793         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23794         APIs.
23795         * modules/acl-tests (configure.ac): Remove tests now contained in
23796         m4/acl.m4.
23797
23798 2008-06-02  Jim Meyering  <meyering@redhat.com>
23799
23800         announce-gen: use a better key-server host name
23801         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23802         it may be more consistently reliable.  Suggested by Werner Koch
23803         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23804
23805 2008-06-01  Bruno Haible  <bruno@clisp.org>
23806
23807         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23808         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23809
23810 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23811
23812         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23813
23814 2008-06-01  Bruno Haible  <bruno@clisp.org>
23815
23816         New ACL tests.
23817         * tests/test-file-has-acl.sh: New file.
23818         * tests/test-file-has-acl.c: New file.
23819         * tests/test-set-mode-acl.sh: New file.
23820         * tests/test-set-mode-acl.c: New file.
23821         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23822         * tests/test-copy-acl.c: New file.
23823         * modules/acl-tests: New file, based on modules/copy-file-tests.
23824         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23825         (Depends-on): Add acl-tests.
23826         (configure.ac): Remove checks.
23827         (Makefile.am): Don't create test-sameacls program here any more.
23828
23829 2008-06-01  Bruno Haible  <bruno@clisp.org>
23830
23831         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23832         * tests/test-sameacls.c: Include progname.h.
23833         (main): Invoke set_program_name. Portability fixes for MacOS X,
23834         Solaris, HP-UX.
23835
23836 2008-06-01  Bruno Haible  <bruno@clisp.org>
23837
23838         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23839         function.
23840         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23841
23842 2008-06-01  Bruno Haible  <bruno@clisp.org>
23843
23844         * modules/rpmatch (Depends-on): Add strdup.
23845
23846 2008-06-01  Bruno Haible  <bruno@clisp.org>
23847
23848         * lib/pipe.c: Include unistd-safer.h.
23849         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23850         * modules/pipe (Depends-on): Add unistd-safer.
23851
23852 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23853
23854         * modules/autobuild (configure.ac): Call AB_INIT.
23855
23856 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23857
23858         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23859         Suggested by Bruno Haible <bruno@clisp.org>.
23860
23861 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23862
23863         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23864         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23865         <bruno@clisp.org>.
23866
23867 2008-05-29  Eric Blake  <ebb9@byu.net>
23868
23869         Prefer new POSIX 200x interfaces over futimesat.
23870         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23871         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23872         when available.
23873         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23874
23875 2008-05-28  Bruno Haible  <bruno@clisp.org>
23876
23877         * modules/stpcpy (License): Change to LGPLv2+.
23878         Requested by David Lutterkort <dlutter@redhat.com>.
23879
23880 2008-05-27  Bruno Haible  <bruno@clisp.org>
23881
23882         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23883         current mingw.
23884         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23885
23886 2008-05-27  Bruno Haible  <bruno@clisp.org>
23887
23888         * modules/iconv_open (Link): New section, from module 'iconv'.
23889         * modules/striconv (Link): Likewise.
23890         * modules/striconveh (Link): Likewise.
23891         * modules/xstriconv (Link): Likewise.
23892         * modules/unicodeio (Link): Likewise.
23893         * modules/propername (Link): Likewise.
23894         Reported by Jim Meyering.
23895
23896 2008-05-26  Jim Meyering  <meyering@redhat.com>
23897
23898         sha256: do not artificially restrict buffer length to be < 2^32
23899         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23900         uint32_t to size_t.
23901         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23902         to match.
23903
23904         avoid unaligned access errors, e.g., on sparc
23905         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23906         direct access through a possibly-unaligned uint64* pointer.
23907         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23908         direct access through a possibly-unaligned uint32* pointer.
23909         Prompted by this patch from Tom "spot" Callaway:
23910         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23911
23912         sha512.c: fix typo in comment
23913         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23914
23915 2008-05-25  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23918         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23919         (Makefile.am): Update lib_SOURCES.
23920
23921 2008-05-25  Bruno Haible  <bruno@clisp.org>
23922
23923         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23924
23925 2008-05-25  Jim Meyering  <meyering@redhat.com>
23926
23927         useless-if-before-free: freed expr may have white-space differences
23928         * build-aux/useless-if-before-free: Recognize cases in which the
23929         freed expression differs from the tested one in embedded white
23930         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23931         $1 was used, so we can't make any regexp shy.  Improved tests now
23932         detect this.
23933
23934         useless-if-before-free: accept white space in the expression.
23935         * build-aux/useless-if-before-free: For now, any white space
23936         in the expression must be identical in the free argument.
23937
23938         useless-if-before-free: efficiency tweak
23939         * build-aux/useless-if-before-free: Make the expression-matching
23940         regexp "shy".
23941         Make the *outer* regexp shy, not the expr-matching one.
23942
23943         update code-in-comment to accept cast of free arg
23944         * build-aux/useless-if-before-free: Update regexp.
23945
23946 2008-05-25  Bruno Haible  <bruno@clisp.org>
23947
23948         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23949         * modules/copy-file-tests (Files, Makefile.am): Update.
23950         * tests/test-copy-file.c (func_test_copy): Update.
23951
23952 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23953
23954         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23955
23956 2008-05-23  Bruno Haible  <bruno@clisp.org>
23957
23958         Improve support for ACLs on OSF/1.
23959         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23960         Remove fallback for unknown flavors of ACLs.
23961
23962 2008-05-22  Bruno Haible  <bruno@clisp.org>
23963
23964         Add support for ACLs on OSF/1.
23965         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23966         replacements.
23967         (acl_free_text): New macro fallback.
23968         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23969         acl_free.
23970         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23971         acl_free_text function. Require AC_C_INLINE.
23972
23973 2008-05-22  Bruno Haible  <bruno@clisp.org>
23974
23975         Make copy_acl work on MacOS X 10.5.
23976         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23977         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23978         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23979         If MODE_INSIDE_ACL, don't assume that every system has the same text
23980         representation for ACLs as FreeBSD.
23981         * lib/copy-acl.c (copy_acl): Add support for platforms with
23982         !MODE_INSIDE_ACL.
23983         * lib/file-has-acl.c (file_has_acl): Likewise.
23984         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23985         FreeBSD, MacOS X, or IRIX, respectively.
23986
23987 2008-05-22  Bruno Haible  <bruno@clisp.org>
23988
23989         * lib/acl.h: Don't include <sys/acl.h>.
23990         (GETACLCNT): Move fallback to lib/acl-internal.h.
23991         * lib/acl-internal.h: Include <sys/acl.h> here.
23992         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23993
23994 2008-05-22  Bruno Haible  <bruno@clisp.org>
23995
23996         Split off copy_acl function to separate file.
23997         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23998         * lib/acl.c (copy_acl): Moved function to separate file.
23999         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24000         * modules/acl (Files): Add lib/copy-acl.c.
24001         (Makefiles.am): Augment lib_SOURCES.
24002
24003 2008-05-22  Bruno Haible  <bruno@clisp.org>
24004
24005         * modules/copy-file-tests: New file.
24006         * tests/test-copy-file.sh: New file.
24007         * tests/test-copy-file.c: New file.
24008         * tests/test-copy-file-sameacls.c: New file.
24009
24010 2008-05-22  Eric Blake  <ebb9@byu.net>
24011
24012         Avoid gcc warning.
24013         * tests/test-memcmp.c (main): Pass NULL indirectly.
24014
24015 2008-05-21  Bruno Haible  <bruno@clisp.org>
24016
24017         Add reference doc about ACLs.
24018         * doc/acl-resources.txt: New file.
24019         * doc/acl-cygwin.txt: New file.
24020
24021 2008-05-21  Bruno Haible  <bruno@clisp.org>
24022
24023         Avoid one more warning from gcc.
24024         * lib/vasnprintf.c (IF_LINT): Update comments.
24025         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24026
24027 2008-05-21  Jim Meyering  <meyering@redhat.com>
24028
24029         avoid a warning from gcc
24030         * lib/vasnprintf.c (IF_LINT): Define.
24031         (scale10_round_decimal_long_double):
24032         Use it to avoid a "may be used uninitialized" warning.
24033         (scale10_round_decimal_double): Likewise.
24034
24035 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24036
24037         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24038         declared.
24039
24040 2008-05-20  Bruno Haible  <bruno@clisp.org>
24041
24042         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24043         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24044
24045 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24046
24047         * modules/memcmp-tests: New file.
24048         * tests/test-memcmp.c: New file.
24049
24050 2008-05-19  Bruno Haible  <bruno@clisp.org>
24051
24052         * modules/propername (Notice, configure.ac): Put quoted "..." into
24053         --keyword option.
24054         * lib/propername.h: Update comments accordingly.
24055         Reported by Eric Blake.
24056
24057 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24058
24059         * modules/getpass-gnu (Depends-on): Add fseeko.
24060
24061 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24062
24063         * modules/base64-tests: New file.
24064
24065 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24066
24067         * lib/base64.c (base64_decode_ctx): If a decode context structure
24068         was passed in use it to ignore newlines.  If a context structure
24069         was _not_ passed in, continue to treat newlines as garbage (this
24070         is the historical behavior).  Formerly base64_decode.
24071         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24072         takes a decode context structure.
24073         * lib/base64.h (base64_decode): Macro for four-argument calls.
24074         (base64_decode_alloc): Likewise.
24075         * lib/base64.c (base64_decode_ctx): If a decode context structure
24076         was passed in use it to ignore newlines.  If a context structure
24077         was _not_ passed in, continue to treat newlines as garbage (this
24078         is the historical behavior).  Formerly base64_decode.
24079         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24080         takes a decode context structure.
24081         * lib/base64.h (base64_decode): Macro for four-argument calls.
24082         (base64_decode_alloc): Likewise.
24083
24084 2008-05-19  Jim Meyering  <meyering@redhat.com>
24085
24086         avoid a warning from gcc
24087         * lib/trim.c (IF_LINT): Define.
24088         (trim2): Use it to avoid a "may be used uninitialized" warning.
24089
24090         Fix doc typo.
24091         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24092
24093 2008-05-19  Bruno Haible  <bruno@clisp.org>
24094
24095         * doc/glibc-functions/getpass.texi: Document limits of other
24096         implementations.
24097
24098 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24099             Bruno Haible <bruno@clisp.org>
24100
24101         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24102
24103 2008-05-18  Bruno Haible  <bruno@clisp.org>
24104
24105         * modules/propername: New file, from GNU gettext.
24106         * lib/propername.h: New file, from GNU gettext.
24107         * lib/propername.c: New file, from GNU gettext.
24108         * MODULES.html.sh (Internationalization functions): Add propername.
24109
24110 2008-05-16  Jim Meyering  <meyering@redhat.com>
24111             Bruno Haible  <bruno@clisp.org>
24112
24113         Avoid some warnings from "gcc -Wshadow".
24114         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24115
24116 2008-05-15  Eric Blake  <ebb9@byu.net>
24117
24118         Extend previous patch to cygwin 1.7.0.
24119         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24120         fast implementation in cygwin >= 1.7.0.
24121         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24123
24124 2008-05-15  Bruno Haible  <bruno@clisp.org>
24125
24126         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24127         implementation in glibc >= 2.9.
24128         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24130
24131 2008-05-15  Bruno Haible  <bruno@clisp.org>
24132
24133         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24134         (Unicode string functions): Add unilbrk/*.
24135         Reported by Karl Berry.
24136
24137 2008-05-15  Eric Blake  <ebb9@byu.net>
24138
24139         Fix violation of <stdbool.h> replacement in regex.
24140         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24141         * lib/regexec.c (re_search_internal): Likewise.
24142         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24143
24144 2008-05-15  Jim Meyering  <meyering@redhat.com>
24145
24146         avoid distracting test output when git or cvs is not found
24147         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24148         * tests/test-vc-list-files-git.sh: Likewise.
24149
24150 2008-05-15  Eric Blake  <ebb9@byu.net>
24151
24152         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24153         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24154         glibc version.
24155         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24156         * doc/posix-functions/strstr.texi (strstr): Likewise.
24157         * lib/str-two-way.h (MAX): Sychronize with glibc.
24158
24159 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24160
24161         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24162         opr.ctx_type.
24163         (calc_first): Initialize constraint field.
24164         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24165         Fix grammar.
24166         (duplicate_node): Merge constraint field for all node types.
24167         (calc_eclosure_iter): Look at constraint field for all node types.
24168         * lib/regex_internal.c (create_cd_newstate): Don't look at
24169         opr.ctx_type.
24170
24171 2008-05-14  Bruno Haible  <bruno@clisp.org>
24172
24173         Help GCC to do better code generation.
24174         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24175         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24176         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24177         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24178         Declare with attribute 'malloc' if supported.
24179
24180 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24181
24182         use "echo STR|wc -c" rather than unportable "expr length STR"
24183         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24184         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24185
24186 2008-05-14  Jim Meyering  <meyering@redhat.com>
24187
24188         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24189         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24190         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24191         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24192         via Collin Lasse.
24193
24194 2008-05-14  Eric Blake  <ebb9@byu.net>
24195
24196         Avoid quadratic growth in gl_LIBSOURCES.
24197         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24198         Suggested by Bruno Haible.
24199
24200         Test xmemdup0.
24201         * modules/xmemdup0-tests: New file.
24202         * tests/test-xmemdup0.c: Likewise.
24203
24204 2008-05-13  Eric Blake  <ebb9@byu.net>
24205
24206         Split xmemdup0 into its own module.
24207         * modules/xmemdup0: New file.
24208         * lib/xmemdup0.h: Likewise.
24209         * lib/xmemdup0.c: Likewise.
24210         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24211         * lib/xalloc.h (xmemdup0): Remove.
24212         * lib/xmalloc.c (xmemdup0): Likewise.
24213
24214 2008-05-13  Eric Blake  <ebb9@byu.net>
24215             Bruno Haible  <bruno@clisp.org>
24216
24217         Reduce number of forks required during autoconf.
24218         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24219         and gl_LIBSOURCES_DIR.
24220         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24221         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24222         m4_syscmd per file.
24223         <m4_foreach_w>: Move...
24224         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24225
24226 2008-05-13  Eric Blake  <ebb9@byu.net>
24227
24228         * gnulib-tool: Fix various comment typos.
24229
24230 2008-05-12  Bruno Haible  <bruno@clisp.org>
24231
24232         Tailor the linebreaking algorithm.
24233         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24234
24235 2008-05-12  Bruno Haible  <bruno@clisp.org>
24236
24237         Update to Unicode 5.0.0.
24238         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24239         LBP_JV, LBP_JT. Redistribute values.
24240         (unilbrk_table): Change size.
24241         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24242         Unicode TR#14 rev. 22.
24243         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24244         LBP_JV, LBP_JT. Redistribute values.
24245         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24246         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24247         Update.
24248         * lib/unilbrk/lbrkprop1.h: Regenerated.
24249         * lib/unilbrk/lbrkprop2.h: Regenerated.
24250         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24251         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24252         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24253         Likewise.
24254         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24255         Likewise.
24256         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24257         result.
24258         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24259         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24260         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24261         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24262         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24263         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24264
24265 2008-05-11  Bruno Haible  <bruno@clisp.org>
24266
24267         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24268
24269 2008-05-11  Bruno Haible  <bruno@clisp.org>
24270
24271         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24272         * modules/unilbrk/gen-lbrk: New file.
24273
24274 2008-05-11  Bruno Haible  <bruno@clisp.org>
24275
24276         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24277         * m4/sha512.m4 (gl_SHA512): Likewise.
24278
24279 2008-05-11  Jim Meyering  <meyering@redhat.com>
24280
24281         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24282         * modules/crypto/sha256: New file.
24283         * modules/crypto/sha512: Likewise.
24284         * lib/sha256.c: Likewise.
24285         * lib/sha256.h: Likewise.
24286         * lib/sha512.c: Likewise.
24287         * lib/sha512.h: Likewise.
24288         * lib/u64.h: Likewise.
24289         * m4/sha256.m4: Likewise.
24290         * m4/sha512.m4: Likewise.
24291         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24292
24293 2008-05-10  Bruno Haible  <bruno@clisp.org>
24294
24295         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24296         (Input/Output <stdio.h>): Add xprintf.
24297         (Signal handling <signal.h>): Add strsignal.
24298         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24299         (Core language properties): Add func.
24300         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24301         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24302         strings.
24303         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24304         (Input/output): New section.
24305         (File system functions): Add openat-die, stat-macros.
24306         (Networking functions): Add sockets.
24307         (Unicode string functions): Add unictype/*.
24308         (Support for building libraries and executables): Add gperf.
24309         (Support for building documentation): Add agpl-3.0.
24310         (Misc): Add nocrash.
24311
24312 2008-05-10  Bruno Haible  <bruno@clisp.org>
24313
24314         * modules/unictype/gen-ctype: New file.
24315
24316 2008-05-10  Jim Meyering  <meyering@redhat.com>
24317
24318         Make chdir-safer.c more efficient on a system with no symlinks.
24319         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24320         also if ELOOP is zero.  Suggested by Bruno Haible.
24321
24322         Make chdir-safer.c slightly safer.
24323         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24324         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24325
24326         Avoid compile failure on systems without ELOOP (like mingw).
24327         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24328         Reported by Bruno Haible.
24329
24330 2008-05-10  Bruno Haible  <bruno@clisp.org>
24331
24332         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24333         (is_utf8_encoding): Use a case-insensitive comparison.
24334         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24335         streq.
24336
24337 2008-05-10  Bruno Haible  <bruno@clisp.org>
24338
24339         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24340         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24341         * lib/unilbrk/ulc-common.h (iconv_string_length,
24342         iconv_string_keeping_offsets): Remove declarations.
24343         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24344         Don't include <iconv.h>, streq.h, xsize.h.
24345         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24346         conversion.
24347         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24348         <iconv.h>, streq.h, xsize.h.
24349         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24350         conversion.
24351         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24352         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24353         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24354         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24355
24356 2008-05-10  Bruno Haible  <bruno@clisp.org>
24357
24358         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24359         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24360
24361         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24362         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24363
24364         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24365         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24366
24367         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24368         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24369
24370         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24371         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24372
24373         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24374         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24375
24376         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24377         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24378
24379         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24380         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24381
24382 2008-05-10  Bruno Haible  <bruno@clisp.org>
24383
24384         Split up 'linebreak' module.
24385         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24386         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24387         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24388         modifications.
24389         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24390         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24391         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24392         lib/linebreak.c.
24393         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24394         lib/linebreak.c.
24395         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24396         lib/linebreak.c.
24397         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24398         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24399         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24400         lib/linebreak.c.
24401         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24402         lib/linebreak.c.
24403         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24404         lib/linebreak.c.
24405         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24406         lib/linebreak.c.
24407         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24408         lib/linebreak.c.
24409         * modules/unilbrk/base: New file.
24410         * modules/unilbrk/tables: New file.
24411         * modules/unilbrk/u8-possible-linebreaks: New file.
24412         * modules/unilbrk/u16-possible-linebreaks: New file.
24413         * modules/unilbrk/u32-possible-linebreaks: New file.
24414         * modules/unilbrk/ulc-common: New file.
24415         * modules/unilbrk/ulc-possible-linebreaks: New file.
24416         * modules/unilbrk/u8-width-linebreaks: New file.
24417         * modules/unilbrk/u16-width-linebreaks: New file.
24418         * modules/unilbrk/u32-width-linebreaks: New file.
24419         * modules/unilbrk/ulc-width-linebreaks: New file.
24420         * lib/linebreak.h: Remove file.
24421         * lib/linebreak.c: Remove file.
24422         * m4/linebreak.m4: Remove file.
24423         * modules/linebreak: Remove file.
24424         * NEWS: Mention the changes.
24425
24426 2008-05-09  Eric Blake  <ebb9@byu.net>
24427
24428         Add xmemdup0.
24429         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24430         implementation.
24431         * lib/xmalloc.c (xmemdup0): New C implementation.
24432
24433 2008-05-08  Bruno Haible  <bruno@clisp.org>
24434
24435         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24436
24437 2008-05-07  Eric Blake  <ebb9@byu.net>
24438
24439         Support cross-compilation of <wctype.h>.
24440         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24441         AC_CACHE_CHECK.
24442
24443 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24444
24445         * build-aux/vc-list-files: Add support for bzr.
24446
24447 2008-05-03  Jim Meyering  <meyering@redhat.com>
24448
24449         avoid failed assertion with tight malloc
24450         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24451
24452 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24453
24454         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24455         are needed from arpa/inet.h.
24456         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24457         Reported by Bruno Haible.
24458
24459 2008-05-02  Jim Meyering  <meyering@redhat.com>
24460
24461         avoid compilation error on FreeBSD 6
24462         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24463
24464 2008-05-01  Jim Meyering  <meyering@redhat.com>
24465
24466         useless-if-before-free: correct --help's exit status description
24467         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24468         for one or more matches, etc.  Reported by Bruno Haible.
24469
24470         vc-list-files: make the stand-alone gnulib test work
24471         * modules/vc-list-files-tests (configure.ac):
24472         Define and AC_SUBST abs_aux_dir.
24473         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24474         $(abs_top_srcdir) to each script and having each of them
24475         duplicate the work of setting PATH, set PATH here, using
24476         the new variable, abs_aux_dir instead.
24477         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24478         * tests/test-vc-list-files-git.sh: Likewise.
24479         Reported by Bruno Haible.
24480
24481 2008-05-01  Bruno Haible  <bruno@clisp.org>
24482
24483         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24484         reallocation. Rename 'done' to 'found_delimiter'.
24485
24486 2008-05-01  Jim Meyering  <meyering@redhat.com>
24487
24488         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24489         * build-aux/vc-list-files: Use `...`, not $(...).
24490
24491 2008-04-30  Jim Meyering  <meyering@redhat.com>
24492
24493         add tests for vc-list-files
24494         * modules/vc-list-files-tests: New module.
24495         * tests/test-vc-list-files-cvs.sh: New file.
24496         * tests/test-vc-list-files-git.sh: New file.
24497
24498         avoid a warning from gcc
24499         * lib/getndelim2.c (IF_LINT): Define.
24500         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24501
24502         vc-list-files: work properly with build-aux/cvsu, too
24503         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24504         to all cvs-based clauses.
24505
24506         vc-list-files: work properly in the CVS+awk case, too
24507         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24508
24509         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24510         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24511         take more than one file argument, so .  Add quotes, just in case $dir
24512         ever contains a shell meta-character.  Prompted by Soren Hansen in
24513         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24514
24515 2008-04-29  Eric Blake  <ebb9@byu.net>
24516
24517         Optimize getndelim2 to use block operations when possible.
24518         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24519         freadseek, and memchr2.
24520         * lib/getndelim2.c (getndelim2): Use them for block reads.
24521
24522 2008-04-29  Bruno Haible  <bruno@clisp.org>
24523
24524         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24525         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24526         * modules/inet_ntop (Depends-on): Add extensions.
24527         * modules/inet_pton (Depends-on): Likewise.
24528         Reported by Simon Josefsson.
24529
24530 2008-04-29  Jim Meyering  <meyering@redhat.com>
24531
24532         When the is more than one match in a block, match all of them.
24533         * build-aux/useless-if-before-free: Iterate through each block
24534         until there are no more matches.
24535
24536         Fix broken useless-if-before-free script.
24537         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24538         the expression to match cast of argument to free-like function.
24539
24540 2008-04-29  Eric Blake  <ebb9@byu.net>
24541
24542         Use new header.
24543         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24544
24545 2008-04-29  Jim Meyering  <meyering@redhat.com>
24546
24547         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24548         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24549         by gnulib to exist and to declare e.g., inet_ntop.
24550         Don't include "inet_ntop.h", now removed.
24551
24552         * m4/arpa_inet_h.m4: Remove trailing blanks.
24553
24554 2008-04-29  Eric Blake  <ebb9@byu.net>
24555
24556         Silence valgrind on safe reads beyond potential array bounds.
24557         * lib/rawmemchr.valgrind: New file.
24558         * lib/strchrnul.valgrind: Likewise.
24559         * modules/rawmemchr (Files): Distribute new file.
24560         * modules/strchrnul (Files): Likewise.
24561         Suggested by Bruno Haible.
24562
24563 2008-04-29  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24566         (inet_ntop, inet_pton): Change portability warning's wording.
24567         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24568         Invoke gl_CHECK_NEXT_HEADERS.
24569         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24570         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24571         set ARPA_INET_H.
24572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24573         * modules/arpa_inet (Description): No longer only for systems that
24574         lack it.
24575         (Depends-on): Add include_next.
24576         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24577         HAVE_ARPA_INET_H.
24578
24579 2008-04-29  Jim Meyering  <meyering@redhat.com>
24580
24581         * modules/mkdir (License): Re-license as LGPLv2+.
24582
24583 2008-04-29  Bruno Haible  <bruno@clisp.org>
24584
24585         * modules/rawmemchr (Maintainer): Set to Eric.
24586         * modules/strchrnul (Maintainer): Likewise.
24587
24588 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24589
24590         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24591         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24592
24593         * modules/arpa_inet (arpa/inet.h): Use them.
24594
24595 2008-04-28  Eric Blake  <ebb9@byu.net>
24596
24597         Test getndelim2.
24598         * modules/getndelim2-tests: New file.
24599         * tests/test-getndelim2.c: Likewise.
24600         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24601         stream.
24602         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24603
24604         * MODULES.html.sh: Document new module.
24605
24606 2008-04-20  Bruno Haible  <bruno@clisp.org>
24607
24608         * lib/c-stack.c (die): Use raise.
24609         * modules/c-stack (Depends-on): Add raise.
24610
24611 2008-04-28  Bruno Haible  <bruno@clisp.org>
24612
24613         Expect rpmatch to be declared.
24614         * lib/yesno.c (rpmatch): Remove declaration.
24615
24616         Declare rpmatch.
24617         * lib/stdlib.in.h (rpmatch): New declaration.
24618         * lib/rpmatch.c: Include <stdlib.h> first.
24619         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24620         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24622         HAVE_RPMATCH.
24623         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24625         (Include): Set to <stdlib.h>.
24626         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24627         HAVE_RPMATCH.
24628         * NEWS: Document the change.
24629
24630 2008-04-28  Bruno Haible  <bruno@clisp.org>
24631
24632         Change rpmatch to use nl_langinfo when appropriate.
24633         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24634         (N_): New macro.
24635         (localized_pattern): New function/macro.
24636         (try): Remove match, nomatch arguments. Copy the pattern into safe
24637         memory before caching it.
24638         (rpmatch): Use localized_pattern. Add translator comments.
24639         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24640         Suggested by Eric Blake.
24641         * modules/rpmatch (Depends-on): Add stdbool.
24642
24643 2008-04-28  Eric Blake  <ebb9@byu.net>
24644
24645         Add rawmemchr module, matching glibc.
24646         * modules/string (Makefile.am): New indicator.
24647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24648         * lib/string.in.h (rawmemchr): Declare when appropriate.
24649         * modules/rawmemchr: New file.
24650         * m4/rawmemchr.m4: Likewise.
24651         * lib/rawmemchr.c: Likewise.
24652         * modules/rawmemchr-tests: Likewise.
24653         * tests/test-rawmemchr.c: Likewise.
24654         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24655         module.
24656         * modules/strchrnul (Depends-on): Add rawmemchr.
24657         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24658
24659         Whitespace cleanup.
24660         * tests/test-strchrnul.c: Reindent.
24661         * lib/strchrnul.c: Likewise.
24662
24663         Optimize and test strchrnul.
24664         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24665         * modules/strchrnul-tests: New file.
24666         * tests/test-strchrnul.c: Likewise.
24667
24668         Remove intprops dependency.
24669         * modules/memchr (Depends-on): Remove intprops.
24670         * modules/memrchr (Depends-on): Likewise.
24671         * modules/memchr2 (Depends-on): Likewise.
24672         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24673         * lib/memrchr.c (__memrchr): Likewise.
24674         * lib/memrchr2.c (memchr2): Likewise.
24675         Reported by Simon Josefsson.
24676
24677 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24678
24679         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24680         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24681
24682 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24683
24684         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24685
24686         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24687
24688         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24689
24690         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24691         declarations.
24692         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24693
24694         * m4/inet_pton.m4: Don't check for header files.
24695
24696         * m4/inet_ntop.m4: Don't check for header files.
24697
24698 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24699
24700         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24701         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24702         trigger for cygwin).
24703         Reported by Bruno Haible  <bruno@clisp.org>.
24704
24705 2008-04-28  Bruno Haible  <bruno@clisp.org>
24706
24707         * doc/posix-functions/strdup.texi: Mention mingw problem.
24708
24709 2008-04-27  Bruno Haible  <bruno@clisp.org>
24710
24711         * modules/stat-time-tests (Depends-on): Add sleep.
24712         * tests/test-stat-time.c (force_unlink): New function.
24713         (cleanup): Use it.
24714         (test_mtime): Remove the ctime related tests.
24715         (test_ctime): New function, containing the ctime related tests.
24716         (main): Call test_ctime, except on native Windows platforms.
24717
24718 2008-04-27  Bruno Haible  <bruno@clisp.org>
24719
24720         * lib/rpmatch.c (rpmatch): Add some comments.
24721         Reported by James Youngman <jay@gnu.org>.
24722
24723 2008-04-27  Bruno Haible  <bruno@clisp.org>
24724
24725         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24726         quiet NaNs.
24727
24728 2008-04-27  Bruno Haible  <bruno@clisp.org>
24729
24730         Make test-yesno.sh work on mingw.
24731         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24732         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24733         (main): Set stdin to binary mode.
24734         * modules/yesno-tests (Depends-on): Add binary-io.
24735
24736 2008-04-27  Bruno Haible  <bruno@clisp.org>
24737
24738         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24739         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24740         argument that lie outside the IEEE 854 domain.
24741         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24742         (gl_ISFINITE): Use it.
24743         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24744
24745 2008-04-27  Bruno Haible  <bruno@clisp.org>
24746
24747         Allow local renaming in config.h.
24748         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24749
24750 2008-04-27  Bruno Haible  <bruno@clisp.org>
24751
24752         * lib/memchr.c (__memchr): Change type of 'i'.
24753         * lib/memchr2.c (memchr2): Likewise.
24754
24755 2008-04-26  Eric Blake  <ebb9@byu.net>
24756         and Bruno Haible  <bruno@clisp.org>
24757
24758         Optimize and test memrchr.
24759         * modules/memrchr (Depends-on): Add intprops.
24760         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24761         * modules/memrchr-tests: New file.
24762         * tests/test-memrchr.c: New file.
24763
24764 2008-04-26  Bruno Haible  <bruno@clisp.org>
24765
24766         Add tentative support for DragonFly BSD.
24767         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24768         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24769         fp.
24770         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24771         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24772         * lib/fpurge.c (fpurge): Likewise.
24773         * lib/freadable.c (freaadable): Likewise.
24774         * lib/freadahead.c (freadahead): Likewise.
24775         * lib/freading.c (freading): Likewise.
24776         * lib/freadptr.c (freadptr): Likewise.
24777         * lib/freadseek.c (freadptrinc): Likewise.
24778         * lib/fseeko.c (fseeko): Likewise.
24779         * lib/fseterr.c (fseterr): Likewise.
24780         * lib/fwritable.c (fwritable): Likewise.
24781         * lib/fwriting.c (fwriting): Likewise.
24782
24783 2008-04-26  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/stdio-impl.h: New file.
24786         * lib/fbufmode.c: Include stdio-impl.h.
24787         (fbufmode): Use fp_, remove redundant #defines.
24788         * lib/fflush.c: Include stdio-impl.h.
24789         (clear_ungetc_buffer): Remove redundant #defines.
24790         * lib/fpurge.c: Include stdio-impl.h.
24791         (fpurge): Remove redundant #defines.
24792         * lib/freadable.c: Include stdio-impl.h.
24793         (freadable): Remove redundant #defines.
24794         * lib/freadahead.c: Include stdio-impl.h.
24795         (freadahead): Remove redundant #defines.
24796         * lib/freading.c: Include stdio-impl.h.
24797         (freading): Remove redundant #defines.
24798         * lib/freadptr.c: Include stdio-impl.h.
24799         (freadptr): Remove redundant #defines.
24800         * lib/freadseek.c: Include stdio-impl.h.
24801         (freadptrinc): Remove redundant #defines.
24802         * lib/fseeko.c: Include stdio-impl.h.
24803         (rpl_fseeko): Remove redundant #defines.
24804         * lib/fseterr.c: Include stdio-impl.h.
24805         (fseterr): Remove redundant #defines.
24806         * lib/fwritable.c: Include stdio-impl.h.
24807         (fwritable: Remove redundant #defines.
24808         * lib/fwriting.c: Include stdio-impl.h.
24809         (fwriting): Remove redundant #defines.
24810         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24811         * modules/fflush (Files): Likewise.
24812         * modules/fpurge (Files): Likewise.
24813         * modules/freadable (Files): Likewise.
24814         * modules/freadahead (Files): Likewise.
24815         * modules/freading (Files): Likewise.
24816         * modules/freadptr (Files): Likewise.
24817         * modules/freadseek (Files): Likewise.
24818         * modules/fseeko (Files): Likewise.
24819         * modules/fseterr (Files): Likewise.
24820         * modules/fwritable (Files): Likewise.
24821         * modules/fwriting (Files): Likewise.
24822
24823 2008-04-26  Bruno Haible  <bruno@clisp.org>
24824
24825         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24826         restore_seek_optimization, update_fpos_cache): New functions, extracted
24827         from rpl_fflush.
24828         (rpl_fflush): Use them.
24829         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24830         (gl_REPLACE_FFLUSH): Use it.
24831
24832 2008-04-26  Bruno Haible  <bruno@clisp.org>
24833
24834         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24835         on Solaris.
24836         * tests/test-xstrtoimax.sh: Likewise.
24837         * tests/test-xstrtoumax.sh: Likewise.
24838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24839
24840 2008-04-26  Bruno Haible  <bruno@clisp.org>
24841
24842         * modules/memchr-tests: New file.
24843         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24844
24845 2008-04-26  Eric Blake  <ebb9@byu.net>
24846             Bruno Haible  <bruno@clisp.org>
24847
24848         * lib/memchr.c: Include intprops.h.
24849         (__memchr): Optimize parallel detection of matching bytes. Rename local
24850         variables. Add explanatory comments.
24851
24852 2008-04-26  Bruno Haible  <bruno@clisp.org>
24853
24854         Fix module 'memchr', broken since 2000-10-28.
24855         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24856
24857 2008-04-26  Bruno Haible  <bruno@clisp.org>
24858
24859         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24860         comments.
24861
24862 2008-04-25  Eric Blake  <ebb9@byu.net>
24863
24864         Use native fstatat on cygwin 1.7.0.
24865         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24866         first.
24867
24868 2008-04-23  Eric Blake  <ebb9@byu.net>
24869
24870         Improve memchr2 performance.
24871         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24872         NUL bytes.
24873         * modules/memchr2 (Depends-on): Use intprops.h.
24874
24875 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24876
24877         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24878         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24879         <blp@cs.stanford.edu>.
24880
24881 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24882
24883         * lib/arpa_inet.in.h: New file.
24884
24885         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24886         (Makefile.am): Sed in substitute header file.
24887
24888         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24889         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24890
24891         * modules/inet_ntop (configure.ac): Use
24892         gl_ARPA_INET_MODULE_INDICATOR.
24893
24894         * modules/inet_pton (configure.ac): Use
24895         gl_ARPA_INET_MODULE_INDICATOR.
24896
24897 2008-04-22  Jim Meyering  <meyering@redhat.com>
24898
24899         * modules/verify (License): Re-license as LGPLv2+.
24900
24901 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24902
24903         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24904         parameter to void* as per POSIX standard (MinGW uses char*).
24905
24906 2008-04-21  Bruno Haible  <bruno@clisp.org>
24907
24908         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24909         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24910         Define to replacements if REPLACE_ISWCNTRL is 1.
24911         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24912         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24913         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24914         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24915         what it fixes.
24916         * doc/posix-functions/iswalpha.texi: Likewise.
24917         * doc/posix-functions/iswblank.texi: Likewise.
24918         * doc/posix-functions/iswcntrl.texi: Likewise.
24919         * doc/posix-functions/iswdigit.texi: Likewise.
24920         * doc/posix-functions/iswgraph.texi: Likewise.
24921         * doc/posix-functions/iswlower.texi: Likewise.
24922         * doc/posix-functions/iswprint.texi: Likewise.
24923         * doc/posix-functions/iswpunct.texi: Likewise.
24924         * doc/posix-functions/iswspace.texi: Likewise.
24925         * doc/posix-functions/iswupper.texi: Likewise.
24926         * doc/posix-functions/iswxdigit.texi: Likewise.
24927         Reported by Alain Guibert.
24928
24929 2008-04-21  Bruno Haible  <bruno@clisp.org>
24930
24931         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24932         Patch by Alain Guibert.
24933
24934 2008-04-21  Bruno Haible  <bruno@clisp.org>
24935
24936         Fix test failures on mingw.
24937         * tests/test-xstrtol.c (print_no_progname): New function.
24938         (main): Install it in error_print_progname hook.
24939         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24940         * tests/test-xstrtoimax.sh: Likewise.
24941         * tests/test-xstrtoumax.sh: Likewise.
24942
24943 2008-04-21  Bruno Haible  <bruno@clisp.org>
24944
24945         Fix test failure on mingw.
24946         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24947
24948 2008-04-21  Bruno Haible  <bruno@clisp.org>
24949
24950         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24951         Actually assign a value.
24952
24953 2008-04-20  Bruno Haible  <bruno@clisp.org>
24954
24955         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24956         take 2.
24957         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24958         'canonicalize-lgpl' module is also used.
24959         * lib/canonicalize-lgpl.c: Undo last change.
24960         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24961
24962 2008-04-20  Bruno Haible  <bruno@clisp.org>
24963
24964         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24965         config.h. Provide _mkdir based fallback for mingw.
24966         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24967         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24968         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24969         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24970         rather than defining mkdir in config.h.
24971         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24972         (gl_SYS_STAT_H_DEFAULTS): New macro.
24973         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24974         HAVE_IO_H any more.
24975         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24976         HAVE_DECL_MKDIR and HAVE_IO_H.
24977
24978 2008-04-20  Bruno Haible  <bruno@clisp.org>
24979
24980         * lib/isapipe.c: Port to native Windows platforms.
24981
24982 2008-04-20  Bruno Haible  <bruno@clisp.org>
24983
24984         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24985
24986 2008-04-21  Eric Blake  <ebb9@byu.net>
24987
24988         Work around preprocessors that don't handle UINTMAX_MAX.
24989         * lib/memchr2.c (memchr2): Avoid embedded #if.
24990         Reported by Alain Guibert, fix suggested by Bruno Haible.
24991
24992 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24993
24994         * doc/posix-functions/strftime.texi (strftime): Explain better
24995         Windows incompatibility.  Suggested by Micah Cowan
24996         <micah@cowan.name>.
24997
24998 2008-04-20  Bruno Haible  <bruno@clisp.org>
24999
25000         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25001         unistr/u8-mblen.
25002
25003 2008-04-20  Bruno Haible  <bruno@clisp.org>
25004
25005         Fix test failure on platforms with non-GNU iconv.
25006         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25007         (U_TO_U8): Use it, rather than u16_to_u8.
25008         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25009         units at the end of the input string.
25010         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25011
25012 2008-04-20  Bruno Haible  <bruno@clisp.org>
25013
25014         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25015         when the resulting length is 0.
25016         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25017
25018 2008-04-20  Bruno Haible  <bruno@clisp.org>
25019
25020         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25021         works.
25022         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25023
25024 2008-04-20  Bruno Haible  <bruno@clisp.org>
25025
25026         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25027         * modules/tsearch-tests (configure.ac): Test for initstate function.
25028
25029 2008-04-20  Bruno Haible  <bruno@clisp.org>
25030
25031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25032         for nlink_t if missing.
25033         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25034
25035 2008-04-19  Bruno Haible  <bruno@clisp.org>
25036
25037         Work around snprintf bug on Linux libc5.
25038         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25040         gl_SNPRINTF_SIZE1.
25041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25042         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25043         that test failed.
25044         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25045         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25046         * modules/snprintf (Files): Add m4/printf.m4.
25047         * modules/vsnprintf (Files): Likewise.
25048         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25049         * doc/posix-functions/vsnprintf.texi: Likewise.
25050
25051 2008-04-19  Bruno Haible  <bruno@clisp.org>
25052
25053         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25054         from 0.0058 to less than 10^-7.
25055
25056 2008-04-19  Bruno Haible  <bruno@clisp.org>
25057
25058         Fix rounding when a precision is given.
25059         * lib/vasnprintf.c (is_borderline): New function.
25060         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25061         9...9x.
25062         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25063         %e, %g.
25064         * tests/test-vasprintf-posix.c (test_function): Likewise.
25065         * tests/test-snprintf-posix.h (test_function): Likewise.
25066         * tests/test-sprintf-posix.h (test_function): Likewise.
25067         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25068         * tests/test-printf-posix.h (test_function): Likewise.
25069         * tests/test-printf-posix.output: Update.
25070         Reported by John Darrington <john@darrington.wattle.id.au> via
25071         Ben Pfaff <blp@cs.stanford.edu>.
25072
25073 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25074
25075         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25076         Suggested by Bruno Haible <bruno@clisp.org>.
25077
25078 2008-04-17  Bruno Haible  <bruno@clisp.org>
25079
25080         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25081         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25082         implementation.
25083         Patch by Bruce Merry <bmerry@gmail.com>.
25084
25085 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25086
25087         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25088         doesn't work under Windows.
25089
25090 2008-04-16  Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25093         New macros.
25094         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25095         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25096         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25097         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25098         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25099         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25100         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25101         macros.
25102         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25103         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25104         Northern Sotho, Uighur.
25105
25106 2008-04-16  Bruno Haible  <bruno@clisp.org>
25107
25108         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25109         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25110         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25111         Reported by Daniel Bergström <daniel@octocode.com>.
25112
25113 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25114             Bruno Haible  <bruno@clisp.org>
25115
25116         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25117         function.
25118         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25119         New functions, mostly extracted from gl_locale_name_default.
25120         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25121
25122 2008-04-16  Eric Blake  <ebb9@byu.net>
25123
25124         Adjust strtod detection to catch glibc 2.7 bug.
25125         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25126         Reported by John Gatewood Ham.
25127
25128 2008-04-16  Bruno Haible  <bruno@clisp.org>
25129
25130         Add tentative support for Linux libc5.
25131         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25132         * lib/fpurge.c (fpurge): Likewise.
25133         * lib/freadable.c (freadable): Likewise.
25134         * lib/freadahead.c (freadahead): Likewise.
25135         * lib/freading.c (freading): Likewise.
25136         * lib/freadptr.c (freadptr): Likewise.
25137         * lib/freadseek.c (freadptrinc): Likewise.
25138         * lib/fseeko.c (rpl_fseeko): Likewise.
25139         * lib/fseterr.c (fseterr): Likewise.
25140         * lib/fwritable.c (fwritable): Likewise.
25141         * lib/fwriting.c (fwriting): Likewise.
25142         Reported by Alain Guibert <alguibert+bts@free.fr>.
25143
25144 2008-04-15  Bruno Haible  <bruno@clisp.org>
25145
25146         * modules/mathl (configure.ac): Define module indicator.
25147
25148 2008-04-15  Bruno Haible  <bruno@clisp.org>
25149
25150         * lib/logl.c (logl): Remove unused variables.
25151
25152 2008-04-15  Bruno Haible  <bruno@clisp.org>
25153
25154         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25155         fails.
25156
25157 2008-04-15  Bruno Haible  <bruno@clisp.org>
25158
25159         * lib/trim.c (trim2): Fix argument of isspace() macro.
25160
25161 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25162
25163         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25164         to 0.
25165         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25166
25167 2008-04-14  Bruno Haible  <bruno@clisp.org>
25168
25169         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25170         AC_LANG_PROGRAM argument.
25171         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25172         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25174         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25175         * m4/math_h.m4 (gl_MATH_H): Likewise.
25176         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25177         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25178         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25179         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25180         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25181         * m4/regex.m4 (gl_REGEX): Likewise.
25182         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25183         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25185         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25186         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25187         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25190
25191 2008-04-14  Jim Meyering  <meyering@redhat.com>
25192
25193         test-strtod: fix typos: s/abs/fabs/
25194         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25195
25196 2008-04-13  Bruno Haible  <bruno@clisp.org>
25197
25198         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25199         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25200         module is also used and while not building the reloc-wrapper.
25201
25202 2008-04-13  Bruno Haible  <bruno@clisp.org>
25203
25204         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25205
25206 2008-04-13  Bruno Haible  <bruno@clisp.org>
25207
25208         Fix AIX compilation failure introduced on 2008-04-02.
25209         * tests/test-frexp.c (exp): Undefine before redefining.
25210         * tests/test-frexpl.c (exp): Likewise.
25211
25212 2008-04-13  Bruno Haible  <bruno@clisp.org>
25213
25214         Work around a HP-UX stdio bug.
25215         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25216         * tests/test-ftello.c (main): Likewise.
25217         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25218         * doc/posix-functions/ftello.texi: Likewise.
25219
25220 2008-04-13  Bruno Haible  <bruno@clisp.org>
25221
25222         Make test-signbit pass on HP-UX/hppa.
25223         * tests/test-signbit.c (minus_zerol): New variable.
25224         (test_signbitl): Use it.
25225
25226 2008-04-13  Bruno Haible  <bruno@clisp.org>
25227
25228         Make truncl work on OSF/1 4.0.
25229         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25230         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25231         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25233         HAVE_DECL_TRUNCL.
25234         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25235         HAVE_DECL_TRUNCL.
25236         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25237
25238 2008-04-13  Bruno Haible  <bruno@clisp.org>
25239
25240         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25241
25242 2008-04-13  Bruno Haible  <bruno@clisp.org>
25243
25244         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25245         expression, so as to avoid HP-UX 11 cc compiler bug.
25246
25247 2008-04-13  Bruno Haible  <bruno@clisp.org>
25248
25249         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25250
25251 2008-04-13  Bruno Haible  <bruno@clisp.org>
25252
25253         * lib/git-merge-changelog.c: Remove empty declaration outside of
25254         functions.
25255
25256 2008-04-13  Bruno Haible  <bruno@clisp.org>
25257
25258         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25259
25260 2008-04-13  Bruno Haible  <bruno@clisp.org>
25261
25262         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25263         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25265         also if it exists but lacks definitions of the SHUT_* macros.
25266         * modules/sys_socket (Description): Update.
25267         Reported by Elbert Pol <e.pol@chello.nl>.
25268
25269 2008-04-13  Bruno Haible  <bruno@clisp.org>
25270
25271         * lib/localcharset.c (OS2): Don't redefine if already defined.
25272         Reported by Elbert Pol <e.pol@chello.nl>.
25273
25274 2008-04-13  Bruno Haible  <bruno@clisp.org>
25275
25276         * lib/binary-io.h [__EMX__]: Include <io.h>.
25277         Reported by Elbert Pol <e.pol@chello.nl>.
25278
25279 2008-04-12  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/fpucw.h: Enable the definitions also for x86_64.
25282         Needed for NetBSD/x86_64.
25283         Reported by Thomas Klausner <tk@giga.or.at>.
25284
25285 2008-04-12  Bruno Haible  <bruno@clisp.org>
25286
25287         * tests/test-strtod.c: Include isnand.h.
25288         (main): Use isnand instead of isnan.
25289         Reported by Jim Meyering.
25290
25291 2008-04-12  Bruno Haible  <bruno@clisp.org>
25292
25293         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25294         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25295
25296 2008-04-12  Jim Meyering  <meyering@redhat.com>
25297
25298         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25299
25300 2008-04-12  Bruno Haible  <bruno@clisp.org>
25301
25302         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25303         Reported by Elbert Pol <e.pol@chello.nl>.
25304
25305 2008-04-12  Eric Blake  <ebb9@byu.net>
25306
25307         Work around Solaris 10 math.h bug.
25308         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25309         (gl_MATH_H_DEFAULTS): Set up default.
25310         * modules/math (Makefile.am): Replace new indicators.
25311         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25312         * tests/test-math.c (main): Test this.
25313         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25314         * doc/posix-headers/math.texi (math.h): Mention bug.
25315         Reported by Nelson H. F. Beebe and Jim Meyering.
25316
25317 2008-04-11  Bruno Haible  <bruno@clisp.org>
25318
25319         Adapt to future versions of Apple GCC.
25320         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25321         Reported by Peter O'Gorman <peter@pogma.com>.
25322
25323 2008-04-11  Bruno Haible  <bruno@clisp.org>
25324
25325         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25326
25327 2008-04-11  Bruno Haible  <bruno@clisp.org>
25328
25329         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25330
25331         * modules/getaddrinfo-tests (Makefile.am): Define
25332         test_getaddrinfo_LDADD.
25333
25334 2008-04-11  Bruno Haible  <bruno@clisp.org>
25335
25336         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25337         (init): Fix syntax error.
25338         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25339         is declared.
25340
25341 2008-04-11  Bruno Haible  <bruno@clisp.org>
25342
25343         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25344         * modules/glob (Depends-on): Add stdbool.
25345
25346 2008-04-11  Bruno Haible  <bruno@clisp.org>
25347
25348         * lib/trim.c: Include <string.h>.
25349
25350 2008-04-11  Eric Blake  <ebb9@byu.net>
25351
25352         Avoid compile failure on OS/2.
25353         * lib/regex_internal.h (internal_function): Disable optimization
25354         on OS/2 (__EMX__), where it caused compiler error.
25355         Reported by Elbert Pol.
25356
25357 2008-04-11  Bruno Haible  <bruno@clisp.org>
25358
25359         Flush the standard error stream before aborting. Needed on mingw.
25360         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25361         * tests/test-array_list.c (ASSERT): Likewise.
25362         * tests/test-array_oset.c (ASSERT): Likewise.
25363         * tests/test-avltree_list.c (ASSERT): Likewise.
25364         * tests/test-avltree_oset.c (ASSERT): Likewise.
25365         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25366         * tests/test-binary-io.c (ASSERT): Likewise.
25367         * tests/test-byteswap.c (ASSERT): Likewise.
25368         * tests/test-c-ctype.c (ASSERT): Likewise.
25369         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25370         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25371         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25372         * tests/test-c-strstr.c (ASSERT): Likewise.
25373         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25374         * tests/test-canonicalize.c (ASSERT): Likewise.
25375         * tests/test-carray_list.c (ASSERT): Likewise.
25376         * tests/test-ceilf1.c (ASSERT): Likewise.
25377         * tests/test-ceilf2.c (ASSERT): Likewise.
25378         * tests/test-ceill.c (ASSERT): Likewise.
25379         * tests/test-count-one-bits.c (ASSERT): Likewise.
25380         * tests/test-fbufmode.c (ASSERT): Likewise.
25381         * tests/test-fflush2.c (ASSERT): Likewise.
25382         * tests/test-floorf1.c (ASSERT): Likewise.
25383         * tests/test-floorf2.c (ASSERT): Likewise.
25384         * tests/test-floorl.c (ASSERT): Likewise.
25385         * tests/test-fopen.c (ASSERT): Likewise.
25386         * tests/test-fpending.c (ASSERT): Likewise.
25387         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25388         * tests/test-fpurge.c (ASSERT): Likewise.
25389         * tests/test-freadable.c (ASSERT): Likewise.
25390         * tests/test-freadahead.c (ASSERT): Likewise.
25391         * tests/test-freading.c (ASSERT): Likewise.
25392         * tests/test-freadptr.c (ASSERT): Likewise.
25393         * tests/test-freadptr2.c (ASSERT): Likewise.
25394         * tests/test-freadseek.c (ASSERT): Likewise.
25395         * tests/test-freopen.c (ASSERT): Likewise.
25396         * tests/test-frexp.c (ASSERT): Likewise.
25397         * tests/test-frexpl.c (ASSERT): Likewise.
25398         * tests/test-fseek.c (ASSERT): Likewise.
25399         * tests/test-fseeko.c (ASSERT): Likewise.
25400         * tests/test-fstrcmp.c (ASSERT): Likewise.
25401         * tests/test-ftell.c (ASSERT): Likewise.
25402         * tests/test-ftello.c (ASSERT): Likewise.
25403         * tests/test-func.c (ASSERT): Likewise.
25404         * tests/test-fwritable.c (ASSERT): Likewise.
25405         * tests/test-fwriting.c (ASSERT): Likewise.
25406         * tests/test-getdelim.c (ASSERT): Likewise.
25407         * tests/test-getline.c (ASSERT): Likewise.
25408         * tests/test-i-ring.c (ASSERT): Likewise.
25409         * tests/test-iconv-utf.c (ASSERT): Likewise.
25410         * tests/test-iconv.c (ASSERT): Likewise.
25411         * tests/test-isfinite.c (ASSERT): Likewise.
25412         * tests/test-isnand.c (ASSERT): Likewise.
25413         * tests/test-isnanf.c (ASSERT): Likewise.
25414         * tests/test-isnanl.h (ASSERT): Likewise.
25415         * tests/test-ldexpl.c (ASSERT): Likewise.
25416         * tests/test-linked_list.c (ASSERT): Likewise.
25417         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25418         * tests/test-localename.c (ASSERT): Likewise.
25419         * tests/test-lseek.c (ASSERT): Likewise.
25420         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25421         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25422         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25423         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25424         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25425         * tests/test-mbschr.c (ASSERT): Likewise.
25426         * tests/test-mbscspn.c (ASSERT): Likewise.
25427         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25428         * tests/test-mbspbrk.c (ASSERT): Likewise.
25429         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25430         * tests/test-mbsrchr.c (ASSERT): Likewise.
25431         * tests/test-mbsspn.c (ASSERT): Likewise.
25432         * tests/test-mbsstr1.c (ASSERT): Likewise.
25433         * tests/test-mbsstr2.c (ASSERT): Likewise.
25434         * tests/test-mbsstr3.c (ASSERT): Likewise.
25435         * tests/test-memchr2.c (ASSERT): Likewise.
25436         * tests/test-memmem.c (ASSERT): Likewise.
25437         * tests/test-open.c (ASSERT): Likewise.
25438         * tests/test-printf-frexp.c (ASSERT): Likewise.
25439         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25440         * tests/test-printf-posix.c (ASSERT): Likewise.
25441         * tests/test-quotearg.c (ASSERT): Likewise.
25442         * tests/test-rbtree_list.c (ASSERT): Likewise.
25443         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25444         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25445         * tests/test-round1.c (ASSERT): Likewise.
25446         * tests/test-roundf1.c (ASSERT): Likewise.
25447         * tests/test-roundl.c (ASSERT): Likewise.
25448         * tests/test-signbit.c (ASSERT): Likewise.
25449         * tests/test-sleep.c (ASSERT): Likewise.
25450         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25451         * tests/test-snprintf.c (ASSERT): Likewise.
25452         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25453         * tests/test-stat-time.c (ASSERT): Likewise.
25454         * tests/test-strcasestr.c (ASSERT): Likewise.
25455         * tests/test-strerror.c (ASSERT): Likewise.
25456         * tests/test-striconv.c (ASSERT): Likewise.
25457         * tests/test-striconveh.c (ASSERT): Likewise.
25458         * tests/test-striconveha.c (ASSERT): Likewise.
25459         * tests/test-strsignal.c (ASSERT): Likewise.
25460         * tests/test-strstr.c (ASSERT): Likewise.
25461         * tests/test-strtod.c (ASSERT): Likewise.
25462         * tests/test-trunc1.c (ASSERT): Likewise.
25463         * tests/test-trunc2.c (ASSERT): Likewise.
25464         * tests/test-truncf1.c (ASSERT): Likewise.
25465         * tests/test-truncf2.c (ASSERT): Likewise.
25466         * tests/test-truncl.c (ASSERT): Likewise.
25467         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25468         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25469         * tests/test-vasnprintf.c (ASSERT): Likewise.
25470         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25471         * tests/test-vasprintf.c (ASSERT): Likewise.
25472         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25473         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25474         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25475         * tests/test-vsnprintf.c (ASSERT): Likewise.
25476         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25477         * tests/test-wcwidth.c (ASSERT): Likewise.
25478         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25479         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25480         * tests/test-xvasprintf.c (ASSERT): Likewise.
25481         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25482         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25483         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25484         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25485         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25486         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25487         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25488         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25489         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25490         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25491         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25492         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25493         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25494         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25495         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25496         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25497         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25498         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25499         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25500         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25501         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25502         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25503         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25504         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25505         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25506         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25507         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25508         * tests/unictype/test-combining.c (ASSERT): Likewise.
25509         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25510         * tests/unictype/test-digit.c (ASSERT): Likewise.
25511         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25512         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25513         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25514         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25515         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25516         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25517         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25518         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25519         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25520         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25521         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25522         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25523         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25524         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25525         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25526         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25527         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25528         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25529         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25530         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25531         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25532         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25533         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25534         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25535         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25536         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25537         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25538         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25539         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25540         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25541         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25542         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25543         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25544         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25545         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25546         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25547         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25548         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25549         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25550         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25551         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25552         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25553         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25554         Reported by Eric Blake.
25555
25556 2008-04-11  Bruno Haible  <bruno@clisp.org>
25557
25558         * lib/wchar.in.h: Tweak comment.
25559
25560 2008-04-11  Bruno Haible  <bruno@clisp.org>
25561
25562         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25563         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25564         gl_COMMON.
25565         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25566
25567 2008-04-11  Bruno Haible  <bruno@clisp.org>
25568
25569         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25570
25571 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25572
25573         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25574         of attempting to use non-existing /dev/*random.  Based on patch
25575         from Adam Strzelecki <ono@java.pl> in
25576         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25577
25578 2008-04-08  Bruno Haible  <bruno@clisp.org>
25579
25580         Add tentative support for emx+gcc.
25581         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25582         * lib/fpurge.c (fpurge): Likewise.
25583         * lib/freadable.c (freadable): Likewise.
25584         * lib/freadahead.c (freadahead): Likewise.
25585         * lib/freading.c (freading): Likewise.
25586         * lib/freadptr.c (freadptr): Likewise.
25587         * lib/freadseek.c (freadptrinc): Likewise.
25588         * lib/fseeko.c (rpl_fseeko): Likewise.
25589         * lib/fseterr.c (fseterr): Likewise.
25590         * lib/fwritable.c (fwritable): Likewise.
25591         * lib/fwriting.c (fwriting): Likewise.
25592         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25593
25594 2008-04-09  Eric Blake  <ebb9@byu.net>
25595
25596         Avoid some autoconf warnings.
25597         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25598         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25599         * m4/afs.m4 (gl_AFS): Likewise.
25600         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25601         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25602         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25603         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25604         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25605         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25606         (AC_CHECK_DECLS_ONCE): Likewise.
25607         Rename file...
25608         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25609         gnulib-tool requires autoconf 2.59 or better.
25610         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25611
25612 2008-04-08  Eric Blake  <ebb9@byu.net>
25613
25614         Use 'git describe --match' if present (added in git 1.5.5).
25615         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25616         if possible.
25617
25618 2008-04-08  Bruno Haible  <bruno@clisp.org>
25619
25620         Add tentative support for OpenServer.
25621         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25622         _ptr, _cnt.
25623         * lib/fpurge.c (fpurge): Likewise.
25624         * lib/freadable.c (freadable): Likewise.
25625         * lib/freadahead.c (freadahead): Likewise.
25626         * lib/freading.c (freading): Likewise.
25627         * lib/freadptr.c (freadptr): Likewise.
25628         * lib/freadseek.c (freadptrinc): Likewise.
25629         * lib/fseeko.c (rpl_fseeko): Likewise.
25630         * lib/fseterr.c (fseterr): Likewise.
25631         * lib/fwritable.c (fwritable): Likewise.
25632         * lib/fwriting.c (fwriting): Likewise.
25633         Reported by Roger Cornelius <rac@tenzing.org> and
25634         Brian K. White <brian@aljex.com>.
25635
25636 2008-04-06  Jim Meyering  <meyering@redhat.com>
25637
25638         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25639
25640 2008-04-06  Bruno Haible  <bruno@clisp.org>
25641
25642         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25643         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25644         * tests/test-printf-posix.sh: Likewise.
25645         * tests/test-vfprintf-posix.sh: Likewise.
25646         * tests/test-vprintf-posix.sh: Likewise.
25647         * tests/test-xprintf-posix.sh: Likewise.
25648
25649 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25650
25651         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25652         hide error from 'ls', needed on OS/2.
25653         Report by Elbert Pol <elbert.pol@gmail.com>.
25654
25655 2008-04-04  Eric Blake  <ebb9@byu.net>
25656
25657         Make test-fseeko.c failures meaningful.
25658         * tests/test-fseeko.c: Print line number on failure.
25659         * tests/test-fseek.c: Likewise.
25660         Reported by Nelson H. F. Beebe.
25661
25662         Improve strtod bug detection check.
25663         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25664         required for Solaris 10.
25665         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25666
25667 2008-04-04  Bruno Haible  <bruno@clisp.org>
25668
25669         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25670         by m4/setenv.m4.
25671
25672 2008-04-03  Eric Blake  <ebb9@byu.net>
25673
25674         Ensure sane .version contents.
25675         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25676         version string.
25677         * build-aux/git-version-gen: Improve documentation.
25678
25679         Make GNU make output nicer.
25680         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25681         MAKECMDGOALS to enforce message for all command line targets.  Set
25682         srcdir for use in maint.mk.
25683
25684         Another maintainer tweak.
25685         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25686         a target that regenerates version.
25687
25688 2008-04-03  Jim Meyering  <meyering@redhat.com>
25689
25690         vc-list-files: don't cause coreutils "make po-check" failure
25691         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25692
25693 2008-04-03  Eric Blake  <ebb9@byu.net>
25694
25695         Allow VPATH usage of vc-list-files.
25696         * build-aux/vc-list-files (scriptversion): Add timestamp.
25697         (options): Add --help, --version, -C.
25698         (CVS): Support installed cvsu.
25699
25700 2008-04-02  Bruno Haible  <bruno@clisp.org>
25701
25702         Avoid some "statement with no effect" warnings from gcc.
25703         * tests/test-wctype.c (main): Explicitly ignore unused values.
25704         Reported by Jim Meyering.
25705
25706 2008-04-02  Jim Meyering  <meyering@redhat.com>
25707
25708         Avoid some warnings from "gcc -Wshadow".
25709         * tests/test-frexp.c (exp): Define to a different identifier.
25710         * tests/test-frexpl.c (exp): Likewise.
25711
25712 2008-04-03  Jim Meyering  <meyering@redhat.com>
25713
25714         bootstrap: remove dangling *.[ch] symlinks from lib
25715         * build-aux/bootstrap [dangling symlink removal]: Move find's
25716         -depth option to precede all others, to avoid a warning.
25717         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25718
25719 2008-04-02  Bruno Haible  <bruno@clisp.org>
25720
25721         Avoid some warnings from "gcc -Wshadow".
25722         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25723         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25724         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25725         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25726         Reported by Jim Meyering.
25727
25728 2008-04-01  Bruno Haible  <bruno@clisp.org>
25729
25730         Fix test to work on IRIX 6.5 with cc.
25731         * tests/test-math.c (numeric_equal): New function.
25732         (main): Use it.
25733
25734 2008-04-01  Bruno Haible  <bruno@clisp.org>
25735
25736         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25737
25738 2008-04-01  Bruno Haible  <bruno@clisp.org>
25739
25740         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25741         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25742         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25743         (Depends-on): Remove math.
25744
25745         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25746         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25747         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25748         (Depends-on): Remove math.
25749
25750         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25751         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25752         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25753         (Depends-on): Remove math.
25754         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25755         (Depends-on): Remove math.
25756
25757         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25758         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25759         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25760         (Depends-on): Remove math.
25761         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25762         (Depends-on): Remove math.
25763
25764         * tests/test-round1.c: Include nan.h.
25765         (main): Use NaNd instead of NAN.
25766         * modules/round-tests (Files): Add tests/nan.h.
25767
25768         * tests/test-trunc1.c: Include nan.h.
25769         (main): Use NaNd instead of NAN.
25770         * modules/trunc-tests (Files): Add tests/nan.h.
25771
25772         * tests/test-roundf1.c: Include nan.h.
25773         (main): Use NaNf instead of NAN.
25774         * modules/roundf-tests (Files): Add tests/nan.h.
25775
25776         * tests/test-truncf1.c: Include nan.h.
25777         (main): Use NaNf instead of NAN.
25778         * modules/truncf-tests (Files): Add tests/nan.h.
25779
25780         * tests/test-ceilf1.c: Include nan.h.
25781         (main): Use NaNf instead of NAN.
25782         * modules/ceilf-tests (Files): Add tests/nan.h.
25783
25784         * tests/test-floorf1.c: Include nan.h.
25785         (main): Use NaNf instead of NAN.
25786         * modules/floorf-tests (Files): Add tests/nan.h.
25787
25788         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25789         (main): Use NaNf instead of NAN.
25790         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25791
25792         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25793         (main): Use NaNd instead of NAN.
25794         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25795
25796         * tests/test-frexp.c: Include nan.h.
25797         (main): Use NaNd instead of NAN.
25798         * modules/frexp-tests (Files): Add tests/nan.h.
25799
25800         * lib/isnan.c: Don't include <math.h>.
25801         (FUNC): Don't use NAN macro.
25802         * modules/isnand-nolibm (Depends-on): Remove math.
25803         * modules/isnanf-nolibm (Depends-on): Remove math.
25804         * modules/isnanl (Depends-on): Remove math.
25805         * modules/isnanl-nolibm (Depends-on): Remove math.
25806
25807         * tests/nan.h: New file.
25808
25809 2008-04-01  Eric Blake  <ebb9@byu.net>
25810
25811         Fix typos.
25812         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25813         values to be the right type.
25814
25815         For now, cater to gnulib strtod inaccuracies.
25816         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25817         fractional results.  While not as nice from a QoI perspective, it
25818         is a quicker patch than correctly implementing decimal to binary
25819         rounding.
25820
25821 2008-03-31  Eric Blake  <ebb9@byu.net>
25822
25823         Guarantee a definition of NAN.
25824         * lib/math.in.h (NAN): Define if missing.
25825         * tests/test-math.c (main): Test it.
25826         * doc/posix-headers/math.texi (math.h): Document this.
25827         * lib/isnan.c (rpl_isnand): Use it.
25828         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25829         * tests/test-floorf1.c (NaN): Likewise.
25830         * tests/test-frexp.c (NaN): Likewise.
25831         * tests/test-isnand.c (NaN): Likewise.
25832         * tests/test-isnanf.c (NaN): Likewise.
25833         * tests/test-round1.c (NaN): Likewise.
25834         * tests/test-roundf1.c (NaN): Likewise.
25835         * tests/test-snprintf-posix.h (NaN): Likewise.
25836         * tests/test-sprintf-posix.h (NaN): Likewise.
25837         * tests/test-trunc1.c (NaN): Likewise.
25838         * tests/test-truncf1.c (NaN): Likewise.
25839         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25840         * tests/test-vasprintf-posix.c (NaN): Likewise.
25841         * modules/isnand-nolibm (Depends-on): Add math.
25842         * modules/isnanf-nolibm (Depends-on): Likewise.
25843         * modules/isnanl (Depends-on): Likewise.
25844         * modules/isnanl-nolibm (Depends-on): Likewise.
25845         * modules/snprintf-posix-tests (Depends-on): Likewise.
25846         * modules/sprintf-posix-tests (Depends-on): Likewise.
25847         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25848         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25849         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25850         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25851
25852 2008-03-31  Bruno Haible  <bruno@clisp.org>
25853
25854         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25855         * doc/posix-functions/strtod.texi: Likewise.
25856
25857 2008-03-31  Bruno Haible  <bruno@clisp.org>
25858
25859         * tests/test-strtod.c (main): Don't use C99 syntax.
25860
25861 2008-03-31  Bruno Haible  <bruno@clisp.org>
25862
25863         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25864         Reported by Eric Blake.
25865
25866 2008-03-31  Jim Meyering  <meyering@redhat.com>
25867
25868         Don't compare actual signbit return values.
25869         * tests/test-strtod.c (main): Rather, compare only their
25870         zero/non-zero nature.
25871
25872 2008-03-31  Eric Blake  <ebb9@byu.net>
25873
25874         More strtod documentation.
25875         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25876         failures as distinct bugs.
25877
25878 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25879
25880         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25881         Problem reported by Erik Benada in
25882         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25883
25884 2008-03-30  Bruno Haible  <bruno@clisp.org>
25885
25886         * tests/test-strtod.c: Add comments about which assertion fails on which
25887         platform.
25888         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25889
25890 2008-03-30  Eric Blake  <ebb9@byu.net>
25891
25892         Test signbit behavior on zeros.
25893         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25894         (test_signbitd, test_signbitl): Likewise.
25895
25896         More strtod touchups.
25897         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25898         sign of negative underflow, for now.  Use .5, not .1.
25899         * doc/posix-functions/strtod.texi (strtod): Mention these
25900         limitations.
25901         Reported by Jim Meyering.
25902
25903 2008-03-30  Bruno Haible  <bruno@clisp.org>
25904
25905         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25906         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25907
25908 2008-03-30  Bruno Haible  <bruno@clisp.org>
25909
25910         Avoid failure when attempting to return empty iconv results on some
25911         platforms.
25912         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25913         allocation, don't report ENOMEM when the resulting string is empty.
25914
25915 2008-03-30  Bruno Haible  <bruno@clisp.org>
25916
25917         Fix buffer overrun.
25918         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25919         Don't consider the width for tmp_length. Check count against tmp_length
25920         before doing the padding. Ensure enough allocation during padding.
25921
25922 2008-03-30  Eric Blake  <ebb9@byu.net>
25923
25924         strtod touchups.
25925         * lib/strtod.c (strtod): Avoid compiler warnings.
25926         Reported by Jim Meyering.
25927
25928 2008-03-30  Bruno Haible  <bruno@clisp.org>
25929
25930         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25931         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25932         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25933         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25934         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25935         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25936         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25937         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25938
25939         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25940         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25941         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25942         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25943         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25944         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25945         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25946         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25947
25948         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25949         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25950         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25951         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25952         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25953         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25954         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25955         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25956
25957         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25958         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25959
25960         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25961         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25962
25963         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25964         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25965
25966         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25968         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25969
25970         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25972         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25973
25974         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25976         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25977
25978         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25980         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25981
25982         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25983         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25985         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25986         (Depends-on): Add EOVERFLOW.
25987         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25988         (Depends-on): Add EOVERFLOW.
25989         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25990         (Depends-on): Add EOVERFLOW.
25991         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25992         (Depends-on): Add EOVERFLOW.
25993         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25994         (Depends-on): Add EOVERFLOW.
25995         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25996         (Depends-on): Add EOVERFLOW.
25997         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25998         (Depends-on): Add EOVERFLOW.
25999         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26000         (Depends-on): Add EOVERFLOW.
26001
26002         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26004         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26005
26006         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26008         * modules/snprintf (Depends-on): Add EOVERFLOW.
26009
26010         * lib/poll.c (EOVERFLOW): Remove fallback.
26011         * modules/poll (Depends-on): Add EOVERFLOW.
26012
26013         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26014         * modules/getugroups (Depends-on): Add EOVERFLOW.
26015
26016         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26017         * modules/getdelim (Depends-on): Add EOVERFLOW.
26018
26019         * lib/ftell.c (EOVERFLOW): Remove fallback.
26020         * modules/ftell (Depends-on): Add EOVERFLOW.
26021
26022         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26024         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26025
26026         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26027
26028         * modules/EOVERFLOW-tests: New file.
26029         * tests/test-EOVERFLOW.c: New file.
26030
26031         * modules/EOVERFLOW: New file.
26032         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26033
26034 2008-03-30  Bruno Haible  <bruno@clisp.org>
26035
26036         Fix bug introduced on 2007-06-10.
26037         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26038         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26039
26040 2008-03-30  Bruno Haible  <bruno@clisp.org>
26041
26042         Improve freadseek's efficiency after ungetc.
26043         * lib/freadseek.c: Include freadahead.h.
26044         (freadptrinc): New function, extracted from freadseek.
26045         (freadseek): Use it in a loop. Use freadahead to determine the number
26046         of loop iterations.
26047         * modules/freadseek (Depends-on): Add freadahead.
26048         (configure.ac): Require AC_C_INLINE.
26049
26050 2008-03-30  Bruno Haible  <bruno@clisp.org>
26051
26052         * lib/freadseek.c (freadseek): Don't ignore the return value of
26053         freadptr.
26054
26055 2008-03-29  Eric Blake  <ebb9@byu.net>
26056
26057         Add hex float support.
26058         * modules/strtod (Depends-on): Add c-ctype.
26059         (Link): Mention POW_LIB.
26060         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26061         whitespace between 'e' and exponent.
26062         * tests/test-strtod.c (main): Enable hex float tests.
26063         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26064         now provides.
26065
26066         Document various strtod bugs, with some fixes.
26067         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26068         "-0x", "inf", "nan", and hex constants.
26069         * doc/posix-functions/atof.texi (atof): Likewise.
26070         * modules/stdlib (Makefile.am): Support strtod.
26071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26072         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26073         detect additional strtod bugs.
26074         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26075         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26076         bool where appropriate.  Parse 'inf' and 'nan'.
26077         * tests/test-strtod.c: New file.
26078         * modules/strtod (Depends-on): Add stdbool, stdlib.
26079         (configure.ac): Turn on module indicator.
26080         * modules/strtod-tests: New module.
26081
26082 2008-03-29  Eric Blake  <ebb9@byu.net>
26083
26084         Fix ftell on mingw.
26085         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26086         * modules/ftell-tests (Depends-on): Add binary-io.
26087         * modules/ftello-tests (Depends-on): Likewise.
26088         * tests/test-ftell.c (main): Enhance test to cover behavior after
26089         ungetc.  Enforce binary mode.
26090         * tests/test-ftello.c (main): Likewise.
26091
26092         Pass test-freadseek on cygwin.
26093         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26094         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26095         ungetc buffer.
26096
26097         * tests/test-fflush2.c (main): Fix typo.
26098
26099 2008-03-29  Bruno Haible  <bruno@clisp.org>
26100
26101         * tests/test-fflush2.c (main): Temporarily disable the contents of
26102         this test.
26103         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26104         Reported by Eric Blake.
26105
26106 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26107
26108         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26109         (GC_SHA224_DIGEST_SIZE): Add.
26110
26111         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26112         (gc_hash_digest_length): Likewise.
26113         (gc_hash_buffer): Likewise.
26114
26115 2008-03-25  Bruno Haible  <bruno@clisp.org>
26116
26117         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26118         detail which gettext release to use.
26119         Reported by Simon Josefsson.
26120
26121 2008-03-26  Jim Meyering  <meyering@redhat.com>
26122
26123         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26124         * modules/gnumakefile (clean-GNUmakefile): Also, use
26125         test ... && ... || : syntax rather than if-then ... fi.
26126
26127         gnumakefile: Don't double-quote-expand $(VPATH) value.
26128         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26129
26130 2008-03-24  Eric Blake  <ebb9@byu.net>
26131
26132         Alter GNUmakefile to install into top directory.
26133         * modules/maintainer-makefile: Split, and add dependency...
26134         * modules/gnumakefile: to this new module.
26135         * build-aux/GNUmakefile: Move...
26136         * top/GNUmakefile: ...here.
26137         * build-aux/maint.mk: Move...
26138         * top/maint.mk: ...here.
26139         * MODULES.html.sh (Support for maintaining...): Document new
26140         module.
26141
26142 2008-03-23  Bruno Haible  <bruno@clisp.org>
26143
26144         * gnulib-tool: New options --vc-files, --no-vc-files.
26145         (func_usage): Document them.
26146         (vc_files): New variable.
26147         (func_import): Consider vc_files.
26148         (func_create_testdir): Set vc_files to empty.
26149         Suggested by Jim Meyering and Karl Berry.
26150
26151 2008-03-23  Bruno Haible  <bruno@clisp.org>
26152
26153         Fix regex compilation error on HP-UX 11.
26154         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26155         * modules/regex (Files): Add m4/mbstate_t.m4.
26156         Reported by Ton Voon <ton.voon@altinity.com>.
26157
26158 2008-03-23  Bruno Haible  <bruno@clisp.org>
26159
26160         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26161
26162 2008-03-23  Eric Blake  <ebb9@byu.net>
26163             Bruno Haible  <bruno@clisp.org>
26164
26165         Install files from top/ in the destination directory.
26166         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26167         augmentation also for the files from top/.
26168         (func_import, func_create_testdir): Rewrite file names:
26169         top/filename -> filename.
26170
26171 2008-03-23  Bruno Haible  <bruno@clisp.org>
26172
26173         Tweak "gnulib --version" output.
26174         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26175
26176 2008-03-23  Bruno Haible  <bruno@clisp.org>
26177
26178         Tweak "gnulib --version" output.
26179         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26180         rather than contents of ChangeLog, when possible.
26181
26182 2008-03-21  Eric Blake  <ebb9@byu.net>
26183
26184         More --version tweaks.
26185         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26186         date of last ChangeLog entry.
26187
26188 2008-03-21  Jim Meyering  <meyering@redhat.com>
26189
26190         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26191
26192 2008-03-20  Eric Blake  <ebb9@byu.net>
26193
26194         VPATH fix.
26195         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26196
26197 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26198
26199         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26200         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26201
26202 2008-03-20  Eric Blake  <ebb9@byu.net>
26203
26204         Sync GNUmakefile with coreutils.
26205         * build-aux/GNUmakefile (have-Makefile): Rename...
26206         (_have-Makefile): ...to this, for namespace consideration.
26207         (GNUmakefile.cfg): Include, if present.
26208         (_autoreconf): Define a default.
26209         (_is-dist-target): New rule for rebuilds to pick up intra-release
26210         version.
26211         (maint-cfg.mk): Rename...
26212         (cfg.mk): ...to this.
26213
26214 2008-03-18  Jim Meyering  <meyering@redhat.com>
26215
26216         New script and module: mktempd
26217         * MODULES.html.sh (maint+release support): Add mktempd.
26218         * build-aux/mktempd: New file.
26219         * modules/mktempd: New file.
26220
26221 2008-03-15  Jim Meyering  <meyering@redhat.com>
26222
26223         Undo last change.
26224         * lib/sha1.c, lib/md5.c: 63 != ~63.
26225         Reported by Andreas Schwab.
26226
26227         sha1.c, md5.c: Hoist a redundant expression.
26228         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26229         "ctx->buflen" only once, before calling *_process_block.
26230         * lib/md5.c (md5_process_bytes): Likewise.
26231
26232 2008-03-14  Eric Blake  <ebb9@byu.net>
26233
26234         Bump copyright year in files generated by gnulib-tool.
26235         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26236         gnulib-tool, rather than hard-coding it.
26237
26238         Fix 'gnulib-tool --version' output to work with git.
26239         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26240         (startup): ...here.
26241         (func_version): Use it to invoke git-version-gen, rather than
26242         relying on CVS keyword expansion.  Modernize wording.
26243         (cvsdatestamp, last_checkin_date, version): Kill unused
26244         variables.
26245
26246 2008-03-12  Jim Meyering  <meyering@redhat.com>
26247
26248         Recognize optional cast of the argument to free.
26249         * build-aux/useless-if-before-free: Update regexps.
26250
26251         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26252
26253 2008-03-11  Bruno Haible  <bruno@clisp.org>
26254
26255         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26256         by a single package.
26257         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26258         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26259         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26260         Reported by Sam Steingold <sds@gnu.org>.
26261
26262 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26263
26264         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26265         repositories.
26266
26267 2008-03-11  Bruno Haible  <bruno@clisp.org>
26268
26269         Avoid conflicts between local macro definitions.
26270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26271         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26272
26273 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26274             Bruno Haible  <bruno@clisp.org>
26275
26276         Make va_copy work with some version of xlc on AIX 5.1.
26277         * lib/stdarg.in.h: New file.
26278         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26279         On AIX, use a <stdarg.h> file substitute.
26280         * modules/stdarg (Files): Add lib/stdarg.in.h.
26281         (Depends-on): Add include_next.
26282         (Makefile.am): Build a stdarg.h substitute if requested.
26283         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26284
26285 2008-03-10  Bruno Haible  <bruno@clisp.org>
26286
26287         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26288         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26289         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26290
26291 2008-03-10  Bruno Haible  <bruno@clisp.org>
26292
26293         * modules/stdlib (Depends-on): Add include_next, remove
26294         absolute-header.
26295
26296 2008-03-09  Bruno Haible  <bruno@clisp.org>
26297
26298         * lib/freadahead.h (freadahead): Document more precisely.
26299         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26300         the sum of both buffer sizes.
26301         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26302         * NEWS: Document the change.
26303
26304 2008-03-09  Bruno Haible  <bruno@clisp.org>
26305
26306         Extend freadptr to return also the buffer size.
26307         * lib/freadptr.h (freadptr): Add sizep argument.
26308         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26309         (freadptr): Add sizep argument. Determine buffer size like freadahead
26310         does.
26311         * tests/test-freadptr.c: Don't include freadahead.h.
26312         (main): Adapt for new calling convention of freadptr.
26313         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26314         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26315         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26316         tests/test-freadptr2.sh.
26317         (Depends): Remove freadahead.
26318         (TESTS): Add test-freadptr2.sh.
26319         (check_PROGRAMS): Add test-freadptr2.
26320
26321 2008-03-09  Bruno Haible  <bruno@clisp.org>
26322
26323         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26324         Report and solution by Simon Josefsson.
26325
26326 2008-03-06  Bruno Haible  <bruno@clisp.org>
26327
26328         Make fflush after ungetc work on BSD platforms.
26329         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26330         * tests/test-fflush2.c: New file.
26331         * tests/test-fflush2.sh: New file.
26332         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26333         tests/test-fflush2.c.
26334         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26335         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26336
26337 2008-03-06  Eric Blake  <ebb9@byu.net>
26338
26339         Likewise for ftello.
26340         * modules/ftello (Dependencies): Add extensions.
26341         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26342
26343 2008-03-06  Bruno Haible  <bruno@clisp.org>
26344
26345         * modules/fseeko (Dependencies): Add extensions.
26346         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26347         Needed on glibc systems.
26348
26349 2008-03-06  Bruno Haible  <bruno@clisp.org>
26350
26351         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26352         email address.
26353         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26354
26355 2008-03-06  Bruno Haible  <bruno@clisp.org>
26356
26357         * users.txt: Add libgnupdf.
26358
26359 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26360
26361         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26362         (Header File Substitutes, Function Substitutes,
26363         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26364         (Build robot for gnulib): Fix typo.
26365
26366 2008-03-06  Bruno Haible  <bruno@clisp.org>
26367
26368         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26369         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26370
26371 2008-03-06  Bruno Haible  <bruno@clisp.org>
26372
26373         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26374         * doc/gnulib.texi: Include it.
26375
26376 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26377
26378         * modules/func (License): Change license to unlimited; there was
26379         no LGPL parts in the module anyway.
26380
26381 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26382
26383         * modules/__func__: Renamed to modules/func.
26384         * modules/__func__-tests: Renamed to modules/func-tests.
26385         * tests/test-__func__.c: Renamed to tests/test-func.c.
26386         * m4/__func__.m4: Renamed to m4/func.m4.
26387         * doc/gnulib.texi (__func__): Section renamed to func.
26388         Suggested by Eric Blake <ebb9@byu.net>.
26389
26390 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26391
26392         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26393         about __func__.  Make example self-contained.  Suggested by Eric
26394         Blake <ebb9@byu.net>.
26395
26396         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26397         Suggested by Eric Blake <ebb9@byu.net>.
26398
26399 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26400
26401         * modules/__func__: New file.
26402         * modules/__func__-tests: New file.
26403         * tests/test-__func__.c: New file.
26404         * m4/__func__.m4: New file.
26405         * doc/gnulib.texi (__func__): Document __func__ module.
26406
26407 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26408
26409         * modules/byteswap (License): Re-license as LGPLv2+.
26410
26411 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26412
26413         * doc/Makefile: Add pdf target.
26414
26415 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26416
26417         * modules/inline (License): Use 'unlimited', since there are only
26418         *.m4 files in this module.
26419
26420 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26421             Bruno Haible  <bruno@clisp.org>
26422
26423         Add support for HP C 7.1 on OpenVMS 8.3.
26424         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26425
26426 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26427
26428         Update VMS specifics.
26429         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26430
26431 2008-03-02  Jim Meyering  <meyering@redhat.com>
26432
26433         Remove the last dependency on the "free" module.
26434         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26435         Reported by Bob Proulx.
26436
26437         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26438
26439         Remove useless "if" tests before free.  Deprecate "free" module.
26440         * doc/posix-functions/free.texi: Mention that this
26441         module is no longer useful.
26442         * modules/free (Notice): Say this module is obsolete.
26443         * modules/readutmp (Depends-on): Remove free.
26444         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26445         * lib/putenv.c (putenv): Likewise.
26446         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26447         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26448         * tests/test-c-strcasestr.c (main): Likewise.
26449         * tests/test-c-strstr.c (main): Likewise.
26450         * tests/test-mbscasestr1.c (main): Likewise.
26451         * tests/test-mbscasestr2.c (main): Likewise.
26452         * tests/test-mbsstr1.c (main): Likewise.
26453         * tests/test-mbsstr2.c (main): Likewise.
26454         * tests/test-memmem.c (main): Likewise.
26455         * tests/test-strcasestr.c (main): Likewise.
26456         * tests/test-striconv.c (main): Likewise.
26457         * tests/test-striconveh.c (main): Likewise.
26458         * tests/test-striconveha.c (main): Likewise.
26459         * tests/test-strstr.c (main): Likewise.
26460
26461         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26462
26463         bootstrap: sync from coreutils again
26464         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26465
26466 2008-03-01  Jim Meyering  <meyering@redhat.com>
26467
26468         bootstrap: sync from coreutils
26469         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26470         also when the target doesn't exist.
26471
26472 2008-03-01  Eric Blake  <ebb9@byu.net>
26473
26474         Fix bugs in last patch.
26475         * lib/memchr2.c (memchr2): Fix typo.
26476         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26477         extension.
26478         Reported by Bruce Korb.
26479
26480         New module 'memchr2'.
26481         * modules/memchr2: New file.
26482         * modules/memchr2-tests: Likewise.
26483         * lib/memchr2.h: Likewise.
26484         * lib/memchr2.c: Likewise, based on memchr.c.
26485         * tests/test-memchr2.c: New test.
26486         * MODULES.html.sh (String handling): Add memchr2.
26487
26488 2008-02-29  Bruno Haible  <bruno@clisp.org>
26489
26490         * modules/freadseek-tests: New file.
26491         * tests/test-freadseek.sh: New file.
26492         * tests/test-freadseek.c: New file.
26493
26494         New module 'freadseek'.
26495         * modules/freadseek: New file.
26496         * lib/freadseek.h: New file.
26497         * lib/freadseek.c: New file.
26498         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26499
26500 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26501
26502         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26503         wydawca.
26504
26505         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26506         program_invocation_name and program_invocation_short_name are
26507         present.
26508
26509 2008-02-28  Bruno Haible  <bruno@clisp.org>
26510
26511         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26512         * tests/test-freadptr.sh: Also test non-seekable stdin.
26513
26514 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26515
26516         * build-aux/bootstrap (source_base, m4_base)
26517         (doc_base, tests_base): New variables.
26518         (gnulib_tool_options): Do not hardcode base directories, use
26519         the above variables instead.
26520
26521 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26522
26523         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26524
26525 2008-02-28  Bruno Haible  <bruno@clisp.org>
26526
26527         * modules/freadptr-tests: New file.
26528         * tests/test-freadptr.sh: New file.
26529         * tests/test-freadptr.c: New file.
26530
26531         New module 'freadptr'.
26532         * modules/freadptr: New file.
26533         * lib/freadptr.h: New file.
26534         * lib/freadptr.c: New file.
26535         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26536
26537 2008-02-26  Karl Berry  <karl@freefriends.org>
26538
26539         Sync from Libtool:
26540         * libltdl/argz.c (argz_add, argz_count): New functions.
26541         * libltdl/argz.in.h: Declare them.
26542         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26543
26544 2008-02-22  Bruno Haible  <bruno@clisp.org>
26545
26546         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26547         is a pointer type.  Needed for HP-UX 10.
26548         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26549         * doc/posix-functions/gmtime_r.texi: Likewise.
26550         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26551
26552 2008-02-24  Bruno Haible  <bruno@clisp.org>
26553
26554         * modules/environ-tests: New file.
26555         * tests/test-environ.c: New file.
26556
26557         New module 'environ'.
26558         * modules/environ: New file.
26559         * lib/unistd.in.h (environ): New declaration.
26560         * m4/environ.m4: New file.
26561         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26562         after use.
26563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26564         HAVE_DECL_ENVIRON.
26565         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26566         HAVE_DECL_ENVIRON.
26567         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26568         wrong claim that 'environ' is missing on some systems.
26569         * modules/execute (Depends-on): Add environ.
26570         * lib/execute.c (environ): Remove fallback declaration.
26571         * modules/pipe (Depends-on): Add environ.
26572         * lib/pipe.c (environ): Remove fallback declaration.
26573         * modules/setenv (Depends-on): Add environ.
26574         * lib/setenv.c (environ): Remove fallback declaration.
26575         * modules/unsetenv (Depends-on): Add environ.
26576         * lib/unsetenv.c (environ): Remove fallback declaration.
26577         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26578         m4/environ.m4.
26579         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26580         (gl_PREREQ_UNSETENV): Likewise.
26581
26582 2008-02-24  Bruno Haible  <bruno@clisp.org>
26583
26584         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26585
26586 2008-02-20  Bob Proulx  <bob@proulx.com>
26587
26588         Enable use of older two part flavor 'git describe'.
26589         * build-aux/git-version-gen: If using the older two part flavor of
26590         git version then recreate the third part now present in the
26591         newer three part flavor of git describe.
26592
26593 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26594
26595         * lib/fts.c (fts_build): Typo correction to comment.
26596
26597 2008-02-17  Bruno Haible  <bruno@clisp.org>
26598
26599         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26600         generating no-op conflicts.
26601
26602 2008-02-17  Bruno Haible  <bruno@clisp.org>
26603
26604         Speed up by 10%.
26605         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26606         result_entries, rather than an index-based loop.
26607
26608 2008-02-17  Bruno Haible  <bruno@clisp.org>
26609
26610         Speed up by 25%.
26611         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26612         'hashcode_cached'.
26613         (entry_create): New function.
26614         (entry_hashcode): Use the cached hashcode if possible.
26615         (read_changelog_file, try_split_merged_entry): Use entry_create.
26616
26617 2008-02-17  Bruno Haible  <bruno@clisp.org>
26618
26619         Speed up from O(n^2) to O(n) for long ChangeLog files.
26620         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26621         (read_changelog_file): Change implementation of entries_reversed list
26622         to rbtreehash.
26623         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26624
26625 2008-02-17  Bruno Haible  <bruno@clisp.org>
26626
26627         New option --split-merged-entry.
26628         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26629         (find_paragraph_end, try_split_merged_entry): New functions.
26630         (long_options): Add option --split-merged-entry.
26631         (usage): Document option --split-merged-entry.
26632         (main): Implement option --split-merged-entry.
26633         Reported by Eric Blake.
26634
26635 2008-02-17  Bruno Haible  <bruno@clisp.org>
26636
26637         * lib/git-merge-changelog.c: Include c-strstr.h.
26638         (main): Support the "git pull --rebase" situation.
26639         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26640         Reported by Eric Blake.
26641
26642 2008-02-16  Eric Blake  <ebb9@byu.net>
26643
26644         Avoid doubling \ in common case of "c-maybe" quoting style.
26645         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26646         eliding outer quotes.
26647         * lib/quotearg.h: Document this.
26648         * tests/test-quotearg.c (result_strings, inputs, results_g)
26649         (flag_results, locale_results): Test it by adding a new string to
26650         each test group.
26651         (compare_strings): Test new string.
26652
26653 2008-02-13  Eric Blake  <ebb9@byu.net>
26654
26655         Avoid trigraph quoting in default output.
26656         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26657         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26658         unless explicitly requested.
26659         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26660
26661 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26662
26663         Don't rely on signed integer overflowing to negative value.
26664         * lib/getugroups.c (getugroups): Include <limits.h>.
26665         Instead, compare against INT_MAX, and increment only if the test passes.
26666
26667 2008-02-13  Jim Meyering  <meyering@redhat.com>
26668         and Eric Blake  <ebb9@byu.net>
26669
26670         Avoid shadowing warning and compile errors on Linux.
26671         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26672         forwarding macros on Linux.
26673         (dcgettext): Define a stub, for Linux.
26674         (results_g, main): Avoid warnings.
26675
26676 2008-02-12  Eric Blake  <ebb9@byu.net>
26677
26678         Silence warning in last patch.
26679         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26680
26681         Quotearg part 4: add tests, fix c-maybe colon quoting.
26682         * lib/quotearg.h: Improve documentation.
26683         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26684         escapes when adding outer quotes.  When quoting trigraphs, use
26685         valid C notation.  When quoting NUL, omit extra characters if next
26686         character is not digit.  Alter prototype.
26687         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26688         callers.
26689         * modules/quotearg-tests: New module.
26690         * tests/test-quotearg.c: New test.
26691
26692 2008-02-07  Eric Blake  <ebb9@byu.net>
26693
26694         Quotearg part 3: add flag to control outer quote elision.
26695         * lib/quotearg.h (c_maybe_quoting_style): New style.
26696         (enum quoting_flags): Better documentation of flags.
26697         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26698         c-maybe style.
26699         (quotearg_buffer_restyled): Handle new flag to elide outer
26700         quotes.
26701
26702         Quotearg part 2: add flag that can control NUL elision.
26703         * lib/quotearg.h (set_quoting_flags): New prototype.
26704         * lib/quotearg.c (struct quoting_options): Add flag field.
26705         (set_quoting_flags): New function.
26706         (quotearg_buffer_restyled): Add flags parameter.
26707         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26708         (quotearg_n_options): Set the flag, since length cannot be
26709         returned.
26710         (quoting_options_from_style): Default flags correctly.
26711
26712         Quotearg part 1: more wrappers, restore quotearg_char state.
26713         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26714         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26715         (quotearg_colon_mem): New wrappers.
26716         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26717         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26718         functions.
26719         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26720         (quotearg_colon_mem): New functions.
26721
26722 2008-02-11  Bruno Haible  <bruno@clisp.org>
26723
26724         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26725         library in the current directory: it does not work with parallel make.
26726         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26727
26728 2008-02-11  Bruno Haible  <bruno@clisp.org>
26729
26730         * .gitattributes: New file.
26731
26732 2008-02-11  Jim Meyering  <meyering@redhat.com>
26733
26734         useless-if-before-free: Fix reversed exit values.
26735         * build-aux/useless-if-before-free: Use correct values
26736         for EXIT_MATCH and EXIT_NO_MATCH.
26737
26738         * build-aux/useless-if-before-free: Close stdout carefully.
26739
26740 2008-02-10  Bruno Haible  <bruno@clisp.org>
26741
26742         New module 'git-merge-changelog'.
26743         * modules/git-merge-changelog: New file.
26744         * lib/git-merge-changelog.c: New file.
26745
26746 2008-02-10  Jim Meyering  <meyering@redhat.com>
26747
26748         useless-if-before-free: New option: --list (-l).
26749
26750         useless-if-before-free: Don't exit immediately upon open failure.
26751         * build-aux/useless-if-before-free: Exit 2 for errors.
26752         Upon failure to open a file, don't exit immediately.
26753         Rather, just warn and continue with any remaining files.
26754
26755 2008-02-10  Bruno Haible  <bruno@clisp.org>
26756
26757         New abstract list operation 'node_set_value'.
26758         * lib/gl_list.h (gl_list_node_set_value): New function.
26759         (struct gl_list_implementation): New field node_set_value.
26760         * lib/gl_list.c (gl_list_node_set_value): New function.
26761         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26762         (gl_array_list_implementation): Update.
26763         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26764         (gl_carray_list_implementation): Update.
26765         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26766         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26767         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26768         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26769         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26770         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26771         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26772         Update.
26773         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26774         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26775         (gl_sublist_list_implementation): Update.
26776
26777 2008-02-10  Bruno Haible  <bruno@clisp.org>
26778
26779         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26780         Needed when ELEMENT is #defined to 'some_type *'.
26781
26782 2008-02-10  Jim Meyering  <meyering@redhat.com>
26783
26784         New script and module: useless-if-before-free
26785         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26786         * build-aux/useless-if-before-free: New file.
26787         * modules/useless-if-before-free: New file.
26788
26789         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26790
26791         xstrtol_error: Fix typo.
26792         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26793         s/exit_failure/exit_status/.
26794
26795 2008-02-09  Jim Meyering  <meyering@redhat.com>
26796
26797         New script and module: gitlog-to-changelog
26798         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26799         * modules/gitlog-to-changelog: New file.
26800         * build-aux/gitlog-to-changelog: New file.
26801
26802 2008-02-08  Jim Meyering  <meyering@redhat.com>
26803
26804         Avoid two "parameter unused" warnings.
26805         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26806         Mark "st" as used.
26807
26808         Use "git COMMAND", not "git-COMMAND".
26809         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26810         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26811         * build-aux/git-version-gen: Use "git status", not "git-status".
26812
26813 2008-02-07  Bruno Haible  <bruno@clisp.org>
26814
26815         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26816         Avoids a crash on Windows Vista.
26817         Reported by Adam Strzelecki <ono@java.pl> via
26818         Simon Josefsson <simon@josefsson.org>.
26819
26820 2008-02-06  Bruno Haible  <bruno@clisp.org>
26821
26822         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26823         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26824         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26826         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26828         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26829         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26830         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26834         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26835         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26836         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26837         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26838         left-adjust flag.
26839         * tests/test-snprintf-posix.h (test_function): Likewise.
26840         * tests/test-sprintf-posix.h (test_function): Likewise.
26841         * tests/test-vasprintf-posix.c (test_function): Likewise.
26842         * doc/posix-functions/fprintf.texi: Update.
26843         * doc/posix-functions/printf.texi: Update.
26844         * doc/posix-functions/snprintf.texi: Update.
26845         * doc/posix-functions/sprintf.texi: Update.
26846         * doc/posix-functions/vfprintf.texi: Update.
26847         * doc/posix-functions/vprintf.texi: Update.
26848         * doc/posix-functions/vsnprintf.texi: Update.
26849         * doc/posix-functions/vsprintf.texi: Update.
26850         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26851
26852 2008-02-06  Bruno Haible  <bruno@clisp.org>
26853
26854         Fix bug introduced on 2008-01-26.
26855         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26856
26857 2008-02-06  Bruno Haible  <bruno@clisp.org>
26858
26859         Fix bug introduced on 2007-06-10.
26860         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26861         !NEED_PRINTF_FLAG_ZERO.
26862
26863 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26864
26865         getloadavg: use libperfstat on AIX5
26866         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26867
26868 2008-02-03  Bruno Haible  <bruno@clisp.org>
26869
26870         * lib/diffseq.h: Add comments about required #includes.
26871         Reported by Michael Biggs <gnulib@doubleplum.net>.
26872
26873 2008-02-01  Bruno Haible  <bruno@clisp.org>
26874
26875         * users.txt: Add gnuit.
26876
26877 2008-01-31  Bruno Haible  <bruno@clisp.org>
26878
26879         * lib/md4.c (set_uint32): Mark as inline.
26880         * lib/md5.c (set_uint32): Likewise.
26881         * lib/sha1.c (set_uint32): Likewise.
26882         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26883         * m4/md5.m4 (gl_MD5): Likewise.
26884         * m4/sha1.m4 (gl_SHA1): Likewise.
26885
26886 2008-01-31  Jim Meyering  <meyering@redhat.com>
26887
26888         Use "sizeof VAR", rather than a literal "4".
26889         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26890         * lib/md4.c (md4_read_ctx): Likewise.
26891         * lib/sha1.c (sha1_read_ctx): Likewise.
26892
26893 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26894
26895         * tests/test-sha1.c: New file, based on test-md5.c.
26896
26897         * modules/crypto/sha1-tests: New file.
26898
26899 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26900
26901         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26902
26903 2008-01-31  Jim Meyering  <meyering@redhat.com>
26904
26905         Prefer "sizeof v" over the equivalent "4".
26906         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26907         * lib/md5.c (set_uint32): Likewise.
26908         * lib/sha1.c (set_uint32): Likewise.
26909
26910 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26911
26912         * lib/sha1.c (set_uint32): Mark function as static.
26913
26914 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26915
26916         md2: clarify comments to say that alignment is not required.
26917         * lib/md2.h: Remove warning about alignment in comment.
26918         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26919         never been required.
26920
26921 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26922
26923         md4: adapt alignment constraint fix from sha1.
26924         * lib/md4.c (set_uint32): New function, from sha1.c
26925         (md4_read_ctx): Use it.
26926         (md4_finish_ctx): Doc fix.
26927         * lib/md4.h: Doc fix.
26928
26929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26930
26931         md5: adapt alignment constraint fix from sha1.
26932         * lib/md5.c (set_uint32): New function, from sha1.c
26933         (md5_read_ctx): Use it.
26934         (md5_finish_ctx): Doc fix.
26935         * lib/md5.h: Doc fix.
26936
26937 2008-01-30  Peter Palfrader  <weasel@debian.org>
26938
26939         sha1: remove the result buffer alignment constraint
26940         * lib/sha1.c (set_uint32): New function.
26941         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26942         constraint.
26943         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26944         * lib/sha1.h: Likewise.
26945
26946 2008-01-30  Andreas Schwab  <schwab@suse.de>
26947             Bruno Haible  <bruno@clisp.org>
26948
26949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26950         correct definition of LDBL_MIN_EXP.
26951
26952 2008-01-30  Karl Berry  <karl@gnu.org>
26953
26954         * config/srclist-update: try to preserve x bit on updates.
26955         * config/srclistvars.sh: update for karl.
26956
26957 2008-01-29  Jim Meyering  <meyering@redhat.com>
26958
26959         vasnprintf.c: Avoid warning about unused label
26960         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26961         "overflow" label definition and associated code with the
26962         same cpp condition that guards the sole use of that label.
26963
26964 2008-01-26  Bruno Haible  <bruno@clisp.org>
26965
26966         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26967         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26968         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26969         * lib/isnanl-nolibm.h (isnanl): Likewise.
26970         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26971
26972 2008-01-26  Bruno Haible  <bruno@clisp.org>
26973
26974         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26975         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26976
26977 2008-01-26  Bruno Haible  <bruno@clisp.org>
26978
26979         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26980         GCC >= 4.0 built-in.
26981         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26982
26983 2008-01-26  Bruno Haible  <bruno@clisp.org>
26984
26985         Rename isnan, applicable to 'double' only, to isnand.
26986         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26987         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26988         (configure.ac): Update.
26989         (Include): Replace "isnan.h" with "isnand.h".
26990         * m4/isnand.m4: Renamed from m4/isnan.m4.
26991         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26992         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26993         instead of isnan.c.
26994         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26995         instead of HAVE_ISNAN_IN_LIBC.
26996         (isnand): Renamed from isnan.
26997         * lib/isnand.c: New file.
26998         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26999         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27000         (Makefile.am): Update.
27001         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27002         Include isnand.h instead of isnan.h.
27003         (main): Test isnand instead of isnan.
27004         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27005         isnan-nolibm.
27006         * modules/frexp (Depends-on): Likewise.
27007         * modules/frexp-tests (Depends-on): Likewise.
27008         * modules/frexp-nolibm (Depends-on): Likewise.
27009         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27010         * modules/isfinite (Depends-on): Likewise.
27011         * modules/round-tests (Depends-on): Likewise.
27012         * modules/signbit (Depends-on): Likewise.
27013         * modules/signbit-tests (Depends-on): Likewise.
27014         * modules/snprintf-posix (Depends-on): Likewise.
27015         * modules/sprintf-posix (Depends-on): Likewise.
27016         * modules/trunc-tests (Depends-on): Likewise.
27017         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27018         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27019         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27020         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27021         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27022         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27023         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27024         * modules/vasnprintf-posix (Depends-on): Likewise.
27025         * modules/vasprintf-posix (Depends-on): Likewise.
27026         * modules/vfprintf-posix (Depends-on): Likewise.
27027         * modules/vsnprintf-posix (Depends-on): Likewise.
27028         * modules/vsprintf-posix (Depends-on): Likewise.
27029         * lib/frexp.c: Include isnand.h instead of isnan.h.
27030         (ISNAN): Set to isnand instead of isnan.
27031         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27032         (gl_isfinited): Use isnand instead of isnan.
27033         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27034         (gl_signbitd): Use isnand instead of isnan.
27035         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27036         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27037         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27038         (main): Use isnand instead of isnan.
27039         * tests/test-round1.c: Include isnand.h.
27040         (main): Use isnand instead of isnan.
27041         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27042         (ISNAN): Set to isnand instead of isnan.
27043         * tests/test-trunc1.c: Include isnand.h.
27044         (main): Use isnand instead of isnan.
27045         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27046         (equal): Use isnand instead of isnan.
27047         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27048         isnand-nolibm.
27049         * NEWS: Mention the change.
27050
27051 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27052             Bruno Haible  <bruno@clisp.org>
27053
27054         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27055         the GCC builtins for signbits are present and set
27056         REPLACE_SIGNBIT_USING_GCC if so.
27057         * lib/math.in.h (signbit): Define using GCC builtins if
27058         REPLACE_SIGNBIT_USING_GCC is set.
27059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27060         REPLACE_SIGNBIT_USING_GCC.
27061         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27062
27063 2008-01-25  Jim Meyering  <meyering@redhat.com>
27064
27065         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27066         * lib/poll.c: Include <config.h>, not "config.h".
27067         * tests/test-getaddrinfo.c: Likewise.
27068
27069 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27070
27071         * modules/sockets-tests: New file.
27072
27073 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27074
27075         * modules/sockets: New module, can be used to call WSA_Startup and
27076         WSA_Cleanup when needed.
27077
27078         * lib/sockets.h, lib/sockets.c: New files.
27079
27080         * m4/sockets.m4: New file.
27081
27082         * tests/test-sockets.c: New file.
27083
27084 2008-01-19  Bruno Haible  <bruno@clisp.org>
27085
27086         * doc/posix-headers: Renamed from doc/headers.
27087         * doc/posix-functions: Renamed from doc/functions.
27088         * doc/gnulib.texi: Update.
27089
27090 2008-01-19  Bruno Haible  <bruno@clisp.org>
27091
27092         * doc/glibc-functions/strcasestr.texi: Include contents of
27093         doc/functions/strcasestr.texi, fixing the list of platforms.
27094         * doc/functions/strcasestr.texi: Remove file.
27095
27096 2008-01-19  Bruno Haible  <bruno@clisp.org>
27097
27098         * doc/glibc-functions/memmem.texi: Include contents of
27099         doc/functions/memmem.texi.
27100         * doc/functions/memmem.texi: Remove file.
27101
27102 2008-01-18  Bruno Haible  <bruno@clisp.org>
27103
27104         * doc/glibc-functions/*.texi: New files.
27105         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27106         to use the new files.
27107
27108 2008-01-17  Bruno Haible  <bruno@clisp.org>
27109
27110         * tests/test-gethostname.c (main): Fix printf statement.
27111
27112 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27113
27114         * modules/gethostname-tests: New file.
27115
27116         * tests/test-gethostname.c: New file.
27117
27118 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27119
27120         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27121         used by the UNAME case.  Reported by Bruno Haible
27122         <bruno@clisp.org>.
27123
27124 2008-01-17  Eric Blake  <ebb9@byu.net>
27125
27126         Convert c-strcasestr to be more efficient.
27127         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27128         (Depends-on): Add c-strcase, remove malloca, strnlen.
27129         * tests/test-c-strcasestr.c (main): Enhance test.
27130         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27131
27132 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27133
27134         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27135         Use it in creating po/Makevars.
27136
27137 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27138
27139         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27140         Applications that requires it should initialize libgcrypt
27141         manually.
27142
27143 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27144
27145         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27146
27147 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27148
27149         Fix problem with getdate on mingw32 reported by Simon Josefsson
27150         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27151         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27152         tzname", when deciding whether to declare tzname.
27153         * lib/strftime.c (tzname): Likewise.
27154
27155 2008-01-15  Bruno Haible  <bruno@clisp.org>
27156
27157         Work around a MacOS X 10.5 bug in frexpl().
27158         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27159         * doc/functions/frexpl.texi: Document the bug.
27160         Reported by Elias Pipping <pipping@gentoo.org>.
27161
27162 2008-01-14  Eric Blake  <ebb9@byu.net>
27163
27164         Touch up previous patch.
27165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27166         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27167
27168         Convert strcasestr module to use Two-Way algorithm.
27169         * modules/strcasestr-simple: New module, based on the old
27170         strcasestr, but with Two-Way rather than KMP.
27171         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27172         * lib/string.in.h (rpl_strcasestr): Declare.
27173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27174         performance.
27175         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27176         * modules/string (Makefile.am): Support strcasestr.
27177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27178         * modules/strcasestr-tests (Depends-on): Check for alarm.
27179         * tests/test-strcasestr.c: Augment test.
27180         * lib/str-two-way.h: Clean up stray macro.
27181         * NEWS: Document new module.
27182         * MODULES.html.sh (string handling): Likewise.
27183         * doc/functions/strcasestr.texi: New file.
27184         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27185         here, since it is not a POSIX function.
27186
27187 2008-01-14  Colin Watson  <cjwatson@debian.org>
27188             Bruno Haible  <bruno@clisp.org>
27189
27190         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27191         works fine; if not, set REPLACE_STRSIGNAL.
27192         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27194         REPLACE_STRSIGNAL.
27195         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27196         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27197         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27198
27199 2008-01-14  Bruno Haible  <bruno@clisp.org>
27200
27201         * modules/strsignal (Include): Change to <string.h>.
27202
27203 2008-01-14  Colin Watson  <cjwatson@debian.org>
27204
27205         * modules/argp (Notice): Add a notice recommending to change
27206         XGETTEXT_OPTIONS.
27207         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27208
27209 2008-01-13  Colin Watson  <cjwatson@debian.org>
27210
27211         * modules/strsignal-tests: New file.
27212         * tests/test-strsignal.c: New file.
27213
27214         * lib/strsignal.c: New file, from glibc with modifications.
27215         * lib/siglist.h: New file, from glibc with modifications.
27216         * lib/string.in.h (strsignal): New declaration.
27217         * m4/strsignal.m4: New file.
27218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27219         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27220         * modules/strsignal: New file.
27221         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27222         HAVE_DECL_STRSIGNAL.
27223
27224 2008-01-13  Bruno Haible  <bruno@clisp.org>
27225
27226         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27227         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27228         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27229         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27230
27231 2008-01-13  Bruno Haible  <bruno@clisp.org>
27232
27233         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27234         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27235         * lib/argp.h (__attribute__): Likewise.
27236         * lib/c-stack.c (__attribute__): Likewise.
27237         * lib/error.h (__attribute__): Likewise.
27238         * lib/fts.c (__attribute__): Likewise.
27239         * lib/openat.h (__attribute__): Likewise.
27240         * lib/stdio.in.h (__attribute__): Likewise.
27241         * lib/string.in.h (__attribute__): Likewise.
27242         * lib/utimens.c (__attribute__): Likewise.
27243         * lib/vasnprintf.h (__attribute__): Likewise.
27244         * lib/xalloc.h (__attribute__): Likewise.
27245         * lib/xprintf.h (__attribute__): Likewise.
27246         * lib/xstrtol.h (__attribute__): Likewise.
27247         * lib/xvasprintf.h (__attribute__): Likewise.
27248
27249 2008-01-12  Bruno Haible  <bruno@clisp.org>
27250
27251         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27252         * doc/glibc-headers/a.out.texi: New file.
27253         * doc/glibc-headers/aliases.texi: New file.
27254         * doc/glibc-headers/alloca.texi: New file.
27255         * doc/glibc-headers/ar.texi: New file.
27256         * doc/glibc-headers/argp.texi: New file.
27257         * doc/glibc-headers/argz.texi: New file.
27258         * doc/glibc-headers/byteswap.texi: New file.
27259         * doc/glibc-headers/crypt.texi: New file.
27260         * doc/glibc-headers/endian.texi: New file.
27261         * doc/glibc-headers/envz.texi: New file.
27262         * doc/glibc-headers/err.texi: New file.
27263         * doc/glibc-headers/error.texi: New file.
27264         * doc/glibc-headers/execinfo.texi: New file.
27265         * doc/glibc-headers/fpu_control.texi: New file.
27266         * doc/glibc-headers/fstab.texi: New file.
27267         * doc/glibc-headers/fts.texi: New file.
27268         * doc/glibc-headers/getopt.texi: New file.
27269         * doc/glibc-headers/ieee754.texi: New file.
27270         * doc/glibc-headers/ifaddrs.texi: New file.
27271         * doc/glibc-headers/libintl.texi: New file.
27272         * doc/glibc-headers/mcheck.texi: New file.
27273         * doc/glibc-headers/mntent.texi: New file.
27274         * doc/glibc-headers/obstack.texi: New file.
27275         * doc/glibc-headers/paths.texi: New file.
27276         * doc/glibc-headers/printf.texi: New file.
27277         * doc/glibc-headers/pty.texi: New file.
27278         * doc/glibc-headers/resolv.texi: New file.
27279         * doc/glibc-headers/shadow.texi: New file.
27280         * doc/glibc-headers/sysexits.texi: New file.
27281         * doc/glibc-headers/ttyent.texi: New file.
27282
27283 2008-01-12  Jim Meyering  <meyering@redhat.com>
27284
27285         announce-gen: emit Gnulib's git-based version string.
27286         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27287         New option --gnulib-version=V, where V is expected to be
27288         the output of running git describe in the gnulib directory.
27289         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27290         not useful, and plan to stop publishing an xdelta file with each
27291         coreutils release.
27292
27293         * build-aux/announce-gen: Also check for lzma-compressed files.
27294
27295 2008-01-11  Bruno Haible  <bruno@clisp.org>
27296
27297         * tests/test-memmem.c (main): Increase maximum allowed time.
27298         * tests/test-strstr.c (main): Likewise.
27299
27300 2008-01-11  Bruno Haible  <bruno@clisp.org>
27301
27302         * doc/functions/memmem.texi: Add more precisions about platforms.
27303         * doc/functions/strstr.texi: Likewise.
27304
27305 2008-01-10  Eric Blake  <ebb9@byu.net>
27306
27307         * m4/strstr.m4: Delete cruft from copy-n-paste.
27308         Reported by Bruno Haible.
27309
27310 2008-01-10  Bruno Haible  <bruno@clisp.org>
27311
27312         Make c-strstr rely on strstr.
27313         * lib/c-strstr.c: Don't include str-kmp.h.
27314         (c_strstr): Define in terms of strstr.
27315         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27316         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27317
27318 2008-01-10  Bruno Haible  <bruno@clisp.org>
27319
27320         * doc/gnulib.texi (String Functions in C Locale): New section.
27321         * doc/c-ctype.texi: New file.
27322         * doc/c-strcase.texi: New file.
27323         * doc/c-strcaseeq.texi: New file.
27324         * doc/c-strcasestr.texi: New file.
27325         * doc/c-strstr.texi: New file.
27326         * doc/c-strtod.texi: New file.
27327         * doc/c-strtold.texi: New file.
27328
27329 2008-01-10  Eric Blake  <ebb9@byu.net>
27330
27331         * lib/relocatable.h: Fix a comment.
27332
27333 2008-01-10  Eric Blake  <ebb9@byu.net>
27334
27335         Share two-way algorithm.
27336         * lib/str-two-way.h: New file, merged from...
27337         * lib/memmem.c: ...here...
27338         * lib/strstr.c: ...and here.
27339         * modules/memmem (Files): Use it.
27340         * modules/strstr (Files): Likewise.
27341
27342         Avoid quadratic strstr implementations.
27343         * lib/strstr.c: New file.
27344         * m4/strstr.m4: Likewise.
27345         * modules/strstr: Likewise.
27346         * modules/strstr-tests: Likewise.
27347         * tests/test-strstr.c: Likewise.
27348         * lib/string.in.h (rpl_strstr): Declare.
27349         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27351         * modules/string (Makefile.am): Likewise.
27352         * MODULES.html.sh (string handling): Mention new module.
27353         * doc/functions/strstr.texi (strstr): Document the bug.
27354
27355 2008-01-10  Bruno Haible  <bruno@clisp.org>
27356
27357         * lib/relocatable.h (relocate): State whether result is freshly
27358         allocated or not.
27359         * lib/relocatable.c (relocate): Return a freshly allocated string
27360         instead of a pointer to a privately held string.
27361         Reported by Sylvain Beucler <beuc@gnu.org>.
27362
27363 2008-01-10  Colin Watson  <cjwatson@debian.org>
27364
27365         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27366         s/S_ISNLK/S_ISLNK/.
27367
27368 2008-01-09  Bruno Haible  <bruno@clisp.org>
27369
27370         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27371         and other files.
27372         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27373         if it's only a guess.
27374         * modules/memmem: Simplify by depending on memmem-simple.
27375
27376 2008-01-09  Bruno Haible  <bruno@clisp.org>
27377
27378         Work around OpenBSD 4.0 tdelete() bug.
27379         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27380         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27381         macros and don't redefine the enum values.
27382         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27383         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27384         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27385
27386 2008-01-09  Bruno Haible  <bruno@clisp.org>
27387
27388         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27389         (main): Don't perform the tests if setlocale did not install a UTF-8
27390         locale. Needed on OpenBSD 4.0.
27391         * modules/wcwidth-tests (Depends-on): Add localcharset.
27392
27393 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27394
27395         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27396         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27397         * NEWS: announce this.
27398         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27399
27400 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27401         and Eric Blake  <ebb9@byu.net>
27402
27403         Add memmem-simple module.
27404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27405         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27406         * modules/memmem-simple: New file.
27407         * modules/memmem (Description): Tweak.
27408         * MODULES.html.sh (string handling): Mention new module.
27409         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27410         addressed by memmem-simple.
27411         * NEWS: Document the difference.
27412
27413 2008-01-09  Eric Blake  <ebb9@byu.net>
27414
27415         Give gcc some memmem optimization hints.
27416         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27417         (strcasestr): Declare as pure.
27418         * modules/memmem (Maintainer): Claim my implementation.
27419
27420 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27421
27422         Support AIX 6.1 and higher.
27423         * build-aux/config.libpath: Likewise.
27424         * build-aux/config.rpath: Likewise.
27425
27426 2008-01-08  Jim Meyering  <meyering@redhat.com>
27427             Bruno Haible  <bruno@clisp.org>
27428
27429         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27430         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27431         Reported by Peter Fales in
27432         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27433
27434 2008-01-08  Bruno Haible  <bruno@clisp.org>
27435
27436         * modules/unictype/category-of (Depends-on): Add
27437         unictype/category-none.
27438         * modules/unictype/category-and-tests (Depends-on): Add
27439         unictype/category-{L,N,Lu,Nd}.
27440         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27441         * modules/unictype/category-or-tests (Depends-on): Add
27442         unictype/category-{L,N}.
27443         * modules/unictype/category-name-tests (Depends-on): Add
27444         unictype/category-{Z,Nl}.
27445         Reported by Simon Josefsson.
27446
27447 2008-01-08  Bruno Haible  <bruno@clisp.org>
27448
27449         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27450         convention better.
27451         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27452         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27453         Reported by Peter Miller <millerp@canb.auug.org.au>.
27454
27455 2008-01-08  Eric Blake  <ebb9@byu.net>
27456
27457         Rewrite memmem to guarantee linear complexity without malloc.
27458         * lib/memmem.c (memmem): Use Two-Way rather than
27459         Knuth-Morris-Pratt, to allow O(1) space usage.
27460         (critical_factorization, two_way_short_needle)
27461         (two_way_long_needle): New functions.
27462         (knuth_morris_pratt): Delete.
27463         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27464         Add stdint.
27465         * tests/test-memmem.c (main): Add tests for periodic needle and
27466         sublinear performance.
27467         * doc/functions/memmem.texi (memmem): Document other deficiencies
27468         in cygwin and older glibc.
27469
27470 2008-01-08  Bruno Haible  <bruno@clisp.org>
27471
27472         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27473         augmentation.
27474
27475 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27476
27477         Add a configure time option: --disable-acl.
27478         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27479         AC_ARG_ENABLE(acl).
27480
27481 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27482
27483         * tests/test-localename.c: Don't include obsolete "setenv.h".
27484
27485         * modules/localename-tests (Depends-on): Need unsetenv.
27486
27487 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27488
27489         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27490
27491 2008-01-06  Colin Watson  <cjwatson@debian.org>
27492
27493         * users.txt: Add man-db.
27494
27495 2008-01-07  Bruno Haible  <bruno@clisp.org>
27496
27497         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27498         previous section name.
27499
27500 2008-01-07  Bruno Haible  <bruno@clisp.org>
27501
27502         * lib/progname.c (set_program_name): Don't strip off a leading
27503         "lt-" prefix outside a .libs directory.
27504         Suggested by Paul Eggert.
27505
27506 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27507             Bruno Haible  <bruno@clisp.org>
27508
27509         Improve memory cleanup in 'relocatable' module.
27510         * lib/relocatable.h (compute_curr_prefix): Change return type to
27511         'char *'.
27512         * lib/relocatable.c (compute_curr_prefix): Change return type to
27513         'char *'. Free curr_installdir after use.
27514         (relocate): Free curr_prefix_better after use.
27515         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27516
27517 2008-01-01  Bruno Haible  <bruno@clisp.org>
27518
27519         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27520         failure on older glibc systems.
27521         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27522
27523 2008-01-05  Eric Blake  <ebb9@byu.net>
27524
27525         Avoid quadratic system memmem.
27526         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27527         Reported by Ralf Wildenhues.
27528
27529         Fix memmem test for mingw.
27530         * modules/memmem-tests (configure.ac): Check for alarm.
27531         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27532         it.
27533         * doc/functions/memmem.texi: New file.
27534         * doc/gnulib.texi (Function Substitutes): Add memmem.
27535         Reported by Bruno Haible.
27536
27537 2008-01-04  Bruno Haible  <bruno@clisp.org>
27538
27539         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27540         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27541         gl_HEADER_STRING_H_DEFAULTS.
27542
27543 2008-01-04  Eric Blake  <ebb9@byu.net>
27544
27545         Shorten duration of memmem test.
27546         * tests/test-memmem.c (main): Use alarm to declare failure if test
27547         is taking too long.
27548         Reported by Ralf Wildenhues.
27549
27550 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27551
27552         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27553         string, needed by strerror.
27554
27555 2008-01-03  Colin Watson  <cjwatson@debian.org>
27556             Bruno Haible  <bruno@clisp.org>
27557
27558         * doc/gnulib-tool.texi (Localization): New section.
27559
27560 2008-01-02  Bruno Haible  <bruno@clisp.org>
27561
27562         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27563         variables to 'unsigned char *' type.
27564         Reported by Paul Eggert.
27565
27566 2008-01-02  Jim Meyering  <jim@meyering.net>
27567
27568         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27569
27570 2007-12-31  Jim Meyering  <jim@meyering.net>
27571
27572         Avoid use of private FTS type name.
27573         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27574
27575 2007-12-30  Karl Berry  <karl@gnu.org>
27576
27577         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27578         work around defect in Texinfo and/or the standalone Info browser.
27579
27580 2007-12-30  Bruno Haible  <bruno@clisp.org>
27581
27582         Unify 5 copies of the KMP code.
27583         * lib/str-kmp.h: New file.
27584         * lib/c-strcasestr.c: Include str-kmp.h.
27585         (knuth_morris_pratt): Remove function.
27586         (c_strcasestr): Update.
27587         * lib/c-strstr.c: Include str-kmp.h.
27588         (knuth_morris_pratt): Remove function.
27589         (c_strcasestr): Update.
27590         * lib/mbscasestr.c: Include str-kmp.h.
27591         (knuth_morris_pratt_unibyte): Remove function.
27592         * lib/mbsstr.c: Include str-kmp.h.
27593         (knuth_morris_pratt_unibyte): Remove function.
27594         * lib/strcasestr.c: Include str-kmp.h.
27595         (knuth_morris_pratt): Remove function.
27596         (strcasestr): Update.
27597         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27598         * modules/c-strstr (Files): Likewise.
27599         * modules/mbscasestr (Files): Likewise.
27600         * modules/mbsstr (Files): Likewise.
27601         * modules/strcasestr (Files): Likewise.
27602         Suggested by Paul Eggert.
27603
27604 2007-12-30  Bruno Haible  <bruno@clisp.org>
27605
27606         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27607         defined.
27608
27609 2007-12-30  Bruno Haible  <bruno@clisp.org>
27610
27611         * lib/xmalloca.h: Include xalloc.h.
27612         (xnmalloca): New macro.
27613
27614 2007-12-30  Bruno Haible  <bruno@clisp.org>
27615
27616         * lib/malloca.h (nmalloca): New macro.
27617         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27618         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27619         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27620         knuth_morris_pratt_multibyte): Likewise.
27621         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27622         knuth_morris_pratt_multibyte): Likewise.
27623         * lib/memmem.c (knuth_morris_pratt): Likewise.
27624         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27625
27626 2007-12-25  Bruno Haible  <bruno@clisp.org>
27627
27628         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27629         * lib/glob.c: Don't include openat.h.
27630         (link_exists2_p): Add back the code that deals with the
27631         !GLOB_ALTDIRFUNC case.
27632         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27633         let it do the filename concatenation.
27634         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27635         * modules/glob (Depends-on): Remove openat.
27636
27637 2007-12-31  Bruno Haible  <bruno@clisp.org>
27638
27639         * modules/dirfd (License): Change to LGPLv2+.
27640         Approved by Jim Meyering.
27641
27642 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27643
27644         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27645         when multiplying M by sizeof (size_t).
27646
27647 2007-12-10  Martin Lambers  <marlam@marlam.de>
27648
27649         Override getpagesize on mingw.
27650         * lib/getpagesize.c: New file.
27651         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27652         * modules/getpagesize (Files): Add lib/getpagesize.c.
27653         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27655         REPLACE_GETPAGESIZE.
27656         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27657
27658 2007-12-25  Bruno Haible  <bruno@clisp.org>
27659
27660         * modules/localcharset (Notice): New field.
27661         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27662         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27663
27664 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27665             Bruno Haible  <bruno@clisp.org>
27666
27667         Avoid using the syntax symbol() in formatted documentation.
27668         * MODULES.html.sh (func_module): When replacing symbol() with a
27669         hyperlink, remove the parentheses. Show an error if some remain.
27670         Recognize and render the '...' syntax.
27671         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27672         Rework. Add paragraph about GCC's inlining.
27673         * doc/alloca.texi: Likewise.
27674         * doc/error.texi: Remove parentheses from symbol reference.
27675         * doc/gnulib-intro.texi: Likewise.
27676         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27677         * modules/fnmatch (Description): Reword to say "the ... function".
27678         * modules/full-read (Description): Likewise.
27679         * modules/full-write (Description): Likewise.
27680         * modules/safe-read (Description): Likewise.
27681         * modules/safe-write (Description): Likewise.
27682         * modules/strchrnul (Description): Likewise.
27683         * modules/trim (Description): Likewise.
27684         * modules/error (Description): Remove parentheses from symbol
27685         references.
27686         * modules/verror (Description): Likewise.
27687         Reported by Karl Berry.
27688
27689 2007-12-25  Bruno Haible  <bruno@clisp.org>
27690
27691         Fixup after 2007-10-16 commit.
27692         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27693
27694 2007-12-24  Bruno Haible  <bruno@clisp.org>
27695
27696         Make --enable-relocatable work with DESTDIR.
27697         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27698         to compute installdir from destprog.
27699         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27700         also set the RELOC_DESTDIR variable.
27701         Reported by Левашев Иван <octagram@bluebottle.com>.
27702
27703 2007-12-24  Bruno Haible  <bruno@clisp.org>
27704
27705         Fix link error due to xalloc_die().
27706         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27707         of xreadlink.
27708         * lib/relocwrapper.c: Update comments.
27709         * build-aux/install-reloc: Remove xreadlink.c from file list.
27710         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27711         xreadlink.c.
27712         Reported by Левашев Иван <octagram@bluebottle.com>.
27713
27714 2007-12-24  Bruno Haible  <bruno@clisp.org>
27715
27716         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27717         * lib/setenv.h: Remove file.
27718         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27719         lib/setenv.h.
27720         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27721         (Depends-on): Add stdlib.
27722         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27723         gl_FUNC_UNSETENV.
27724         (Include): Replace setenv.h with <stdlib.h>.
27725         * modules/unsetenv: New file.
27726         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27727         * lib/unsetenv.c: Include <stdlib.h> first.
27728         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27729         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27730         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27731         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27732         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27733         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27735         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27736         * doc/functions/unsetenv.texi: Update.
27737         * modules/xsetenv (Depends-on): Add unsetenv.
27738         * modules/getdate (Depends-on): Likewise.
27739         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27740         * lib/xsetenv.c: Don't include setenv.h.
27741         * lib/getdate.y: Likewise.
27742         * lib/relocwrapper.c: Likewise.
27743         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27744         (Depends-on): Add stdlib.
27745         * NEWS: Mention the changes.
27746         Reported by Левашев Иван <octagram@bluebottle.com>.
27747
27748 2007-12-23  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27751         indentation.
27752
27753 2007-12-23  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/c-strcasestr.c: Add more comments.
27756         * lib/c-strstr.c: Likewise.
27757         * lib/mbscasestr.c: Likewise.
27758         * lib/mbsstr.c: Likewise.
27759         * lib/strcasestr.c: Likewise.
27760         * lib/memmem.c: Likewise.
27761
27762 2007-12-23  Bruno Haible  <bruno@clisp.org>
27763
27764         * tests/test-memmem.c: Include <string.h> first.
27765
27766 2007-12-22  Bruno Haible  <bruno@clisp.org>
27767
27768         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27769         the contents of $testsbase.
27770         Reported by Ralf Wildenhues.
27771
27772 2007-12-22  Bruno Haible  <bruno@clisp.org>
27773
27774         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27775         two variables local_ldadd_before, local_ldadd_last.
27776
27777 2007-12-20  Eric Blake  <ebb9@byu.net>
27778
27779         Work around circular library issue when cross-compiling.
27780         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27781         that progname.o does not need to pull in rpl_memcmp.
27782
27783 2007-12-19  Eric Blake  <ebb9@byu.net>
27784
27785         Fix memmem to avoid O(n^2) worst-case complexity.
27786         * lib/memmem.c (knuth_morris_pratt): New function.
27787         (memmem): Use it if first few naive iterations fail.
27788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27789         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27790         * modules/memchr (License): Likewise.
27791         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27792         malloca.
27793         * tests/test-memmem.c: Rewrite, borrowing ideas from
27794         test-mbsstr1.c; the old version wouldn't even compile!
27795         * modules/memmem-tests: New file.
27796         * lib/string.in.h (rpl_memmem): Add declaration.
27797         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27799         REPLACE_MEMMEM.
27800
27801 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27802
27803         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27804         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27805         before any system include files, and undef after them all.  This
27806         should fix a problem on VMS reported by John E. Malmberg in
27807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27808
27809 2007-12-17  Eric Blake  <ebb9@byu.net>
27810
27811         Revert addition of verify, for BSD/OS.
27812         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27813         can't handle large files, for the sake of obsolete platforms.
27814         * modules/fseeko (Depends-on): Remove verify.
27815         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27816         * doc/functions/ftello.texi (ftello): Likewise.
27817         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27818         Reported by Larry Jones.
27819
27820 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27821
27822         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27823         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27824
27825 2007-12-17  Jim Meyering  <meyering@redhat.com>
27826
27827         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27828         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27829         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27830         * modules/getcwd (Depends-on): Add openat.
27831         Reported by Petr Salinger.
27832
27833 2007-12-17  Bruno Haible  <bruno@clisp.org>
27834
27835         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27836         avoid a segmentation fault of the configure test on x86_64 systems.
27837
27838 2007-12-15  Jim Meyering  <meyering@redhat.com>
27839
27840         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27841
27842 2007-12-13  Eric Blake  <ebb9@byu.net>
27843
27844         Another fseek test.
27845         * tests/test-fseek.c (main): Also test ungetc handling.
27846         * tests/test-fseeko.c (main): Likewise.
27847         * modules/fseeko (Depends-on): Add verify.
27848         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27849         large.
27850         Reported by Larry Jones.
27851
27852         Fix fseeko on mingw.
27853         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27854         seek.
27855
27856         Beef up fseek tests.
27857         * tests/test-fseek.c (main): Also test eof handling.
27858         * tests/test-fseeko.c (main): Likewise.
27859         Reported by Larry Jones.
27860
27861 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27862
27863         Fix fseeko on BSD-based platforms.
27864         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27865         successful seek.
27866
27867 2007-12-12  Eric Blake  <ebb9@byu.net>
27868
27869         Allow circular dependency of separate libtests.a
27870         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27871         when use_libtests.
27872
27873 2007-12-11  Eric Blake  <ebb9@byu.net>
27874
27875         Fix bug with -0.0L in previous patch.
27876         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27877         * tests/test-isnan.c (main): Also test on zeroes.
27878         * tests/test-isnanf.c (main): Likewise.
27879         * tests/test-isnanl.h (main): Likewise.
27880
27881         Detect pseudo-denormals on x86 even when cross-compiling.
27882         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27883         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27884         invalid bit patterns that happen to satisfy ==.
27885
27886         Avoid link failures with separate libtests.a.
27887         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27888         last, to satisfy circular dependencies.
27889
27890 2007-12-11  Eric Blake  <ebb9@byu.net>
27891         and Bruno Haible  <bruno@clisp.org>
27892
27893         Fix OpenBSD 4.0 <float.h> handling of long double.
27894         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27895         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27896         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27897
27898 2007-12-11  Jim Meyering  <meyering@redhat.com>
27899
27900         * users.txt: Add libvirt.
27901
27902         Support versions of autoconf prior to 2.59c.
27903         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27904         if it is not already defined.
27905
27906 2007-12-09  Bruno Haible  <bruno@clisp.org>
27907
27908         Let 'gnulib-tool --import' collect sources needed for the tests in
27909         tests/ rather than in lib/.
27910         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27911         argument. If true, add rules to generate libtests.a, and put libtests.a
27912         into $(LDADD). Consider source files in subdirectories and set
27913         uses_subdirs.
27914         (func_emit_initmacro_start, func_emit_initmacro_end,
27915         func_emit_initmacro_done): Pass all arguments explicitly.
27916         (func_import): Determine two module lists main_modules,
27917         testsrelated_modules. Determine use_libtests. Determine two variables
27918         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27919         instead of just sed_transform_lib_file. Determine two variables
27920         main_files and testsrelated_files. Compute 'files' as the union of
27921         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27922         func_add_or_update. In the generated gnulib-comp.m4, collect the
27923         object files for tests/ in different variables than those for lib/.
27924         Substitute LIBTESTS_LIBDEPS.
27925         (func_create_testdir): Combine the uses_subdirs results from
27926         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27927
27928 2007-12-09  Bruno Haible  <bruno@clisp.org>
27929
27930         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27931         the build-aux directory.
27932
27933 2007-12-09  Bruno Haible  <bruno@clisp.org>
27934
27935         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27936         introduced on 2006-09-09.
27937
27938 2007-12-07  Jim Meyering  <meyering@redhat.com>
27939
27940         Let these macros work also with autoconf-2.59.
27941         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27942         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27944
27945 2007-12-06  Jim Meyering  <meyering@redhat.com>
27946
27947         Avoid a configure-time syntax error in gl_FUNC_ACL.
27948         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27949         function in each branch, before testing the cache variable.
27950
27951 2007-12-04  Eric Blake  <ebb9@byu.net>
27952
27953         Make scripts executable.
27954         * build-aux/config.guess: Add execute permissions.
27955         * build-aux/config.sub: Likewise.
27956         * build-aux/gendocs.sh: Likewise.
27957
27958         Fix frexp on mingw.
27959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27960         cross-compiling.
27961         * doc/functions/frexp.texi (frexp): Document the bug.
27962
27963         Make cygwin fseeko check more reliable.
27964         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27965         version numbers, rather than unrelated feature check.
27966         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27967         * doc/functions/ftello.texi (ftello): Likewise.
27968         Reported by Bruno Haible.
27969
27970         * m4/strerror.m4: Bump version number.
27971
27972 2007-12-03  Bruno Haible  <bruno@clisp.org>
27973
27974         * doc/functions/mprotect.texi: Mention the mingw problem.
27975
27976 2007-12-03  Eric Blake  <ebb9@byu.net>
27977
27978         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27979         REPLACE_STRERROR is initialized before this macro.
27980
27981 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27982
27983         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27984         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27985         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27986         put -lsec in even for programs other than 'ls'.  This fixes a problem
27987         for gettext reported by Bruno Haible in
27988         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27989         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27990         Add support for Solaris 10.  This isn't efficient, but should get the
27991         job done for now.
27992
27993 2007-12-03  James Youngman  <jay@gnu.org>
27994
27995         * doc/regexprops-generic.texi: change "an close-group" to "a
27996         close-group" and "illegal" to "not allowed".
27997
27998 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27999
28000         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28001         pr_byname.h. Needed for the rare case when the maintainer has done
28002         "make maintainer-clean" in the source directory and then attempts a
28003         build outside the source directory.
28004         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28005         scripts_byname.h.
28006
28007 2007-12-02  Martin Lambers <marlam@marlam.de>
28008             Bruno Haible  <bruno@clisp.org>
28009
28010         * lib/getpagesize.h: Remove file.
28011         * lib/unistd.in.h: Include declaration of getpagesize here.
28012         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28013         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28014         HAVE_SYS_PARAM_H.
28015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28016         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28017         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28018         (Depends-on): Add unistd.
28019         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28020         (Include): Use <unistd.h> instead of getpagesize.h.
28021         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28022         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28023         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28024         gl_GETPAGESIZE invocation, already handled by module dependency.
28025         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28026
28027 2007-12-02  Bruno Haible  <bruno@clisp.org>
28028
28029         * modules/strings-tests: New file.
28030         * tests/test-strings.c: New file.
28031
28032         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28033         * lib/strings.in.h: New file.
28034         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28035         * m4/strings_h.m4: New file.
28036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28037         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28038         * modules/strings: New file.
28039         * modules/string (Makefile.am): Update.
28040         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28041         Reported by Karl Berry.
28042
28043 2007-12-01  Eric Blake  <ebb9@byu.net>
28044
28045         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28046         accomodate fix in cygwin 1.5.25.
28047
28048 2007-12-01  Jim Meyering  <meyering@redhat.com>
28049
28050         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28051         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28052         that would inhibit utf8-optimization of a regexp containing line-
28053         or buffer-anchors, e.g., `^', `$'.
28054
28055 2007-11-30  Bruno Haible  <bruno@clisp.org>
28056
28057         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28058         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28059         glthread_recursive_lock_init.
28060         * lib/lock.c (glthread_recursive_lock_init)
28061         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28062         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28063
28064 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28065
28066         New function qset_acl, like set_acl but with syscall semantics.
28067         * lib/acl.h (qset_acl): New decl.
28068         * lib/acl.c (qset_acl): New function.
28069         (set_acl): Use new function.  Use more-consistent diagnostics.
28070
28071 2007-11-28  Jim Meyering  <meyering@redhat.com>
28072
28073         * modules/physmem (License): Change from GPL to LGPLv2+.
28074
28075 2007-11-26  Bruno Haible  <bruno@clisp.org>
28076
28077         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28078         'long double' type has excess precision.
28079         Reported by Jim Meyering in
28080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28081
28082 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28083
28084         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28085         Sync from <http://gnu.org/licenses>.
28086         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28087         with license text from same location.
28088         * doc/maintain.texi, doc/standards.texi:  Sync from
28089         <http://savannah.gnu.org/projects/gnustandards>.
28090
28091 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28092         and Jim Meyering  <meyering@redhat.com>
28093
28094         Adjust getdate' grammar to accept a slightly more regular language.
28095         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28096         Before, the former was rejected.
28097         * lib/getdate.y (digits_to_date_time): New function, factored
28098         out of ...
28099         (number): ...here.  Just call digits_to_date_time.
28100         (hybrid): New non-terminal to handle an <unsigned number,
28101         signed relative offset> sequence consistently.
28102
28103 2007-11-18  Jim Meyering  <meyering@redhat.com>
28104
28105         Pull my changes from coreutils:
28106         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28107         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28108         use of $gnulib_tool_option_extras, so that it's separated from the
28109         preceding argument.
28110
28111         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28112         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28113         parent destination directories before copying a file into place.
28114
28115 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28116
28117         bootstrap: work also with 4-argument variant of AC_INIT
28118         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28119
28120 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28121
28122         Port test-getaddrinfo to Solaris.
28123         Problem reported by Bruno Haible in
28124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28125         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28126         explanation of setting 'hints'.
28127         Don't reject an implementation merely because it returns EAI_SERVICE.
28128         (EAI_SERVICE): Define to 0 if not defined.
28129
28130 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28131
28132         The license of gnu-make and posix-shell is now "GPLed build tool".
28133         * modules/gnu-make (License): Likewise.
28134         * modules/posix-shell (License): Likewise.
28135
28136         New module posix-shell, for determining a POSIX shell
28137         or perhaps something that is close enough to a POSIX shell.
28138         * m4/posix-shell.m4: New file.
28139         * modules/posix-shell: New file.
28140
28141         * MODULES.html.sh: Mention new module.
28142
28143         New module gnu-make, for determining whether we're using GNU Make.
28144         * m4/gnu-make.m4: New file.
28145         * modules/gnu-make: New file.
28146         * MODULES.html.sh: Mention new module.
28147
28148 2007-11-14  Jim Meyering  <meyering@redhat.com>
28149
28150         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28151         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28152         use this macro to create a function _definition_.
28153         Remove useless "#undef ARGMATCH_DIE".
28154
28155 2007-11-14  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/config.charset: Update for OpenBSD 4.1.
28158         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28159
28160 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28161
28162         Document 64-bit #if problems in stdint.texi.
28163         * doc/headers/stdint.texi (stdint.h): Mention problems with
28164         64-bit-#if, and how to work around them.
28165
28166         Don't insist on 'long long int' support in the preprocessor.  It
28167         breaks too many things.  For example, PRIdMAX still uses a 'long
28168         long int' format with the latest Sun compiler, even though
28169         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28170         preprocessor problem.  This causes the latest coreutils to dump
28171         core on Solaris 10 sparc with the Sun C compiler.
28172         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28173         the troublesome expressions at configure-time, not at #if-time.
28174         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28175         preprocessor.
28176         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28177         compile-time C checks, done at 'configure'-time.
28178         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28179         * modules/inttypes (Makefile): Substitute the new symbols that
28180         gl_INTTYPES_H now generates.
28181         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28182
28183 2007-11-12  Bruno Haible  <bruno@clisp.org>
28184
28185         Tests for Unicode character classification functions.
28186
28187         * modules/unictype/bidicategory-byname-tests: New file.
28188         * modules/unictype/bidicategory-name-tests: New file.
28189         * modules/unictype/bidicategory-of-tests: New file.
28190         * modules/unictype/bidicategory-test-tests: New file.
28191         * modules/unictype/block-list-tests: New file.
28192         * modules/unictype/block-of-tests: New file.
28193         * modules/unictype/block-test-tests: New file.
28194         * modules/unictype/category-C-tests: New file.
28195         * modules/unictype/category-Cc-tests: New file.
28196         * modules/unictype/category-Cf-tests: New file.
28197         * modules/unictype/category-Cn-tests: New file.
28198         * modules/unictype/category-Co-tests: New file.
28199         * modules/unictype/category-Cs-tests: New file.
28200         * modules/unictype/category-L-tests: New file.
28201         * modules/unictype/category-Ll-tests: New file.
28202         * modules/unictype/category-Lm-tests: New file.
28203         * modules/unictype/category-Lo-tests: New file.
28204         * modules/unictype/category-Lt-tests: New file.
28205         * modules/unictype/category-Lu-tests: New file.
28206         * modules/unictype/category-M-tests: New file.
28207         * modules/unictype/category-Mc-tests: New file.
28208         * modules/unictype/category-Me-tests: New file.
28209         * modules/unictype/category-Mn-tests: New file.
28210         * modules/unictype/category-N-tests: New file.
28211         * modules/unictype/category-Nd-tests: New file.
28212         * modules/unictype/category-Nl-tests: New file.
28213         * modules/unictype/category-No-tests: New file.
28214         * modules/unictype/category-P-tests: New file.
28215         * modules/unictype/category-Pc-tests: New file.
28216         * modules/unictype/category-Pd-tests: New file.
28217         * modules/unictype/category-Pe-tests: New file.
28218         * modules/unictype/category-Pf-tests: New file.
28219         * modules/unictype/category-Pi-tests: New file.
28220         * modules/unictype/category-Po-tests: New file.
28221         * modules/unictype/category-Ps-tests: New file.
28222         * modules/unictype/category-S-tests: New file.
28223         * modules/unictype/category-Sc-tests: New file.
28224         * modules/unictype/category-Sk-tests: New file.
28225         * modules/unictype/category-Sm-tests: New file.
28226         * modules/unictype/category-So-tests: New file.
28227         * modules/unictype/category-Z-tests: New file.
28228         * modules/unictype/category-Zl-tests: New file.
28229         * modules/unictype/category-Zp-tests: New file.
28230         * modules/unictype/category-Zs-tests: New file.
28231         * modules/unictype/category-and-not-tests: New file.
28232         * modules/unictype/category-and-tests: New file.
28233         * modules/unictype/category-byname-tests: New file.
28234         * modules/unictype/category-name-tests: New file.
28235         * modules/unictype/category-none-tests: New file.
28236         * modules/unictype/category-of-tests: New file.
28237         * modules/unictype/category-or-tests: New file.
28238         * modules/unictype/category-test-withtable-tests: New file.
28239         * modules/unictype/combining-class-tests: New file.
28240         * modules/unictype/ctype-alnum-tests: New file.
28241         * modules/unictype/ctype-alpha-tests: New file.
28242         * modules/unictype/ctype-blank-tests: New file.
28243         * modules/unictype/ctype-cntrl-tests: New file.
28244         * modules/unictype/ctype-digit-tests: New file.
28245         * modules/unictype/ctype-graph-tests: New file.
28246         * modules/unictype/ctype-lower-tests: New file.
28247         * modules/unictype/ctype-print-tests: New file.
28248         * modules/unictype/ctype-punct-tests: New file.
28249         * modules/unictype/ctype-space-tests: New file.
28250         * modules/unictype/ctype-upper-tests: New file.
28251         * modules/unictype/ctype-xdigit-tests: New file.
28252         * modules/unictype/decimal-digit-tests: New file.
28253         * modules/unictype/digit-tests: New file.
28254         * modules/unictype/mirror-tests: New file.
28255         * modules/unictype/numeric-tests: New file.
28256         * modules/unictype/property-alphabetic-tests: New file.
28257         * modules/unictype/property-ascii-hex-digit-tests: New file.
28258         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28259         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28260         * modules/unictype/property-bidi-block-separator-tests: New file.
28261         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28262         * modules/unictype/property-bidi-common-separator-tests: New file.
28263         * modules/unictype/property-bidi-control-tests: New file.
28264         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28265         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28266         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28267         * modules/unictype/property-bidi-european-digit-tests: New file.
28268         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28269         * modules/unictype/property-bidi-left-to-right-tests: New file.
28270         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28271         * modules/unictype/property-bidi-other-neutral-tests: New file.
28272         * modules/unictype/property-bidi-pdf-tests: New file.
28273         * modules/unictype/property-bidi-segment-separator-tests: New file.
28274         * modules/unictype/property-bidi-whitespace-tests: New file.
28275         * modules/unictype/property-byname-tests: New file.
28276         * modules/unictype/property-combining-tests: New file.
28277         * modules/unictype/property-composite-tests: New file.
28278         * modules/unictype/property-currency-symbol-tests: New file.
28279         * modules/unictype/property-dash-tests: New file.
28280         * modules/unictype/property-decimal-digit-tests: New file.
28281         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28282         * modules/unictype/property-deprecated-tests: New file.
28283         * modules/unictype/property-diacritic-tests: New file.
28284         * modules/unictype/property-extender-tests: New file.
28285         * modules/unictype/property-format-control-tests: New file.
28286         * modules/unictype/property-grapheme-base-tests: New file.
28287         * modules/unictype/property-grapheme-extend-tests: New file.
28288         * modules/unictype/property-grapheme-link-tests: New file.
28289         * modules/unictype/property-hex-digit-tests: New file.
28290         * modules/unictype/property-hyphen-tests: New file.
28291         * modules/unictype/property-id-continue-tests: New file.
28292         * modules/unictype/property-id-start-tests: New file.
28293         * modules/unictype/property-ideographic-tests: New file.
28294         * modules/unictype/property-ids-binary-operator-tests: New file.
28295         * modules/unictype/property-ids-trinary-operator-tests: New file.
28296         * modules/unictype/property-ignorable-control-tests: New file.
28297         * modules/unictype/property-iso-control-tests: New file.
28298         * modules/unictype/property-join-control-tests: New file.
28299         * modules/unictype/property-left-of-pair-tests: New file.
28300         * modules/unictype/property-line-separator-tests: New file.
28301         * modules/unictype/property-logical-order-exception-tests: New file.
28302         * modules/unictype/property-lowercase-tests: New file.
28303         * modules/unictype/property-math-tests: New file.
28304         * modules/unictype/property-non-break-tests: New file.
28305         * modules/unictype/property-not-a-character-tests: New file.
28306         * modules/unictype/property-numeric-tests: New file.
28307         * modules/unictype/property-other-alphabetic-tests: New file.
28308         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28309         * modules/unictype/property-other-grapheme-extend-tests: New file.
28310         * modules/unictype/property-other-id-continue-tests: New file.
28311         * modules/unictype/property-other-id-start-tests: New file.
28312         * modules/unictype/property-other-lowercase-tests: New file.
28313         * modules/unictype/property-other-math-tests: New file.
28314         * modules/unictype/property-other-uppercase-tests: New file.
28315         * modules/unictype/property-paired-punctuation-tests: New file.
28316         * modules/unictype/property-paragraph-separator-tests: New file.
28317         * modules/unictype/property-pattern-syntax-tests: New file.
28318         * modules/unictype/property-pattern-white-space-tests: New file.
28319         * modules/unictype/property-private-use-tests: New file.
28320         * modules/unictype/property-punctuation-tests: New file.
28321         * modules/unictype/property-quotation-mark-tests: New file.
28322         * modules/unictype/property-radical-tests: New file.
28323         * modules/unictype/property-sentence-terminal-tests: New file.
28324         * modules/unictype/property-soft-dotted-tests: New file.
28325         * modules/unictype/property-space-tests: New file.
28326         * modules/unictype/property-terminal-punctuation-tests: New file.
28327         * modules/unictype/property-test-tests: New file.
28328         * modules/unictype/property-titlecase-tests: New file.
28329         * modules/unictype/property-unassigned-code-value-tests: New file.
28330         * modules/unictype/property-unified-ideograph-tests: New file.
28331         * modules/unictype/property-uppercase-tests: New file.
28332         * modules/unictype/property-variation-selector-tests: New file.
28333         * modules/unictype/property-white-space-tests: New file.
28334         * modules/unictype/property-xid-continue-tests: New file.
28335         * modules/unictype/property-xid-start-tests: New file.
28336         * modules/unictype/property-zero-width-tests: New file.
28337         * modules/unictype/scripts-tests: New file.
28338         * modules/unictype/syntax-c-ident-tests: New file.
28339         * modules/unictype/syntax-c-whitespace-tests: New file.
28340         * modules/unictype/syntax-java-ident-tests: New file.
28341         * modules/unictype/syntax-java-whitespace-tests: New file.
28342         * tests/unictype/test-bidi_byname.c: New file.
28343         * tests/unictype/test-bidi_name.c: New file.
28344         * tests/unictype/test-bidi_of.c: New file.
28345         * tests/unictype/test-bidi_test.c: New file.
28346         * tests/unictype/test-block_list.c: New file.
28347         * tests/unictype/test-block_of.c: New file.
28348         * tests/unictype/test-block_test.c: New file.
28349         * tests/unictype/test-categ_and.c: New file.
28350         * tests/unictype/test-categ_and_not.c: New file.
28351         * tests/unictype/test-categ_byname.c: New file.
28352         * tests/unictype/test-categ_name.c: New file.
28353         * tests/unictype/test-categ_none.c: New file.
28354         * tests/unictype/test-categ_of.c: New file.
28355         * tests/unictype/test-categ_or.c: New file.
28356         * tests/unictype/test-categ_test_withtable.c: New file.
28357         * tests/unictype/test-combining.c: New file.
28358         * tests/unictype/test-decdigit.c: New file.
28359         * tests/unictype/test-digit.c: New file.
28360         * tests/unictype/test-mirror.c: New file.
28361         * tests/unictype/test-numeric.c: New file.
28362         * tests/unictype/test-pr_byname.c: New file.
28363         * tests/unictype/test-pr_test.c: New file.
28364         * tests/unictype/test-predicate-part1.h: New file.
28365         * tests/unictype/test-predicate-part2.h: New file.
28366         * tests/unictype/test-scripts.c: New file.
28367         * tests/unictype/test-sy_c_ident.c: New file.
28368         * tests/unictype/test-sy_java_ident.c: New file.
28369
28370         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28371         for Unicode 5.0.0.
28372         * tests/unictype/test-categ_Cc.c: Likewise.
28373         * tests/unictype/test-categ_Cf.c: Likewise.
28374         * tests/unictype/test-categ_Cn.c: Likewise.
28375         * tests/unictype/test-categ_Co.c: Likewise.
28376         * tests/unictype/test-categ_Cs.c: Likewise.
28377         * tests/unictype/test-categ_L.c: Likewise.
28378         * tests/unictype/test-categ_Ll.c: Likewise.
28379         * tests/unictype/test-categ_Lm.c: Likewise.
28380         * tests/unictype/test-categ_Lo.c: Likewise.
28381         * tests/unictype/test-categ_Lt.c: Likewise.
28382         * tests/unictype/test-categ_Lu.c: Likewise.
28383         * tests/unictype/test-categ_M.c: Likewise.
28384         * tests/unictype/test-categ_Mc.c: Likewise.
28385         * tests/unictype/test-categ_Me.c: Likewise.
28386         * tests/unictype/test-categ_Mn.c: Likewise.
28387         * tests/unictype/test-categ_N.c: Likewise.
28388         * tests/unictype/test-categ_Nd.c: Likewise.
28389         * tests/unictype/test-categ_Nl.c: Likewise.
28390         * tests/unictype/test-categ_No.c: Likewise.
28391         * tests/unictype/test-categ_P.c: Likewise.
28392         * tests/unictype/test-categ_Pc.c: Likewise.
28393         * tests/unictype/test-categ_Pd.c: Likewise.
28394         * tests/unictype/test-categ_Pe.c: Likewise.
28395         * tests/unictype/test-categ_Pf.c: Likewise.
28396         * tests/unictype/test-categ_Pi.c: Likewise.
28397         * tests/unictype/test-categ_Po.c: Likewise.
28398         * tests/unictype/test-categ_Ps.c: Likewise.
28399         * tests/unictype/test-categ_S.c: Likewise.
28400         * tests/unictype/test-categ_Sc.c: Likewise.
28401         * tests/unictype/test-categ_Sk.c: Likewise.
28402         * tests/unictype/test-categ_Sm.c: Likewise.
28403         * tests/unictype/test-categ_So.c: Likewise.
28404         * tests/unictype/test-categ_Z.c: Likewise.
28405         * tests/unictype/test-categ_Zl.c: Likewise.
28406         * tests/unictype/test-categ_Zp.c: Likewise.
28407         * tests/unictype/test-categ_Zs.c: Likewise.
28408         * tests/unictype/test-ctype_alnum.c: Likewise.
28409         * tests/unictype/test-ctype_alpha.c: Likewise.
28410         * tests/unictype/test-ctype_blank.c: Likewise.
28411         * tests/unictype/test-ctype_cntrl.c: Likewise.
28412         * tests/unictype/test-ctype_digit.c: Likewise.
28413         * tests/unictype/test-ctype_graph.c: Likewise.
28414         * tests/unictype/test-ctype_lower.c: Likewise.
28415         * tests/unictype/test-ctype_print.c: Likewise.
28416         * tests/unictype/test-ctype_punct.c: Likewise.
28417         * tests/unictype/test-ctype_space.c: Likewise.
28418         * tests/unictype/test-ctype_upper.c: Likewise.
28419         * tests/unictype/test-ctype_xdigit.c: Likewise.
28420         * tests/unictype/test-decdigit.h: Likewise.
28421         * tests/unictype/test-digit.h: Likewise.
28422         * tests/unictype/test-numeric.h: Likewise.
28423         * tests/unictype/test-pr_alphabetic.c: Likewise.
28424         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28425         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28426         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28427         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28428         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28429         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28430         * tests/unictype/test-pr_bidi_control.c: Likewise.
28431         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28432         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28433         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28434         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28435         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28436         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28437         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28438         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28439         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28440         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28441         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28442         * tests/unictype/test-pr_combining.c: Likewise.
28443         * tests/unictype/test-pr_composite.c: Likewise.
28444         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28445         * tests/unictype/test-pr_dash.c: Likewise.
28446         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28447         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28448         * tests/unictype/test-pr_deprecated.c: Likewise.
28449         * tests/unictype/test-pr_diacritic.c: Likewise.
28450         * tests/unictype/test-pr_extender.c: Likewise.
28451         * tests/unictype/test-pr_format_control.c: Likewise.
28452         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28453         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28454         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28455         * tests/unictype/test-pr_hex_digit.c: Likewise.
28456         * tests/unictype/test-pr_hyphen.c: Likewise.
28457         * tests/unictype/test-pr_id_continue.c: Likewise.
28458         * tests/unictype/test-pr_id_start.c: Likewise.
28459         * tests/unictype/test-pr_ideographic.c: Likewise.
28460         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28461         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28462         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28463         * tests/unictype/test-pr_iso_control.c: Likewise.
28464         * tests/unictype/test-pr_join_control.c: Likewise.
28465         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28466         * tests/unictype/test-pr_line_separator.c: Likewise.
28467         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28468         * tests/unictype/test-pr_lowercase.c: Likewise.
28469         * tests/unictype/test-pr_math.c: Likewise.
28470         * tests/unictype/test-pr_non_break.c: Likewise.
28471         * tests/unictype/test-pr_not_a_character.c: Likewise.
28472         * tests/unictype/test-pr_numeric.c: Likewise.
28473         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28474         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28475         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28476         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28477         * tests/unictype/test-pr_other_id_start.c: Likewise.
28478         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28479         * tests/unictype/test-pr_other_math.c: Likewise.
28480         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28481         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28482         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28483         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28484         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28485         * tests/unictype/test-pr_private_use.c: Likewise.
28486         * tests/unictype/test-pr_punctuation.c: Likewise.
28487         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28488         * tests/unictype/test-pr_radical.c: Likewise.
28489         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28490         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28491         * tests/unictype/test-pr_space.c: Likewise.
28492         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28493         * tests/unictype/test-pr_titlecase.c: Likewise.
28494         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28495         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28496         * tests/unictype/test-pr_uppercase.c: Likewise.
28497         * tests/unictype/test-pr_variation_selector.c: Likewise.
28498         * tests/unictype/test-pr_white_space.c: Likewise.
28499         * tests/unictype/test-pr_xid_continue.c: Likewise.
28500         * tests/unictype/test-pr_xid_start.c: Likewise.
28501         * tests/unictype/test-pr_zero_width.c: Likewise.
28502         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28503         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28504
28505 2007-11-12  Bruno Haible  <bruno@clisp.org>
28506
28507         Unicode character classification functions.
28508         * lib/unictype.h: New file.
28509         * modules/unictype/base: New file.
28510         * modules/unictype/category-L: New file.
28511         * modules/unictype/category-Lu: New file.
28512         * modules/unictype/category-Ll: New file.
28513         * modules/unictype/category-Lt: New file.
28514         * modules/unictype/category-Lm: New file.
28515         * modules/unictype/category-Lo: New file.
28516         * modules/unictype/category-M: New file.
28517         * modules/unictype/category-Mn: New file.
28518         * modules/unictype/category-Mc: New file.
28519         * modules/unictype/category-Me: New file.
28520         * modules/unictype/category-N: New file.
28521         * modules/unictype/category-Nd: New file.
28522         * modules/unictype/category-Nl: New file.
28523         * modules/unictype/category-No: New file.
28524         * modules/unictype/category-P: New file.
28525         * modules/unictype/category-Pc: New file.
28526         * modules/unictype/category-Pd: New file.
28527         * modules/unictype/category-Ps: New file.
28528         * modules/unictype/category-Pe: New file.
28529         * modules/unictype/category-Pi: New file.
28530         * modules/unictype/category-Pf: New file.
28531         * modules/unictype/category-Po: New file.
28532         * modules/unictype/category-S: New file.
28533         * modules/unictype/category-Sm: New file.
28534         * modules/unictype/category-Sc: New file.
28535         * modules/unictype/category-Sk: New file.
28536         * modules/unictype/category-So: New file.
28537         * modules/unictype/category-Z: New file.
28538         * modules/unictype/category-Zs: New file.
28539         * modules/unictype/category-Zl: New file.
28540         * modules/unictype/category-Zp: New file.
28541         * modules/unictype/category-C: New file.
28542         * modules/unictype/category-Cc: New file.
28543         * modules/unictype/category-Cf: New file.
28544         * modules/unictype/category-Cs: New file.
28545         * modules/unictype/category-Co: New file.
28546         * modules/unictype/category-Cn: New file.
28547         * modules/unictype/category-or: New file.
28548         * modules/unictype/category-of: New file.
28549         * modules/unictype/category-test: New file.
28550         * modules/unictype/category-test-withtable: New file.
28551         * modules/unictype/category-byname: New file.
28552         * modules/unictype/category-none: New file.
28553         * modules/unictype/category-and: New file.
28554         * modules/unictype/category-and-not: New file.
28555         * modules/unictype/category-name: New file.
28556         * modules/unictype/combining-class: New file.
28557         * modules/unictype/category-all: New file.
28558         * modules/unictype/bidicategory-all: New file.
28559         * modules/unictype/bidicategory-byname: New file.
28560         * modules/unictype/bidicategory-name: New file.
28561         * modules/unictype/bidicategory-of: New file.
28562         * modules/unictype/bidicategory-test: New file.
28563         * modules/unictype/decimal-digit: New file.
28564         * modules/unictype/digit: New file.
28565         * modules/unictype/numeric: New file.
28566         * modules/unictype/mirror: New file.
28567         * modules/unictype/property-white-space: New file.
28568         * modules/unictype/property-alphabetic: New file.
28569         * modules/unictype/property-other-alphabetic: New file.
28570         * modules/unictype/property-not-a-character: New file.
28571         * modules/unictype/property-default-ignorable-code-point: New file.
28572         * modules/unictype/property-other-default-ignorable-code-point: New
28573         file.
28574         * modules/unictype/property-deprecated: New file.
28575         * modules/unictype/property-logical-order-exception: New file.
28576         * modules/unictype/property-variation-selector: New file.
28577         * modules/unictype/property-private-use: New file.
28578         * modules/unictype/property-unassigned-code-value: New file.
28579         * modules/unictype/property-uppercase: New file.
28580         * modules/unictype/property-other-uppercase: New file.
28581         * modules/unictype/property-lowercase: New file.
28582         * modules/unictype/property-other-lowercase: New file.
28583         * modules/unictype/property-titlecase: New file.
28584         * modules/unictype/property-soft-dotted: New file.
28585         * modules/unictype/property-id-start: New file.
28586         * modules/unictype/property-other-id-start: New file.
28587         * modules/unictype/property-id-continue: New file.
28588         * modules/unictype/property-other-id-continue: New file.
28589         * modules/unictype/property-xid-start: New file.
28590         * modules/unictype/property-xid-continue: New file.
28591         * modules/unictype/property-pattern-white-space: New file.
28592         * modules/unictype/property-pattern-syntax: New file.
28593         * modules/unictype/property-join-control: New file.
28594         * modules/unictype/property-grapheme-base: New file.
28595         * modules/unictype/property-grapheme-extend: New file.
28596         * modules/unictype/property-other-grapheme-extend: New file.
28597         * modules/unictype/property-grapheme-link: New file.
28598         * modules/unictype/property-bidi-control: New file.
28599         * modules/unictype/property-bidi-left-to-right: New file.
28600         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28601         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28602         * modules/unictype/property-bidi-european-digit: New file.
28603         * modules/unictype/property-bidi-eur-num-separator: New file.
28604         * modules/unictype/property-bidi-eur-num-terminator: New file.
28605         * modules/unictype/property-bidi-arabic-digit: New file.
28606         * modules/unictype/property-bidi-common-separator: New file.
28607         * modules/unictype/property-bidi-block-separator: New file.
28608         * modules/unictype/property-bidi-segment-separator: New file.
28609         * modules/unictype/property-bidi-whitespace: New file.
28610         * modules/unictype/property-bidi-non-spacing-mark: New file.
28611         * modules/unictype/property-bidi-boundary-neutral: New file.
28612         * modules/unictype/property-bidi-pdf: New file.
28613         * modules/unictype/property-bidi-embedding-or-override: New file.
28614         * modules/unictype/property-bidi-other-neutral: New file.
28615         * modules/unictype/property-hex-digit: New file.
28616         * modules/unictype/property-ascii-hex-digit: New file.
28617         * modules/unictype/property-ideographic: New file.
28618         * modules/unictype/property-unified-ideograph: New file.
28619         * modules/unictype/property-radical: New file.
28620         * modules/unictype/property-ids-binary-operator: New file.
28621         * modules/unictype/property-ids-trinary-operator: New file.
28622         * modules/unictype/property-zero-width: New file.
28623         * modules/unictype/property-space: New file.
28624         * modules/unictype/property-non-break: New file.
28625         * modules/unictype/property-iso-control: New file.
28626         * modules/unictype/property-format-control: New file.
28627         * modules/unictype/property-dash: New file.
28628         * modules/unictype/property-hyphen: New file.
28629         * modules/unictype/property-punctuation: New file.
28630         * modules/unictype/property-line-separator: New file.
28631         * modules/unictype/property-paragraph-separator: New file.
28632         * modules/unictype/property-quotation-mark: New file.
28633         * modules/unictype/property-sentence-terminal: New file.
28634         * modules/unictype/property-terminal-punctuation: New file.
28635         * modules/unictype/property-currency-symbol: New file.
28636         * modules/unictype/property-math: New file.
28637         * modules/unictype/property-other-math: New file.
28638         * modules/unictype/property-paired-punctuation: New file.
28639         * modules/unictype/property-left-of-pair: New file.
28640         * modules/unictype/property-combining: New file.
28641         * modules/unictype/property-composite: New file.
28642         * modules/unictype/property-decimal-digit: New file.
28643         * modules/unictype/property-numeric: New file.
28644         * modules/unictype/property-diacritic: New file.
28645         * modules/unictype/property-extender: New file.
28646         * modules/unictype/property-ignorable-control: New file.
28647         * modules/unictype/property-test: New file.
28648         * modules/unictype/property-byname: New file.
28649         * modules/unictype/property-all: New file.
28650         * modules/unictype/scripts: New file.
28651         * modules/unictype/scripts-all: New file.
28652         * modules/unictype/block-of: New file.
28653         * modules/unictype/block-test: New file.
28654         * modules/unictype/block-list: New file.
28655         * modules/unictype/block-all: New file.
28656         * modules/unictype/syntax-c-whitespace: New file.
28657         * modules/unictype/syntax-java-whitespace: New file.
28658         * modules/unictype/syntax-c-ident: New file.
28659         * modules/unictype/syntax-java-ident: New file.
28660         * modules/unictype/ctype-alnum: New file.
28661         * modules/unictype/ctype-alpha: New file.
28662         * modules/unictype/ctype-cntrl: New file.
28663         * modules/unictype/ctype-digit: New file.
28664         * modules/unictype/ctype-graph: New file.
28665         * modules/unictype/ctype-lower: New file.
28666         * modules/unictype/ctype-print: New file.
28667         * modules/unictype/ctype-punct: New file.
28668         * modules/unictype/ctype-space: New file.
28669         * modules/unictype/ctype-upper: New file.
28670         * modules/unictype/ctype-xdigit: New file.
28671         * modules/unictype/ctype-blank: New file.
28672         * lib/unictype/bidi_byname.c: New file.
28673         * lib/unictype/bidi_name.c: New file.
28674         * lib/unictype/bidi_of.c: New file.
28675         * lib/unictype/bidi_test.c: New file.
28676         * lib/unictype/bitmap.h: New file.
28677         * lib/unictype/block_test.c: New file.
28678         * lib/unictype/blocks.c: New file.
28679         * lib/unictype/categ_C.c: New file.
28680         * lib/unictype/categ_Cc.c: New file.
28681         * lib/unictype/categ_Cf.c: New file.
28682         * lib/unictype/categ_Cn.c: New file.
28683         * lib/unictype/categ_Co.c: New file.
28684         * lib/unictype/categ_Cs.c: New file.
28685         * lib/unictype/categ_L.c: New file.
28686         * lib/unictype/categ_Ll.c: New file.
28687         * lib/unictype/categ_Lm.c: New file.
28688         * lib/unictype/categ_Lo.c: New file.
28689         * lib/unictype/categ_Lt.c: New file.
28690         * lib/unictype/categ_Lu.c: New file.
28691         * lib/unictype/categ_M.c: New file.
28692         * lib/unictype/categ_Mc.c: New file.
28693         * lib/unictype/categ_Me.c: New file.
28694         * lib/unictype/categ_Mn.c: New file.
28695         * lib/unictype/categ_N.c: New file.
28696         * lib/unictype/categ_Nd.c: New file.
28697         * lib/unictype/categ_Nl.c: New file.
28698         * lib/unictype/categ_No.c: New file.
28699         * lib/unictype/categ_P.c: New file.
28700         * lib/unictype/categ_Pc.c: New file.
28701         * lib/unictype/categ_Pd.c: New file.
28702         * lib/unictype/categ_Pe.c: New file.
28703         * lib/unictype/categ_Pf.c: New file.
28704         * lib/unictype/categ_Pi.c: New file.
28705         * lib/unictype/categ_Po.c: New file.
28706         * lib/unictype/categ_Ps.c: New file.
28707         * lib/unictype/categ_S.c: New file.
28708         * lib/unictype/categ_Sc.c: New file.
28709         * lib/unictype/categ_Sk.c: New file.
28710         * lib/unictype/categ_Sm.c: New file.
28711         * lib/unictype/categ_So.c: New file.
28712         * lib/unictype/categ_Z.c: New file.
28713         * lib/unictype/categ_Zl.c: New file.
28714         * lib/unictype/categ_Zp.c: New file.
28715         * lib/unictype/categ_Zs.c: New file.
28716         * lib/unictype/categ_and.c: New file.
28717         * lib/unictype/categ_and_not.c: New file.
28718         * lib/unictype/categ_byname.c: New file.
28719         * lib/unictype/categ_name.c: New file.
28720         * lib/unictype/categ_none.c: New file.
28721         * lib/unictype/categ_of.c: New file.
28722         * lib/unictype/categ_or.c: New file.
28723         * lib/unictype/categ_test.c: New file.
28724         * lib/unictype/combining.c: New file.
28725         * lib/unictype/ctype_alnum.c: New file.
28726         * lib/unictype/ctype_alpha.c: New file.
28727         * lib/unictype/ctype_blank.c: New file.
28728         * lib/unictype/ctype_cntrl.c: New file.
28729         * lib/unictype/ctype_digit.c: New file.
28730         * lib/unictype/ctype_graph.c: New file.
28731         * lib/unictype/ctype_lower.c: New file.
28732         * lib/unictype/ctype_print.c: New file.
28733         * lib/unictype/ctype_punct.c: New file.
28734         * lib/unictype/ctype_space.c: New file.
28735         * lib/unictype/ctype_upper.c: New file.
28736         * lib/unictype/ctype_xdigit.c: New file.
28737         * lib/unictype/decdigit.c: New file.
28738         * lib/unictype/digit.c: New file.
28739         * lib/unictype/identsyntaxmap.h: New file.
28740         * lib/unictype/mirror.c: New file.
28741         * lib/unictype/numeric.c: New file.
28742         * lib/unictype/pr_alphabetic.c: New file.
28743         * lib/unictype/pr_ascii_hex_digit.c: New file.
28744         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28745         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28746         * lib/unictype/pr_bidi_block_separator.c: New file.
28747         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28748         * lib/unictype/pr_bidi_common_separator.c: New file.
28749         * lib/unictype/pr_bidi_control.c: New file.
28750         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28751         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28752         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28753         * lib/unictype/pr_bidi_european_digit.c: New file.
28754         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28755         * lib/unictype/pr_bidi_left_to_right.c: New file.
28756         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28757         * lib/unictype/pr_bidi_other_neutral.c: New file.
28758         * lib/unictype/pr_bidi_pdf.c: New file.
28759         * lib/unictype/pr_bidi_segment_separator.c: New file.
28760         * lib/unictype/pr_bidi_whitespace.c: New file.
28761         * lib/unictype/pr_byname.c: New file.
28762         * lib/unictype/pr_byname.gperf: New file.
28763         * lib/unictype/pr_combining.c: New file.
28764         * lib/unictype/pr_composite.c: New file.
28765         * lib/unictype/pr_currency_symbol.c: New file.
28766         * lib/unictype/pr_dash.c: New file.
28767         * lib/unictype/pr_decimal_digit.c: New file.
28768         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28769         * lib/unictype/pr_deprecated.c: New file.
28770         * lib/unictype/pr_diacritic.c: New file.
28771         * lib/unictype/pr_extender.c: New file.
28772         * lib/unictype/pr_format_control.c: New file.
28773         * lib/unictype/pr_grapheme_base.c: New file.
28774         * lib/unictype/pr_grapheme_extend.c: New file.
28775         * lib/unictype/pr_grapheme_link.c: New file.
28776         * lib/unictype/pr_hex_digit.c: New file.
28777         * lib/unictype/pr_hyphen.c: New file.
28778         * lib/unictype/pr_id_continue.c: New file.
28779         * lib/unictype/pr_id_start.c: New file.
28780         * lib/unictype/pr_ideographic.c: New file.
28781         * lib/unictype/pr_ids_binary_operator.c: New file.
28782         * lib/unictype/pr_ids_trinary_operator.c: New file.
28783         * lib/unictype/pr_ignorable_control.c: New file.
28784         * lib/unictype/pr_iso_control.c: New file.
28785         * lib/unictype/pr_join_control.c: New file.
28786         * lib/unictype/pr_left_of_pair.c: New file.
28787         * lib/unictype/pr_line_separator.c: New file.
28788         * lib/unictype/pr_logical_order_exception.c: New file.
28789         * lib/unictype/pr_lowercase.c: New file.
28790         * lib/unictype/pr_math.c: New file.
28791         * lib/unictype/pr_non_break.c: New file.
28792         * lib/unictype/pr_not_a_character.c: New file.
28793         * lib/unictype/pr_numeric.c: New file.
28794         * lib/unictype/pr_other_alphabetic.c: New file.
28795         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28796         * lib/unictype/pr_other_grapheme_extend.c: New file.
28797         * lib/unictype/pr_other_id_continue.c: New file.
28798         * lib/unictype/pr_other_id_start.c: New file.
28799         * lib/unictype/pr_other_lowercase.c: New file.
28800         * lib/unictype/pr_other_math.c: New file.
28801         * lib/unictype/pr_other_uppercase.c: New file.
28802         * lib/unictype/pr_paired_punctuation.c: New file.
28803         * lib/unictype/pr_paragraph_separator.c: New file.
28804         * lib/unictype/pr_pattern_syntax.c: New file.
28805         * lib/unictype/pr_pattern_white_space.c: New file.
28806         * lib/unictype/pr_private_use.c: New file.
28807         * lib/unictype/pr_punctuation.c: New file.
28808         * lib/unictype/pr_quotation_mark.c: New file.
28809         * lib/unictype/pr_radical.c: New file.
28810         * lib/unictype/pr_sentence_terminal.c: New file.
28811         * lib/unictype/pr_soft_dotted.c: New file.
28812         * lib/unictype/pr_space.c: New file.
28813         * lib/unictype/pr_terminal_punctuation.c: New file.
28814         * lib/unictype/pr_test.c: New file.
28815         * lib/unictype/pr_titlecase.c: New file.
28816         * lib/unictype/pr_unassigned_code_value.c: New file.
28817         * lib/unictype/pr_unified_ideograph.c: New file.
28818         * lib/unictype/pr_uppercase.c: New file.
28819         * lib/unictype/pr_variation_selector.c: New file.
28820         * lib/unictype/pr_white_space.c: New file.
28821         * lib/unictype/pr_xid_continue.c: New file.
28822         * lib/unictype/pr_xid_start.c: New file.
28823         * lib/unictype/pr_zero_width.c: New file.
28824         * lib/unictype/scripts.c: New file.
28825         * lib/unictype/sy_c_ident.c: New file.
28826         * lib/unictype/sy_c_whitespace.c: New file.
28827         * lib/unictype/sy_java_ident.c: New file.
28828         * lib/unictype/sy_java_whitespace.c: New file.
28829
28830         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28831         Unicode 5.0.0.
28832         * lib/unictype/blocks.h: Likewise.
28833         * lib/unictype/categ_C.h: Likewise.
28834         * lib/unictype/categ_Cc.h: Likewise.
28835         * lib/unictype/categ_Cf.h: Likewise.
28836         * lib/unictype/categ_Cn.h: Likewise.
28837         * lib/unictype/categ_Co.h: Likewise.
28838         * lib/unictype/categ_Cs.h: Likewise.
28839         * lib/unictype/categ_L.h: Likewise.
28840         * lib/unictype/categ_Ll.h: Likewise.
28841         * lib/unictype/categ_Lm.h: Likewise.
28842         * lib/unictype/categ_Lo.h: Likewise.
28843         * lib/unictype/categ_Lt.h: Likewise.
28844         * lib/unictype/categ_Lu.h: Likewise.
28845         * lib/unictype/categ_M.h: Likewise.
28846         * lib/unictype/categ_Mc.h: Likewise.
28847         * lib/unictype/categ_Me.h: Likewise.
28848         * lib/unictype/categ_Mn.h: Likewise.
28849         * lib/unictype/categ_N.h: Likewise.
28850         * lib/unictype/categ_Nd.h: Likewise.
28851         * lib/unictype/categ_Nl.h: Likewise.
28852         * lib/unictype/categ_No.h: Likewise.
28853         * lib/unictype/categ_P.h: Likewise.
28854         * lib/unictype/categ_Pc.h: Likewise.
28855         * lib/unictype/categ_Pd.h: Likewise.
28856         * lib/unictype/categ_Pe.h: Likewise.
28857         * lib/unictype/categ_Pf.h: Likewise.
28858         * lib/unictype/categ_Pi.h: Likewise.
28859         * lib/unictype/categ_Po.h: Likewise.
28860         * lib/unictype/categ_Ps.h: Likewise.
28861         * lib/unictype/categ_S.h: Likewise.
28862         * lib/unictype/categ_Sc.h: Likewise.
28863         * lib/unictype/categ_Sk.h: Likewise.
28864         * lib/unictype/categ_Sm.h: Likewise.
28865         * lib/unictype/categ_So.h: Likewise.
28866         * lib/unictype/categ_Z.h: Likewise.
28867         * lib/unictype/categ_Zl.h: Likewise.
28868         * lib/unictype/categ_Zp.h: Likewise.
28869         * lib/unictype/categ_Zs.h: Likewise.
28870         * lib/unictype/categ_of.h: Likewise.
28871         * lib/unictype/combining.h: Likewise.
28872         * lib/unictype/ctype_alnum.h: Likewise.
28873         * lib/unictype/ctype_alpha.h: Likewise.
28874         * lib/unictype/ctype_blank.h: Likewise.
28875         * lib/unictype/ctype_cntrl.h: Likewise.
28876         * lib/unictype/ctype_digit.h: Likewise.
28877         * lib/unictype/ctype_graph.h: Likewise.
28878         * lib/unictype/ctype_lower.h: Likewise.
28879         * lib/unictype/ctype_print.h: Likewise.
28880         * lib/unictype/ctype_punct.h: Likewise.
28881         * lib/unictype/ctype_space.h: Likewise.
28882         * lib/unictype/ctype_upper.h: Likewise.
28883         * lib/unictype/ctype_xdigit.h: Likewise.
28884         * lib/unictype/decdigit.h: Likewise.
28885         * lib/unictype/digit.h: Likewise.
28886         * lib/unictype/mirror.h: Likewise.
28887         * lib/unictype/numeric.h: Likewise.
28888         * lib/unictype/pr_alphabetic.h: Likewise.
28889         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28890         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28891         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28892         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28893         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28894         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28895         * lib/unictype/pr_bidi_control.h: Likewise.
28896         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28897         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28898         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28899         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28900         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28901         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28902         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28903         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28904         * lib/unictype/pr_bidi_pdf.h: Likewise.
28905         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28906         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28907         * lib/unictype/pr_combining.h: Likewise.
28908         * lib/unictype/pr_composite.h: Likewise.
28909         * lib/unictype/pr_currency_symbol.h: Likewise.
28910         * lib/unictype/pr_dash.h: Likewise.
28911         * lib/unictype/pr_decimal_digit.h: Likewise.
28912         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28913         * lib/unictype/pr_deprecated.h: Likewise.
28914         * lib/unictype/pr_diacritic.h: Likewise.
28915         * lib/unictype/pr_extender.h: Likewise.
28916         * lib/unictype/pr_format_control.h: Likewise.
28917         * lib/unictype/pr_grapheme_base.h: Likewise.
28918         * lib/unictype/pr_grapheme_extend.h: Likewise.
28919         * lib/unictype/pr_grapheme_link.h: Likewise.
28920         * lib/unictype/pr_hex_digit.h: Likewise.
28921         * lib/unictype/pr_hyphen.h: Likewise.
28922         * lib/unictype/pr_id_continue.h: Likewise.
28923         * lib/unictype/pr_id_start.h: Likewise.
28924         * lib/unictype/pr_ideographic.h: Likewise.
28925         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28926         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28927         * lib/unictype/pr_ignorable_control.h: Likewise.
28928         * lib/unictype/pr_iso_control.h: Likewise.
28929         * lib/unictype/pr_join_control.h: Likewise.
28930         * lib/unictype/pr_left_of_pair.h: Likewise.
28931         * lib/unictype/pr_line_separator.h: Likewise.
28932         * lib/unictype/pr_logical_order_exception.h: Likewise.
28933         * lib/unictype/pr_lowercase.h: Likewise.
28934         * lib/unictype/pr_math.h: Likewise.
28935         * lib/unictype/pr_non_break.h: Likewise.
28936         * lib/unictype/pr_not_a_character.h: Likewise.
28937         * lib/unictype/pr_numeric.h: Likewise.
28938         * lib/unictype/pr_other_alphabetic.h: Likewise.
28939         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28940         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28941         * lib/unictype/pr_other_id_continue.h: Likewise.
28942         * lib/unictype/pr_other_id_start.h: Likewise.
28943         * lib/unictype/pr_other_lowercase.h: Likewise.
28944         * lib/unictype/pr_other_math.h: Likewise.
28945         * lib/unictype/pr_other_uppercase.h: Likewise.
28946         * lib/unictype/pr_paired_punctuation.h: Likewise.
28947         * lib/unictype/pr_paragraph_separator.h: Likewise.
28948         * lib/unictype/pr_pattern_syntax.h: Likewise.
28949         * lib/unictype/pr_pattern_white_space.h: Likewise.
28950         * lib/unictype/pr_private_use.h: Likewise.
28951         * lib/unictype/pr_punctuation.h: Likewise.
28952         * lib/unictype/pr_quotation_mark.h: Likewise.
28953         * lib/unictype/pr_radical.h: Likewise.
28954         * lib/unictype/pr_sentence_terminal.h: Likewise.
28955         * lib/unictype/pr_soft_dotted.h: Likewise.
28956         * lib/unictype/pr_space.h: Likewise.
28957         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28958         * lib/unictype/pr_titlecase.h: Likewise.
28959         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28960         * lib/unictype/pr_unified_ideograph.h: Likewise.
28961         * lib/unictype/pr_uppercase.h: Likewise.
28962         * lib/unictype/pr_variation_selector.h: Likewise.
28963         * lib/unictype/pr_white_space.h: Likewise.
28964         * lib/unictype/pr_xid_continue.h: Likewise.
28965         * lib/unictype/pr_xid_start.h: Likewise.
28966         * lib/unictype/pr_zero_width.h: Likewise.
28967         * lib/unictype/scripts.h: Likewise.
28968         * lib/unictype/scripts_byname.gperf: Likewise.
28969         * lib/unictype/sy_c_ident.h: Likewise.
28970         * lib/unictype/sy_c_whitespace.h: Likewise.
28971         * lib/unictype/sy_java_ident.h: Likewise.
28972         * lib/unictype/sy_java_whitespace.h: Likewise.
28973
28974         * lib/unictype/Makefile: New file.
28975         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28976         glibc.
28977         * lib/unictype/3level.h: New file, copied from glibc.
28978         * lib/unictype/3levelbit.h: New file.
28979
28980 2007-11-11  Bruno Haible  <bruno@clisp.org>
28981
28982         * modules/gperf: New file.
28983         * modules/iconv_open (Depends-on): Add it.
28984         (Makefile.am): Remove the GPERF definition.
28985
28986 2007-11-11  Bruno Haible  <bruno@clisp.org>
28987
28988         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28989         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28990
28991 2007-11-11  Bruno Haible  <bruno@clisp.org>
28992
28993         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28994         (usage): Remove function.
28995
28996 2007-11-11  Bruno Haible  <bruno@clisp.org>
28997
28998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28999         gl_FUNC_CEILF_LIBS.
29000         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29001         gl_FUNC_CEIL_LIBS.
29002         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29003         gl_FUNC_CEILL_LIBS.
29004         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29005         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29006         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29007
29008 2007-11-11  Bruno Haible  <bruno@clisp.org>
29009
29010         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29011         roundf were declared but do not exist on functions.
29012         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29013         roundl were declared but do not exist on functions.
29014         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29015         HAVE_FLOORL_AND_CEILL, respectively.
29016         Needed for Sun C on Solaris 10.
29017
29018 2007-11-11  Bruno Haible  <bruno@clisp.org>
29019
29020         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29021         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29022         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29023         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29024         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29025         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29026         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29027         HAVE_DECL_ROUNDF.
29028         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29029         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29031         of HAVE_DECL_ROUND*.
29032         * modules/math (Makefile.am): Update.
29033
29034 2007-11-10  Bruno Haible  <bruno@clisp.org>
29035
29036         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29037         ptrdiff_t as m4/intl.m4.
29038
29039 2007-11-10  Jim Meyering  <meyering@redhat.com>
29040
29041         Avoid link failure for the argmatch test.
29042         * tests/test-argmatch.c (usage): Define function to avoid a link
29043         failure: argmatch_die requires a usage function.
29044
29045 2007-11-09  Bruno Haible  <bruno@clisp.org>
29046
29047         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29048         * doc/functions/vsnprintf.texi: Likewise.
29049         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29050         with a size argument < 2.
29051
29052 2007-11-09  Bruno Haible  <bruno@clisp.org>
29053
29054         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29055         buffer. Fixes an inefficiency introduced on 2007-11-03.
29056
29057 2007-11-09  Bruno Haible  <bruno@clisp.org>
29058
29059         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29060         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29061
29062 2007-11-08  Jim Meyering  <meyering@redhat.com>
29063
29064         Change cache variable name prefix "jm_" to "gl_" everywhere.
29065         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29066         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29067         * m4/uptime.m4: s/gl_/jm_/
29068
29069 2007-11-07  Bruno Haible  <bruno@clisp.org>
29070
29071         Update to GNU gettext 0.17.
29072         * m4/intl.m4: Update to GNU gettext 0.17.
29073         * m4/po.m4: Likewise.
29074         * modules/gettext (Files): Remove m4/ulonglong.m4.
29075         (configure.ac): Require gettext infrastructure from version 0.17.
29076
29077 2007-11-06  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29080         symbolic values are not defined in a public header.
29081         * lib/freadable.c (freadable) [QNX]: Likewise.
29082         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29083         * lib/freading.c (freading) [QNX]: Likewise.
29084         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29085         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29086         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29087         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29088         Reported by Alain Magloire.
29089
29090         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29091
29092 2007-11-05  Bruno Haible  <bruno@clisp.org>
29093
29094         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29095         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29096         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29097         Reported by Eric Blake.
29098
29099 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29100             Bruno Haible  <bruno@clisp.org>
29101
29102         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29103         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29104         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29105         (malloc): Undefine also before including <stdlib.h>.
29106         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29107         Needed on OSF/1 4.0.
29108
29109 2007-11-05  Jim Meyering  <meyering@redhat.com>
29110
29111         git-version-gen: sync from coreutils.
29112         * build-aux/git-version-gen: Add comments.
29113         Change the first '-' to '.' in the snapshot version string,
29114         e.g., 6.9-377-08144 -> 6.9.377-08144
29115         Remove first parameter.
29116         Don't declare a version "-dirty" merely because a time
29117         stamp has changed.
29118
29119 2007-11-04  Bruno Haible  <bruno@clisp.org>
29120
29121         * lib/lock.h: Protect all macro definitions containing an 'if'
29122         statement through a "do { ... } while (0)".
29123         * lib/tls.h: Likewise.
29124
29125 2007-11-04  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29128
29129 2007-11-04  Bruno Haible  <bruno@clisp.org>
29130
29131         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29132         * modules/fprintf-posix (Depends-on): Add nocrash.
29133         * modules/snprintf-posix (Depends-on): Likewise.
29134         * modules/sprintf-posix (Depends-on): Likewise.
29135         * modules/vasnprintf-posix (Depends-on): Likewise.
29136         * modules/vasprintf-posix (Depends-on): Likewise.
29137         * modules/vfprintf-posix (Depends-on): Likewise.
29138         * modules/vsnprintf-posix (Depends-on): Likewise.
29139         * modules/vsprintf-posix (Depends-on): Likewise.
29140         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29141         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29142         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29143         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29144         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29145         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29146         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29147
29148 2007-11-04  Bruno Haible  <bruno@clisp.org>
29149
29150         * modules/nocrash: New file.
29151         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29152         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29153
29154 2007-11-04  Bruno Haible  <bruno@clisp.org>
29155
29156         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29157         precision handling.
29158         * tests/test-vasprintf-posix.c (test_function): Likewise.
29159         * tests/test-snprintf-posix.h (test_function): Likewise.
29160         * tests/test-sprintf-posix.h (test_function): Likewise.
29161
29162         Fix *printf behaviour for large precisions on mingw and BeOS.
29163         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29164         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29166         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29168         gl_PRINTF_PRECISION and test its result. Invoke
29169         gl_PREREQ_VASNPRINTF_PRECISION.
29170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29172         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29173         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29174         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29177         * doc/functions/fprintf.texi: Update.
29178         * doc/functions/printf.texi: Update.
29179         * doc/functions/snprintf.texi: Update.
29180         * doc/functions/sprintf.texi: Update.
29181         * doc/functions/vfprintf.texi: Update.
29182         * doc/functions/vprintf.texi: Update.
29183         * doc/functions/vsnprintf.texi: Update.
29184         * doc/functions/vsprintf.texi: Update.
29185
29186 2007-11-04  Bruno Haible  <bruno@clisp.org>
29187
29188         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29189
29190 2007-11-04  Bruno Haible  <bruno@clisp.org>
29191
29192         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29193         Reported by Sylvain Beucler <beuc@gnu.org>.
29194
29195 2007-11-03  Bruno Haible  <bruno@clisp.org>
29196
29197         * tests/test-fprintf-posix2.sh: New file.
29198         * tests/test-fprintf-posix2.c: New file.
29199         * modules/fprintf-posix-tests (Files): Add them.
29200         (TESTS): Add test-fprintf-posix2.sh.
29201         (configure.ac): Check for getrlimit and setrlimit.
29202         (check_PROGRAMS): Add test-fprintf-posix2.
29203
29204         * tests/test-printf-posix2.sh: New file.
29205         * tests/test-printf-posix2.c: New file.
29206         * modules/printf-posix-tests (Files): Add them.
29207         (TESTS): Add test-printf-posix2.sh.
29208         (configure.ac): Check for getrlimit and setrlimit.
29209         (check_PROGRAMS): Add test-printf-posix2.
29210
29211         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29212         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29213         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29214         (decode_double): New function, copied from decode_long_double.
29215         (scale10_round_decimal_decoded): New function, extracted from
29216         scale10_round_decimal_long_double.
29217         (scale10_round_decimal_long_double): Use it.
29218         (scale10_round_decimal_double): New function.
29219         (floorlog10): New function.
29220         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29222         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29224         gl_PRINTF_ENOMEM and test its result. Invoke
29225         gl_PREREQ_VASNPRINTF_ENOMEM.
29226         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29233         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29234         * modules/snprintf-posix (Depends-on): Likewise.
29235         * modules/sprintf-posix (Depends-on): Likewise.
29236         * modules/vasnprintf-posix (Depends-on): Likewise.
29237         * modules/vasprintf-posix (Depends-on): Likewise.
29238         * modules/vfprintf-posix (Depends-on): Likewise.
29239         * modules/vsnprintf-posix (Depends-on): Likewise.
29240         * modules/vsprintf-posix (Depends-on): Likewise.
29241         * doc/functions/fprintf.texi: Update.
29242         * doc/functions/printf.texi: Update.
29243         * doc/functions/snprintf.texi: Update.
29244         * doc/functions/sprintf.texi: Update.
29245         * doc/functions/vfprintf.texi: Update.
29246         * doc/functions/vprintf.texi: Update.
29247         * doc/functions/vsnprintf.texi: Update.
29248         * doc/functions/vsprintf.texi: Update.
29249
29250 2007-11-03  Bruno Haible  <bruno@clisp.org>
29251
29252         * modules/frexp-nolibm-tests: New file.
29253
29254         * modules/frexp-nolibm: New file.
29255         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29256
29257 2007-11-03  Bruno Haible  <bruno@clisp.org>
29258
29259         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29260         value is C99 compliant.
29261         Needed for OSF/1 5.1.
29262
29263 2007-11-03  Bruno Haible  <bruno@clisp.org>
29264
29265         Fix out-of-memory handling of vasnprintf.
29266         * lib/printf-parse.c: Include <errno.h>.
29267         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29268         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29269         is already set.
29270
29271 2007-11-02  Eric Blake  <ebb9@byu.net>
29272
29273         Fix tests on cygwin.
29274         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29275
29276 2007-11-01  Bruno Haible  <bruno@clisp.org>
29277
29278         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29279         warning.
29280         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29281         needed for POSIX compatibility.
29282
29283 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29284
29285         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29286         for compatibility with GNU.
29287
29288 2007-11-01  Bruno Haible  <bruno@clisp.org>
29289
29290         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29291         (putenv): Renamed from rpl_putenv. Change argument type from
29292         'const char *' to 'char *'.
29293         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29294         of defining putenv in config.h, just set REPLACE_PUTENV.
29295         * modules/putenv (Depends-on): Add stdlib.
29296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29297         (Include): Use <stdlib.h>.
29298         * lib/stdlib.in.h (putenv): New declaration.
29299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29300         REPLACE_PUTENV.
29301         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29302         REPLACE_PUTENV.
29303         Needed for MacOS X 10.5.0.
29304         Reported by Peter O'Gorman <peter@pogma.com>.
29305
29306 2007-11-01  Jim Meyering  <meyering@redhat.com>
29307
29308         Treat an empty date string exactly like "0".
29309         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29310         if the remaining date string (to be parsed) is empty, use "0".
29311         Reported by Mischa Molhoek and discussed in this thread:
29312         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29313
29314 2007-10-31  Bruno Haible  <bruno@clisp.org>
29315
29316         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29317         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29318         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29319         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29320         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29321         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29322
29323 2007-10-31  Bruno Haible  <bruno@clisp.org>
29324
29325         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29326         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29327         (AC_TYPE_LONG_LONG_INT): Use it.
29328         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29329         it as well.
29330         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29331         to m4/longlong.m4.
29332         * modules/stdint (Files): Remove m4/ulonglong.m4.
29333         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29334         m4/ulonglong.m4.
29335         * modules/strtoumax (Files): Likewise.
29336
29337 2007-10-30  Bruno Haible  <bruno@clisp.org>
29338
29339         * modules/xvasprintf-posix: New file.
29340         Suggested by Eric Blake.
29341
29342 2007-10-30  Bruno Haible  <bruno@clisp.org>
29343
29344         * modules/xprintf-posix-tests: New file.
29345         * tests/test-xprintf-posix.sh: New file.
29346         * tests/test-xprintf-posix.c: New file.
29347         * tests/test-xfprintf-posix.c: New file.
29348
29349         * modules/xprintf-posix: New file.
29350
29351 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29352
29353         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29354         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29355         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29356
29357 2007-10-29  Bruno Haible  <bruno@clisp.org>
29358
29359         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29360         contain the special marker '_cv_'.
29361         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29362         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29363         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29364         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29365         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29366         Reported by Ralf Wildenhues.
29367
29368 2007-10-29  Bruno Haible  <bruno@clisp.org>
29369
29370         * gnulib-tool (func_import): When --lgpl is not specified, set
29371         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29372         GPLv3.
29373         Reported by Simon Josefsson.
29374
29375 2007-10-28  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29378         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29379         HAVE_DECL_ISFINITE.
29380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29381         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29382         HAVE_DECL_ISFINITE.
29383
29384 2007-10-28  Bruno Haible  <bruno@clisp.org>
29385
29386         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29387         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29388
29389 2007-10-28  Bruno Haible  <bruno@clisp.org>
29390
29391         Fix link errors with Sun C 5.0 on Solaris 10.
29392         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29393         function is declared but not present in the compiler's libm.
29394         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29395         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29396         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29397         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29398         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29399         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29400         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29402         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29403         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29404         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29405         HAVE_DECL_FLOORL.
29406
29407 2007-10-28  Bruno Haible  <bruno@clisp.org>
29408
29409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29410         gl_FUNC_FLOORL. Cache the result.
29411         (gl_FUNC_FLOORL): Use it.
29412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29413         gl_FUNC_CEILL. Cache the result.
29414         (gl_FUNC_CEILL): Use it.
29415
29416         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29417         gl_FUNC_FLOOR. Cache the result.
29418         (gl_FUNC_FLOOR): Use it.
29419         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29420         gl_FUNC_CEIL. Cache the result.
29421         (gl_FUNC_CEIL): Use it.
29422
29423         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29424         gl_FUNC_FLOORF. Cache the result.
29425         (gl_FUNC_FLOORF): Use it.
29426         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29427         gl_FUNC_CEILF. Cache the result.
29428         (gl_FUNC_CEILF): Use it.
29429
29430 2007-10-28  Bruno Haible  <bruno@clisp.org>
29431
29432         * gnulib-tool: Allow specifying the LGPL version number through
29433         --lgpl=2 or --lgpl=3.
29434         (func_usage): Document --lgpl with argument.
29435         Handle --lgpl=... arguments.
29436         (func_import): Recognize also gl_LGPL calls with an argument. When
29437         --lgpl=2 is used and the module's license is just LGPL, report an
29438         error. Set sed_transform_lib_file according to the lgpl variable. In
29439         the generated files, use --lgpl or gl_LGPL invocations with argument,
29440         if necessary.
29441         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29442         an LGPv2+ license.
29443         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29444         gl_LGPL macro.
29445
29446 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29447             Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29450         (u16_uctomb_aux): Likewise.
29451         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29452         !HAVE_INLINE.
29453         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29454
29455 2007-10-28  Bruno Haible  <bruno@clisp.org>
29456
29457         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29458         Invoke AM_GETTEXT_OPTION if it exists.
29459         * modules/vasprintf: Likewise.
29460         * modules/verror: Likewise.
29461         * modules/xprintf: Likewise.
29462         * modules/xvasprintf: Likewise.
29463
29464 2007-10-27  Ben Pfaff  <blp@gnu.org>
29465
29466         * lib/math.in.h: Define isfinite macro and prototypes for
29467         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29468         implementations.
29469         * m4/math_h.m4: New substitutions for isfinite module.
29470         * lib/isfinite.c: New file.
29471         * m4/isfinite.m4: New file.
29472         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29473         * modules/isfinite: New file.
29474         * modules/isfinite-tests: New file.
29475         * tests/tests-isfinite.c: New file.
29476         * doc/functions/isfinite.texi: Mention isfinite module.
29477         * MODULES.html.sh: Mention new module.
29478
29479 2007-10-27  Ben Pfaff  <blp@gnu.org>
29480
29481         Ralf Wildenhues reported that Tru64 4.0D declares the round
29482         functions but does not have definitions.
29483         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29484         cannot be found in any library, set the output variable to
29485         "missing" instead of "".
29486         * m4/round.m4: Also use our substitute if we cannot find round in
29487         any library, even if it is declared.
29488         * m4/roundf.m4: Likewise for roundf.
29489         * m4/roundl.m4: Likewise for roundl.
29490         * lib/math.in.h: Undefine roundf, round, roundl before defining
29491         their replacements, to allow for hypothetical systems where these
29492         may be defined as macros but not available in libraries.
29493
29494 2007-10-27  Bruno Haible  <bruno@clisp.org>
29495
29496         * doc/gnulib.texi: Invoke @firstparagraphindent.
29497         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29498         changes in gnulib.
29499         (Source changes): New section.
29500
29501 2007-10-26  Bruno Haible  <bruno@clisp.org>
29502
29503         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29504         borrowed from autoconf.
29505
29506 2007-10-26  Bruno Haible  <bruno@clisp.org>
29507
29508         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29509         strerror returned the empty string. Needed on HP-UX 11.00.
29510
29511 2007-10-24  Micah Cowan  <micah@cowan.name>
29512
29513         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29514         * build-aux/bootstrap: Remove support for now-unnecessary option,
29515         --cvs-user, and envvars CVS_USER, CVS_RSH.
29516
29517 2007-10-24  Jim Meyering  <meyering@redhat.com>
29518
29519         Avoid diagnostics from sha1sum when there is no cached checksum.
29520         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29521         if the po.s1 file hasn't been created yet.
29522
29523         * build-aux/bootstrap: Sync from coreutils:
29524         2007-10-24  Jim Meyering  <meyering@redhat.com>
29525         Get gnulib from the git repository, not from an obsolete cvs one.
29526         * build-aux/bootstrap: Suggestion from Micah Cowan.
29527         2007-10-04  Jim Meyering  <jim@meyering.net>
29528         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29529         (update_po_files): Work also when there are no .po files in po/.
29530
29531 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29532
29533         * README: Append ".git" to git and cg examples.
29534         Problem reported by Benoit Sigoure.
29535
29536 2007-10-23  Micah Cowan  <micah@cowan.name>
29537
29538         * users.txt: Add wget.
29539
29540 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29541
29542         Fix linking of some unistdio tests on FreeBSD.
29543         * modules/unistdio/u16-vsnprintf-tests
29544         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29545         * modules/unistdio/u16-vsprintf-tests
29546         (test_u16_vsnprintf1_LDADD): Likewise.
29547         * modules/unistdio/u32-vsnprintf-tests
29548         (test_u32_vsnprintf1_LDADD): Likewise.
29549         * modules/unistdio/u32-vsprintf-tests
29550         (test_u32_vsprintf1_LDADD): Likewise.
29551         * modules/unistdio/u8-vsnprintf-tests
29552         (test_u8_vsnprintf1_LDADD): Likewise.
29553         * modules/unistdio/u8-vsprintf-tests
29554         (test_u8_vsprintf1_LDADD): Likewise.
29555         * modules/unistdio/ulc-vsnprintf-tests
29556         (test_ulc_vsnprintf1_LDADD): Likewise.
29557         * modules/unistdio/ulc-vsprintf-tests
29558         (test_ulc_vsprintf1_LDADD): Likewise.
29559
29560         Fix linking of some uniconv tests on FreeBSD.
29561         * modules/uniconv/u16-conv-from-enc-tests
29562         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29563         * modules/uniconv/u16-conv-to-enc-tests
29564         (test_u16_conv_to_enc_LDADD): Likewise.
29565         * modules/uniconv/u16-strconv-from-enc-tests
29566         (test_u16_strconv_from_enc_LDADD): Likewise.
29567         * modules/uniconv/u16-strconv-to-enc-tests
29568         (test_u16_strconv_to_enc_LDADD): Likewise.
29569         * modules/uniconv/u32-conv-from-enc-tests
29570         (test_u32_conv_from_enc_LDADD): Likewise.
29571         * modules/uniconv/u32-conv-to-enc-tests
29572         (test_u32_conv_to_enc_LDADD): Likewise.
29573         * modules/uniconv/u32-strconv-from-enc-tests
29574         (test_u32_strconv_from_enc_LDADD): Likewise.
29575         * modules/uniconv/u32-strconv-to-enc-tests
29576         (test_u32_strconv_to_enc_LDADD): Likewise.
29577         * modules/uniconv/u8-conv-from-enc-tests
29578         (test_u8_conv_from_enc_LDADD): Likewise.
29579         * modules/uniconv/u8-conv-to-enc-tests
29580         (test_u8_conv_to_enc_LDADD): Likewise.
29581         * modules/uniconv/u8-strconv-from-enc-tests
29582         (test_u8_strconv_from_enc_LDADD): Likewise.
29583         * modules/uniconv/u8-strconv-to-enc-tests
29584         (test_u8_strconv_to_enc_LDADD): Likewise.
29585
29586 2007-10-22  Bruno Haible  <bruno@clisp.org>
29587
29588         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29589         size.
29590
29591 2007-10-22  Eric Blake  <ebb9@byu.net>
29592
29593         Tweak x*printf documentation.
29594         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29595         variable name and comments.
29596         Suggested by Bruno Haible.
29597
29598 2007-10-22  Bruno Haible  <bruno@clisp.org>
29599
29600         * lib/acl.c (copy_acl): Fix file name in comment.
29601
29602 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         Fix Tru64 problem with stdbool.h.
29605         * lib/stdbool.in.h (false, true):
29606         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29607         Don't declare as an enum in this situation; it runs afoul of Tru64.
29608         Problem reported by Steven M. Schweda in
29609         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29610
29611 2007-10-22  Eric Blake  <ebb9@byu.net>
29612
29613         Also wrap vf?printf.
29614         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29615         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29616         (xvprintf, xvfprintf): New functions.
29617
29618 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29619
29620         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29621         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29622
29623         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29624         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29625
29626 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29627
29628         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29629         by Bruno Haible.
29630
29631 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29632
29633         * lib/getloadavg.c
29634         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29635         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29636
29637         * tests/test-i-ring.c: Work for C89.
29638
29639 2007-10-22  Bruno Haible  <bruno@clisp.org>
29640
29641         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29642         -1u, in preprocessor expression, so that we don't test for the bug
29643         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29645
29646 2007-10-22  Eric Blake  <ebb9@byu.net>
29647
29648         * tests/test-yesno.sh: Silence stderr during test.
29649
29650 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29651
29652         * modules/crypto/gc-camellia: New file.
29653
29654         * m4/gc-camellia.m4: New file.
29655
29656         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29657
29658         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29659
29660 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29661
29662         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29663         --help to stdout.  Reported by sms@antinode.org (Steven
29664         M. Schweda).
29665
29666 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29667
29668         * users.txt: Fix link to libksba.
29669
29670 2007-10-21  Ben Pfaff  <blp@gnu.org>
29671
29672         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29673         round.c roundf implementation that depends on floorf and ceilf to
29674         be tested unconditionally.
29675
29676 2007-10-21  Ben Pfaff  <blp@gnu.org>
29677
29678         * m4/check-libm-func.m4: Removed.
29679         * m4/check-math-lib.m4: New file.
29680         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29681         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29682         definition and lack of AC_LIBOBJ([roundf]).
29683         * m4/roundl.m4: Ditto, and similarly for roundl.
29684         * modules/round: Reference new m4 file.
29685         * modules/roundf: Ditto.
29686         * modules/roundl: Ditto.
29687         * tests/test-round2.c (main): Use ROUND instead of round.
29688         Bug report from Bruno Haible.
29689
29690 2007-10-21  Bruno Haible  <bruno@clisp.org>
29691
29692         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29693         context.
29694
29695 2007-10-21  Bruno Haible  <bruno@clisp.org>
29696
29697         * tests/test-wcwidth.c (main): Allow negative result for some control
29698         characters.
29699
29700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29701         Needed on OSF/1 5.1.
29702
29703 2007-10-21  Bruno Haible  <bruno@clisp.org>
29704
29705         * tests/test-floorf1.c: Include isnanf.h.
29706         (main): Use isnanf() instead of isnan().
29707         * tests/test-ceilf1.c: Include isnanf.h.
29708         (main): Use isnanf() instead of isnan().
29709         * tests/test-truncf1.c: Include isnanf.h.
29710         (main): Use isnanf() instead of isnan().
29711         * tests/test-roundf1.c: Include isnanf.h.
29712         (main): Use isnanf() instead of isnan().
29713
29714 2007-10-21  Eric Blake  <ebb9@byu.net>
29715
29716         * users.txt: Update URL for m4.
29717
29718 2007-10-21  Bruno Haible  <bruno@clisp.org>
29719
29720         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29721
29722 2007-10-21  Bruno Haible  <bruno@clisp.org>
29723
29724         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29725         Git's management files if the CVS files are not present.
29726
29727 2007-10-20  Bruno Haible  <bruno@clisp.org>
29728
29729         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29730         gcc-3.4.x.
29731
29732 2007-10-20  Ben Pfaff  <blp@gnu.org>
29733
29734         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29735         implementations.
29736         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29737         * lib/round.c: New file.
29738         * lib/roundf.c: New file.
29739         * lib/roundl.c: New file.
29740         * m4/round.m4: New file.
29741         * m4/roundf.m4: New file.
29742         * m4/roundl.m4: New file.
29743         * m4/check-libm-func-m4: New file.
29744         * modules/math: Replace round, roundf, roundl related @VARS@ in
29745         math.in.h.
29746         * modules/round: New file.
29747         * modules/round-tests: New file.
29748         * modules/roundf: New file.
29749         * modules/roundf-tests: New file.
29750         * modules/roundl: New file.
29751         * modules/roundl-tests: New file.
29752         * tests/test-round1.c: New file.
29753         * tests/test-round2.c: New file.
29754         * tests/test-roundf1.c: New file.
29755         * tests/test-roundf2.c: New file.
29756         * tests/test-roundl.c: New file.
29757         * doc/functions/round.texi: Mention round module.
29758         * doc/functions/roundf.texi: Mention roundf module.
29759         * doc/functions/roundl.texi: Mention roundl module.
29760         * MODULES.html.sh: Mention new modules.
29761         Thanks to Bruno Haible for suggestions.
29762
29763 2007-10-20  Jim Meyering  <meyering@redhat.com>
29764
29765         * lib/xprintf.c: Include <config.h> unconditionally.
29766
29767         Change xprintf's license to GPL.
29768         * modules/xprintf (License): s/LGPL/GPL/, since this module
29769         depends on modules (exit and exitfail) which are GPL.
29770         Suggestion from Bruno Haible.
29771
29772         xprintf fixes.
29773         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29774         Use a clearer diagnostic.
29775         Patch from Bruno Haible.
29776
29777 2007-10-20  Bruno Haible  <bruno@clisp.org>
29778
29779         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29780         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29781         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29782
29783 2007-10-20  Bruno Haible  <bruno@clisp.org>
29784
29785         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29786         precision in the comparison result > x - 1 or similar.
29787         * tests/test-ceilf2.c (correct_result_p): Likewise.
29788         * tests/test-truncf2.c (correct_result_p): Likewise.
29789         * tests/test-trunc2.c (correct_result_p): Likewise.
29790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29791
29792 2007-10-20  Bruno Haible  <bruno@clisp.org>
29793
29794         * modules/ceil: New file.
29795         * m4/ceil.m4: New file.
29796         * doc/functions/ceil.texi: Mention the 'ceil' module.
29797
29798 2007-10-20  Bruno Haible  <bruno@clisp.org>
29799
29800         * modules/floor: New file.
29801         * m4/floor.m4: New file.
29802         * doc/functions/floor.texi: Mention the 'floor' module.
29803
29804 2007-10-20  Bruno Haible  <bruno@clisp.org>
29805
29806         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29807         of %a.
29808         * modules/floorf-tests (Depends-on): Likewise.
29809         * modules/truncf-tests (Depends-on): Likewise.
29810         * modules/trunc-tests (Depends-on): Likewise.
29811         Reported by Ben Pfaff.
29812
29813 2007-10-19  Jim Meyering  <meyering@redhat.com>
29814
29815         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29816         Don't bother testing specific errno values.  Just test ferror.
29817
29818         New module: xprintf
29819         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29820
29821 2007-10-19  Bruno Haible  <bruno@clisp.org>
29822
29823         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29824         syntax.
29825         * modules/javaexec (Makefile.am): Likewise.
29826         * modules/relocatable-prog (Makefile.am): Likewise.
29827         Suggested by Jim Meyering.
29828
29829 2007-10-18  Bruno Haible  <bruno@clisp.org>
29830
29831         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29832         Reported by Jim Meyering.
29833
29834 2007-10-18  Eric Blake  <ebb9@byu.net>
29835
29836         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29837
29838 2007-10-18  Bruno Haible  <bruno@clisp.org>
29839
29840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29841         the format string into writable memory. Needed in Fortify conditions.
29842
29843 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29844             Bruno Haible  <bruno@clisp.org>
29845
29846         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29847         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29848         * modules/trim (Depends-on): Add mbchar.
29849         (configure.ac): Add gl_FUNC_MBRTOWC.
29850         (Makefile.am): Augment lib_SOURCES.
29851
29852 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29853
29854         Modify glob.c to use fstatat and dirfd, to simplify it.
29855         Suggested by Eric Blake.
29856         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29857         Don't include <stdbool.h>; not used.
29858         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29859         (link_exists_p): Simplify implementation, since we can now assume
29860         dirfd and fstatat.
29861         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29862
29863 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29864
29865         * gnulib-tool (func_get_dependencies): Fix sed script to
29866         match only tests.
29867
29868 2007-10-17  Bruno Haible  <bruno@clisp.org>
29869
29870         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29871         allow locale names without encoding suffix.
29872         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29873         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29874
29875 2007-10-16  Bruno Haible  <bruno@clisp.org>
29876
29877         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29878         * lib/getgroups.c (getgroups): Likewise.
29879         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29880
29881 2007-10-16  Bruno Haible  <bruno@clisp.org>
29882
29883         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29884         * modules/malloc-posix (License): Likewise.
29885         * modules/realloc-posix (License): Likewise.
29886         * modules/calloc-posix (License): Likewise.
29887         * modules/intprops (License): Change from GPL to LGPL, with
29888         Paul Eggert's approval.
29889
29890 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29891
29892         Merge glibc changes into lib/glob.c.
29893
29894         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29895         2007-10-15 04:59:03 UTC.  Here are the changes:
29896
29897         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29898
29899         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29900
29901         * lib/glob.c: Add some branch prediction throughout.
29902
29903         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29904
29905         [BZ #5103]
29906         * lib/glob.c (glob): Recognize patterns starting \/.
29907
29908         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29909
29910         [BZ #3996]
29911         * lib/glob.c (attribute_hidden): Define if not defined.
29912         (glob): Unescape dirname, filename or username when needed and not
29913         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29914         is NULL.  Handle unescaped [ in pattern without closing ].
29915         Don't pass GLOB_CHECK down to recursive glob for directories.
29916         (__glob_pattern_type): New function.
29917         (__glob_pattern_p): Implement using __glob_pattern_type.
29918         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29919         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29920         Remove unreachable code.
29921
29922         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29923
29924         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29925         explain why there are no leaks.
29926
29927         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29928
29929         [BZ #3253]
29930         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29931         time, rather allocate increasingly bigger arrays of pointers, if
29932         possible with alloca, if too large with malloc.
29933
29934 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29935
29936         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29937         Problem reported by H.Merijn Brand in
29938         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29939         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29940         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29941
29942 2007-10-15  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29945         with explicit rpl_ prefix.
29946         * lib/fopen.c (fopen): Likewise.
29947         * lib/freopen.c (freopen): Likewise.
29948         * lib/iconv.c (iconv): Likewise.
29949         * lib/iconv_close.c (iconv_close): Likewise.
29950
29951 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29952
29953         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29954
29955 2007-10-15  Bruno Haible  <bruno@clisp.org>
29956
29957         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29958         <stddef.h> instead of <stdlib.h> since we only need NULL.
29959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29960
29961 2007-10-15  Bruno Haible  <bruno@clisp.org>
29962
29963         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29964         Replace paragraph talking about LIBOBJS.
29965         Reported by Colin Watson <cjwatson@debian.org>.
29966
29967 2007-10-15  Bruno Haible  <bruno@clisp.org>
29968
29969         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29970         <stdlib.h> before using NULL.
29971
29972 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29973
29974         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29975         Reported by Albert Chin <china@thewrittenword.com>.
29976
29977 2007-10-14  Bruno Haible  <bruno@clisp.org>
29978
29979         * modules/iconv_open-utf-tests: New file.
29980         * tests/test-iconv-utf.c: New file.
29981
29982         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29983         * modules/iconv_open-utf: New file.
29984         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29985         (iconv, iconv_close): New declarations.
29986         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29987         be defined.
29988         (iconv_open): Add special handling of conversion between UTF-8 and
29989         UTF-{16,32}{BE,LE}.
29990         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29991         * lib/iconv_close.c: New file.
29992         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29993         gl_FUNC_ICONV_OPEN.
29994         (gl_FUNC_ICONV_OPEN): Use it.
29995         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29996         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29997         and REPLACE_ICONV_UTF.
29998         * modules/iconv_open (Depends-on): Add c-strcase.
29999         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30000         ICONV_CONST.
30001         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30002
30003 2007-10-13  Albert Chin  <china@thewrittenword.com>
30004             Bruno Haible  <bruno@clisp.org>
30005
30006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30007         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30008
30009 2007-10-13  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30012         defined, use the ISO C99 inline semantics.
30013         * lib/argp.h (ARGP_EI): Likewise.
30014
30015 2007-10-13  Bruno Haible  <bruno@clisp.org>
30016
30017         Handle 'inline' change in gcc 4.3.0.
30018         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30019         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30020         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30021         argp_fmtstream_point): Disable 'extern' declaration if the function
30022         definition is going to be provided inline.
30023         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30024         semantics, not the ISO C99 inline semantics.
30025         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30026         'extern' declaration if the function definition is going to be provided
30027         inline.
30028         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30029         the GNU C inline semantics, not the ISO C99 inline semantics. With
30030         GCC 4.2, avoid a warning.
30031
30032 2007-10-13  Bruno Haible  <bruno@clisp.org>
30033
30034         * lib/freading.h (freading): Enable the use of __freading for
30035         glibc >= 2.7.
30036         * lib/freading.c (freading): Likewise.
30037
30038 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30039
30040         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30041         "warning: C99 inline functions are not supported; using GNU89".
30042
30043 2007-10-12  Bruno Haible  <bruno@clisp.org>
30044
30045         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30046         of 2.
30047         * tests/test-ceilf2.c: New file.
30048         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30049
30050         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30051         * modules/ceilf-tests: Update.
30052
30053 2007-10-12  Bruno Haible  <bruno@clisp.org>
30054
30055         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30056         of 2.
30057         * tests/test-floorf2.c: New file.
30058         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30059
30060         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30061         * modules/floorf-tests: Update.
30062
30063 2007-10-12  Bruno Haible  <bruno@clisp.org>
30064
30065         * tests/test-trunc2.c: New file.
30066         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30067
30068         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30069         * modules/trunc-tests: Update.
30070
30071 2007-10-12  Bruno Haible  <bruno@clisp.org>
30072
30073         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30074         of 2.
30075         * tests/test-truncf2.c: New file.
30076         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30077
30078         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30079         * modules/truncf-tests: Update.
30080
30081 2007-10-11  Eric Blake  <ebb9@byu.net>
30082
30083         Don't claim strerror is broken on Interix.
30084         * doc/functions/strerror.texi (strerror): Known broken systems are
30085         now Solaris 8, and not Interix.
30086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30087         Interix on cross-compile.
30088         Reported by Martin Koeppe in
30089         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30090
30091 2007-10-11  Bruno Haible  <bruno@clisp.org>
30092
30093         * modules/i-ring-tests: New file.
30094         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30095         instead of assert.
30096
30097 2007-10-11  Bruno Haible  <bruno@clisp.org>
30098
30099         * modules/filenamecat-tests: New file.
30100         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30101         * lib/filenamecat.c: Remove test code.
30102
30103 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30104
30105         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30106
30107         * lib/strerror.c: Include <string.h> always, to test interface,
30108         and to remove the need for the dummy.
30109         Include intprops.h to compute width instead of doing it ourselves
30110         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30111         (strerror): Define it to return NULL if there's no system strerror.
30112         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30113         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30114         ancient pre-strerror Unix systems well any more.  Saying "unknown
30115         system error" is enough.
30116         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30117         simpler strerror.c implementation.
30118         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30119         Simplify the tests to reflect the simpler strerror implementation.
30120         * modules/strerror (Depends-on): Add intprops.
30121
30122 2007-10-09  Eric Blake  <ebb9@byu.net>
30123
30124         Silence test-fpending.
30125         * modules/fpending-tests (Files): Add wrapper script.
30126         * tests/test-fpending.sh: New file.
30127
30128 2007-10-09  Bruno Haible  <bruno@clisp.org>
30129
30130         * MODULES.html.sh (func_module): Don't create a hyperlink for
30131         function names like 'printf_frexp'.
30132         (Misc): Add crc, memxor.
30133         (Characteristics of floating types): New section.
30134         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30135         isnanf-nolibm, signbit, trunc, truncf, truncl.
30136         (Enhancements for ISO C 99 functions): New subsection Input/output.
30137         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30138         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30139         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30140         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30141         (Enhancements for POSIX:2001 functions): Add chdir-long.
30142         (File system functions): Add areadlink, chdir-safer, read-file.
30143         Remove cycle-check.
30144         (File system as inode set): New section.
30145         (Date and time): Add gethrxtime.
30146         (Multithreading): Add openmp.
30147         (Internationalization functions): Add localename.
30148         (Unicode string functions): Add unistr/u*-mbsnlen.
30149         (Support for maintaining and releasing projects): Add git-version-gen.
30150         (Lone files): Remove directories.
30151
30152 2007-10-08  Ben Pfaff  <blp@gnu.org>
30153
30154         * lib/xmalloca.h: Fix typo in comment.
30155
30156 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30157
30158         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30159         when avoiding problems with integer overflow.  Use a portable test
30160         instead.
30161
30162 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30163
30164         * modules/dummy (License): Change to LGPLv2+.
30165         * modules/float (License): Likewise
30166         * modules/realloc (License): Likewise
30167         * modules/stdlib (License): Likewise
30168
30169 2007-10-07  Bruno Haible  <bruno@clisp.org>
30170
30171         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30172         * floor.c (TWO_MANT_DIG): Likewise.
30173         * ceil.c (TWO_MANT_DIG): Likewise.
30174         Reported by Ben Pfaff.
30175
30176 2007-10-07  Bruno Haible  <bruno@clisp.org>
30177
30178         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30179         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30180         * lib/frexp.c (FUNC): Likewise.
30181         * lib/printf-frexp.h (printf_frexp): Likewise.
30182         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30183         * lib/printf-frexp.c (FUNC): Likewise.
30184         Suggested by Jim Meyering.
30185
30186 2007-10-07  Jim Meyering  <meyering@redhat.com>
30187
30188         Make xnanosleep's integer overflow test more robust.
30189         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30190         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30191
30192 2007-10-07  Bruno Haible  <bruno@clisp.org>
30193
30194         * NEWS: Mention the license change.
30195
30196         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30197         abbreviations in the modules files.
30198
30199         Change copyright notice from GPLv2+ to GPLv3+.
30200         * README: Change copyright notice.
30201         * MODULES.html.sh: Likewise.
30202         * build-aux/bootstrap.conf: Likewise.
30203         * build-aux/config.libpath: Likewise.
30204         * build-aux/csharpcomp.sh.in: Likewise.
30205         * build-aux/csharpexec.sh.in: Likewise.
30206         * build-aux/install-reloc: Likewise.
30207         * build-aux/javacomp.sh.in: Likewise.
30208         * build-aux/javaexec.sh.in: Likewise.
30209         * build-aux/ldd.sh.in: Likewise.
30210         * build-aux/reloc-ldflags: Likewise.
30211         * build-aux/relocatable.sh.in: Likewise.
30212         * build-aux/x-to-1.in: Likewise.
30213         * check-module: Likewise.
30214         * config/srclistvars.sh: Likewise.
30215         * gnulib-tool: Likewise.
30216         * lib/acl-internal.h: Likewise.
30217         * lib/acl.c: Likewise.
30218         * lib/acl.h: Likewise.
30219         * lib/acl_entries.c: Likewise.
30220         * lib/areadlink-with-size.c: Likewise.
30221         * lib/areadlink.c: Likewise.
30222         * lib/areadlink.h: Likewise.
30223         * lib/argmatch.c: Likewise.
30224         * lib/argmatch.h: Likewise.
30225         * lib/argp-ba.c: Likewise.
30226         * lib/argp-eexst.c: Likewise.
30227         * lib/argp-fmtstream.c: Likewise.
30228         * lib/argp-fmtstream.h: Likewise.
30229         * lib/argp-fs-xinl.c: Likewise.
30230         * lib/argp-help.c: Likewise.
30231         * lib/argp-namefrob.h: Likewise.
30232         * lib/argp-parse.c: Likewise.
30233         * lib/argp-pin.c: Likewise.
30234         * lib/argp-pv.c: Likewise.
30235         * lib/argp-pvh.c: Likewise.
30236         * lib/argp-xinl.c: Likewise.
30237         * lib/argp.h: Likewise.
30238         * lib/at-func.c: Likewise.
30239         * lib/atanl.c: Likewise.
30240         * lib/backupfile.c: Likewise.
30241         * lib/backupfile.h: Likewise.
30242         * lib/basename.c: Likewise.
30243         * lib/binary-io.h: Likewise.
30244         * lib/byteswap.in.h: Likewise.
30245         * lib/c-stack.c: Likewise.
30246         * lib/c-stack.h: Likewise.
30247         * lib/c-strcasestr.c: Likewise.
30248         * lib/c-strcasestr.h: Likewise.
30249         * lib/c-strstr.c: Likewise.
30250         * lib/c-strstr.h: Likewise.
30251         * lib/c-strtod.c: Likewise.
30252         * lib/calloc.c: Likewise.
30253         * lib/canon-host.c: Likewise.
30254         * lib/canon-host.h: Likewise.
30255         * lib/canonicalize-lgpl.c: Likewise.
30256         * lib/canonicalize.c: Likewise.
30257         * lib/canonicalize.h: Likewise.
30258         * lib/ceil.c: Likewise.
30259         * lib/ceilf.c: Likewise.
30260         * lib/ceill.c: Likewise.
30261         * lib/chdir-long.c: Likewise.
30262         * lib/chdir-long.h: Likewise.
30263         * lib/chdir-safer.c: Likewise.
30264         * lib/chdir-safer.h: Likewise.
30265         * lib/chown.c: Likewise.
30266         * lib/classpath.c: Likewise.
30267         * lib/classpath.h: Likewise.
30268         * lib/clean-temp.c: Likewise.
30269         * lib/clean-temp.h: Likewise.
30270         * lib/cloexec.c: Likewise.
30271         * lib/close-stream.c: Likewise.
30272         * lib/closein.c: Likewise.
30273         * lib/closein.h: Likewise.
30274         * lib/closeout.c: Likewise.
30275         * lib/closeout.h: Likewise.
30276         * lib/concat-filename.c: Likewise.
30277         * lib/copy-file.c: Likewise.
30278         * lib/copy-file.h: Likewise.
30279         * lib/count-one-bits.h: Likewise.
30280         * lib/crc.c: Likewise.
30281         * lib/crc.h: Likewise.
30282         * lib/creat-safer.c: Likewise.
30283         * lib/csharpcomp.c: Likewise.
30284         * lib/csharpcomp.h: Likewise.
30285         * lib/csharpexec.c: Likewise.
30286         * lib/csharpexec.h: Likewise.
30287         * lib/cycle-check.c: Likewise.
30288         * lib/cycle-check.h: Likewise.
30289         * lib/diacrit.c: Likewise.
30290         * lib/diacrit.h: Likewise.
30291         * lib/diffseq.h: Likewise.
30292         * lib/dirchownmod.c: Likewise.
30293         * lib/dirent.in.h: Likewise.
30294         * lib/dirfd.c: Likewise.
30295         * lib/dirfd.h: Likewise.
30296         * lib/dirname.c: Likewise.
30297         * lib/dirname.h: Likewise.
30298         * lib/dummy.c: Likewise.
30299         * lib/dup-safer.c: Likewise.
30300         * lib/dup2.c: Likewise.
30301         * lib/eealloc.h: Likewise.
30302         * lib/error.c: Likewise.
30303         * lib/error.h: Likewise.
30304         * lib/euidaccess.c: Likewise.
30305         * lib/exclude.c: Likewise.
30306         * lib/exclude.h: Likewise.
30307         * lib/execute.c: Likewise.
30308         * lib/execute.h: Likewise.
30309         * lib/exitfail.c: Likewise.
30310         * lib/exitfail.h: Likewise.
30311         * lib/expl.c: Likewise.
30312         * lib/fatal-signal.c: Likewise.
30313         * lib/fatal-signal.h: Likewise.
30314         * lib/fbufmode.c: Likewise.
30315         * lib/fbufmode.h: Likewise.
30316         * lib/fchdir.c: Likewise.
30317         * lib/fchmodat.c: Likewise.
30318         * lib/fchownat.c: Likewise.
30319         * lib/fcntl--.h: Likewise.
30320         * lib/fcntl-safer.h: Likewise.
30321         * lib/fcntl.in.h: Likewise.
30322         * lib/fd-safer.c: Likewise.
30323         * lib/fflush.c: Likewise.
30324         * lib/file-has-acl.c: Likewise.
30325         * lib/file-set.c: Likewise.
30326         * lib/file-type.c: Likewise.
30327         * lib/file-type.h: Likewise.
30328         * lib/fileblocks.c: Likewise.
30329         * lib/filemode.c: Likewise.
30330         * lib/filemode.h: Likewise.
30331         * lib/filename.h: Likewise.
30332         * lib/filenamecat.c: Likewise.
30333         * lib/filenamecat.h: Likewise.
30334         * lib/findprog.c: Likewise.
30335         * lib/findprog.h: Likewise.
30336         * lib/float.in.h: Likewise.
30337         * lib/floor.c: Likewise.
30338         * lib/floorf.c: Likewise.
30339         * lib/floorl.c: Likewise.
30340         * lib/fopen-safer.c: Likewise.
30341         * lib/fopen.c: Likewise.
30342         * lib/fpending.c: Likewise.
30343         * lib/fpending.h: Likewise.
30344         * lib/fprintf.c: Likewise.
30345         * lib/fprintftime.h: Likewise.
30346         * lib/fpucw.h: Likewise.
30347         * lib/fpurge.c: Likewise.
30348         * lib/fpurge.h: Likewise.
30349         * lib/freadable.c: Likewise.
30350         * lib/freadable.h: Likewise.
30351         * lib/freadahead.c: Likewise.
30352         * lib/freadahead.h: Likewise.
30353         * lib/freading.c: Likewise.
30354         * lib/freading.h: Likewise.
30355         * lib/free.c: Likewise.
30356         * lib/freopen.c: Likewise.
30357         * lib/frexp.c: Likewise.
30358         * lib/frexpl.c: Likewise.
30359         * lib/fseek.c: Likewise.
30360         * lib/fseterr.c: Likewise.
30361         * lib/fseterr.h: Likewise.
30362         * lib/fstatat.c: Likewise.
30363         * lib/fstrcmp.c: Likewise.
30364         * lib/fstrcmp.h: Likewise.
30365         * lib/fsusage.c: Likewise.
30366         * lib/fsusage.h: Likewise.
30367         * lib/ftell.c: Likewise.
30368         * lib/ftello.c: Likewise.
30369         * lib/fts-cycle.c: Likewise.
30370         * lib/fts.c: Likewise.
30371         * lib/fts_.h: Likewise.
30372         * lib/full-read.c: Likewise.
30373         * lib/full-read.h: Likewise.
30374         * lib/full-write.c: Likewise.
30375         * lib/full-write.h: Likewise.
30376         * lib/fwritable.c: Likewise.
30377         * lib/fwritable.h: Likewise.
30378         * lib/fwriteerror.c: Likewise.
30379         * lib/fwriteerror.h: Likewise.
30380         * lib/fwriting.c: Likewise.
30381         * lib/fwriting.h: Likewise.
30382         * lib/gcd.c: Likewise.
30383         * lib/gcd.h: Likewise.
30384         * lib/getcwd.c: Likewise.
30385         * lib/getdate.h: Likewise.
30386         * lib/getdate.y: Likewise.
30387         * lib/getdomainname.c: Likewise.
30388         * lib/getdomainname.h: Likewise.
30389         * lib/getgroups.c: Likewise.
30390         * lib/gethostname.c: Likewise.
30391         * lib/gethrxtime.c: Likewise.
30392         * lib/gethrxtime.h: Likewise.
30393         * lib/getloadavg.c: Likewise.
30394         * lib/getndelim2.c: Likewise.
30395         * lib/getndelim2.h: Likewise.
30396         * lib/getnline.c: Likewise.
30397         * lib/getnline.h: Likewise.
30398         * lib/getopt.c: Likewise.
30399         * lib/getopt.in.h: Likewise.
30400         * lib/getopt1.c: Likewise.
30401         * lib/getopt_int.h: Likewise.
30402         * lib/getpagesize.h: Likewise.
30403         * lib/getsubopt.c: Likewise.
30404         * lib/gettime.c: Likewise.
30405         * lib/getugroups.c: Likewise.
30406         * lib/getugroups.h: Likewise.
30407         * lib/getusershell.c: Likewise.
30408         * lib/gl_anyavltree_list1.h: Likewise.
30409         * lib/gl_anyavltree_list2.h: Likewise.
30410         * lib/gl_anyhash_list1.h: Likewise.
30411         * lib/gl_anyhash_list2.h: Likewise.
30412         * lib/gl_anylinked_list1.h: Likewise.
30413         * lib/gl_anylinked_list2.h: Likewise.
30414         * lib/gl_anyrbtree_list1.h: Likewise.
30415         * lib/gl_anyrbtree_list2.h: Likewise.
30416         * lib/gl_anytree_list1.h: Likewise.
30417         * lib/gl_anytree_list2.h: Likewise.
30418         * lib/gl_anytree_oset.h: Likewise.
30419         * lib/gl_anytreehash_list1.h: Likewise.
30420         * lib/gl_anytreehash_list2.h: Likewise.
30421         * lib/gl_array_list.c: Likewise.
30422         * lib/gl_array_list.h: Likewise.
30423         * lib/gl_array_oset.c: Likewise.
30424         * lib/gl_array_oset.h: Likewise.
30425         * lib/gl_avltree_list.c: Likewise.
30426         * lib/gl_avltree_list.h: Likewise.
30427         * lib/gl_avltree_oset.c: Likewise.
30428         * lib/gl_avltree_oset.h: Likewise.
30429         * lib/gl_avltreehash_list.c: Likewise.
30430         * lib/gl_avltreehash_list.h: Likewise.
30431         * lib/gl_carray_list.c: Likewise.
30432         * lib/gl_carray_list.h: Likewise.
30433         * lib/gl_linked_list.c: Likewise.
30434         * lib/gl_linked_list.h: Likewise.
30435         * lib/gl_linkedhash_list.c: Likewise.
30436         * lib/gl_linkedhash_list.h: Likewise.
30437         * lib/gl_list.c: Likewise.
30438         * lib/gl_list.h: Likewise.
30439         * lib/gl_oset.c: Likewise.
30440         * lib/gl_oset.h: Likewise.
30441         * lib/gl_rbtree_list.c: Likewise.
30442         * lib/gl_rbtree_list.h: Likewise.
30443         * lib/gl_rbtree_oset.c: Likewise.
30444         * lib/gl_rbtree_oset.h: Likewise.
30445         * lib/gl_rbtreehash_list.c: Likewise.
30446         * lib/gl_rbtreehash_list.h: Likewise.
30447         * lib/gl_sublist.c: Likewise.
30448         * lib/gl_sublist.h: Likewise.
30449         * lib/group-member.c: Likewise.
30450         * lib/group-member.h: Likewise.
30451         * lib/hard-locale.c: Likewise.
30452         * lib/hard-locale.h: Likewise.
30453         * lib/hash-pjw.c: Likewise.
30454         * lib/hash-pjw.h: Likewise.
30455         * lib/hash-triple.c: Likewise.
30456         * lib/hash.c: Likewise.
30457         * lib/hash.h: Likewise.
30458         * lib/human.c: Likewise.
30459         * lib/human.h: Likewise.
30460         * lib/i-ring.c: Likewise.
30461         * lib/i-ring.h: Likewise.
30462         * lib/idcache.c: Likewise.
30463         * lib/imaxabs.c: Likewise.
30464         * lib/imaxdiv.c: Likewise.
30465         * lib/inet_pton.c: Likewise.
30466         * lib/inet_pton.h: Likewise.
30467         * lib/intprops.h: Likewise.
30468         * lib/inttostr.c: Likewise.
30469         * lib/inttostr.h: Likewise.
30470         * lib/inttypes.in.h: Likewise.
30471         * lib/isapipe.c: Likewise.
30472         * lib/isdir.c: Likewise.
30473         * lib/isnan.c: Likewise.
30474         * lib/isnan.h: Likewise.
30475         * lib/isnanf.c: Likewise.
30476         * lib/isnanf.h: Likewise.
30477         * lib/isnanl-nolibm.h: Likewise.
30478         * lib/isnanl.c: Likewise.
30479         * lib/isnanl.h: Likewise.
30480         * lib/javacomp.c: Likewise.
30481         * lib/javacomp.h: Likewise.
30482         * lib/javaexec.c: Likewise.
30483         * lib/javaexec.h: Likewise.
30484         * lib/javaversion.c: Likewise.
30485         * lib/javaversion.h: Likewise.
30486         * lib/javaversion.java: Likewise.
30487         * lib/lbrkprop.h: Likewise.
30488         * lib/lchmod.h: Likewise.
30489         * lib/lchown.c: Likewise.
30490         * lib/ldexpl.c: Likewise.
30491         * lib/linebreak.c: Likewise.
30492         * lib/linebreak.h: Likewise.
30493         * lib/linebuffer.c: Likewise.
30494         * lib/linebuffer.h: Likewise.
30495         * lib/locale.in.h: Likewise.
30496         * lib/logl.c: Likewise.
30497         * lib/long-options.c: Likewise.
30498         * lib/long-options.h: Likewise.
30499         * lib/lstat.c: Likewise.
30500         * lib/lstat.h: Likewise.
30501         * lib/math.in.h: Likewise.
30502         * lib/mbchar.c: Likewise.
30503         * lib/mbchar.h: Likewise.
30504         * lib/mbfile.h: Likewise.
30505         * lib/mbiter.h: Likewise.
30506         * lib/mbscasecmp.c: Likewise.
30507         * lib/mbscasestr.c: Likewise.
30508         * lib/mbschr.c: Likewise.
30509         * lib/mbscspn.c: Likewise.
30510         * lib/mbslen.c: Likewise.
30511         * lib/mbsncasecmp.c: Likewise.
30512         * lib/mbsnlen.c: Likewise.
30513         * lib/mbspbrk.c: Likewise.
30514         * lib/mbspcasecmp.c: Likewise.
30515         * lib/mbsrchr.c: Likewise.
30516         * lib/mbssep.c: Likewise.
30517         * lib/mbsspn.c: Likewise.
30518         * lib/mbsstr.c: Likewise.
30519         * lib/mbstok_r.c: Likewise.
30520         * lib/mbswidth.c: Likewise.
30521         * lib/mbswidth.h: Likewise.
30522         * lib/mbuiter.h: Likewise.
30523         * lib/memcasecmp.c: Likewise.
30524         * lib/memcasecmp.h: Likewise.
30525         * lib/memchr.c: Likewise.
30526         * lib/memcmp.c: Likewise.
30527         * lib/memcoll.c: Likewise.
30528         * lib/memcoll.h: Likewise.
30529         * lib/memcpy.c: Likewise.
30530         * lib/memrchr.c: Likewise.
30531         * lib/mkancesdirs.c: Likewise.
30532         * lib/mkdir-p.c: Likewise.
30533         * lib/mkdir-p.h: Likewise.
30534         * lib/mkdir.c: Likewise.
30535         * lib/mkdirat.c: Likewise.
30536         * lib/mkdtemp.c: Likewise.
30537         * lib/mkstemp-safer.c: Likewise.
30538         * lib/mkstemp.c: Likewise.
30539         * lib/modechange.c: Likewise.
30540         * lib/modechange.h: Likewise.
30541         * lib/mountlist.c: Likewise.
30542         * lib/mountlist.h: Likewise.
30543         * lib/mpsort.c: Likewise.
30544         * lib/nanosleep.c: Likewise.
30545         * lib/obstack.c: Likewise.
30546         * lib/obstack.h: Likewise.
30547         * lib/open-safer.c: Likewise.
30548         * lib/open.c: Likewise.
30549         * lib/openat-die.c: Likewise.
30550         * lib/openat-priv.h: Likewise.
30551         * lib/openat-proc.c: Likewise.
30552         * lib/openat.c: Likewise.
30553         * lib/openat.h: Likewise.
30554         * lib/pagealign_alloc.c: Likewise.
30555         * lib/pagealign_alloc.h: Likewise.
30556         * lib/physmem.c: Likewise.
30557         * lib/physmem.h: Likewise.
30558         * lib/pipe-safer.c: Likewise.
30559         * lib/pipe.c: Likewise.
30560         * lib/pipe.h: Likewise.
30561         * lib/posixtm.c: Likewise.
30562         * lib/posixtm.h: Likewise.
30563         * lib/posixver.c: Likewise.
30564         * lib/printf-frexp.c: Likewise.
30565         * lib/printf-frexp.h: Likewise.
30566         * lib/printf-frexpl.c: Likewise.
30567         * lib/printf-frexpl.h: Likewise.
30568         * lib/printf.c: Likewise.
30569         * lib/progname.c: Likewise.
30570         * lib/progname.h: Likewise.
30571         * lib/progreloc.c: Likewise.
30572         * lib/putenv.c: Likewise.
30573         * lib/quote.c: Likewise.
30574         * lib/quote.h: Likewise.
30575         * lib/quotearg.c: Likewise.
30576         * lib/quotearg.h: Likewise.
30577         * lib/raise.c: Likewise.
30578         * lib/readline.c: Likewise.
30579         * lib/readline.h: Likewise.
30580         * lib/readlink.c: Likewise.
30581         * lib/readtokens.c: Likewise.
30582         * lib/readtokens.h: Likewise.
30583         * lib/readtokens0.c: Likewise.
30584         * lib/readtokens0.h: Likewise.
30585         * lib/readutmp.c: Likewise.
30586         * lib/readutmp.h: Likewise.
30587         * lib/realloc.c: Likewise.
30588         * lib/relocwrapper.c: Likewise.
30589         * lib/rename-dest-slash.c: Likewise.
30590         * lib/rename.c: Likewise.
30591         * lib/rmdir.c: Likewise.
30592         * lib/rpmatch.c: Likewise.
30593         * lib/safe-read.c: Likewise.
30594         * lib/safe-read.h: Likewise.
30595         * lib/safe-write.c: Likewise.
30596         * lib/safe-write.h: Likewise.
30597         * lib/same-inode.h: Likewise.
30598         * lib/same.c: Likewise.
30599         * lib/same.h: Likewise.
30600         * lib/save-cwd.c: Likewise.
30601         * lib/save-cwd.h: Likewise.
30602         * lib/savedir.c: Likewise.
30603         * lib/savedir.h: Likewise.
30604         * lib/savewd.c: Likewise.
30605         * lib/savewd.h: Likewise.
30606         * lib/search.in.h: Likewise.
30607         * lib/setenv.c: Likewise.
30608         * lib/setenv.h: Likewise.
30609         * lib/settime.c: Likewise.
30610         * lib/sh-quote.c: Likewise.
30611         * lib/sh-quote.h: Likewise.
30612         * lib/sig2str.c: Likewise.
30613         * lib/sig2str.h: Likewise.
30614         * lib/signal.in.h: Likewise.
30615         * lib/signbitd.c: Likewise.
30616         * lib/signbitf.c: Likewise.
30617         * lib/signbitl.c: Likewise.
30618         * lib/sigprocmask.c: Likewise.
30619         * lib/sincosl.c: Likewise.
30620         * lib/sleep.c: Likewise.
30621         * lib/sprintf.c: Likewise.
30622         * lib/sqrtl.c: Likewise.
30623         * lib/stat-time.h: Likewise.
30624         * lib/stdio--.h: Likewise.
30625         * lib/stdio-safer.h: Likewise.
30626         * lib/stdlib--.h: Likewise.
30627         * lib/stdlib-safer.h: Likewise.
30628         * lib/stdlib.in.h: Likewise.
30629         * lib/stpcpy.c: Likewise.
30630         * lib/stpncpy.c: Likewise.
30631         * lib/strchrnul.c: Likewise.
30632         * lib/strcspn.c: Likewise.
30633         * lib/strerror.c: Likewise.
30634         * lib/strftime.c: Likewise.
30635         * lib/strftime.h: Likewise.
30636         * lib/striconveh.c: Likewise.
30637         * lib/striconveh.h: Likewise.
30638         * lib/striconveha.c: Likewise.
30639         * lib/striconveha.h: Likewise.
30640         * lib/stripslash.c: Likewise.
30641         * lib/strnlen1.c: Likewise.
30642         * lib/strnlen1.h: Likewise.
30643         * lib/strtod.c: Likewise.
30644         * lib/strtoimax.c: Likewise.
30645         * lib/strtok_r.c: Likewise.
30646         * lib/strtol.c: Likewise.
30647         * lib/strtoll.c: Likewise.
30648         * lib/strtoul.c: Likewise.
30649         * lib/strtoull.c: Likewise.
30650         * lib/sysexits.in.h: Likewise.
30651         * lib/tempname.c: Likewise.
30652         * lib/tempname.h: Likewise.
30653         * lib/timespec.h: Likewise.
30654         * lib/tls.c: Likewise.
30655         * lib/tls.h: Likewise.
30656         * lib/tmpdir.c: Likewise.
30657         * lib/tmpdir.h: Likewise.
30658         * lib/tmpfile-safer.c: Likewise.
30659         * lib/tmpfile.c: Likewise.
30660         * lib/trigl.c: Likewise.
30661         * lib/trigl.h: Likewise.
30662         * lib/trim.c: Likewise.
30663         * lib/trim.h: Likewise.
30664         * lib/trunc.c: Likewise.
30665         * lib/truncf.c: Likewise.
30666         * lib/truncl.c: Likewise.
30667         * lib/tsearch.c: Likewise.
30668         * lib/unicodeio.c: Likewise.
30669         * lib/unicodeio.h: Likewise.
30670         * lib/unistd--.h: Likewise.
30671         * lib/unistd-safer.h: Likewise.
30672         * lib/unistdio/ulc-fprintf.c: Likewise.
30673         * lib/unistdio/ulc-vfprintf.c: Likewise.
30674         * lib/unlinkdir.c: Likewise.
30675         * lib/unlinkdir.h: Likewise.
30676         * lib/unlocked-io.h: Likewise.
30677         * lib/unsetenv.c: Likewise.
30678         * lib/userspec.c: Likewise.
30679         * lib/utime.c: Likewise.
30680         * lib/utimecmp.c: Likewise.
30681         * lib/utimecmp.h: Likewise.
30682         * lib/utimens.c: Likewise.
30683         * lib/verify.h: Likewise.
30684         * lib/verror.c: Likewise.
30685         * lib/verror.h: Likewise.
30686         * lib/version-etc-fsf.c: Likewise.
30687         * lib/version-etc.c: Likewise.
30688         * lib/version-etc.h: Likewise.
30689         * lib/vfprintf.c: Likewise.
30690         * lib/vprintf.c: Likewise.
30691         * lib/vsprintf.c: Likewise.
30692         * lib/w32spawn.h: Likewise.
30693         * lib/wait-process.c: Likewise.
30694         * lib/wait-process.h: Likewise.
30695         * lib/wcwidth.c: Likewise.
30696         * lib/write-any-file.c: Likewise.
30697         * lib/xalloc-die.c: Likewise.
30698         * lib/xalloc.h: Likewise.
30699         * lib/xasprintf.c: Likewise.
30700         * lib/xgetcwd.c: Likewise.
30701         * lib/xgetcwd.h: Likewise.
30702         * lib/xgetdomainname.c: Likewise.
30703         * lib/xgetdomainname.h: Likewise.
30704         * lib/xgethostname.c: Likewise.
30705         * lib/xmalloc.c: Likewise.
30706         * lib/xmalloca.c: Likewise.
30707         * lib/xmalloca.h: Likewise.
30708         * lib/xmemcoll.c: Likewise.
30709         * lib/xnanosleep.c: Likewise.
30710         * lib/xreadlink.c: Likewise.
30711         * lib/xreadlink.h: Likewise.
30712         * lib/xsetenv.c: Likewise.
30713         * lib/xsetenv.h: Likewise.
30714         * lib/xstriconv.c: Likewise.
30715         * lib/xstriconv.h: Likewise.
30716         * lib/xstrndup.c: Likewise.
30717         * lib/xstrndup.h: Likewise.
30718         * lib/xstrtod.c: Likewise.
30719         * lib/xstrtod.h: Likewise.
30720         * lib/xstrtol-error.c: Likewise.
30721         * lib/xstrtol.c: Likewise.
30722         * lib/xstrtol.h: Likewise.
30723         * lib/xtime.h: Likewise.
30724         * lib/xvasprintf.c: Likewise.
30725         * lib/xvasprintf.h: Likewise.
30726         * lib/yesno.c: Likewise.
30727         * lib/yesno.h: Likewise.
30728         * posix-modules: Likewise.
30729         * tests/test-alloca-opt.c: Likewise.
30730         * tests/test-arcfour.c: Likewise.
30731         * tests/test-arctwo.c: Likewise.
30732         * tests/test-argmatch.c: Likewise.
30733         * tests/test-argp-2.sh: Likewise.
30734         * tests/test-argp.c: Likewise.
30735         * tests/test-arpa_inet.c: Likewise.
30736         * tests/test-array_list.c: Likewise.
30737         * tests/test-array_oset.c: Likewise.
30738         * tests/test-atexit.c: Likewise.
30739         * tests/test-avltree_list.c: Likewise.
30740         * tests/test-avltree_oset.c: Likewise.
30741         * tests/test-avltreehash_list.c: Likewise.
30742         * tests/test-base64.c: Likewise.
30743         * tests/test-binary-io.c: Likewise.
30744         * tests/test-byteswap.c: Likewise.
30745         * tests/test-c-ctype.c: Likewise.
30746         * tests/test-c-strcasecmp.c: Likewise.
30747         * tests/test-c-strcasestr.c: Likewise.
30748         * tests/test-c-strncasecmp.c: Likewise.
30749         * tests/test-c-strstr.c: Likewise.
30750         * tests/test-canonicalize-lgpl.c: Likewise.
30751         * tests/test-canonicalize.c: Likewise.
30752         * tests/test-carray_list.c: Likewise.
30753         * tests/test-ceilf.c: Likewise.
30754         * tests/test-ceill.c: Likewise.
30755         * tests/test-count-one-bits.c: Likewise.
30756         * tests/test-crc.c: Likewise.
30757         * tests/test-dirname.c: Likewise.
30758         * tests/test-fbufmode.c: Likewise.
30759         * tests/test-fcntl.c: Likewise.
30760         * tests/test-fflush.c: Likewise.
30761         * tests/test-floorf.c: Likewise.
30762         * tests/test-floorl.c: Likewise.
30763         * tests/test-fopen.c: Likewise.
30764         * tests/test-fprintf-posix.c: Likewise.
30765         * tests/test-fprintf-posix.h: Likewise.
30766         * tests/test-fpurge.c: Likewise.
30767         * tests/test-freadable.c: Likewise.
30768         * tests/test-freadahead.c: Likewise.
30769         * tests/test-freading.c: Likewise.
30770         * tests/test-freopen.c: Likewise.
30771         * tests/test-frexp.c: Likewise.
30772         * tests/test-frexpl.c: Likewise.
30773         * tests/test-fseek.c: Likewise.
30774         * tests/test-fseeko.c: Likewise.
30775         * tests/test-fseterr.c: Likewise.
30776         * tests/test-fstrcmp.c: Likewise.
30777         * tests/test-ftell.c: Likewise.
30778         * tests/test-ftello.c: Likewise.
30779         * tests/test-fwritable.c: Likewise.
30780         * tests/test-fwriting.c: Likewise.
30781         * tests/test-getaddrinfo.c: Likewise.
30782         * tests/test-getpass.c: Likewise.
30783         * tests/test-gettimeofday.c: Likewise.
30784         * tests/test-hmac-md5.c: Likewise.
30785         * tests/test-hmac-sha1.c: Likewise.
30786         * tests/test-iconv.c: Likewise.
30787         * tests/test-iconvme.c: Likewise.
30788         * tests/test-inttypes.c: Likewise.
30789         * tests/test-isnan.c: Likewise.
30790         * tests/test-isnanf.c: Likewise.
30791         * tests/test-isnanl-nolibm.c: Likewise.
30792         * tests/test-isnanl.c: Likewise.
30793         * tests/test-isnanl.h: Likewise.
30794         * tests/test-ldexpl.c: Likewise.
30795         * tests/test-linked_list.c: Likewise.
30796         * tests/test-linkedhash_list.c: Likewise.
30797         * tests/test-locale.c: Likewise.
30798         * tests/test-localename.c: Likewise.
30799         * tests/test-lock.c: Likewise.
30800         * tests/test-lseek.c: Likewise.
30801         * tests/test-malloca.c: Likewise.
30802         * tests/test-math.c: Likewise.
30803         * tests/test-mbscasecmp.c: Likewise.
30804         * tests/test-mbscasestr1.c: Likewise.
30805         * tests/test-mbscasestr2.c: Likewise.
30806         * tests/test-mbscasestr3.c: Likewise.
30807         * tests/test-mbscasestr4.c: Likewise.
30808         * tests/test-mbschr.c: Likewise.
30809         * tests/test-mbscspn.c: Likewise.
30810         * tests/test-mbsncasecmp.c: Likewise.
30811         * tests/test-mbspbrk.c: Likewise.
30812         * tests/test-mbspcasecmp.c: Likewise.
30813         * tests/test-mbsrchr.c: Likewise.
30814         * tests/test-mbsspn.c: Likewise.
30815         * tests/test-mbsstr1.c: Likewise.
30816         * tests/test-mbsstr2.c: Likewise.
30817         * tests/test-mbsstr3.c: Likewise.
30818         * tests/test-md5.c: Likewise.
30819         * tests/test-memmem.c: Likewise.
30820         * tests/test-netinet_in.c: Likewise.
30821         * tests/test-open.c: Likewise.
30822         * tests/test-printf-frexp.c: Likewise.
30823         * tests/test-printf-frexpl.c: Likewise.
30824         * tests/test-printf-posix.c: Likewise.
30825         * tests/test-printf-posix.h: Likewise.
30826         * tests/test-rbtree_list.c: Likewise.
30827         * tests/test-rbtree_oset.c: Likewise.
30828         * tests/test-rbtreehash_list.c: Likewise.
30829         * tests/test-read-file.c: Likewise.
30830         * tests/test-rijndael.c: Likewise.
30831         * tests/test-search.c: Likewise.
30832         * tests/test-signbit.c: Likewise.
30833         * tests/test-sleep.c: Likewise.
30834         * tests/test-snprintf-posix.c: Likewise.
30835         * tests/test-snprintf-posix.h: Likewise.
30836         * tests/test-snprintf.c: Likewise.
30837         * tests/test-sprintf-posix.c: Likewise.
30838         * tests/test-sprintf-posix.h: Likewise.
30839         * tests/test-stat-time.c: Likewise.
30840         * tests/test-stdbool.c: Likewise.
30841         * tests/test-stdint.c: Likewise.
30842         * tests/test-stdio.c: Likewise.
30843         * tests/test-stdlib.c: Likewise.
30844         * tests/test-stpncpy.c: Likewise.
30845         * tests/test-strcasestr.c: Likewise.
30846         * tests/test-striconv.c: Likewise.
30847         * tests/test-striconveh.c: Likewise.
30848         * tests/test-striconveha.c: Likewise.
30849         * tests/test-string.c: Likewise.
30850         * tests/test-sys_select.c: Likewise.
30851         * tests/test-sys_socket.c: Likewise.
30852         * tests/test-sys_stat.c: Likewise.
30853         * tests/test-sys_time.c: Likewise.
30854         * tests/test-sysexits.c: Likewise.
30855         * tests/test-time.c: Likewise.
30856         * tests/test-tls.c: Likewise.
30857         * tests/test-trunc.c: Likewise.
30858         * tests/test-truncf.c: Likewise.
30859         * tests/test-truncl.c: Likewise.
30860         * tests/test-unistd.c: Likewise.
30861         * tests/test-vasnprintf-posix.c: Likewise.
30862         * tests/test-vasnprintf-posix2.c: Likewise.
30863         * tests/test-vasnprintf.c: Likewise.
30864         * tests/test-vasprintf-posix.c: Likewise.
30865         * tests/test-vasprintf.c: Likewise.
30866         * tests/test-verify.c: Likewise.
30867         * tests/test-vfprintf-posix.c: Likewise.
30868         * tests/test-vprintf-posix.c: Likewise.
30869         * tests/test-vsnprintf-posix.c: Likewise.
30870         * tests/test-vsnprintf.c: Likewise.
30871         * tests/test-vsprintf-posix.c: Likewise.
30872         * tests/test-wchar.c: Likewise.
30873         * tests/test-wctype.c: Likewise.
30874         * tests/test-wcwidth.c: Likewise.
30875         * tests/test-xstrtol.c: Likewise.
30876         * tests/test-xvasprintf.c: Likewise.
30877         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30878         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30879         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30880         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30881         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30882         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30883         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30884         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30885         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30886         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30887         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30888         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30889         * tests/uniname/test-uninames.c: Likewise.
30890         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30891         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30892         * tests/unistdio/test-u16-printf1.h: Likewise.
30893         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30894         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30895         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30896         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30897         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30898         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30899         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30900         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30901         * tests/unistdio/test-u32-printf1.h: Likewise.
30902         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30903         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30904         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30905         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30906         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30907         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30908         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30909         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30910         * tests/unistdio/test-u8-printf1.h: Likewise.
30911         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30912         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30913         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30914         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30915         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30916         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30917         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30918         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30919         * tests/unistdio/test-ulc-printf1.h: Likewise.
30920         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30921         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30922         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30923         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30924         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30925         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30926         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30927         * tests/uniwidth/test-u16-width.c: Likewise.
30928         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30929         * tests/uniwidth/test-u32-width.c: Likewise.
30930         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30931         * tests/uniwidth/test-u8-width.c: Likewise.
30932         * tests/uniwidth/test-uc_width.c: Likewise.
30933         * config/srclist-update: Likewise.
30934         (fixlicense): Update to GPLv3+.
30935
30936         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30937         * tests/test-tsearch.c: Change copyright notice.
30938
30939         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30940         * lib/c-strcaseeq.h: Change copyright notice.
30941         * lib/streq.h: Likewise.
30942         * lib/uniconv.h: Likewise.
30943         * lib/uniconv/u-conv-from-enc.h: Likewise.
30944         * lib/uniconv/u-conv-to-enc.h: Likewise.
30945         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30946         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30947         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30948         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30949         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30950         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30951         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30952         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30953         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30954         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30955         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30956         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30957         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30958         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30959         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30960         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30961         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30962         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30963         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30964         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30965         * lib/uniname.h: Likewise.
30966         * lib/uniname/uniname.c: Likewise.
30967         * lib/unistdio.h: Likewise.
30968         * lib/unistdio/u-asnprintf.h: Likewise.
30969         * lib/unistdio/u-asprintf.h: Likewise.
30970         * lib/unistdio/u-printf-args.c: Likewise.
30971         * lib/unistdio/u-printf-args.h: Likewise.
30972         * lib/unistdio/u-printf-parse.h: Likewise.
30973         * lib/unistdio/u-snprintf.h: Likewise.
30974         * lib/unistdio/u-sprintf.h: Likewise.
30975         * lib/unistdio/u-vasprintf.h: Likewise.
30976         * lib/unistdio/u-vsnprintf.h: Likewise.
30977         * lib/unistdio/u-vsprintf.h: Likewise.
30978         * lib/unistdio/u16-asnprintf.c: Likewise.
30979         * lib/unistdio/u16-asprintf.c: Likewise.
30980         * lib/unistdio/u16-printf-parse.c: Likewise.
30981         * lib/unistdio/u16-snprintf.c: Likewise.
30982         * lib/unistdio/u16-sprintf.c: Likewise.
30983         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30984         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30985         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30986         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30987         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30988         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30989         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30990         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30991         * lib/unistdio/u16-vasnprintf.c: Likewise.
30992         * lib/unistdio/u16-vasprintf.c: Likewise.
30993         * lib/unistdio/u16-vsnprintf.c: Likewise.
30994         * lib/unistdio/u16-vsprintf.c: Likewise.
30995         * lib/unistdio/u32-asnprintf.c: Likewise.
30996         * lib/unistdio/u32-asprintf.c: Likewise.
30997         * lib/unistdio/u32-printf-parse.c: Likewise.
30998         * lib/unistdio/u32-snprintf.c: Likewise.
30999         * lib/unistdio/u32-sprintf.c: Likewise.
31000         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31001         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31002         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31003         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31004         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31005         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31006         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31007         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31008         * lib/unistdio/u32-vasnprintf.c: Likewise.
31009         * lib/unistdio/u32-vasprintf.c: Likewise.
31010         * lib/unistdio/u32-vsnprintf.c: Likewise.
31011         * lib/unistdio/u32-vsprintf.c: Likewise.
31012         * lib/unistdio/u8-asnprintf.c: Likewise.
31013         * lib/unistdio/u8-asprintf.c: Likewise.
31014         * lib/unistdio/u8-printf-parse.c: Likewise.
31015         * lib/unistdio/u8-snprintf.c: Likewise.
31016         * lib/unistdio/u8-sprintf.c: Likewise.
31017         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31018         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31019         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31020         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31021         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31022         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31023         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31024         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31025         * lib/unistdio/u8-vasnprintf.c: Likewise.
31026         * lib/unistdio/u8-vasprintf.c: Likewise.
31027         * lib/unistdio/u8-vsnprintf.c: Likewise.
31028         * lib/unistdio/u8-vsprintf.c: Likewise.
31029         * lib/unistdio/ulc-asnprintf.c: Likewise.
31030         * lib/unistdio/ulc-asprintf.c: Likewise.
31031         * lib/unistdio/ulc-printf-parse.c: Likewise.
31032         * lib/unistdio/ulc-snprintf.c: Likewise.
31033         * lib/unistdio/ulc-sprintf.c: Likewise.
31034         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31035         * lib/unistdio/ulc-vasprintf.c: Likewise.
31036         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31037         * lib/unistdio/ulc-vsprintf.c: Likewise.
31038         * lib/unistr.h: Likewise.
31039         * lib/unistr/u-cpy-alloc.h: Likewise.
31040         * lib/unistr/u-cpy.h: Likewise.
31041         * lib/unistr/u-endswith.h: Likewise.
31042         * lib/unistr/u-move.h: Likewise.
31043         * lib/unistr/u-set.h: Likewise.
31044         * lib/unistr/u-startswith.h: Likewise.
31045         * lib/unistr/u-stpcpy.h: Likewise.
31046         * lib/unistr/u-stpncpy.h: Likewise.
31047         * lib/unistr/u-strcat.h: Likewise.
31048         * lib/unistr/u-strcpy.h: Likewise.
31049         * lib/unistr/u-strcspn.h: Likewise.
31050         * lib/unistr/u-strdup.h: Likewise.
31051         * lib/unistr/u-strlen.h: Likewise.
31052         * lib/unistr/u-strncat.h: Likewise.
31053         * lib/unistr/u-strncpy.h: Likewise.
31054         * lib/unistr/u-strnlen.h: Likewise.
31055         * lib/unistr/u-strpbrk.h: Likewise.
31056         * lib/unistr/u-strspn.h: Likewise.
31057         * lib/unistr/u-strstr.h: Likewise.
31058         * lib/unistr/u-strtok.h: Likewise.
31059         * lib/unistr/u16-check.c: Likewise.
31060         * lib/unistr/u16-chr.c: Likewise.
31061         * lib/unistr/u16-cmp.c: Likewise.
31062         * lib/unistr/u16-cpy-alloc.c: Likewise.
31063         * lib/unistr/u16-cpy.c: Likewise.
31064         * lib/unistr/u16-endswith.c: Likewise.
31065         * lib/unistr/u16-mblen.c: Likewise.
31066         * lib/unistr/u16-mbsnlen.c: Likewise.
31067         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31068         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31069         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31070         * lib/unistr/u16-mbtouc.c: Likewise.
31071         * lib/unistr/u16-mbtoucr.c: Likewise.
31072         * lib/unistr/u16-move.c: Likewise.
31073         * lib/unistr/u16-next.c: Likewise.
31074         * lib/unistr/u16-prev.c: Likewise.
31075         * lib/unistr/u16-set.c: Likewise.
31076         * lib/unistr/u16-startswith.c: Likewise.
31077         * lib/unistr/u16-stpcpy.c: Likewise.
31078         * lib/unistr/u16-stpncpy.c: Likewise.
31079         * lib/unistr/u16-strcat.c: Likewise.
31080         * lib/unistr/u16-strchr.c: Likewise.
31081         * lib/unistr/u16-strcmp.c: Likewise.
31082         * lib/unistr/u16-strcpy.c: Likewise.
31083         * lib/unistr/u16-strcspn.c: Likewise.
31084         * lib/unistr/u16-strdup.c: Likewise.
31085         * lib/unistr/u16-strlen.c: Likewise.
31086         * lib/unistr/u16-strmblen.c: Likewise.
31087         * lib/unistr/u16-strmbtouc.c: Likewise.
31088         * lib/unistr/u16-strncat.c: Likewise.
31089         * lib/unistr/u16-strncmp.c: Likewise.
31090         * lib/unistr/u16-strncpy.c: Likewise.
31091         * lib/unistr/u16-strnlen.c: Likewise.
31092         * lib/unistr/u16-strpbrk.c: Likewise.
31093         * lib/unistr/u16-strrchr.c: Likewise.
31094         * lib/unistr/u16-strspn.c: Likewise.
31095         * lib/unistr/u16-strstr.c: Likewise.
31096         * lib/unistr/u16-strtok.c: Likewise.
31097         * lib/unistr/u16-to-u32.c: Likewise.
31098         * lib/unistr/u16-to-u8.c: Likewise.
31099         * lib/unistr/u16-uctomb-aux.c: Likewise.
31100         * lib/unistr/u16-uctomb.c: Likewise.
31101         * lib/unistr/u32-check.c: Likewise.
31102         * lib/unistr/u32-chr.c: Likewise.
31103         * lib/unistr/u32-cmp.c: Likewise.
31104         * lib/unistr/u32-cpy-alloc.c: Likewise.
31105         * lib/unistr/u32-cpy.c: Likewise.
31106         * lib/unistr/u32-endswith.c: Likewise.
31107         * lib/unistr/u32-mblen.c: Likewise.
31108         * lib/unistr/u32-mbsnlen.c: Likewise.
31109         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31110         * lib/unistr/u32-mbtouc.c: Likewise.
31111         * lib/unistr/u32-mbtoucr.c: Likewise.
31112         * lib/unistr/u32-move.c: Likewise.
31113         * lib/unistr/u32-next.c: Likewise.
31114         * lib/unistr/u32-prev.c: Likewise.
31115         * lib/unistr/u32-set.c: Likewise.
31116         * lib/unistr/u32-startswith.c: Likewise.
31117         * lib/unistr/u32-stpcpy.c: Likewise.
31118         * lib/unistr/u32-stpncpy.c: Likewise.
31119         * lib/unistr/u32-strcat.c: Likewise.
31120         * lib/unistr/u32-strchr.c: Likewise.
31121         * lib/unistr/u32-strcmp.c: Likewise.
31122         * lib/unistr/u32-strcpy.c: Likewise.
31123         * lib/unistr/u32-strcspn.c: Likewise.
31124         * lib/unistr/u32-strdup.c: Likewise.
31125         * lib/unistr/u32-strlen.c: Likewise.
31126         * lib/unistr/u32-strmblen.c: Likewise.
31127         * lib/unistr/u32-strmbtouc.c: Likewise.
31128         * lib/unistr/u32-strncat.c: Likewise.
31129         * lib/unistr/u32-strncmp.c: Likewise.
31130         * lib/unistr/u32-strncpy.c: Likewise.
31131         * lib/unistr/u32-strnlen.c: Likewise.
31132         * lib/unistr/u32-strpbrk.c: Likewise.
31133         * lib/unistr/u32-strrchr.c: Likewise.
31134         * lib/unistr/u32-strspn.c: Likewise.
31135         * lib/unistr/u32-strstr.c: Likewise.
31136         * lib/unistr/u32-strtok.c: Likewise.
31137         * lib/unistr/u32-to-u16.c: Likewise.
31138         * lib/unistr/u32-to-u8.c: Likewise.
31139         * lib/unistr/u32-uctomb.c: Likewise.
31140         * lib/unistr/u8-check.c: Likewise.
31141         * lib/unistr/u8-chr.c: Likewise.
31142         * lib/unistr/u8-cmp.c: Likewise.
31143         * lib/unistr/u8-cpy-alloc.c: Likewise.
31144         * lib/unistr/u8-cpy.c: Likewise.
31145         * lib/unistr/u8-endswith.c: Likewise.
31146         * lib/unistr/u8-mblen.c: Likewise.
31147         * lib/unistr/u8-mbsnlen.c: Likewise.
31148         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31149         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31150         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31151         * lib/unistr/u8-mbtouc.c: Likewise.
31152         * lib/unistr/u8-mbtoucr.c: Likewise.
31153         * lib/unistr/u8-move.c: Likewise.
31154         * lib/unistr/u8-next.c: Likewise.
31155         * lib/unistr/u8-prev.c: Likewise.
31156         * lib/unistr/u8-set.c: Likewise.
31157         * lib/unistr/u8-startswith.c: Likewise.
31158         * lib/unistr/u8-stpcpy.c: Likewise.
31159         * lib/unistr/u8-stpncpy.c: Likewise.
31160         * lib/unistr/u8-strcat.c: Likewise.
31161         * lib/unistr/u8-strchr.c: Likewise.
31162         * lib/unistr/u8-strcmp.c: Likewise.
31163         * lib/unistr/u8-strcpy.c: Likewise.
31164         * lib/unistr/u8-strcspn.c: Likewise.
31165         * lib/unistr/u8-strdup.c: Likewise.
31166         * lib/unistr/u8-strlen.c: Likewise.
31167         * lib/unistr/u8-strmblen.c: Likewise.
31168         * lib/unistr/u8-strmbtouc.c: Likewise.
31169         * lib/unistr/u8-strncat.c: Likewise.
31170         * lib/unistr/u8-strncmp.c: Likewise.
31171         * lib/unistr/u8-strncpy.c: Likewise.
31172         * lib/unistr/u8-strnlen.c: Likewise.
31173         * lib/unistr/u8-strpbrk.c: Likewise.
31174         * lib/unistr/u8-strrchr.c: Likewise.
31175         * lib/unistr/u8-strspn.c: Likewise.
31176         * lib/unistr/u8-strstr.c: Likewise.
31177         * lib/unistr/u8-strtok.c: Likewise.
31178         * lib/unistr/u8-to-u16.c: Likewise.
31179         * lib/unistr/u8-to-u32.c: Likewise.
31180         * lib/unistr/u8-uctomb-aux.c: Likewise.
31181         * lib/unistr/u8-uctomb.c: Likewise.
31182         * lib/unitypes.h: Likewise.
31183         * lib/uniwidth.h: Likewise.
31184         * lib/uniwidth/cjk.h: Likewise.
31185         * lib/uniwidth/u16-strwidth.c: Likewise.
31186         * lib/uniwidth/u16-width.c: Likewise.
31187         * lib/uniwidth/u32-strwidth.c: Likewise.
31188         * lib/uniwidth/u32-width.c: Likewise.
31189         * lib/uniwidth/u8-strwidth.c: Likewise.
31190         * lib/uniwidth/u8-width.c: Likewise.
31191         * lib/uniwidth/width.c: Likewise.
31192
31193 2007-10-07  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31196         The file is still under LGPL (see modules/inttypes).
31197
31198 2007-10-06  Bruno Haible  <bruno@clisp.org>
31199
31200         * modules/trunc (Dependencies): Add 'extensions'.
31201         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31202         Reported by Ben Pfaff <blp@gnu.org>.
31203
31204 2007-10-06  Bruno Haible  <bruno@clisp.org>
31205
31206         * modules/freopen-tests: New file.
31207         * tests/test-freopen.c: New file.
31208
31209         * modules/fopen-tests: New file.
31210         * tests/test-fopen.c: New file.
31211
31212         * modules/fopen: New file.
31213         * lib/fopen.c: New file.
31214         * m4/fopen.m4: New file.
31215         * modules/freopen: New file.
31216         * lib/freopen.c: New file.
31217         * m4/freopen.m4: New file.
31218         * lib/stdio.in.h (fopen, freopen): New declarations.
31219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31220         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31221         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31222         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31223         * doc/functions/fopen.texi: Mention the 'fopen' module.
31224         * doc/functions/freopen.texi: Mention the 'freopen' module.
31225
31226 2007-10-06  Bruno Haible  <bruno@clisp.org>
31227
31228         * modules/open-tests: New file.
31229         * tests/test-open.c: New file.
31230
31231         * modules/open: New file.
31232         * lib/open.c: New file.
31233         * m4/open.m4: New file.
31234         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31235         lib/open.c does.
31236         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31237         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31238         macros.
31239         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31240         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31241         REPLACE_OPEN.
31242         * doc/functions/open.texi: Mention the 'open' module.
31243
31244 2007-10-04  Bruno Haible  <bruno@clisp.org>
31245
31246         * modules/ceill-tests: New file.
31247         * tests/test-ceill.c: New file.
31248
31249         * modules/ceill: New file.
31250         * lib/ceill.c: Replace entire file.
31251         * m4/ceill.m4: New file.
31252         * lib/math.in.h (ceill): Replace declaration.
31253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31254         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31255         * doc/functions/ceill.texi: Mention the 'ceill' module.
31256         * modules/mathl (Files): Remove lib/ceill.c.
31257         (Depends-on): Add ceill.
31258
31259 2007-10-04  Bruno Haible  <bruno@clisp.org>
31260
31261         * modules/ceilf-tests: New file.
31262         * tests/test-ceilf.c: New file.
31263
31264         * modules/ceilf: New file.
31265         * lib/ceil.c: New file.
31266         * lib/ceilf.c: New file.
31267         * m4/ceilf.m4: New file.
31268         * lib/math.in.h (ceilf): New declaration.
31269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31270         HAVE_DECL_CEILF.
31271         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31272         HAVE_DECL_CEILF.
31273         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31274
31275 2007-10-04  Bruno Haible  <bruno@clisp.org>
31276
31277         * modules/floorl-tests: New file.
31278         * tests/test-floorl.c: New file.
31279
31280         * modules/floorl: New file.
31281         * lib/floorl.c: Replace entire file.
31282         * m4/floorl.m4: New file.
31283         * lib/math.in.h (floorl): Replace declaration.
31284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31285         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31286         * doc/functions/floorl.texi: Mention the 'floorl' module.
31287         * modules/mathl (Files): Remove lib/floorl.c.
31288         (Depends-on): Add floorl.
31289
31290 2007-10-04  Bruno Haible  <bruno@clisp.org>
31291
31292         * modules/floorf-tests: New file.
31293         * tests/test-floorf.c: New file.
31294
31295         * modules/floorf: New file.
31296         * lib/floor.c: New file.
31297         * lib/floorf.c: New file.
31298         * m4/floorf.m4: New file.
31299         * lib/math.in.h (floorf): New declaration.
31300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31301         HAVE_DECL_FLOORF.
31302         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31303         HAVE_DECL_FLOORF.
31304         * doc/functions/floorf.texi: Mention the 'floorf' module.
31305
31306 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31307             Bruno Haible  <bruno@clisp.org>
31308
31309         Advertise for the Git server instead of the CVS server.
31310         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31311         repository instead of the CVS one.
31312         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31313         about all VCS systems generically.
31314         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31315
31316 2007-10-04  Bruno Haible  <bruno@clisp.org>
31317
31318         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31319         means.
31320         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31321
31322 2007-10-04  Bruno Haible  <bruno@clisp.org>
31323
31324         * modules/truncl-tests: New file.
31325         * tests/test-truncl.c: New file.
31326
31327         * modules/truncl: New file.
31328         * lib/truncl.c: New file.
31329         * m4/truncl.m4: New file.
31330         * lib/math.in.h (truncl): New declaration.
31331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31332         HAVE_DECL_TRUNCL.
31333         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31334         HAVE_DECL_TRUNCL.
31335         * doc/functions/truncl.texi: Mention the 'truncl' module.
31336
31337 2007-10-04  Bruno Haible  <bruno@clisp.org>
31338
31339         * modules/truncf-tests: New file.
31340         * tests/test-truncf.c: New file.
31341
31342         * modules/truncf: New file.
31343         * lib/trunc.c: Make paramerizable through USE_* macros.
31344         * lib/truncf.c: New file.
31345         * m4/truncf.m4: New file.
31346         * lib/math.in.h (truncf): New declaration.
31347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31348         HAVE_DECL_TRUNCF.
31349         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31350         HAVE_DECL_TRUNCF.
31351         * doc/functions/truncf.texi: Mention the 'truncf' module.
31352
31353 2007-10-03  Bruno Haible  <bruno@clisp.org>
31354
31355         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31356         augmentation also for tests modules.
31357         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31358         * modules/atexit-tests (Makefile.am): Likewise.
31359         * modules/binary-io-tests (Makefile.am): Likewise.
31360         * modules/c-strcase-tests (Makefile.am): Likewise.
31361         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31362         * modules/canonicalize-tests (Makefile.am): Likewise.
31363         * modules/closein-tests (Makefile.am): Likewise.
31364         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31365         * modules/freadahead-tests (Makefile.am): Likewise.
31366         * modules/fseek-tests (Makefile.am): Likewise.
31367         * modules/fseeko-tests (Makefile.am): Likewise.
31368         * modules/ftell-tests (Makefile.am): Likewise.
31369         * modules/ftello-tests (Makefile.am): Likewise.
31370         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31371         * modules/isnanl-tests (Makefile.am): Likewise.
31372         * modules/lseek-tests (Makefile.am): Likewise.
31373         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31374         * modules/mbscasestr-tests (Makefile.am): Likewise.
31375         * modules/mbschr-tests (Makefile.am): Likewise.
31376         * modules/mbscspn-tests (Makefile.am): Likewise.
31377         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31378         * modules/mbspbrk-tests (Makefile.am): Likewise.
31379         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31380         * modules/mbsrchr-tests (Makefile.am): Likewise.
31381         * modules/mbsspn-tests (Makefile.am): Likewise.
31382         * modules/mbsstr-tests (Makefile.am): Likewise.
31383         * modules/printf-posix-tests (Makefile.am): Likewise.
31384         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31385         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31386         * modules/tsearch-tests (Makefile.am): Likewise.
31387         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31388         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31389         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31390         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31391         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31392         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31393         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31394         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31395         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31396         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31397         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31398         * modules/xstrtol-tests (Makefile.am): Likewise.
31399         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31400         * modules/yesno-tests (Makefile.am): Likewise.
31401
31402 2007-10-03  Bruno Haible  <bruno@clisp.org>
31403
31404         * modules/trunc-tests: New file.
31405         * tests/test-trunc.c: New file.
31406
31407         * modules/trunc: New file.
31408         * lib/trunc.c: New file.
31409         * m4/trunc.m4: New file.
31410         * lib/math.in.h (trunc): New declaration.
31411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31412         HAVE_DECL_TRUNC.
31413         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31414         HAVE_DECL_TRUNC.
31415         * doc/functions/trunc.texi: Mention the 'trunc' module.
31416
31417 2007-10-03  Bruno Haible  <bruno@clisp.org>
31418
31419         * tests/test-fpending.c: New file, mostly copied
31420         from coreutils/lib/t-fpending.c.
31421         * modules/fpending-tests: New file.
31422
31423 2007-10-03  Bruno Haible  <bruno@clisp.org>
31424
31425         Port the stdio extensions to QNX (untested).
31426         * lib/fseterr.c (fseterr): Add support for QNX.
31427         * lib/fbufmode.c (fbufmode): Likewise.
31428         * lib/freadable.c (freadable): Likewise.
31429         * lib/fwritable.c (fwritable): Likewise.
31430         * lib/freading.c (freading): Likewise.
31431         * lib/fwriting.c (fwriting): Likewise.
31432         * lib/freadahead.c (freadahed): Likewise.
31433         * lib/fpurge.c (fpurge): Likewise.
31434         * lib/fseeko.c (rpl_fseeko): Likewise.
31435
31436 2007-10-03  Bruno Haible  <bruno@clisp.org>
31437             Jim Meyering  <jim@meyering.net>
31438             Eric Blake  <ebb9@byu.net>
31439
31440         * doc/relocatable.texi: Use @command instead of @program.
31441
31442 2007-10-02  Jim Meyering  <jim@meyering.net>
31443
31444         Perform one more "_.h" -> ".in.h" substitution.
31445         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31446         instead of unistd_.h here, too.
31447
31448 2007-10-01  Bruno Haible  <bruno@clisp.org>
31449
31450         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31451         Needed for the alloca-opt module.
31452
31453 2007-09-30  Bruno Haible  <bruno@clisp.org>
31454
31455         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31456         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31457         alloca_.h.
31458         * lib/argz.in.h: Renamed from lib/argz_.h.
31459         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31460         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31461         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31462         byteswap_.h.
31463         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31464         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31465         dirent_.h.
31466         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31467         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31468         fcntl_.h.
31469         * lib/float.in.h: Renamed from lib/float_.h.
31470         * modules/float (Files, Makefile.am): Use float.in.h instead of
31471         float_.h.
31472         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31473         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31474         fnmatch_.h.
31475         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31476         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31477         getopt_.h.
31478         * lib/glob.in.h: Renamed from lib/glob_.h.
31479         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31480         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31481         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31482         iconv_.h.
31483         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31484         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31485         inttypes_.h.
31486         * lib/locale.in.h: Renamed from lib/locale_.h.
31487         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31488         locale_.h.
31489         * lib/math.in.h: Renamed from lib/math_.h.
31490         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31491         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31492         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31493         of netinet_in_.h. Add dependency.
31494         * lib/poll.in.h: Renamed from lib/poll_.h.
31495         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31496         * lib/search.in.h: Renamed from lib/search_.h.
31497         * modules/search (Files, Makefile.am): Use search.in.h instead of
31498         search_.h.
31499         * lib/signal.in.h: Renamed from lib/signal_.h.
31500         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31501         _signal.h.
31502         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31503         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31504         stdbool_.h.
31505         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31506         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31507         stdint_.h.
31508         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31509         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31510         stdio_.h.
31511         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31512         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31513         stdlib_.h.
31514         * lib/string.in.h: Renamed from lib/string_.h.
31515         * modules/string (Files, Makefile.am): Use string.in.h instead of
31516         string_.h.
31517         * doc/gnulib-tool.texi (Initial import): Update.
31518         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31519         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31520         of sys_select_.h. Add dependency.
31521         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31522         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31523         of sys_socket_.h.
31524         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31525         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31526         sys_stat_.h.
31527         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31528         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31529         sys_time_.h.
31530         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31531         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31532         sysexits_.h.
31533         * lib/time.in.h: Renamed from lib/time_.h.
31534         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31535         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31536         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31537         unistd_.h.
31538         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31539         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31540         wchar_.h.
31541         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31542         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31543         wctype_.h.
31544         * build-aux/bootstrap (slurp): Update.
31545         * lib/.cppi-disable: Update.
31546
31547 2007-09-30  Bruno Haible  <bruno@clisp.org>
31548
31549         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31550         Needed on BeOS.
31551
31552 2007-09-30  Bruno Haible  <bruno@clisp.org>
31553
31554         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31555
31556 2007-09-29  Bruno Haible  <bruno@clisp.org>
31557
31558         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31559
31560 2007-09-29  Bruno Haible  <bruno@clisp.org>
31561
31562         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31563         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31564         * build-aux/install-reloc: Compile also areadlink.c.
31565         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31566
31567 2007-09-29  Bruno Haible  <bruno@clisp.org>
31568
31569         * gnulib-tool (func_emit_initmacro_done): Indentation.
31570
31571 2007-09-29  Bruno Haible  <bruno@clisp.org>
31572
31573         * README: Add CVS checkout update instructions.
31574         Info from Bob Proulx <bob@proulx.com>.
31575
31576 2007-09-28  Eric Blake  <ebb9@byu.net>
31577
31578         Provide move-if-change.
31579         * build-aux/move-if-change: New file, based on best practice
31580         rather than any canonical upstream location.
31581
31582 2007-09-28  Jim Meyering  <jim@meyering.net>
31583
31584         Fix canonicalize loop-detection corner case.
31585         Do not attempt to stat the symlink values stored via seen_triple.
31586         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31587         on linux-2.6.18, (but not 2.6.22).
31588         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31589         triple_compare.  The former compares dev,ino,filename, while the latter
31590         would actually stat dirname(filename) when dev and ino were equal.
31591         * lib/hash-triple.c: Install <string.h>.
31592         (STREQ): Define.
31593         (triple_compare_ino_str): New function.
31594         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31595
31596 2007-09-28  Eric Blake  <ebb9@byu.net>
31597
31598         Enforce that AC_REPLACE_FUNCS files exist.
31599         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31600         override check for typos.
31601
31602         Fix test-closein on Solaris 10.
31603         * tests/test-closein.c (main): Don't assume stdin can be inherited
31604         closed on all systems.
31605         * tests/test-closein.sh: Likewise.
31606         Reported by Piotr Tarnowski.
31607
31608 2007-09-28  Jim Meyering  <jim@meyering.net>
31609
31610         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31611
31612 2007-09-27  Jim Meyering  <jim@meyering.net>
31613
31614         canonicalize: Avoid a false-positive cycle failure.
31615         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31616         Sort.  Remove cycle-check.
31617         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31618         not cycle-check.h.
31619         (seen_triple): New function.
31620         (canonicalize_filename_mode): Use it instead of cycle-check.
31621         * tests/test-canonicalize.c: Add a test for this bug.
31622         * tests/test-canonicalize.sh: Set up and run the test.
31623
31624         New module, file-set, from coreutils.
31625         * modules/file-set: Define it.
31626         * lib/file-set.c, lib/file-set.h: Implement.
31627
31628         New module, hash-triple, from coreutils.
31629         * modules/hash-triple: Define it.
31630         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31631
31632 2007-09-25  Eric Blake  <ebb9@byu.net>
31633
31634         Fix strerror on Interix.
31635         * lib/string_.h (strerror): Declare replacement.
31636         * doc/functions/strerror.texi (strerror): Document the Interix
31637         shortcoming.
31638         * modules/string (Makefile.am): Support new hooks.
31639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31640         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31641         gl_FUNC_STRERROR_SEPARATE.
31642         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31643         * lib/strerror.c (rpl_strerror): Provide replacement.
31644         * modules/strerror (Depends-on): Add string.
31645         (configure.ac): Detect use of module.
31646         * tests/test-strerror.c: New file.
31647         * modules/strerror-tests: New test module.
31648         * modules/argp (Depends-on): Add strerror.
31649         * modules/error (Depends-on): Likewise.
31650         Reported by Martin Koeppe.
31651
31652 2007-09-24  Bruno Haible  <bruno@clisp.org>
31653
31654         * README: Update git instructions.
31655
31656 2007-09-24  Eric Blake  <ebb9@byu.net>
31657
31658         Revert fpending breakage from 2007-09-08.
31659         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31660         __fpending.c.
31661
31662 2007-09-24  Jim Meyering  <jim@meyering.net>
31663
31664         filenamecat.c: Add a test.
31665         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31666         showing how the function works when DIR is the empty string.
31667
31668 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31669
31670         * tests/test-canonicalize.sh: Turn on executable bit.
31671
31672 2007-09-19  Eric Blake  <ebb9@byu.net>
31673
31674         * README: Update CVS instructions.
31675
31676 2007-09-18  Bruno Haible  <bruno@clisp.org>
31677
31678         * modules/areadlink: New file.
31679         * lib/areadlink.h (areadlink): New declaration.
31680         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31681
31682 2007-09-17  Jim Meyering  <jim@meyering.net>
31683
31684         * lib/savewd.c (ESTALE) [!defined]: Define.
31685         Reported to be required on Interix by Martin Koeppe.
31686
31687 2007-09-17  Bruno Haible  <bruno@clisp.org>
31688
31689         * gnulib-tool (func_version): Use $version.
31690
31691 2007-09-16  Bruno Haible  <bruno@clisp.org>
31692
31693         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31694         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31695         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31696         Reported by Greg Schafer <gschafer@zip.com.au>.
31697
31698 2007-09-15  Bruno Haible  <bruno@clisp.org>
31699
31700         * gnulib-tool (sed): Try a little harder to make bash understand the
31701         alias.
31702         Reported by Bruce Korb <bruce.korb@gmail.com>.
31703
31704 2007-09-13  Eric Blake  <ebb9@byu.net>
31705
31706         * ChangeLog: Remove conflict markers.
31707
31708 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31709
31710         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31711         Reported by Bruno Haible <bruno@clisp.org>.
31712
31713 2007-09-12  Bruno Haible  <bruno@clisp.org>
31714
31715         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31716         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31717         is not defined.
31718
31719 2007-09-12  Eric Blake  <ebb9@byu.net>
31720
31721         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31722         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31723         Autoconf definition.
31724         * modules/euidaccess (Depends-on): Add extensions, for
31725         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31726         * modules/fnmatch (Depends-on): Likewise.
31727         * modules/getaddrinfo (Depends-on): Likewise.
31728         * modules/getdelim (Depends-on): Likewise.
31729         * modules/getline (Depends-on): Likewise.
31730         * modules/getsubopt (Depends-on): Likewise.
31731         * modules/gettext (Depends-on): Likewise.
31732         * modules/group-member (Depends-on): Likewise.
31733         * modules/mbchar (Depends-on): Likewise.
31734         * modules/memmem (Depends-on): Likewise.
31735         * modules/mempcpy (Depends-on): Likewise.
31736         * modules/memrchr (Depends-on): Likewise.
31737         * modules/pagealign_alloc (Depends-on): Likewise.
31738         * modules/readutmp (Depends-on): Likewise.
31739         * modules/stpcpy (Depends-on): Likewise.
31740         * modules/stpncpy (Depends-on): Likewise.
31741         * modules/strchrnul (Depends-on): Likewise.
31742         * modules/strndup (Depends-on): Likewise.
31743         * modules/strsep (Depends-on): Likewise.
31744         * modules/strverscmp (Depends-on): Likewise.
31745         * modules/vasprintf (Depends-on): Likewise.
31746         * modules/wcwidth (Depends-on): Likewise.
31747         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31748         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31750         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31751         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31752         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31753         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31754         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31755         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31756         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31758         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31759         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31761         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31762         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31763         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31764         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31766         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31768         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31769         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31770         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31771         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31773         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31774         so that lock.m4 can be used in gettext without extensions module.
31775
31776 2007-09-11  Bruno Haible  <bruno@clisp.org>
31777
31778         * m4/isc-posix.m4: Remove file.
31779         Suggested by Eric Blake.
31780
31781 2007-09-11  Eric Blake  <ebb9@byu.net>
31782
31783         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31784
31785 2007-09-10  Bruno Haible  <bruno@clisp.org>
31786
31787         * posix-modules: Fix typo in error message.
31788         Reported by Matt <mkraai@beckman.com>.
31789
31790 2007-09-09  Bruno Haible  <bruno@clisp.org>
31791
31792         * doc/functions/getdelim.texi: Update list of platforms lacking the
31793         function.
31794         * doc/functions/getline.texi: Likewise.
31795
31796 2007-09-09  Jim Meyering  <jim@meyering.net>
31797
31798         * lib/hash.c (hash_initialize): Detect calloc failure.
31799         Reported by Bruno Haible.
31800
31801 2007-09-09  Bruno Haible  <bruno@clisp.org>
31802
31803         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31804         malloc or realloc fails.
31805
31806 2007-09-09  Bruno Haible  <bruno@clisp.org>
31807
31808         * modules/getcwd (Depends-on): Add malloc-posix.
31809         * modules/glob (Depends-on): Likewise.
31810         * modules/putenv (Depends-on): Likewise.
31811         * modules/strdup (Depends-on): Likewise.
31812         * modules/getdelim (Depends-on): Add realloc-posix.
31813         * modules/read-file (Depends-on): Likewise.
31814
31815 2007-09-09  Bruno Haible  <bruno@clisp.org>
31816
31817         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31818         (gl_FUNC_MALLOC_POSIX): Require it.
31819         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31820         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31821         * modules/realloc (Files): Add m4/malloc.m4.
31822         * modules/calloc (Files): Likewise.
31823
31824 2007-09-09  Bruno Haible  <bruno@clisp.org>
31825
31826         * modules/malloc-posix: New file.
31827         * modules/malloc (Depends-on): Add malloc-posix.
31828         * lib/malloc.c: Include errno.h.
31829         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31830         and a POSIX-compatible malloc into a single function. Set ENOMEM
31831         when returning NULL.
31832         * m4/malloc.m4: New file.
31833         * doc/functions/malloc.texi: Mention the malloc-posix module.
31834         * lib/stdlib_.h (malloc): New declaration.
31835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31836         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31837         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31838         and HAVE_MALLOC_POSIX.
31839
31840 2007-09-09  Bruno Haible  <bruno@clisp.org>
31841
31842         * modules/realloc-posix: New file.
31843         * modules/realloc (Depends-on): Add realloc-posix.
31844         * lib/realloc.c: Include errno.h.
31845         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31846         and a POSIX-compatible realloc into a single function. Set ENOMEM
31847         when returning NULL.
31848         * m4/realloc.m4: New file.
31849         * doc/functions/realloc.texi: Mention the realloc-posix module.
31850         * lib/stdlib_.h (realloc): New declaration.
31851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31852         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31853         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31854         and HAVE_REALLOC_POSIX.
31855
31856 2007-09-09  Bruno Haible  <bruno@clisp.org>
31857
31858         * modules/calloc-posix: New file.
31859         * modules/calloc (Depends-on): Add calloc-posix.
31860         * lib/calloc.c: Include errno.h.
31861         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31862         and a POSIX-compatible calloc into a single function. Set ENOMEM
31863         when returning NULL.
31864         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31865         * doc/functions/calloc.texi: Mention the calloc-posix module.
31866         * lib/stdlib_.h (calloc): New declaration.
31867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31868         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31869         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31870         and HAVE_CALLOC_POSIX.
31871
31872 2007-09-09  Bruno Haible  <bruno@clisp.org>
31873
31874         Allow for modules to show an arbitrary notice.
31875         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31876         * gnulib-tool: New option --extract-notice.
31877         (func_usage): Document it.
31878         (sed_extract_prog): Update.
31879         (func_get_notice): New function.
31880         (func_modules_notice): New function.
31881         (func_import, func_create_testdir): Invoke it.
31882         Suggested by Jim Meyering.
31883
31884 2007-09-09  Bruno Haible  <bruno@clisp.org>
31885
31886         * gnulib-tool: New options --verbose, --quiet.
31887         (func_usage): Document them.
31888         (verbose): New variable.
31889         (func_execute_command): New function.
31890         (func_import): Don't show the module list and the file list if
31891         $verbose < 0.
31892         (func_create_testdir): Likewise. Use func_execute_command.
31893         (func_create_megatestdir): Use func_execute_command.
31894
31895 2007-09-08  Bruno Haible  <bruno@clisp.org>
31896
31897         * gnulib-tool (func_import): Prefer rsync over wget when available,
31898         for fetching the PO files.
31899
31900 2007-09-08  Bruno Haible  <bruno@clisp.org>
31901
31902         * posix-modules: New file. Portions copied from gnulib-tool.
31903         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31904
31905 2007-09-08  Jim Meyering  <jim@meyering.net>
31906
31907         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31908         * lib/fpending.h: Rename from __fpending.h.
31909         * lib/fpending.c: Rename from __fpending.c.
31910         Include "fpending.h", not "__fpending.h".
31911         * lib/__fpending.h, lib/__fpending.c: Remove files.
31912         * modules/fpending (Files): Reflect new file names.
31913         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31914
31915 2007-09-08  Bruno Haible  <bruno@clisp.org>
31916
31917         * m4/inttypes-h.m4: Remove stub file.
31918
31919 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31920
31921         * doc/headers/stdint.texi: Discuss #include_next issue.
31922
31923 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31924
31925         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31926
31927 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31928
31929         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31930         in variable name.
31931
31932 2007-09-03  Jim Meyering  <jim@meyering.net>
31933
31934         New module: git-version-gen.
31935         * modules/git-version-gen: New file.
31936
31937         Import changes from coreutils for bootstrap script.
31938
31939         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31940
31941         bootstrap: uses rsync to download the .po files
31942         * build-aux/bootstrap (po_download_command_format): New global.
31943         (download_po_files): Use rsync.
31944         (update_po_files): Don't remove .po files after download,
31945         so future rsync runs can take advantage of the copies.
31946
31947         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31948
31949         Solve the unnecessary-.po-file-regeneration problem once and for all.
31950         * build-aux/bootstrap (download_po_files): New function, renamed from
31951         get_translations.  Now, downloads, but doesn't update LINGUAS.
31952         (update_po_files): New function.
31953
31954         bootstrap: Ignore more.
31955         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31956         uniwidth to e.g., lib/.gitignore.
31957         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31958
31959         * build-aux/bootstrap: New setting: vc_ignore.
31960         (insert_sorted_if_absent): Create $file if absent.
31961         Adapt to new, possibly empty, list: $vc_ignore.
31962
31963         bootstrap: generate more ignorable names
31964         * build-aux/bootstrap (slurp): When generating ignorable names,
31965         also map .sin to .sed, .gperf to .c, and .y to .c.
31966
31967 2007-09-03  Jim Meyering  <jim@meyering.net>
31968
31969         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31970         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31971
31972 2007-09-02  Bruno Haible  <bruno@clisp.org>
31973
31974         Fix mis-recognition of 'mcs' on QNX 6.
31975         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31976         output contains the string "Mono".
31977         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31978         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31979
31980 2007-09-01  Bruno Haible  <bruno@clisp.org>
31981
31982         Fix collision between uniwidth/* and linebreak modules.
31983         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31984         u32_width): Remove declarations.
31985         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31986         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31987         streq3, streq2, streq1, streq0): Remove functions.
31988         (STREQ): Remove macro.
31989         (is_cjk_encoding): Remove function.
31990         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31991         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31992         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31993         * NEWS: Document the change.
31994
31995 2007-09-01  Bruno Haible  <bruno@clisp.org>
31996
31997         * lib/streq.h: Add double-inclusion guard.
31998
31999 2007-09-01  Karl Berry  <karl@gnu.org>
32000
32001         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32002
32003 2007-08-28  Jim Meyering  <jim@meyering.net>
32004
32005         Rename mreadlink_with_size to areadlink_with_size.
32006         * NEWS: Document the change.
32007         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32008         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32009         * lib/mreadlink.h: Rename this to...
32010         * lib/areadlink.h: ...this.
32011         * modules/mreadlink-with-size: Rename this to...
32012         * modules/areadlink-with-size: ...this.
32013         * lib/canonicalize.c: Reflect the renaming.
32014         * modules/canonicalize: Likewise.
32015
32016 2007-08-26  Bruno Haible  <bruno@clisp.org>
32017
32018         * gnulib-tool (func_import): When deciding which files to remove,
32019         consider also dangling symbolic links.
32020         Reported by Eric Blake.
32021
32022 2007-08-26  Bruno Haible  <bruno@clisp.org>
32023
32024         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32025
32026 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32027
32028         * lib/readline.c: Don't include getline.h, the prototype is now
32029         found in stdio.h.
32030
32031 2007-08-23  Jim Meyering  <jim@meyering.net>
32032
32033         Getdelim touchup.
32034         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32035         around the funlockfile call, since funlockfile never sets errno.
32036         Don't set errno upon failed realloc.
32037
32038 2007-08-22  Eric Blake  <ebb9@byu.net>
32039
32040         Getline touchups.
32041         * lib/getdelim.c (getdelim): Revert regression that required *n to
32042         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32043         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32044         getdelim, rather than whether implementation is missing.
32045         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32046         * lib/stdio_.h (getline): Also declare if replacement is
32047         required.
32048         * doc/functions/getdelim.texi: New file.
32049         * doc/functions/getline.texi: Likewise.
32050         * doc/gnulib.texi (Function Substitutes): Add new files.
32051         Reported by Bruno Haible.
32052
32053 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32054
32055         * users.txt: Add Guile.
32056
32057 2007-08-22  Eric Blake  <ebb9@byu.net>
32058
32059         * tests/test-getdelim.c (main): Use remove, not unlink.
32060         * tests/test-getline.c (main): Likewise.
32061
32062         Move getline and getdelim into stdio.h, per POSIX 200x.
32063         * modules/getline (Files): Remove getline.h.
32064         (Depends-on): Add stdio.
32065         (configure.ac): Add module indicator.
32066         * modules/getdelim (Files): Remove getdelim.h.
32067         (Depends-on): Add stdio.
32068         (configure.ac): Add module indicator.
32069         * modules/stdio (Makefile.am): Work with new indicators.
32070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32071         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32072         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32073         * lib/getdelim.h: Delete.
32074         * lib/getline.h: Delete.
32075         * lib/stdio_.h (getdelim, getline): Declare.
32076         * modules/getdelim-tests: New module.
32077         * modules/getline-tests: Likewise.
32078         * tests/test-getdelim.c: New file.
32079         * tests/test-getline.c: Likewise.
32080         * NEWS: Document the change.
32081         * lib/getline.c: Update choice of header.
32082         * lib/csharpcomp.c: Likewise.
32083         * lib/getpass.c: Likewise.
32084         * lib/javacomp.c: Likewise.
32085         * lib/javaversion.c: Likewise.
32086         * lib/yesno.c: Likewise.
32087         * lib/getdelim.c: Likewise.
32088         (getdelim): Set errno on failure, and avoid memory leak.
32089
32090 2007-08-19  Bruno Haible  <bruno@clisp.org>
32091
32092         * modules/closein (Depends-on): Add freadahead.
32093         * lib/closein.c: Include freadahead.h.
32094         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32095         is zero.
32096
32097 2007-08-19  Bruno Haible  <bruno@clisp.org>
32098
32099         * modules/freadahead-tests: New file.
32100         * tests/test-freadahead.sh: New file.
32101         * tests/test-freadahead.c: New file.
32102
32103         * modules/freadahead: New file.
32104         * lib/freadahead.h: New file.
32105         * lib/freadahead.c: New file.
32106         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32107         fbufmode, fpurge, freadable, fwritable.
32108
32109 2007-08-19  Eric Blake  <ebb9@byu.net>
32110
32111         Test yesno in combination with closein.
32112         * lib/yesno.c (yesno): Document use of stdin.
32113         * modules/yesno-tests (Files): New module.
32114         * tests/test-yesno.c (main): New file.
32115         * tests/test-yesno.sh: Likewise.
32116
32117 2007-08-19  Bruno Haible  <bruno@clisp.org>
32118
32119         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32120         * lib/fseeko.c (rpl_fseeko): Likewise.
32121         * lib/fseterr.c (fseterr): Likewise.
32122
32123 2007-08-19  Bruno Haible  <bruno@clisp.org>
32124
32125         * tests/test-lseek.c (main): Disable a test for BeOS.
32126         * doc/functions/lseek.texi: Document the BeOS bug.
32127
32128 2007-08-19  Bruno Haible  <bruno@clisp.org>
32129             Eric Blake  <ebb9@byu.net>
32130
32131         * lib/lseek.c: Include <sys/stat.h>.
32132         (rpl_lseek): Add workaround code also for Unix platforms.
32133         Needed for BeOS.
32134         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32135         * doc/functions/lseek.texi: Document BeOS definiency.
32136
32137 2007-08-18  Bruno Haible  <bruno@clisp.org>
32138
32139         * modules/fstrcmp-tests: New file.
32140         * tests/test-fstrcmp.c: New file.
32141
32142 2007-08-18  Bruno Haible  <bruno@clisp.org>
32143
32144         * modules/fstrcmp: New file, from GNU gettext with modifications.
32145         * lib/fstrcmp.h: New file, from GNU gettext.
32146         * lib/fstrcmp.c: New file, from GNU gettext.
32147         * MODULES.html.sh (String handling): Add fstrcmp.
32148
32149 2007-08-18  Bruno Haible  <bruno@clisp.org>
32150
32151         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32152         'bool'.
32153         (diag, compareseq): Remove const from the ctxt argument.
32154         (USE_HEURISTIC): Undefine at the end.
32155
32156 2007-08-18  Jim Meyering  <jim@meyering.net>
32157
32158         New file: lib/idcache.h
32159         * NEWS: Mention the addition.
32160         * modules/idcache (Files): Add lib/idcache.h
32161         * lib/idcache.c: Include "idcache.h".
32162         Don't include <sys/types.h>.
32163         Add a FIXME comment.
32164         Move file-scoped "static" declarations to the top.
32165         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32166
32167 2007-08-17  Bruno Haible  <bruno@clisp.org>
32168         and Paul Eggert  <eggert@cs.ucla.edu>
32169
32170         * MODULES.html.sh: Add diffseq.
32171         * modules/diffseq: New file.
32172         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32173         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32174
32175 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32176
32177         Import changes from coreutils for bootstrap script.
32178
32179         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32180
32181         * build-aux/bootstrap (slurp): Work even in environments where
32182         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32183         current code does not slurp files whose names start with ".", and
32184         this looks like it might be a troublesome area.
32185
32186         2007-07-11  Jim Meyering  <jim@meyering.net>
32187
32188         If there's a GPL vN copyright comment, require that N == 3.
32189
32190         2007-07-08  Jim Meyering  <jim@meyering.net>
32191
32192         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32193         * build-aux/bootstrap (mam_template): Move definition out of loop.
32194
32195         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32196
32197         * build-aux/bootstrap (symlink_to_dir): Rename function from
32198         symlink_to_gnulib.  Add a directory parameter.  Update all
32199         callers.
32200         (cp_mark_as_generated): Also check for -- and link to -- files in
32201         gl/.
32202
32203         2007-07-08  Jim Meyering  <jim@meyering.net>
32204
32205         Adapt to deeper hierarchy in gnulib.
32206         * build-aux/bootstrap (symlink_to_dir): If the destination
32207         directory doesn't exist, create it. This is required at least for
32208         "lib/uniwidth/cjk.h".
32209
32210         2007-05-15  Jim Meyering  <jim@meyering.net>
32211
32212         * build-aux/bootstrap: Now that generated Makefile.am files
32213         are no longer under version control, they must be created at
32214         bootstrap time.
32215
32216 2007-08-14  Ben Pfaff  <blp@gnu.org>
32217
32218         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32219
32220 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32221
32222         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32223         given the changes below.
32224         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32225         even on hosts that have padding bits beyond the supported 64.
32226
32227 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32228
32229         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32230         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32231         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32232         depends on it.
32233         (xstrtol_error): Remove.
32234         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32235         but with a different signature.
32236         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32237         * lib/xstrtol-error.c: Include exitfail.h.
32238         (xstrtol_fatal): New function, with a different signature from the
32239         old xstrtol_error, so that the caller need not worry about passing
32240         in an exit status, or about storage management of the option argument.
32241         (xstrtol_error): Now a static function.  Redo signature to
32242         implement xstrtol_fatal.  Output the correct number of hyphens in
32243         front of the option so that the caller need not worry about
32244         storage management.
32245         (N_): New macro.
32246         (_): Remove; not used now.
32247         * modules/xstrtol: Depend on getopt.
32248         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32249         of old STRTOL_FATAL_ERROR macro.
32250         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32251         of test program.
32252         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32253         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32254
32255 2007-08-08  Eric Blake  <ebb9@byu.net>
32256
32257         * lib/xstrtol-error.c: Add missing include.
32258
32259         Move xstrtol messages into gnulib domain, when --pobase is used.
32260         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32261         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32262         * modules/xstrtol (Files): Distribute new file.
32263         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32264         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32265         * tests/test-xstrtol.c: ...into new file.
32266         * tests/test-xstrtoul.c: Also test xstrtoul.
32267         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32268         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32269         * tests/test-xstrtol.sh: Drive the tests.
32270         * tests/test-xstrtoimax.sh: Likewise.
32271         * tests/test-xstrtoumax.sh: Likewise.
32272         * modules/xstrtol-tests: New module.
32273         * modules/xstrtoimax-tests: Likewise.
32274         * modules/xstrtoumax-tests: Likewise.
32275
32276 2007-08-08  Jim Meyering  <jim@meyering.net>
32277
32278         New function: mfile_name_concat.
32279         * lib/filenamecat.c (mfile_name_concat): New function, just like
32280         file_name_concat, but return NULL upon failure rather than exiting
32281         with a diagnostic.
32282         * lib/filenamecat.h: Declare it.
32283
32284 2007-08-07  Bruno Haible  <bruno@clisp.org>
32285
32286         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32287         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32288         warning from gcc.
32289         Reported by Eric Blake.
32290
32291 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32292
32293         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32294         * modules/crypto/arcfour (License): Likewise.
32295         * modules/crypto/des-tests (License): Likewise.
32296         * modules/crypto/gc-arctwo-tests (License): Likewise.
32297         * modules/crypto/gc-des-tests (License): Likewise.
32298         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32299         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32300         * modules/crypto/gc-md2-tests (License): Likewise.
32301         * modules/crypto/gc-md4-tests (License): Likewise.
32302         * modules/crypto/gc-md5-tests (License): Likewise.
32303         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32304         * modules/crypto/gc-rijndael-tests (License): Likewise.
32305         * modules/crypto/gc-sha1-tests (License): Likewise.
32306         * modules/crypto/gc-tests (License): Likewise.
32307         * modules/crypto/hmac-md5 (License): Likewise.
32308         * modules/crypto/hmac-sha1 (License): Likewise.
32309         * modules/crypto/md2-tests (License): Likewise.
32310         * modules/crypto/md4-tests (License): Likewise.
32311         * modules/crypto/md5 (License): Likewise.
32312         * modules/crypto/rijndael (License): Likewise.
32313         * modules/crypto/sha1 (License): Likewise.
32314         * modules/memxor (License): Likewise.
32315
32316 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32317         and Bruno Haible  <bruno@clisp.org>
32318
32319         * NEWS: Describe interface changes to human, xstrtol.
32320         * lib/human.h: Include <xstrtol.h>.
32321         (human_options): Return enum strtol_error, not int.  Remove
32322         bool arg; take int * instead.
32323         * lib/human.c: Don't include "gettext.h".
32324         (_): Remove; no longer used.
32325         Don't include <xstrtol.h>, since human.h does it.
32326         (human_options): Adjust to abovementioned interface changes.
32327         Do not report error to stderr; that's now the caller's
32328         responsibility.
32329         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32330         interface change.
32331         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32332         Str, Argument_type_string.  All uses changed.  Put " argument"
32333         in diagnostics to make them clearer.  Change wording of suffix
32334         message for clarity.
32335         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32336         Argument_type_string.
32337         (STRTOL_FATAL_WARN): Remove; no longer used.
32338         * modules/human (Depends-on): Remove gettext-h.
32339
32340 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32341
32342         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32343
32344 2007-07-31  Bruno Haible  <bruno@clisp.org>
32345
32346         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32347         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32348         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32349
32350 2007-07-31  Bruno Haible  <bruno@clisp.org>
32351
32352         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32353         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32354
32355 2007-07-30  Bruno Haible  <bruno@clisp.org>
32356
32357         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32358         * modules/c-ctype (License): Likewise.
32359         * modules/c-strcase (License): Likewise.
32360         * modules/check-version (License): Likewise.
32361         * modules/iconv (License): Likewise.
32362         * modules/iconv_open (License): Likewise.
32363         * modules/read-file (License): Likewise.
32364         * modules/striconv (License): Likewise.
32365         * modules/strverscmp (License): Likewise.
32366         * modules/vasprintf (License): Likewise.
32367         * modules/crypto/des (License): Likewise.
32368         * modules/crypto/gc (License): Likewise.
32369         * modules/crypto/gc-arcfour (License): Likewise.
32370         * modules/crypto/gc-arctwo (License): Likewise.
32371         * modules/crypto/gc-des (License): Likewise.
32372         * modules/crypto/gc-hmac-md5 (License): Likewise.
32373         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32374         * modules/crypto/gc-md2 (License): Likewise.
32375         * modules/crypto/gc-md4 (License): Likewise.
32376         * modules/crypto/gc-md5 (License): Likewise.
32377         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32378         * modules/crypto/gc-random (License): Likewise.
32379         * modules/crypto/gc-rijndael (License): Likewise.
32380         * modules/crypto/gc-sha1 (License): Likewise.
32381         * modules/crypto/md2 (License): Likewise.
32382         * modules/crypto/md4 (License): Likewise.
32383
32384 2007-07-30  Jim Meyering  <jim@meyering.net>
32385
32386         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32387         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32388         it has valid stat data.  This bug would cause du not to count the
32389         sizes of inaccessible directories.
32390         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32391         in <http://bugzilla.redhat.com/250077>.
32392
32393 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32394             Bruno Haible  <bruno@clisp.org>
32395
32396         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32397         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32398         #include_next, gives a diagnostic about it, but reports no error in
32399         the exit code.
32400         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32401
32402 2007-07-24  Ben Pfaff  <blp@gnu.org>
32403
32404         Improve name: "count-one-bits" is better than "popcount".
32405         * MODULES.html.sh: Update name.
32406         * lib/popcount.h: Renamed lib/count-one-bits.h.
32407         (popcount): Renamed count_one_bits.
32408         (popcountl): Renamed count_one_bits_l.
32409         (popcountll): Renamed count_one_bits_ll.
32410         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32411         * modules/popcount: Renamed module/count-one-bits.
32412         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32413         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32414
32415 2007-07-23  Ben Pfaff  <blp@gnu.org>
32416
32417         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32418         better code generation, and add U to large constants to avoid
32419         warnings, in non-GCC case.
32420         Suggested by Bruno Haible.
32421
32422 2007-07-23  Ben Pfaff  <blp@gnu.org>
32423
32424         * lib/popcount.h: Use verify_true instead of if...abort.
32425         * modules/popcount: Depend on verify module.
32426         Suggested by Jim Meyering.
32427
32428 2007-07-23  Bruno Haible  <bruno@clisp.org>
32429
32430         * gnulib-tool (func_import): Create a .cvsignore file also when the
32431         directory is not yet in CVS but the toplevel directory is. When
32432         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32433         Reported by Karl Berry.
32434
32435 2007-07-22  Ben Pfaff  <blp@gnu.org>
32436
32437         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32438         case.
32439         Suggested by Eric Blake.
32440
32441 2007-07-22  Ben Pfaff  <blp@gnu.org>
32442
32443         New module: popcount.
32444         * MODULES.html.sh: Add popcount.
32445         * modules/popcount: New file.
32446         * modules/popcount-tests: New file.
32447         * tests/test-popcount.c: New file.
32448         * lib/popcount.h: New file.
32449         * m4/popcount.m4: New file.
32450
32451 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         * build-aux/announce-gen: Update to GPLv3.
32454
32455         * build-aux/config.guess: Update from config.
32456
32457 2007-07-21  Bruno Haible  <bruno@clisp.org>
32458
32459         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32460         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32461
32462 2007-07-20  Jim Meyering  <jim@meyering.net>
32463
32464         * check-module: Diagnose a self-dependency.
32465
32466 2007-07-19  Bruno Haible  <bruno@clisp.org>
32467
32468         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32469         empty.
32470         Reported by Eric Blake.
32471
32472 2007-07-18  Bruno Haible  <bruno@clisp.org>
32473
32474         * gnulib-tool: New options --po-base, --po-domain.
32475         (func_usage): Document them.
32476         (pobase, po_domain): New variables.
32477         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32478         DEFAULT_TEXT_DOMAIN.
32479         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32480         (func_import): Consider pobase and po_domain. Create a po/ directory.
32481         (func_create_testdir): Set pobase and po_domain to empty.
32482         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32483         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32484
32485 2007-07-18  Bruno Haible  <bruno@clisp.org>
32486
32487         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32488         EXTRA_DIST augmentation for files in build-aux/.
32489
32490 2007-07-16  Bruno Haible  <bruno@clisp.org>
32491
32492         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32493         * modules/getdelim (License): Likewise.
32494
32495 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32496
32497         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32498         * modules/d-type (License): Likewise.
32499         * modules/extensions (License): Likewise.
32500         * modules/fnmatch (License): Likewise.
32501         * modules/fseeko (License): Likewise.
32502         * modules/getaddrinfo (License): Likewise.
32503         * modules/getline (License): Likewise.
32504         * modules/getlogin_r (License): Likewise.
32505         * modules/getpass (License): Likewise.
32506         * modules/gettimeofday (License): Likewise.
32507         * modules/glob (License): Likewise.
32508         * modules/inet_ntop (License): Likewise.
32509         * modules/malloc (License): Likewise.
32510         * modules/malloca (License): Likewise.
32511         * modules/memmem (License): Likewise.
32512         * modules/mempcpy (License): Likewise.
32513         * modules/memset (License): Likewise.
32514         * modules/minmax (License): Likewise.
32515         * modules/mktime (License): Likewise.
32516         * modules/netinet_in (License): Likewise.
32517         * modules/pathmax (License): Likewise.
32518         * modules/poll (License): Likewise.
32519         * modules/regex (License): Likewise.
32520         * modules/snprintf (License): Likewise.
32521         * modules/stdbool (License): Likewise.
32522         * modules/stdint (License): Likewise.
32523         * modules/stdio (License): Likewise.
32524         * modules/strcase (License): Likewise.
32525         * modules/strcasestr (License): Likewise.
32526         * modules/strdup (License): Likewise.
32527         * modules/string (License): Likewise.
32528         * modules/strndup (License): Likewise.
32529         * modules/strnlen (License): Likewise.
32530         * modules/strpbrk (License): Likewise.
32531         * modules/strptime (License): Likewise.
32532         * modules/strsep (License): Likewise.
32533         * modules/sys_select (License): Likewise.
32534         * modules/sys_socket (License): Likewise.
32535         * modules/sys_stat (License): Likewise.
32536         * modules/sys_time (License): Likewise.
32537         * modules/time (License): Likewise.
32538         * modules/time_r (License): Likewise.
32539         * modules/timegm (License): Likewise.
32540         * modules/unistd (License): Likewise.
32541         * modules/vsnprintf (License): Likewise.
32542         * modules/wctype (License): Likewise.
32543
32544 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32545
32546         * modules/argz (License): LGPLv2+.
32547
32548 2007-07-15  Karl Berry  <karl@gnu.org>
32549
32550         * doc/gnulib.texi: revise node structure per new fdl.texi.
32551
32552 2007-07-14  Bruno Haible  <bruno@clisp.org>
32553
32554         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32555         the output file.
32556         * lib/uniname/uninames.h: Regenerated.
32557
32558 2007-07-14  Karl Berry  <karl@gnu.org>
32559
32560         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32561         omitting sectioning and index commands.
32562
32563 2007-07-13  Bruno Haible  <bruno@clisp.org>
32564
32565         New gnulib-tool option --more-symlinks.
32566         * gnulib-tool (func_usage): Document --more-symlinks.
32567         (do_copyrights): New variable.
32568         Recognize option --more-symlinks.
32569         (func_import): Don't add a copyright notice transform to
32570         sed_transform_lib_file if do_copyrights is empty.
32571
32572 2007-07-13  Bruno Haible  <bruno@clisp.org>
32573
32574         * lib/vasnprintf.c (decimal_point_char): Define also if
32575         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32576         && !NEED_PRINTF_DIRECTIVE_A.
32577         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32578         Gary V. Vaughan <gary@gnu.org>.
32579
32580 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32581
32582         * lib/inttypes_.h: Undo previous change, since it was fixed
32583         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32584
32585 2007-07-13  Bruno Haible  <bruno@clisp.org>
32586
32587         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32588         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32589
32590 2007-07-13  Jim Meyering  <jim@meyering.net>
32591
32592         df: Don't fail for Tru64's "file-on-file mount".
32593         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32594         so we fall through and use statfs instead.  Details here:
32595         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32596         Reported by Albert Chin.
32597
32598 2007-07-13  Bruno Haible  <bruno@clisp.org>
32599
32600         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32601         * modules/configmake (License): Likewise.
32602         * modules/gettext (License): Likewise.
32603         * modules/gettext-h (License): Likewise.
32604         * modules/include_next (License): Likewise.
32605         * modules/link-warning (License): Likewise.
32606         * modules/localcharset (License): Likewise.
32607         * modules/localename (License): Likewise.
32608         * modules/lock (License): Likewise.
32609         * modules/relocatable-lib-lgpl (License): Likewise.
32610         * modules/size_max (License): Likewise.
32611         * modules/vasnprintf (License): Likewise.
32612         * modules/wchar (License): Likewise.
32613         * modules/xsize (License): Likewise.
32614
32615 2007-07-13  Bruno Haible  <bruno@clisp.org>
32616
32617         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32618         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32619
32620 2007-07-12  Bruno Haible  <bruno@clisp.org>
32621
32622         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32623         in the modules files.
32624
32625 2007-07-11  Karl Berry  <karl@gnu.org>
32626
32627         * MODULES.html.sh (func_module): use
32628          sed -e '\|^'"${includefile}"'$|d'
32629          instead of /.../d, to avoid errors on $includefile's containing /.
32630
32631 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32632
32633         * gnulib-tool (func_import): Avoid duplication of --avoid
32634         statements
32635         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32636         names to `_' in variable names.
32637
32638 2007-07-10  Eric Blake  <ebb9@byu.net>
32639
32640         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32641         * NEWS: Document this change.
32642
32643 2007-07-08  Bruno Haible  <bruno@clisp.org>
32644
32645         Update to Unicode 5.0.
32646         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32647         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32648         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32649         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32650         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32651         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32652         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32653         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32654         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32655         U+10A3F, U+1D242..U+1D244.
32656         (nonspacing_table_ind): Update.
32657         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32658         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32659
32660 2007-07-08  Bruno Haible  <bruno@clisp.org>
32661
32662         Update to Unicode 5.0.
32663         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32664         code transform. Extend the name index field of unicode_name_to_code and
32665         unicode_code_to_name from 16 to 24 bits.
32666         * lib/uniname/uniname.c (unicode_character_name,
32667         unicode_name_character): Add the range 0x12xxx to the code transform.
32668         * lib/uniname/uninames.h: Regenerated.
32669         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32670
32671 2007-07-07  Bruno Haible  <bruno@clisp.org>
32672
32673         * modules/wcwidth-tests: New file.
32674         * tests/test-wcwidth.c: New file.
32675
32676         Work around MacOS X wcwidth() bug.
32677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32678         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32679         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32680         original wcwidth in non-UTF-8 locales.
32681         * modules/wcwidth (Depends-on): Add localcharset, streq,
32682         uniwidth/width.
32683         * doc/functions/wcwidth.texi: Update.
32684
32685 2007-07-07  Bruno Haible  <bruno@clisp.org>
32686
32687         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32688         (wcwidth): New declaration.
32689         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32690         macros.
32691         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32692         here. Prepare for creating <wchar.h> unconditionally.
32693         * modules/wchar (Depends-on): Add link-warning.
32694         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32695         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32696         * lib/wcwidth.h: Remove file.
32697         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32698         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32699         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32700         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32701         (Include): Replace wcwidth.h with <wchar.h>.
32702         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32703         * lib/mbchar.h: Don't include wcwidth.h.
32704         * lib/mbswidth.c: Likewise.
32705         * NEWS: Mention the change.
32706
32707 2007-07-07  Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32710         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32711         definition with an external declaration.
32712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32713         defined as a function. Remove AC_C_INLINE requirement.
32714         * modules/wcwidth (Files): Add lib/wcwidth.c.
32715         (Makefile.am): Remove redundant statement.
32716
32717 2007-07-07  Bruno Haible  <bruno@clisp.org>
32718
32719         * MODULES.html.sh (Unicode string functions): Add the new modules.
32720
32721         * tests/uniwidth/test-u32-strwidth.c: New file.
32722         * modules/uniwidth/u32-strwidth-tests: New file.
32723
32724         * lib/uniwidth/u32-strwidth.c: New file.
32725         * modules/uniwidth/u32-strwidth: New file.
32726
32727         * tests/uniwidth/test-u16-strwidth.c: New file.
32728         * modules/uniwidth/u16-strwidth-tests: New file.
32729
32730         * lib/uniwidth/u16-strwidth.c: New file.
32731         * modules/uniwidth/u16-strwidth: New file.
32732
32733         * tests/uniwidth/test-u8-strwidth.c: New file.
32734         * modules/uniwidth/u8-strwidth-tests: New file.
32735
32736         * lib/uniwidth/u8-strwidth.c: New file.
32737         * modules/uniwidth/u8-strwidth: New file.
32738
32739         * tests/uniwidth/test-u32-width.c: New file.
32740         * modules/uniwidth/u32-width-tests: New file.
32741
32742         * lib/uniwidth/u32-width.c: New file.
32743         * modules/uniwidth/u32-width: New file.
32744
32745         * tests/uniwidth/test-u16-width.c: New file.
32746         * modules/uniwidth/u16-width-tests: New file.
32747
32748         * lib/uniwidth/u16-width.c: New file.
32749         * modules/uniwidth/u16-width: New file.
32750
32751         * tests/uniwidth/test-u8-width.c: New file.
32752         * modules/uniwidth/u8-width-tests: New file.
32753
32754         * lib/uniwidth/u8-width.c: New file.
32755         * modules/uniwidth/u8-width: New file.
32756
32757         * tests/uniwidth/test-uc_width.c: New file.
32758         * modules/uniwidth/width-tests: New file.
32759
32760         * lib/uniwidth/width.c: New file, from GNU libiconv.
32761         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32762         * modules/uniwidth/width: New file.
32763
32764         * lib/uniwidth.h: New file, from GNU libiconv.
32765         * modules/uniwidth/base: New file.
32766
32767 2007-07-07  Bruno Haible  <bruno@clisp.org>
32768
32769         * lib/uniname.h: New file, from GNU gettext.
32770         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32771         * lib/uniname/uninames.h: New file, from GNU gettext.
32772         * lib/uniname/uniname.c: New file, from GNU gettext.
32773         * tests/uniname/test-uninames.sh: New file.
32774         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32775         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32776         * modules/uniname/base: New file.
32777         * modules/uniname/uniname: New file.
32778         * modules/uniname/uniname-tests: New file.
32779         * MODULES.html.sh (Unicode string functions): Add the new modules.
32780
32781 2007-07-06  Bruno Haible  <bruno@clisp.org>
32782
32783         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32784
32785 2007-07-06  Bruno Haible  <bruno@clisp.org>
32786
32787         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32788         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32789         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32790         include <sys/time.h>.
32791         Reported by Eric Blake.
32792
32793 2007-07-06  Eric Blake  <ebb9@byu.net>
32794
32795         Fix testing canonicalize on cygwin.
32796         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32797         Revert patch from 2007-06-19.
32798         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32799         canonicalize module is also in use.
32800         * tests/test-canonicalize.c: New file.
32801         * tests/test-canonicalize.sh: Likewise.
32802         * modules/canonicalize-tests: Likewise.
32803
32804 2007-07-06  Jim Meyering  <jim@meyering.net>
32805
32806         * lib/getugroups.c (getugroups): Detect getgrent failure.
32807         Adjust comment to reflect reality: this function may return -1.
32808
32809 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32810
32811         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32812         the new TP address.
32813         (usage): Fix typo
32814         (gnulib_mk): New variable.
32815
32816 2007-07-05  Jim Meyering  <jim@meyering.net>
32817
32818         Don't let endgrent clobber errno, no matter how improbable.
32819         * lib/getugroups.c (getugroups): Save and restore errno around
32820         endgrent call.
32821
32822         Close the group DB even when failing with 2^31 or more members.
32823         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32824
32825 2007-07-04  Jim Meyering  <jim@meyering.net>
32826
32827         * lib/getugroups.h: New file.
32828         * lib/getugroups.c: Include "getugroups.h".
32829         Remove uses of "register" keyword.
32830         Move local variable, "cp", down into scope where used.
32831         Give "username" parameter the "const" attribute.
32832         * modules/getugroups (Files): Add lib/getugroups.h
32833
32834 2007-07-04  Karl Berry  <karl@gnu.org>
32835
32836         * MODULES.html.sh (func_all_modules): Complete rename of
32837         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32838
32839 2007-07-02  Bruno Haible  <bruno@clisp.org>
32840
32841         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32842         mode, when inttypes.h comes from gnulib.
32843         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32844
32845 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32846
32847         * NEWS: Mention lgpl module name change.
32848
32849         * modules/lgpl-2.1: Renamed from lgpl.
32850
32851         * NEWS: Mention gpl module name change.
32852
32853         * modules/gpl-3.0: New file, based on gpl-2.0.
32854
32855         * modules/gpl-2.0: Renamed from gpl.
32856
32857         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32858         doc/gpl-2.0.texi.
32859
32860 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32861
32862         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32863         #define __STDC_LIMIT_MACROS temporarily while including
32864         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32865         Problem reported by Joel E. Denny in
32866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32867
32868 2007-07-01  Bruno Haible  <bruno@clisp.org>
32869
32870         * lib/unistdio.h: New file.
32871         * lib/unistdio/u-asnprintf.h: New file.
32872         * lib/unistdio/u-asprintf.h: New file.
32873         * lib/unistdio/u-printf-args.c: New file.
32874         * lib/unistdio/u-printf-args.h: New file.
32875         * lib/unistdio/u-printf-parse.h: New file.
32876         * lib/unistdio/u-snprintf.h: New file.
32877         * lib/unistdio/u-sprintf.h: New file.
32878         * lib/unistdio/u-vasprintf.h: New file.
32879         * lib/unistdio/u-vsnprintf.h: New file.
32880         * lib/unistdio/u-vsprintf.h: New file.
32881         * lib/unistdio/ulc-asnprintf.c: New file.
32882         * lib/unistdio/ulc-asprintf.c: New file.
32883         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32884         * lib/unistdio/ulc-printf-parse.c: New file.
32885         * lib/unistdio/ulc-snprintf.c: New file.
32886         * lib/unistdio/ulc-sprintf.c: New file.
32887         * lib/unistdio/ulc-vasnprintf.c: New file.
32888         * lib/unistdio/ulc-vasprintf.c: New file.
32889         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32890         * lib/unistdio/ulc-vsnprintf.c: New file.
32891         * lib/unistdio/ulc-vsprintf.c: New file.
32892         * lib/unistdio/u8-asnprintf.c: New file.
32893         * lib/unistdio/u8-asprintf.c: New file.
32894         * lib/unistdio/u8-printf-parse.c: New file.
32895         * lib/unistdio/u8-snprintf.c: New file.
32896         * lib/unistdio/u8-sprintf.c: New file.
32897         * lib/unistdio/u8-vasnprintf.c: New file.
32898         * lib/unistdio/u8-vasprintf.c: New file.
32899         * lib/unistdio/u8-vsnprintf.c: New file.
32900         * lib/unistdio/u8-vsprintf.c: New file.
32901         * lib/unistdio/u8-u8-asnprintf.c: New file.
32902         * lib/unistdio/u8-u8-asprintf.c: New file.
32903         * lib/unistdio/u8-u8-snprintf.c: New file.
32904         * lib/unistdio/u8-u8-sprintf.c: New file.
32905         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32906         * lib/unistdio/u8-u8-vasprintf.c: New file.
32907         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32908         * lib/unistdio/u8-u8-vsprintf.c: New file.
32909         * lib/unistdio/u16-asnprintf.c: New file.
32910         * lib/unistdio/u16-asprintf.c: New file.
32911         * lib/unistdio/u16-printf-parse.c: New file.
32912         * lib/unistdio/u16-snprintf.c: New file.
32913         * lib/unistdio/u16-sprintf.c: New file.
32914         * lib/unistdio/u16-vasnprintf.c: New file.
32915         * lib/unistdio/u16-vasprintf.c: New file.
32916         * lib/unistdio/u16-vsnprintf.c: New file.
32917         * lib/unistdio/u16-vsprintf.c: New file.
32918         * lib/unistdio/u16-u16-asnprintf.c: New file.
32919         * lib/unistdio/u16-u16-asprintf.c: New file.
32920         * lib/unistdio/u16-u16-snprintf.c: New file.
32921         * lib/unistdio/u16-u16-sprintf.c: New file.
32922         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32923         * lib/unistdio/u16-u16-vasprintf.c: New file.
32924         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32925         * lib/unistdio/u16-u16-vsprintf.c: New file.
32926         * lib/unistdio/u32-asnprintf.c: New file.
32927         * lib/unistdio/u32-asprintf.c: New file.
32928         * lib/unistdio/u32-printf-parse.c: New file.
32929         * lib/unistdio/u32-snprintf.c: New file.
32930         * lib/unistdio/u32-sprintf.c: New file.
32931         * lib/unistdio/u32-vasnprintf.c: New file.
32932         * lib/unistdio/u32-vasprintf.c: New file.
32933         * lib/unistdio/u32-vsnprintf.c: New file.
32934         * lib/unistdio/u32-vsprintf.c: New file.
32935         * lib/unistdio/u32-u32-asnprintf.c: New file.
32936         * lib/unistdio/u32-u32-asprintf.c: New file.
32937         * lib/unistdio/u32-u32-snprintf.c: New file.
32938         * lib/unistdio/u32-u32-sprintf.c: New file.
32939         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32940         * lib/unistdio/u32-u32-vasprintf.c: New file.
32941         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32942         * lib/unistdio/u32-u32-vsprintf.c: New file.
32943         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32944         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32945         * tests/unistdio/test-ulc-printf1.h: New file.
32946         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32947         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32948         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32949         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32950         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32951         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32952         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32953         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32954         * tests/unistdio/test-u8-asnprintf1.c: New file.
32955         * tests/unistdio/test-u8-asnprintf1.h: New file.
32956         * tests/unistdio/test-u8-printf1.h: New file.
32957         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32958         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32959         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32960         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32961         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32962         * tests/unistdio/test-u8-vasprintf1.c: New file.
32963         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32964         * tests/unistdio/test-u8-vsprintf1.c: New file.
32965         * tests/unistdio/test-u16-asnprintf1.c: New file.
32966         * tests/unistdio/test-u16-asnprintf1.h: New file.
32967         * tests/unistdio/test-u16-printf1.h: New file.
32968         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32969         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32970         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32971         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32972         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32973         * tests/unistdio/test-u16-vasprintf1.c: New file.
32974         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32975         * tests/unistdio/test-u16-vsprintf1.c: New file.
32976         * tests/unistdio/test-u32-asnprintf1.c: New file.
32977         * tests/unistdio/test-u32-asnprintf1.h: New file.
32978         * tests/unistdio/test-u32-printf1.h: New file.
32979         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32980         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32981         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32982         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32983         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32984         * tests/unistdio/test-u32-vasprintf1.c: New file.
32985         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32986         * tests/unistdio/test-u32-vsprintf1.c: New file.
32987         * modules/unistdio/base: New file.
32988         * modules/unistdio/u-printf-args: New file.
32989         * modules/unistdio/ulc-asnprintf: New file.
32990         * modules/unistdio/ulc-asprintf: New file.
32991         * modules/unistdio/ulc-fprintf: New file.
32992         * modules/unistdio/ulc-printf-parse: New file.
32993         * modules/unistdio/ulc-snprintf: New file.
32994         * modules/unistdio/ulc-sprintf: New file.
32995         * modules/unistdio/ulc-vasnprintf: New file.
32996         * modules/unistdio/ulc-vasprintf: New file.
32997         * modules/unistdio/ulc-vfprintf: New file.
32998         * modules/unistdio/ulc-vsnprintf: New file.
32999         * modules/unistdio/ulc-vsprintf: New file.
33000         * modules/unistdio/u8-asnprintf: New file.
33001         * modules/unistdio/u8-asprintf: New file.
33002         * modules/unistdio/u8-printf-parse: New file.
33003         * modules/unistdio/u8-snprintf: New file.
33004         * modules/unistdio/u8-sprintf: New file.
33005         * modules/unistdio/u8-vasnprintf: New file.
33006         * modules/unistdio/u8-vasprintf: New file.
33007         * modules/unistdio/u8-vsnprintf: New file.
33008         * modules/unistdio/u8-vsprintf: New file.
33009         * modules/unistdio/u8-u8-asnprintf: New file.
33010         * modules/unistdio/u8-u8-asprintf: New file.
33011         * modules/unistdio/u8-u8-snprintf: New file.
33012         * modules/unistdio/u8-u8-sprintf: New file.
33013         * modules/unistdio/u8-u8-vasnprintf: New file.
33014         * modules/unistdio/u8-u8-vasprintf: New file.
33015         * modules/unistdio/u8-u8-vsnprintf: New file.
33016         * modules/unistdio/u8-u8-vsprintf: New file.
33017         * modules/unistdio/u16-asnprintf: New file.
33018         * modules/unistdio/u16-asprintf: New file.
33019         * modules/unistdio/u16-printf-parse: New file.
33020         * modules/unistdio/u16-snprintf: New file.
33021         * modules/unistdio/u16-sprintf: New file.
33022         * modules/unistdio/u16-vasnprintf: New file.
33023         * modules/unistdio/u16-vasprintf: New file.
33024         * modules/unistdio/u16-vsnprintf: New file.
33025         * modules/unistdio/u16-vsprintf: New file.
33026         * modules/unistdio/u16-u16-asnprintf: New file.
33027         * modules/unistdio/u16-u16-asprintf: New file.
33028         * modules/unistdio/u16-u16-snprintf: New file.
33029         * modules/unistdio/u16-u16-sprintf: New file.
33030         * modules/unistdio/u16-u16-vasnprintf: New file.
33031         * modules/unistdio/u16-u16-vasprintf: New file.
33032         * modules/unistdio/u16-u16-vsnprintf: New file.
33033         * modules/unistdio/u16-u16-vsprintf: New file.
33034         * modules/unistdio/u32-asnprintf: New file.
33035         * modules/unistdio/u32-asprintf: New file.
33036         * modules/unistdio/u32-printf-parse: New file.
33037         * modules/unistdio/u32-snprintf: New file.
33038         * modules/unistdio/u32-sprintf: New file.
33039         * modules/unistdio/u32-vasnprintf: New file.
33040         * modules/unistdio/u32-vasprintf: New file.
33041         * modules/unistdio/u32-vsnprintf: New file.
33042         * modules/unistdio/u32-vsprintf: New file.
33043         * modules/unistdio/u32-u32-asnprintf: New file.
33044         * modules/unistdio/u32-u32-asprintf: New file.
33045         * modules/unistdio/u32-u32-snprintf: New file.
33046         * modules/unistdio/u32-u32-sprintf: New file.
33047         * modules/unistdio/u32-u32-vasnprintf: New file.
33048         * modules/unistdio/u32-u32-vasprintf: New file.
33049         * modules/unistdio/u32-u32-vsnprintf: New file.
33050         * modules/unistdio/u32-u32-vsprintf: New file.
33051         * modules/unistdio/ulc-asnprintf-tests: New file.
33052         * modules/unistdio/ulc-vasnprintf-tests: New file.
33053         * modules/unistdio/ulc-vasprintf-tests: New file.
33054         * modules/unistdio/ulc-vsnprintf-tests: New file.
33055         * modules/unistdio/ulc-vsprintf-tests: New file.
33056         * modules/unistdio/u8-asnprintf-tests: New file.
33057         * modules/unistdio/u8-vasnprintf-tests: New file.
33058         * modules/unistdio/u8-vasprintf-tests: New file.
33059         * modules/unistdio/u8-vsnprintf-tests: New file.
33060         * modules/unistdio/u8-vsprintf-tests: New file.
33061         * modules/unistdio/u16-asnprintf-tests: New file.
33062         * modules/unistdio/u16-vasnprintf-tests: New file.
33063         * modules/unistdio/u16-vasprintf-tests: New file.
33064         * modules/unistdio/u16-vsnprintf-tests: New file.
33065         * modules/unistdio/u16-vsprintf-tests: New file.
33066         * modules/unistdio/u32-asnprintf-tests: New file.
33067         * modules/unistdio/u32-vasnprintf-tests: New file.
33068         * modules/unistdio/u32-vasprintf-tests: New file.
33069         * modules/unistdio/u32-vsnprintf-tests: New file.
33070         * modules/unistdio/u32-vsprintf-tests: New file.
33071         * MODULES.html.sh (Unicode string functions): Add the new modules.
33072
33073 2007-07-01  Bruno Haible  <bruno@clisp.org>
33074
33075         * lib/sprintf.c (sprintf): Limit the available length estimation,
33076         to avoid address wraparound.
33077         * lib/vsprintf.c (vsprintf): Likewise.
33078         * modules/sprintf-posix (Dependencies): Add stdint.
33079         * modules/vsprintf-posix (Dependencies): Likewise.
33080
33081 2007-07-01  Bruno Haible  <bruno@clisp.org>
33082
33083         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33084         Windows PATH as well. Conservative double-quoting. Comments.
33085
33086 2007-07-01  Bruno Haible  <bruno@clisp.org>
33087             Eric Blake  <ebb9@byu.net>
33088             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33089
33090         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33091         empty components in $PATH, denoting '.'.
33092
33093 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33094
33095         * gnulib-tool: Fix indentation.
33096         (func_create_megatestdir): Likewise.
33097         Report by Bruno Haible.
33098
33099 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33100
33101         Sync from Automake.
33102         * build-aux/gnupload: Fix shell portability issues with for loops.
33103         Report by Karl Berry.
33104
33105 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33106
33107         * build-aux/maint.mk (POURL): Use translationproject.org.
33108
33109 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33110             Bruno Haible  <bruno@clisp.org>
33111
33112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33113         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33114         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33115         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33116         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33117
33118 2007-06-27  Bruno Haible  <bruno@clisp.org>
33119
33120         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33121         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33122
33123 2007-06-26  Karl Berry  <karl@gnu.org>
33124
33125         * MODULES.html.sh: remove xreadlink-with-size.
33126
33127 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33128
33129         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33130         method that I hope also handles the double-include problem noted
33131         by Bruno Haible in
33132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33133
33134 2007-06-23  Bruno Haible  <bruno@clisp.org>
33135
33136         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33137         Don't let the 'mostlyclean' target fail if the last subdirectory could
33138         not be removed.
33139         Reported by Karl Berry.
33140
33141 2007-06-23  Bruno Haible  <bruno@clisp.org>
33142
33143         * gnulib-tool (echo): Add a speedier workaround for ksh.
33144         * tests/test-echo.sh: Likewise.
33145
33146 2007-06-23  Bruno Haible  <bruno@clisp.org>
33147
33148         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33149         * tests/test-echo.sh: Likewise.
33150
33151 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33152
33153         * gnulib-tool (IFS): Initialize early, so we don't set it to
33154         empty later.
33155         (self_abspathname): Rewrite algorithm to set it, reindent.
33156         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33157         (func_create_megatestdir): Merge some sed scripts.
33158
33159 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33160
33161         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33162         exposed by Sun Studio 11 cc on Solaris 8.
33163
33164 2007-06-22  Bruno Haible  <bruno@clisp.org>
33165
33166         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33167         backslashes.
33168         * tests/test-echo.sh: New file.
33169
33170 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33171
33172         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33173         simplify `sed_replace_build_aux' scripts, they are portable but
33174         echoing them with `echo' is not.
33175         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33176
33177 2007-06-21  Karl Berry  <karl@gnu.org>
33178
33179         * config/srclist.txt: guess we can't handle the licenses via
33180         srclist at the moment.
33181
33182 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33183
33184         * MODULES.html.sh: Add include_next.
33185         * modules/include_next: New file.
33186
33187 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33188
33189         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33190         INCLUDE_NEXT.
33191         (gl_CHECK_NEXT_HEADERS): New macro.
33192         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33193         the obsolescent gl_ABSOLUTE_HEADER.
33194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33195         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33196         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33197         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33198         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33199         * m4/math_h.m4 (gl_MATH_H): Likewise.
33200         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33201         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33202         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33203         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33204         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33205         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33206         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33208         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33210         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33211         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33212         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33213         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33214         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33215         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33216         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33217         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33218         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33219         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33220         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33221         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33222         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33223         * lib/float_.h: Likewise.
33224         * lib/inttypes_.h: Likewise.
33225         * lib/math_.h: Likewise.
33226         * lib/search_.h: Likewise.
33227         * lib/signal_.h: Likewise.
33228         * lib/stdint_.h: Likewise.
33229         * lib/stdio_.h: Likewise.
33230         * lib/stdlib_.h: Likewise.
33231         * lib/string_.h: Likewise.
33232         * lib/sys_stat_.h: Likewise.
33233         * lib/sys_time_.h: Likewise.
33234         * lib/time_.h: Likewise.
33235         * lib/unistd_.h: Likewise.
33236         * lib/wchar_.h: Likewise.
33237         * lib/wctype_.h: Likewise.
33238         * lib/dirent_.h: Likewise.
33239         * lib/iconv_.h: Likewise.
33240         * lib/locale_.h: Likewise.
33241         * lib/netinet_in_.h: Likewise.
33242         * lib/sys_select_.h: Likewise.
33243         * lib/sys_socket_.h: Likewise.
33244         * lib/sysexits_.h: Likewise.
33245         * modules/fcntl (Depends-on): Depend on include_next, not
33246         absolute_header.
33247         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33248         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33249         * modules/fchdir: Likewise.
33250         * modules/float: Likewise.
33251         * modules/iconv_open: Likewise.
33252         * modules/inttypes: Likewise.
33253         * modules/locale: Likewise.
33254         * modules/math: Likewise.
33255         * modules/netinet_in: Likewise.
33256         * modules/search: Likewise.
33257         * modules/signal: Likewise.
33258         * modules/stdint: Likewise.
33259         * modules/stdio: Likewise.
33260         * modules/stdlib: Likewise.
33261         * modules/string: Likewise.
33262         * modules/sys_select: Likewise.
33263         * modules/sys_socket: Likewise.
33264         * modules/sys_stat: Likewise.
33265         * modules/sys_time: Likewise.
33266         * modules/sysexits: Likewise.
33267         * modules/time: Likewise.
33268         * modules/unistd: Likewise.
33269         * modules/wchar: Likewise.
33270         * modules/wctype: Likewise.
33271         * modules/sys_stat: Change maintainer to "all".
33272         * modules/unistd: Likewise.
33273
33274 2007-06-20  Karl Berry  <karl@gnu.org>
33275
33276         * config/srclist.txt: track www changes in license files.
33277
33278 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33279
33280         * build-aux/bootstrap: Remove stray dot.
33281         Make sure build_aux settings are honored when linking
33282         gnulib_extra_files.
33283
33284 2007-06-19  Eric Blake  <ebb9@byu.net>
33285
33286         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33287         Allow compilation on cygwin.
33288
33289 2007-06-19  Jim Meyering  <jim@meyering.net>
33290
33291         xreadlink-with-size: Remove module.  No longer used.
33292         Ex-callers now use xreadlink or mreadlink-with-size.
33293         * modules/xreadlink-with-size: Remove module.
33294         * lib/xreadlink-with-size.c: Remove file.
33295         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33296         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33297         just before the function definition *is* accurate.
33298
33299         Eliminate one way canonicalize_filename_mode could exit.
33300         * lib/canonicalize.c (canonicalize_filename_mode):
33301         Use mreadlink_with_size, not xreadlink_with_size.
33302
33303 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33304
33305         Detect porting problems to FreeBSD/arm, which has time_t wider than
33306         long int.  Original problem reported for GNU diff by Xin Li in
33307         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33308         * modules/getdate (Depends-on): Add intprops, verify.
33309         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33310         is an integer type no wider than long int.
33311
33312 2007-06-18  Jim Meyering  <jim@meyering.net>
33313
33314         New module: mreadlink-with-size.
33315         * MODULES.html.sh: Add mreadlink-with-size.
33316         * modules/mreadlink-with-size: New module
33317         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33318         not xreadlink-with-size.
33319         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33320
33321 2007-06-16  Bruno Haible  <bruno@clisp.org>
33322
33323         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33324         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33325         Reported by Gary V. Vaughan <gary@gnu.org>.
33326
33327 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         Revamp lchown so that it lives in unistd.h where it belongs.
33330         * lib/lchown.h: Remove.
33331         * lib/dirchownmod.c: Don't include lib/lchown.h.
33332         * lib/fchownat.c: Likewise.
33333         * lib/openat.c: Likewise.
33334         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33335         does not follow symlinks.
33336         (EOPNOTSUPP): Define if not defined.
33337         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33338         is defined to 0.
33339         (lchown): New decl.
33340         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33341         Do not check for lchown decl.
33342         Set REPLACE_LCHOWN.
33343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33344         REPLACE_LCHOWN.
33345         * modules/chown: Make it clear it follows symlinks.
33346         * modules/lchown: Make it clear it doesn't follow symlinks.
33347         (Files): Remove lib/lchown.h
33348         (Depends-on): Add unistd.
33349         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33350         (Include): Include <unistd.h>, not "lchown.h".
33351         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33352         REPLACE_LCHOWN.
33353
33354 2007-06-15  Jim Meyering  <jim@meyering.net>
33355
33356         Change license (GPL to LGPL) of fsusage and dependents.
33357         * modules/fsusage (License): Change to LGPL.
33358         * modules/full-read (License): Likewise.
33359         * modules/full-write (License): Likewise.
33360         * modules/safe-read (License): Likewise.
33361         * modules/safe-write (License): Likewise.
33362
33363 2007-06-14  Ben Pfaff  <blp@gnu.org>
33364
33365         Missing part of allocsa -> malloca transition.
33366         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33367         gl_MALLOCA.
33368
33369 2007-06-12  Bruno Haible  <bruno@clisp.org>
33370
33371         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33372         to ia64, x86_64, i386.
33373         Reported by Eric Blake.
33374
33375 2007-06-12  Bruno Haible  <bruno@clisp.org>
33376
33377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33378         cross-compiling to x86_64.
33379
33380 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33381
33382         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33383         glitch reported by Ralf Wildenhues in
33384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33385
33386         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33387         Vin Shelton.
33388
33389 2007-06-11  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33392         replacement string.
33393         Reported by Eric Blake.
33394
33395 2007-06-10  Bruno Haible  <bruno@clisp.org>
33396
33397         Prepare vasnprintf code for use with Unicode strings.
33398         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33399         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33400         TYPE_U32_STRING.
33401         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33402         a_u32_string variants.
33403         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33404         * lib/printf-args.c: Don't include config.h and the specification
33405         header if PRINTF_FETCHARGS is already defined.
33406         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33407         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33408         TYPE_U16_STRING, TYPE_U32_STRING.
33409         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33410         u16_directive, u16_directives, u32_directive, u32_directives): New
33411         types.
33412         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33413         New declarations.
33414         * lib/printf-parse.c: Don't include config.h and the specification
33415         header if PRINTF_PARSE is already defined. Eliminate the set of
33416         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33417         them now. Include c-ctype.h.
33418         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33419         directive and CHAR_T_ONLY_ASCII.
33420         * lib/vasnprintf.c: Don't include config.h and the specification header
33421         if VASNPRINTF is already defined.
33422         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33423         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33424         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33425         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33426         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33427         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33428         code accordingly.
33429         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33430         pad_ourselves also in this case, with the 'c' and 's' directives, and
33431         with a different notion of "width".
33432         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33433
33434 2007-06-10  Bruno Haible  <bruno@clisp.org>
33435
33436         * modules/unistr/u32-mbsnlen: New file.
33437         * lib/unistr/u32-mbsnlen.c: New file.
33438
33439         * modules/unistr/u16-mbsnlen: New file.
33440         * lib/unistr/u16-mbsnlen.c: New file.
33441
33442         * modules/unistr/u8-mbsnlen: New file.
33443         * lib/unistr/u8-mbsnlen.c: New file.
33444
33445         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33446         declarations.
33447
33448 2007-06-10  Bruno Haible  <bruno@clisp.org>
33449
33450         * lib/string_.h (mbsnlen): New declaration.
33451         * lib/mbsnlen.c: New file.
33452         * m4/mbsnlen.m4: New file.
33453         * modules/mbsnlen: New file.
33454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33455         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33456         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33457
33458 2007-06-10  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33461
33462 2007-06-10  Bruno Haible  <bruno@clisp.org>
33463
33464         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33465         * lib/mbuiter.h: Likewise.
33466
33467 2007-06-10  Bruno Haible  <bruno@clisp.org>
33468
33469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33470         declaration.
33471
33472 2007-06-10  Karl Berry  <karl@gnu.org>
33473
33474         * config/srclist.txt: remove gettext entries, Bruno prefers
33475         to update individually.
33476
33477 2007-06-10  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33480         'maxlen'. Ensure only length + width bytes are allocated, not
33481         length + 1 + width.
33482
33483 2007-06-09  Bruno Haible  <bruno@clisp.org>
33484
33485         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33486         (CHAR_T): Remove macro.
33487         (VASNPRINTF): Update.
33488
33489 2007-06-09  Bruno Haible  <bruno@clisp.org>
33490
33491         * MODULES.html.sh (Unicode string functions): Add the new modules.
33492
33493         * modules/uniconv/u32-conv-to-enc: New file.
33494         * lib/uniconv/u32-conv-to-enc.c: New file.
33495         * modules/uniconv/u32-conv-to-enc-tests: New file.
33496         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33497
33498         * modules/uniconv/u16-conv-to-enc: New file.
33499         * lib/uniconv/u16-conv-to-enc.c: New file.
33500         * lib/uniconv/u-conv-to-enc.h: New file.
33501         * modules/uniconv/u16-conv-to-enc-tests: New file.
33502         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33503
33504         * modules/uniconv/u8-conv-to-enc: New file.
33505         * lib/uniconv/u8-conv-to-enc.c: New file.
33506         * modules/uniconv/u8-conv-to-enc-tests: New file.
33507         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33508
33509         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33510         u32_conv_to_encoding): New declarations.
33511
33512 2007-06-09  Bruno Haible  <bruno@clisp.org>
33513
33514         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33515
33516 2007-06-09  Bruno Haible  <bruno@clisp.org>
33517
33518         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33519         * modules/malloca: Renamed from modules/allocsa, updated.
33520         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33521         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33522         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33523         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33524         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33525         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33526         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33527         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33528         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33529         * modules/c-strcasestr (Depends-on): Update.
33530         * lib/c-strcasestr.c: Update.
33531         * modules/c-strstr (Depends-on): Update.
33532         * lib/c-strstr.c: Update.
33533         * modules/canonicalize-lgpl (Depends-on): Update.
33534         * lib/canonicalize-lgpl.c: Update.
33535         * modules/clean-temp (Depends-on): Update.
33536         * lib/clean-temp.c: Update.
33537         * modules/csharpcomp (Depends-on): Update.
33538         * lib/csharpcomp.c: Update.
33539         * modules/csharpexec (Depends-on): Update.
33540         * lib/csharpexec.c: Update.
33541         * modules/javacomp (Depends-on): Update.
33542         * lib/javacomp.c: Update.
33543         * modules/javaexec (Depends-on): Update.
33544         * lib/javaexec.c: Update.
33545         * modules/mbscasestr (Depends-on): Update.
33546         * lib/mbscasestr.c: Update.
33547         * modules/mbsstr (Depends-on): Update.
33548         * lib/mbsstr.c: Update.
33549         * modules/setenv (Depends-on): Update.
33550         * lib/setenv.c: Update.
33551         * modules/strcasestr (Depends-on): Update.
33552         * lib/strcasestr.c: Update.
33553         * modules/striconveha (Depends-on): Update.
33554         * lib/striconveha.c: Update.
33555         * modules/relocatable-prog-wrapper (Files): Update.
33556         * lib/relocwrapper.c: Update.
33557         * build-aux/install-reloc: Update.
33558         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33559
33560 2007-06-08  Bruno Haible  <bruno@clisp.org>
33561
33562         Port to uClibc.
33563         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33564         * lib/fpurge.c (fpurge): Likewise.
33565         * lib/freading.c (freading): Likewise.
33566         * lib/fseeko.c (rpl_fseeko): Likewise.
33567         * lib/fseterr.c (fseterr): Likewise.
33568         * lib/fwriting.c (fwriting): Likewise.
33569         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33570
33571 2007-06-08  Bruno Haible  <bruno@clisp.org>
33572
33573         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33574         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33575         * modules/gettext (Files): Add m4/intlmacosx.m4.
33576
33577 2007-06-07  Bruno Haible  <bruno@clisp.org>
33578
33579         * modules/localename-tests: New file.
33580         * tests/test-localename.c: New file.
33581
33582         New module 'localename'.
33583         * lib/localename.h: New file.
33584         * lib/localename.c: New file, from GNU gettext.
33585         * m4/localename.m4: New file.
33586         * modules/localename: New file.
33587
33588 2007-06-07  Bruno Haible  <bruno@clisp.org>
33589
33590         Work around the lack of <wchar.h> on some builds of uClibc.
33591         * doc/headers/wchar.texi: Update.
33592         * lib/wchar_.h: Include <wchar.h> only if it exists.
33593         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33594         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33595         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33596         doesn't exist.
33597         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33598         * modules/mbfile (Depends-on): Add wchar.
33599         * modules/mbiter (Depends-on): Likewise.
33600         * modules/mbuiter (Depends-on): Likewise.
33601         Reported by Simon Josefsson.
33602
33603 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33604
33605         Work around problem reported by Steven M. Schweda in
33606         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33607         Tru64 5.1B with the Compaq compiler environment installed declares
33608         an 'isblank' function but does not define it in the C library.
33609         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33610         * lib/regex_internal.h (isblank): Likewise.
33611         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33612         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33613
33614 2007-06-05  Bruno Haible  <bruno@clisp.org>
33615
33616         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33617         ia64.
33618         * modules/printf-safe: New file.
33619         * modules/fprintf-posix (Depends-on): Add printf-safe.
33620         * modules/printf-posix (Depends-on): Likewise.
33621         * modules/snprintf-posix (Depends-on): Likewise.
33622         * modules/sprintf-posix (Depends-on): Likewise.
33623         * modules/vasnprintf-posix (Depends-on): Likewise.
33624         * modules/vasprintf-posix (Depends-on): Likewise.
33625         * modules/vfprintf-posix (Depends-on): Likewise.
33626         * modules/vprintf-posix (Depends-on): Likewise.
33627         * modules/vsnprintf-posix (Depends-on): Likewise.
33628         * modules/vsprintf-posix (Depends-on): Likewise.
33629         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33630         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33631         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33632         "no" on i386, x86_64, ia64.
33633         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33634         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33635         on i386, x86_64, ia64.
33636         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33637         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33638         on i386, x86_64, ia64.
33639         * tests/test-vasnprintf-posix.c: Include float.h.
33640         (LDBL80_WORDS): New macro.
33641         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33642         on i386, x86_64, ia64.
33643         * tests/test-vasprintf-posix.c: Include float.h.
33644         (LDBL80_WORDS): New macro.
33645         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33646         on i386, x86_64, ia64.
33647         * tests/test-snprintf-posix.c: Include float.h.
33648         * tests/test-sprintf-posix.c: Likewise.
33649         * tests/test-vsnprintf-posix.c: Likewise.
33650         * tests/test-vsprintf-posix.c: Likewise.
33651
33652 2007-06-05  Bruno Haible  <bruno@clisp.org>
33653
33654         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33655         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33656         non-IEEE numbers on i386, x86_64, ia64.
33657         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33658         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33659         * tests/test-isnanl.h: Include float.h.
33660         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33661
33662 2007-06-05  Bruno Haible  <bruno@clisp.org>
33663
33664         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33665         also the %a / %A. Handle the %a / %A code before this extra handling.
33666
33667 2007-06-05  Bruno Haible  <bruno@clisp.org>
33668
33669         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33670         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33671
33672 2007-06-05  Bruno Haible  <bruno@clisp.org>
33673
33674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33675         typo in variable name.
33676
33677 2007-06-05  Eric Blake  <ebb9@byu.net>
33678
33679         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33680         Reported by Simon Josefsson.
33681
33682 2007-06-04  Bruno Haible  <bruno@clisp.org>
33683
33684         Avoid test failures on some PowerPC platforms.
33685         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33686         Define differently for PowerPC.
33687         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33688         Reported by Gary V. Vaughan <gary@gnu.org>.
33689
33690 2007-06-02  Bruno Haible  <bruno@clisp.org>
33691
33692         Fix test-stdint failure on FreeBSD/ia64.
33693         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33694         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33695         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33696         * doc/headers/stdint.texi: Update.
33697
33698 2007-06-01  Bruno Haible  <bruno@clisp.org>
33699
33700         * tests/test-binary-io.c (main): Pass a third argument to open().
33701         Reported by Gary V. Vaughan <gary@gnu.org>.
33702
33703 2007-06-01  Bruno Haible  <bruno@clisp.org>
33704
33705         * doc/functions/frexpl.texi: Update for mingw.
33706
33707 2007-06-01  Bruno Haible  <bruno@clisp.org>
33708
33709         * tests/test-lseek.c (main): Disable test of errno for invalid third
33710         argument.
33711         * doc/functions/lseek.texi: Update.
33712         Reported by Gary V. Vaughan <gary@gnu.org>.
33713
33714 2007-05-28  Bruno Haible  <bruno@clisp.org>
33715
33716         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33717
33718 2007-05-31  Eric Blake  <ebb9@byu.net>
33719
33720         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33721         cross compiling.
33722
33723 2007-05-30  Eric Blake  <ebb9@byu.net>
33724         and Bruno Haible  <bruno@clisp.org>
33725
33726         Work around mingw test failures exposed by m4-1.4.9b.
33727         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33728         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33729         moment.
33730
33731 2007-05-30  Bruno Haible  <bruno@clisp.org>
33732
33733         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33734         assuming that they are closed. Needed on HP-UX 11.
33735
33736 2007-05-29  Bruno Haible  <bruno@clisp.org>
33737
33738         Fix a problem with #include_next.
33739         * lib/dirent_.h: Split the double-inclusion guard.
33740         * lib/fcntl_.h: Likewise.
33741         * lib/float_.h: Likewise.
33742         * lib/iconv_.h: Likewise.
33743         * lib/inttypes_.h: Likewise.
33744         * lib/locale_.h: Likewise.
33745         * lib/math_.h: Likewise.
33746         * lib/netinet_in_.h: Likewise.
33747         * lib/search_.h: Likewise.
33748         * lib/signal_.h: Likewise.
33749         * lib/stdint_.h: Likewise.
33750         * lib/stdio_.h: Likewise.
33751         * lib/stdlib_.h: Likewise.
33752         * lib/string_.h: Likewise.
33753         * lib/sys_select_.h: Likewise.
33754         * lib/sys_socket_.h: Likewise.
33755         * lib/sys_stat_.h: Likewise.
33756         * lib/sys_time_.h: Likewise.
33757         * lib/sysexits_.h: Likewise.
33758         * lib/time_.h: Likewise.
33759         * lib/unistd_.h: Likewise.
33760         * lib/wchar_.h: Likewise.
33761         * lib/wctype_.h: Likewise.
33762
33763 2007-05-29  Bruno Haible  <bruno@clisp.org>
33764
33765         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33766         for the moment.
33767
33768 2007-05-29  Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33771         invocation.
33772         Reported by Eric Blake.
33773
33774 2007-05-29  Bruno Haible  <bruno@clisp.org>
33775
33776         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33777         compiling case.
33778
33779 2007-05-29  Eric Blake  <ebb9@byu.net>
33780             Bruno Haible  <bruno@clisp.org>
33781
33782         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33783         cross compiles.
33784
33785 2007-05-28  Eric Blake  <ebb9@byu.net>
33786
33787         * modules/closein-tests (test_closein_LDADD): Support test on
33788         cygwin with libtool.
33789
33790 2007-05-28  Bruno Haible  <bruno@clisp.org>
33791
33792         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33793         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33794         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33795         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33796         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33797         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33798         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33799         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33800         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33801
33802 2007-05-28  Eric Blake  <ebb9@byu.net>
33803
33804         Unconditionally include <config.h> in unit tests.
33805         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33806         * tests/test-allocsa.c, tests/test-arcfour.c,
33807         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33808         tests/test-array_list.c, tests/test-array_oset.c,
33809         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33810         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33811         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33812         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33813         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33814         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33815         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33816         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33817         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33818         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33819         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33820         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33821         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33822         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33823         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33824         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33825         test-md5.c, test-memmem.c, test-printf-posix.c,
33826         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33827         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33828         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33829         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33830         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33831         test-vasnprintf-posix2.c, test-vasnprintf.c,
33832         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33833         test-vfprintf-posix.c, test-vprintf-posix.c,
33834         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33835         test-xvasprintf.c: Likewise.
33836
33837 2007-05-28  Bruno Haible  <bruno@clisp.org>
33838
33839         * gnulib-tool (func_import): Remember the --with-tests command-line
33840         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33841         Reported by Eric Blake.
33842
33843 2007-05-28  Bruno Haible  <bruno@clisp.org>
33844
33845         * modules/ftell-tests: New file.
33846         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33847         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33848
33849         * lib/ftell.c: New file.
33850         * modules/ftell: New file.
33851         * m4/ftell.m4: New file.
33852         * doc/functions/ftell.texi: Update.
33853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33854         REPLACE_FTELL.
33855         * lib/stdio_.h (rpl_ftell): New declaration.
33856         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33857         REPLACE_FTELL.
33858
33859 2007-05-28  Eric Blake  <ebb9@byu.net>
33860
33861         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33862
33863 2007-05-28  Bruno Haible  <bruno@clisp.org>
33864
33865         * modules/fseek-tests: New file.
33866         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33867         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33868
33869         * lib/fseek.c: New file.
33870         * modules/fseek: New file.
33871         * m4/fseek.m4: New file.
33872         * doc/functions/fseek.texi: Update.
33873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33874         REPLACE_FSEEK.
33875         * lib/stdio_.h (rpl_fseek): New declaration.
33876         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33877         REPLACE_FSEEK.
33878
33879 2007-05-28  Bruno Haible  <bruno@clisp.org>
33880
33881         * lib/stdio_.h (fflush): More comments.
33882
33883 2007-05-28  Bruno Haible  <bruno@clisp.org>
33884
33885         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33886         runtime test.
33887
33888 2007-05-28  Eric Blake  <ebb9@byu.net>
33889
33890         Improve lseek module.
33891         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33892         * lib/unistd_.h (lseek): Scale back link warning message.
33893         * tests/test-lseek.c: Beef up test.
33894         * tests/test-lseek.sh: Exercise more facets of lseek.
33895         Reported by Bruno Haible.
33896
33897 2007-05-28  Bruno Haible  <bruno@clisp.org>
33898
33899         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33900         to define.
33901
33902 2007-05-27  Bruno Haible  <bruno@clisp.org>
33903
33904         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33905
33906 2007-05-27  Bruno Haible  <bruno@clisp.org>
33907
33908         * modules/openmp: New file.
33909         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33910         Noah Misch.
33911
33912 2007-05-26  Bruno Haible  <bruno@clisp.org>
33913
33914         * modules/chdir-long (Depends-on): Add fchdir.
33915         * modules/chdir-safer (Depends-on): Likewise.
33916         * modules/fts (Depends-on): Likewise.
33917         * modules/fts-lgpl (Depends-on): Likewise.
33918         * modules/openat (Depends-on): Likewise.
33919         * modules/savewd (Depends-on): Likewise.
33920
33921 2007-05-24  Eric Blake  <ebb9@byu.net>
33922
33923         Fix lseek on mingw.
33924         * modules/lseek: New module.
33925         * m4/lseek.m4: New file.
33926         * lib/lseek.c: New file.
33927         * modules/lseek-tests: New file.
33928         * tests/test-lseek.c: New file.
33929         * tests/test-lseek.sh: New file.
33930         * MODULES.html.sh: Document lseek module.
33931         * modules/fflush (Depends-on): Add lseek, fseeko.
33932         * modules/fseeko (Depends-on): Likewise.
33933         * modules/ftello (Depends-on): Likewise.
33934         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33935         broken.
33936         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33937         broken.
33938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33939         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33940         * lib/ftello.c (rpl_ftello): Likewise.
33941         * tests/test-fseeko.c (main): Test this.
33942         * tests/test-fseeko.sh: Likewise.
33943         * tests/test-ftello.c (main): Likewise.
33944         * tests/test-ftello.sh: Likewise.
33945         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33946         implies replacing fseek.
33947         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33948         HAVE_FTELLO.
33949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33950         * modules/unistd (Makefile.am): Likewise.
33951         * lib/unistd_.h (lseek): Declare a replacement.
33952         * doc/functions/lseek.texi (lseek): Document this fix.
33953         * doc/functions/fseek.texi (fseek): Likewise.
33954         * doc/functions/ftell.texi (ftell): Likewise.
33955
33956 2007-05-24  Bruno Haible  <bruno@clisp.org>
33957
33958         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33959         in the printed representation of a NaN.
33960         * tests/test-vasprintf-posix.c (test_function): Likewise.
33961         * tests/test-snprintf-posix.h (test_function): Likewise.
33962         * tests/test-sprintf-posix.h (test_function): Likewise.
33963         Reported by Eric Blake.
33964
33965 2007-05-23  Eric Blake  <ebb9@byu.net>
33966
33967         Fix fseeko/ftello on cygwin 1.5.24.
33968         * doc/functions/fseeko.texi (fseeko): Document the fix.
33969         * doc/functions/ftello.texi (ftello): Document the fix.
33970         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33971         * doc/functions/stdout.text (stdout): New file.
33972         * doc/functions/stderr.text (stderr): New file.
33973         * doc/gnulib.texi (Function Substitutes): Use new files.
33974         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33975         prior to 1.7.0.
33976         * tests/test-ftello.c (main): Likewise for ftello.
33977         * tests/test-fseeko.sh: New file.
33978         * tests/test-ftello.sh: New file.
33979         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33980         with seekable stdin.
33981         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33982         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33983         (gl_REPLACE_FSEEKO): New macro.
33984         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33985         * modules/fseeko (Files): Distribute fseeko.c.
33986         * modules/ftello (Files): Distribute ftello.c.
33987         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33988         mode.
33989         * lib/ftello.c (rpl_ftello): New file.
33990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33991         fseeko, ftello.
33992         (gl_STDIN_LARGE_OFFSET): New macro.
33993         * modules/stdio (Makefile.am): Perform the replacement.
33994         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33995
33996 2007-05-23  Bruno Haible  <bruno@clisp.org>
33997
33998         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33999         GNULIB_POSIXCHECK is defined.
34000
34001 2007-05-21  Bruno Haible  <bruno@clisp.org>
34002
34003         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34004         Check also the output for NaN arguments. When cross-compiling, guess
34005         no on IRIX.
34006         * lib/vasnprintf.c: Update comments.
34007         * tests/test-vasnprintf-posix.c (strisnan): New function.
34008         (test_function): Use it.
34009         * tests/test-vasprintf-posix.c (strisnan): New function.
34010         (test_function): Use it.
34011         * tests/test-snprintf-posix.h (strisnan): New function.
34012         (test_function): Use it.
34013         * tests/test-sprintf-posix.h (strisnan): New function.
34014         (test_function): Use it.
34015         Reported by Eric Blake.
34016
34017 2007-05-20  Bruno Haible  <bruno@clisp.org>
34018
34019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34020         numbers that fails on BeOS.
34021         * doc/functions/frexpl.texi: Update.
34022
34023 2007-05-20  Jim Meyering  <jim@meyering.net>
34024
34025         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34026         forced upon us by glibc-2.6.
34027
34028 2007-05-20  Bruno Haible  <bruno@clisp.org>
34029
34030         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34031         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34032         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34033         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34034         NEED_PRINTF_INFINITE.
34035         (is_infinitel): New function.
34036         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34038         gl_PREREQ_VASNPRINTF_INFINITE.
34039         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34040         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34041         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34042         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34043         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34044         gl_PREREQ_VASNPRINTF_INFINITE.
34045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34046         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34052         * doc/functions/fprintf.texi: Update.
34053         * doc/functions/printf.texi: Update.
34054         * doc/functions/snprintf.texi: Update.
34055         * doc/functions/sprintf.texi: Update.
34056         * doc/functions/vfprintf.texi: Update.
34057         * doc/functions/vprintf.texi: Update.
34058         * doc/functions/vsnprintf.texi: Update.
34059         * doc/functions/vsprintf.texi: Update.
34060
34061 2007-05-20  Bruno Haible  <bruno@clisp.org>
34062
34063         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34064         was not found in libc.
34065         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34066
34067 2007-05-20  Bruno Haible  <bruno@clisp.org>
34068
34069         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34070         printed as "-nan" instead of "nan".
34071         * tests/test-vasprintf-posix.c (test_function): Likewise.
34072         * tests/test-snprintf-posix.h (test_function): Likewise.
34073         * tests/test-sprintf-posix.h (test_function): Likewise.
34074         Needed for HP-UX 11.
34075
34076 2007-05-20  Jim Meyering  <jim@meyering.net>
34077
34078         Fix buggy test for the fchownat-deref bug.
34079         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34080         symlink required for the run-test.  Without it, this test would
34081         always declare that fchownat doesn't work, and client code would
34082         unnecessarily use the replacement function with fixed libc.
34083         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34084         Reported by Greg Schafer.
34085
34086 2007-05-19  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34089         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34090         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34091         Needed for IRIX 6.5 and Solaris 2.5.1.
34092
34093 2007-05-19  Bruno Haible  <bruno@clisp.org>
34094
34095         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34096         (test_function): Skip tests involving -0.0 on platforms where
34097         -0.0 = 0.0.
34098         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34099         (test_function): Skip tests involving -0.0 on platforms where
34100         -0.0 = 0.0.
34101         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34102         (test_function): Skip tests involving -0.0 on platforms where
34103         -0.0 = 0.0.
34104         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34105         (test_function): Skip tests involving -0.0 on platforms where
34106         -0.0 = 0.0.
34107         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34108         tests.
34109         * tests/test-printf-posix.h (test_function): Likewise.
34110         * tests/test-printf-posix.output: Remove all -0.0 related results.
34111         Needed for IRIX 6.5.
34112
34113 2007-05-19  Bruno Haible  <bruno@clisp.org>
34114
34115         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34116         printed as "nan0x7fffffff" instead of "nan".
34117         * tests/test-vasprintf-posix.c (test_function): Likewise.
34118         * tests/test-snprintf-posix.h (test_function): Likewise.
34119         * tests/test-sprintf-posix.h (test_function): Likewise.
34120         * tests/test-fprintf-posix.h (NaN): Remove macro.
34121         (test_function): Remove all NaN related tests.
34122         * tests/test-printf-posix.h (NaN): Remove macro.
34123         (test_function): Remove all NaN related tests.
34124         * tests/test-printf-posix.output: Remove all NaN related results.
34125         Needed for IRIX 6.5.
34126
34127 2007-05-19  Bruno Haible  <bruno@clisp.org>
34128
34129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34131
34132 2007-05-19  Bruno Haible  <bruno@clisp.org>
34133
34134         * lib/float_.h: New file.
34135         * m4/float_h.m4: New file.
34136         * modules/float: New file.
34137         * modules/isnanl (Dependencies): Add float.
34138         * modules/isnanl-nolibm (Dependencies): Likewise.
34139         * modules/mathl (Dependencies): Likewise.
34140         * modules/printf-frexpl (Dependencies): Likewise.
34141         * modules/signbit (Dependencies): Likewise.
34142         * modules/vasnprintf (Dependencies): Likewise.
34143         * doc/headers/float.texi: Update.
34144
34145 2007-05-19  Jim Meyering  <jim@meyering.net>
34146
34147         * lib/utimens.c (gl_futimens): Rename from futimens,
34148         now that glibc-2.6 declares futimens.
34149         * lib/utimens.h: Likewise.
34150
34151 2007-05-19  Bruno Haible  <bruno@clisp.org>
34152
34153         Avoid test failures on mingw.
34154         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34155         * tests/test-printf-posix.sh: Likewise.
34156         * tests/test-vfprintf-posix.sh: Likewise.
34157         * tests/test-vprintf-posix.sh: Likewise.
34158
34159 2007-05-19  Bruno Haible  <bruno@clisp.org>
34160
34161         Fix *printf result for NaN, Inf, -0.0 on mingw.
34162         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34163         * lib/vasnprintf.c: Include math.h and isnan.h.
34164         (is_infinite_or_zero): New function.
34165         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34166         values in the %f, %F, %e, %E, %g, %G directives.
34167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34169         gl_PRINTF_INFINITE and test its result. Invoke
34170         gl_PREREQ_VASNPRINTF_INFINITE.
34171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34178         * doc/functions/fprintf.texi: Update.
34179         * doc/functions/printf.texi: Update.
34180         * doc/functions/snprintf.texi: Update.
34181         * doc/functions/sprintf.texi: Update.
34182         * doc/functions/vfprintf.texi: Update.
34183         * doc/functions/vprintf.texi: Update.
34184         * doc/functions/vsnprintf.texi: Update.
34185         * doc/functions/vsprintf.texi: Update.
34186
34187 2007-05-19  Bruno Haible  <bruno@clisp.org>
34188
34189         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34190         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34191         Instead of multiplying with 10^k, set extra_zeroes to k.
34192         (scale10_round_long_double): Remove function.
34193
34194 2007-05-18  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34197         introduced on 2007-05-06.
34198
34199 2007-05-18  Bruno Haible  <bruno@clisp.org>
34200
34201         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34202         %g directives.
34203         * tests/test-vasprintf-posix.c (test_function): Likewise.
34204         * tests/test-snprintf-posix.h (test_function): Likewise.
34205         * tests/test-sprintf-posix.h (test_function): Likewise.
34206
34207 2007-05-18  Bruno Haible  <bruno@clisp.org>
34208
34209         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34210         (strmatch): New function.
34211         (test_function): Test the %f directive on numbers of various exponents.
34212         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34213         (strmatch): New function.
34214         (test_function): Test the %f directive on numbers of various exponents.
34215         * tests/test-snprintf-posix.h (strmatch): New function.
34216         (test_function): Test the %f directive on numbers of various exponents.
34217         * tests/test-sprintf-posix.h (strmatch): New function.
34218         (test_function): Test the %f directive on numbers of various exponents.
34219         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34220         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34221         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34222         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34223
34224 2007-05-18  Bruno Haible  <bruno@clisp.org>
34225
34226         Add support for 'long double' number output.
34227         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34228         * lib/vasnprintf.c: Include math.h and float+.h.
34229         (mp_limb_t): New type.
34230         (GMP_LIMB_BITS): New macro.
34231         (mp_twolimb_t): New type.
34232         (GMP_TWOLIMB_BITS): New macro.
34233         (mpn_t): New type.
34234         (multiply, divide, convert_to_decimal, decode_long_double,
34235         scale10_round_long_double, scale10_round_decimal_long_double,
34236         floorlog10l): New functions.
34237         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34238         for the %f, %F, %e, %E, %g, %G directives.
34239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34241         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34242         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34247         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34248         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34249         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34250         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34251         * modules/snprintf-posix (Depends-on): Likewise.
34252         * modules/sprintf-posix (Depends-on): Likewise.
34253         * modules/vasnprintf-posix (Depends-on): Likewise.
34254         * modules/vasprintf-posix (Depends-on): Likewise.
34255         * modules/vfprintf-posix (Depends-on): Likewise.
34256         * modules/vsnprintf-posix (Depends-on): Likewise.
34257         * modules/vsprintf-posix (Depends-on): Likewise.
34258         * modules/vasnprintf (Files): Add lib/float+.h.
34259         * doc/functions/fprintf.texi: Update.
34260         * doc/functions/printf.texi: Update.
34261         * doc/functions/snprintf.texi: Update.
34262         * doc/functions/sprintf.texi: Update.
34263         * doc/functions/vfprintf.texi: Update.
34264         * doc/functions/vprintf.texi: Update.
34265         * doc/functions/vsnprintf.texi: Update.
34266         * doc/functions/vsprintf.texi: Update.
34267
34268 2007-05-18  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34271
34272 2007-05-18  Bruno Haible  <bruno@clisp.org>
34273
34274         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34275         for printing 64-bit integers. Needed for mingw.
34276
34277 2007-05-18  Bruno Haible  <bruno@clisp.org>
34278
34279         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34280         gl_FUNC_FREXPL_WORKS.
34281         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34282
34283 2007-05-18  Bruno Haible  <bruno@clisp.org>
34284
34285         * modules/frexpl-nolibm-tests: New file.
34286
34287         * modules/frexpl-nolibm: New file.
34288         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34289
34290 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34291
34292         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34293         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34294         GCC 4.2, which otherwise issues a lot of warnings.
34295         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34296         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34297         Likewise.
34298         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34299         * modules/iconv_open (iconv.h): Likewise.
34300         * modules/locale (locale.h): Likewise.
34301         * modules/netinet_in (netinet/in.h): Likewise.
34302         * modules/sys_select (sys_select.h): Likewise.
34303         * modules/sys_socket (sys/socket.h): Likewise.
34304         * modules/sys_stat (sys/stat.h): Likewise.
34305         * modules/sysexits (sysexits.h): Likewise.
34306         * modules/unistd (unistd.h): Likewise.
34307
34308 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34309
34310         * modules/closein-tests (Makefile.am): Distribute
34311         `test-closein.sh'.
34312
34313 2007-05-17  Bruno Haible  <bruno@clisp.org>
34314
34315         * tests/test-printf-posix.output: Renamed from
34316         tests/test-fprintf-posix.out.
34317         * modules/fprintf-posix-tests: Update.
34318         * modules/printf-posix-tests: Update.
34319         * modules/vfprintf-posix-tests: Update.
34320         * modules/vprintf-posix-tests: Update.
34321         * tests/test-fprintf-posix.sh: Update.
34322         * tests/test-printf-posix.sh: Update.
34323         * tests/test-vfprintf-posix.sh: Update.
34324         * tests/test-vprintf-posix.sh: Update.
34325         Reported by Ralf Wildenhues.
34326
34327 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34328
34329         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34330         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34331         GCC 4.2, which otherwise issues a lot of warnings.
34332         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34333         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34334         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34335         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34336         it should no longer be needed.
34337         * lib/string_.h: Likewise.
34338         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34339         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34340         * modules/inttypes (inttypes.h): Likewise.
34341         * modules/math (math.h): Likewise.
34342         * modules/search (search.h): Likewise.
34343         * modules/signal (signal.h): Likewise.
34344         * modules/stdint (stdint.h): Likewise.
34345         * modules/stdio (stdio.h): Likewise.
34346         * modules/stdlib (stdlib.h): Likewise.
34347         * modules/string (string.h): Likewise.
34348         * modules/sys_time (sys/time.h): Likewise.
34349         * modules/time (time.h): Likewise.
34350         * modules/wchar (wchar.h): Likewise.
34351         * modules/wctype (wtype.h): Likewise.
34352
34353 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34354
34355         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34356
34357 2007-05-13  Bruno Haible  <bruno@clisp.org>
34358
34359         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34360         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34361         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34362         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34363         (gl_PREREQ_STRTOK_R): Don't require it here.
34364
34365 2007-05-13  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34368         when used in C++ mode.
34369
34370 2007-05-12  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/linebuffer.h: Tweak doc.
34373         * lib/linebuffer.c: Likewise.
34374
34375 2007-05-12  James Youngman  <jay@gnu.org>
34376
34377         * lib/linebuffer.c (readlinebuffer_delim): New function,
34378         like readlinebuffer, but use a caller-specified delimiter.
34379         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34380         as the delimiter.
34381         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34382
34383 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34384
34385         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34386         * modules/openat (Files): Remove openat-die.c.
34387         (Depends-on): Add openat-die.
34388         * modules/openat-die: New module.
34389
34390 2007-05-06  Bruno Haible  <bruno@clisp.org>
34391
34392         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34393         Update with info about Cygwin.
34394         * doc/functions/fprintf.texi: Update.
34395         * doc/functions/printf.texi: Update.
34396         * doc/functions/snprintf.texi: Update.
34397         * doc/functions/sprintf.texi: Update.
34398         * doc/functions/vfprintf.texi: Update.
34399         * doc/functions/vprintf.texi: Update.
34400         * doc/functions/vsnprintf.texi: Update.
34401         * doc/functions/vsprintf.texi: Update.
34402         Reported by Eric Blake.
34403
34404 2007-05-06  Bruno Haible  <bruno@clisp.org>
34405
34406         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34407         padding ourselves for the floating-point directives.
34408         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34410         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34411         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34412         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34415         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34416         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34417         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34418         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34419         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34420         * tests/test-snprintf-posix.h (test_function): Also check the width
34421         and some flags in the %f directive.
34422         * tests/test-sprintf-posix.h (test_function): Likewise.
34423         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34424         * tests/test-vasprintf-posix.c (test_function): Likewise.
34425         * doc/functions/fprintf.texi: Update.
34426         * doc/functions/printf.texi: Update.
34427         * doc/functions/snprintf.texi: Update.
34428         * doc/functions/sprintf.texi: Update.
34429         * doc/functions/vfprintf.texi: Update.
34430         * doc/functions/vprintf.texi: Update.
34431         * doc/functions/vsnprintf.texi: Update.
34432         * doc/functions/vsprintf.texi: Update.
34433
34434 2007-05-06  Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34437         pass the ' flag character to sprintf or snprintf.
34438         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34439         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34441         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34442         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34450         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34451         flag.
34452         * tests/test-sprintf-posix.h (test_function): Likewise.
34453         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34454         * tests/test-vasprintf-posix.c (test_function): Likewise.
34455         * doc/functions/fprintf.texi: Update.
34456         * doc/functions/printf.texi: Update.
34457         * doc/functions/snprintf.texi: Update.
34458         * doc/functions/sprintf.texi: Update.
34459         * doc/functions/vfprintf.texi: Update.
34460         * doc/functions/vprintf.texi: Update.
34461         * doc/functions/vsnprintf.texi: Update.
34462         * doc/functions/vsprintf.texi: Update.
34463
34464 2007-05-01  Bruno Haible  <bruno@clisp.org>
34465
34466         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34467
34468 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34469
34470         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34471         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34472
34473 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34474
34475         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34476         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34478
34479 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34480
34481         * lib/argp-help.c (struct hol_entry): New member `ord'.
34482         (HOL_ENTRY_PTRCMP): Use ord for comparison
34483         (hol_sort): Initialize ord.
34484
34485 2007-05-01  Bruno Haible  <bruno@clisp.org>
34486
34487         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34488         Reported by Eric Blake.
34489         * doc/gnulib.texi (Function Substitutes): Update.
34490
34491 2007-05-01  Bruno Haible  <bruno@clisp.org>
34492
34493         * doc/functions.texi: Remove file, now redundant through
34494         doc/functions/*.texi.
34495
34496 2007-05-01  Bruno Haible  <bruno@clisp.org>
34497
34498         * modules/argp (Depends-on): Add sleep.
34499
34500 2007-05-01  Bruno Haible  <bruno@clisp.org>
34501
34502         * modules/sleep-tests: New file.
34503         * tests/test-sleep.c: New file.
34504
34505         * modules/sleep: New file.
34506         * lib/sleep.c: New file.
34507         * m4/sleep.m4: New file.
34508         * lib/unistd_.h (sleep): New declaration.
34509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34510         HAVE_SLEEP.
34511         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34512         * doc/functions/sleep.texi: Document the sleep module.
34513
34514 2007-05-01  Bruno Haible  <bruno@clisp.org>
34515
34516         * lib/sigprocmask.h: Remove file.
34517         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34518         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34519         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34520         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34521         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34522         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34523         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34524         HAVE_SIGSET_T as a shell variable.
34525         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34526         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34527         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34528         (Depends-on): Add signal. Remove verify.
34529         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34530         (Include): Mention <signal.h> instead of sigprocmask.h.
34531         * NEWS: Mention the change.
34532         * lib/fatal-signal.c: Don't include sigprocmask.h.
34533
34534 2007-05-01  Bruno Haible  <bruno@clisp.org>
34535
34536         * modules/signal: New file.
34537         * lib/signal_.h: New file.
34538         * m4/signal_h.m4: New file.
34539
34540 2007-05-01  Bruno Haible  <bruno@clisp.org>
34541
34542         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34543         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34544         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34545         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34546
34547 2007-05-01  Bruno Haible  <bruno@clisp.org>
34548
34549         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34550         configure time.
34551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34552         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34553         * modules/sys_stat (Makefile.am): Substitute their values into
34554         sys/stat.h.
34555
34556 2007-05-01  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34559         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34560         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34561
34562 2007-05-01  Bruno Haible  <bruno@clisp.org>
34563
34564         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34565         'assert' module here.
34566
34567 2007-05-01  Bruno Haible  <bruno@clisp.org>
34568
34569         * doc/functions/*.texi: New files.
34570         * doc/functions/google-ranking.txt: New file.
34571         * doc/gnulib.texi (Function Substitutes): New chapter.
34572         (ctime, inet_ntoa): Remove sections.
34573         * doc/ctime.texi: Remove file.
34574         * doc/inet_ntoa.texi: Remove file.
34575         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34576         dependencies.
34577         (%.info): New rule, specifying a --reference-limit.
34578
34579 2007-05-01  Bruno Haible  <bruno@clisp.org>
34580
34581         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34582
34583 2007-05-01  Bruno Haible  <bruno@clisp.org>
34584
34585         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34586         the portability of 'mkdir' to mingw systems.
34587
34588 2007-05-01  Bruno Haible  <bruno@clisp.org>
34589
34590         * doc/headers/google-ranking.txt: New file.
34591
34592 2007-04-30  Eric Blake  <ebb9@byu.net>
34593
34594         Prefer fseeko to fseek.
34595         * modules/getpass (Depends-on): Add fseeko.
34596         * lib/getpass.c (getpass): Use fseeko, not fseek.
34597
34598 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34599
34600         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34601         assumes the sorting is stable, while most qsort implementations
34602         are not.  Use argument addresses to ensure they never compare as
34603         equal.
34604
34605         * tests/test-argp-2.sh (usage-indent test): Fix output
34606         (func_compare): Restore diff options
34607         * tests/test-argp.c: Restore #include "progname.h"
34608
34609 2007-04-29  Bruno Haible  <bruno@clisp.org>
34610
34611         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34613         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34615         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34616         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34617         (TESTS, check_PROGRAMS): Add test-snprintf.
34618         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34619         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34620         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34621         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34622         assertions that fail on HP-UX, OSF/1, or IRIX.
34623         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34624
34625 2007-04-29  Bruno Haible  <bruno@clisp.org>
34626
34627         * MODULES.html.sh (posix_functions): Remove 'contents'.
34628
34629 2007-04-29  Karl Berry  <karl@gnu.org>
34630
34631         * config/srclist.txt (gendocs_template_min): new entry.
34632
34633 2007-04-29  Bruno Haible  <bruno@clisp.org>
34634
34635         Work around fpurge bug on BSD systems.
34636         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34637         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34638         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34639         fpurge to rpl_fpurge if the system already has this function.
34640         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34641         the case where the system already has this function. Correct invariants
34642         on BSD systems.
34643         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34644         BSD systems.
34645
34646 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34647
34648         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34649         proposed by Sven Verdoolaege.
34650
34651         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34652         options.
34653         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34654         (usage and help tests): Update
34655
34656 2007-04-29  Bruno Haible  <bruno@clisp.org>
34657
34658         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34659         Print more information in case of failure. Disable a test on BeOS.
34660
34661 2007-04-29  Bruno Haible  <bruno@clisp.org>
34662
34663         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34664         This helps debugging on systems on which no gdb is available.
34665
34666 2007-04-29  Bruno Haible  <bruno@clisp.org>
34667
34668         * lib/freading.h: Improve comments.
34669         * lib/fwriting.h: Likewise.
34670         * tests/test-freading.c (main): Don't check freading immediately after
34671         repositioning. Needed for glibc.
34672
34673 2007-04-29  Bruno Haible  <bruno@clisp.org>
34674
34675         * lib/freading.c (freading): Trivial simplification.
34676
34677 2007-04-28  Bruno Haible  <bruno@clisp.org>
34678
34679         * tests/test-fwriting.c (main): Also test the interaction between
34680         fflush and fwriting.
34681         * modules/fwriting-tests (Depends-on): Add fflush.
34682
34683         * tests/test-freading.c (main): Also test the interaction between
34684         fflush and freading.
34685         * modules/freading-tests (Depends-on): Add fflush.
34686
34687 2007-04-28  Bruno Haible  <bruno@clisp.org>
34688
34689         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34690         fseeko and ftello.
34691         Suggested by Eric Blake.
34692
34693 2007-04-28  Jim Meyering  <jim@meyering.net>
34694
34695         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34696         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34697         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34698
34699 2007-04-27  Eric Blake  <ebb9@byu.net>
34700
34701         * doc/headers/assert.texi (assert.h): Document assert module use.
34702
34703 2007-04-27  Bruno Haible  <bruno@clisp.org>
34704
34705         * doc/headers/*.texi: New files.
34706         * doc/gnulib.texi (Header File Substitutes): New chapter.
34707         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34708         dependencies.
34709         (standards.info ,standards.html, standards.dvi): Update dependencies.
34710         (mostlyclean, clean): New targets.
34711
34712 2007-04-27  Bruno Haible  <bruno@clisp.org>
34713
34714         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34715         * modules/sysexits (Files, Makefile.am): Update.
34716
34717         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34718         * modules/sys_socket (Files, Makefile.am): Update.
34719
34720         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34721         * modules/sys_stat (Files, Makefile.am): Update.
34722
34723 2007-04-27  Eric Blake  <ebb9@byu.net>
34724
34725         * lib/freading.h: Improve comments.
34726         * lib/fwriting.h: Likewise.
34727         * lib/fflush.c: Likewise.
34728
34729         Fix closein for mingw.
34730         * modules/closein-tests: Add tests for closein.
34731         * tests/test-closein.c: New file.
34732         * tests/test-closein.sh: Likewise.
34733         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34734         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34735
34736 2007-04-27  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34739         version is < 6.
34740         * lib/math_.h [__DECC]: Likewise.
34741         * lib/stdio_.h [__DECC]: Likewise.
34742         * lib/stdlib_.h [__DECC]: Likewise.
34743         * lib/string_.h [__DECC]: Likewise.
34744         * lib/time_.h [__DECC]: Likewise.
34745         * lib/wchar_.h [__DECC]: Likewise.
34746         * lib/wctype_.h [__DECC]: Likewise.
34747
34748 2007-04-27  Bruno Haible  <bruno@clisp.org>
34749
34750         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34751
34752 2007-04-27  Bruno Haible  <bruno@clisp.org>
34753
34754         * lib/fflush.c: Add comments.
34755         * modules/fpurge-tests (Depends-on): Add fflush.
34756         * modules/freadable-tests (Depends-on): Likewise.
34757         * modules/fwritable-tests (Depends-on): Likewise.
34758
34759 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34760
34761         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34762         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34763         Report by Bruno Haible <bruno@clisp.org>.
34764
34765 2007-04-26  Eric Blake  <ebb9@byu.net>
34766
34767         Fix fflush on mingw.
34768         * modules/fflush (Depends-on): Add freading.
34769         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34770         but unread data.
34771
34772 2007-04-26  Eric Blake  <ebb9@byu.net>
34773         and Bruno Haible  <bruno@clisp.org>
34774
34775         Implement freading and fwriting.
34776         * lib/freading.c: New file.
34777         * lib/freading.h: Likewise.
34778         * m4/freading.m4: Likewise.
34779         * modules/freading: Likewise.
34780         * modules/freading-tests: Likewise.
34781         * tests/test-freading.c: Likewise.
34782         * lib/fwriting.c: New file.
34783         * lib/fwriting.h: Likewise.
34784         * m4/fwriting.m4: Likewise.
34785         * modules/fwriting: Likewise.
34786         * modules/fwriting-tests: Likewise.
34787         * tests/test-fwriting.c: Likewise.
34788         * MODULES.html.sh (File stream based Input/Output): Mention them.
34789
34790 2007-04-26  Bruno Haible  <bruno@clisp.org>
34791
34792         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34793         'long' when we assume it.
34794         Suggested by Eric Blake.
34795
34796 2007-04-26  Bruno Haible  <bruno@clisp.org>
34797
34798         Ensure fseeko, ftello are declared on glibc systems.
34799         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34800         * modules/fseeko (configure.ac-early): Likewise.
34801         * modules/ftello (configure.ac-early): Likewise.
34802         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34803         AC_FUNC_FSEEKO for this.
34804         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34805         (gl_CHECK_FSEEKO): Remove macro.
34806
34807 2007-04-26  Bruno Haible  <bruno@clisp.org>
34808
34809         * tests/test-fflush.c (main): Also check the ftell result after
34810         fflush and fseek/fseeko.
34811         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34812         file descriptor position cache in the stream.
34813         * lib/fseeko.c (rpl_fseeko): Likewise.
34814
34815 2007-04-26  Bruno Haible  <bruno@clisp.org>
34816
34817         * modules/fflush-tests (Depends-on): Add fseeko.
34818
34819 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34820             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34821
34822         * lib/argz_.h: ensure error_t definition is obtained in same
34823         mechanism system argz.h would have.
34824         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34825         argz facilities are known bad.  Err on the side of caution if
34826         cross-compiling.
34827
34828 2007-04-25  Eric Blake  <ebb9@byu.net>
34829
34830         * lib/fpurge.c (includes): Use stdlib.h for free.
34831         * tests/test-fflush.c (main): Also test fflush-fseeko.
34832
34833 2007-04-25  Bruno Haible  <bruno@clisp.org>
34834
34835         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34836         * lib/fseeko.c: New file.
34837         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34838         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34839         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34840         gl_FUNC_FSEEKO.
34841         (gl_FUNC_FSEEKO): Invoke it.
34842         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34843         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34844         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34845
34846 2007-04-25  Bruno Haible  <bruno@clisp.org>
34847
34848         * modules/fflush (Depends-on): Add ftello.
34849
34850 2007-04-25  Bruno Haible  <bruno@clisp.org>
34851
34852         * modules/ftello-tests: New file.
34853         * tests/test-ftello.c: New file.
34854
34855         * modules/ftello: New file.
34856         * m4/ftello.m4: New file.
34857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34858         HAVE_FTELLO.
34859         * lib/stdio_.h (ftello): New declaration.
34860         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34861         HAVE_FTELLO.
34862
34863 2007-04-25  Bruno Haible  <bruno@clisp.org>
34864
34865         * modules/fseeko-tests: New file.
34866         * tests/test-fseeko.c: New file.
34867
34868         * modules/fseeko: New file.
34869         * m4/fseeko.m4: New file.
34870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34871         HAVE_FSEEKO.
34872         * lib/stdio_.h (fseeko): New declaration.
34873         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34874         HAVE_FSEEKO.
34875
34876 2007-04-25  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34879
34880 2007-04-25  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34883         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34884         * tests/test-unistd.c: Likewise.
34885         * tests/test-fcntl.c: Likewise.
34886
34887 2007-04-23  Eric Blake  <ebb9@byu.net>
34888
34889         * lib/fflush.c: Fix missing include.
34890         Reported by Bruno Haible.
34891
34892 2007-04-23  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34895         Reported by Eric Blake.
34896
34897 2007-04-23  Bruno Haible  <bruno@clisp.org>
34898
34899         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34900
34901 2007-04-23  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34904
34905 2007-04-23  Bruno Haible  <bruno@clisp.org>
34906
34907         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34908         Needed on HP-UX 11.
34909
34910 2007-04-16  Eric Blake  <ebb9@byu.net>
34911
34912         Make fflush rely on fpurge.
34913         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34914         open coding all variants.
34915         * modules/fflush (Depends-on): Add fpurge and unistd.
34916         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34917         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34918
34919         Fix --with-tests compilation on cygwin.
34920         * modules/argmatch-tests (Makefile.am): List gnulib library first
34921         in LDADD.
34922         * modules/argp-tests (Makefile.am): Likewise.
34923         * modules/array-list-tests (Makefile.am): Likewise.
34924         * modules/array-oset-tests (Makefile.am): Likewise.
34925         * modules/avltree-list-tests (Makefile.am): Likewise.
34926         * modules/avltree-oset-tests (Makefile.am): Likewise.
34927         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34928         * modules/carray-list-tests (Makefile.am): Likewise.
34929         * modules/dirname-tests (Makefile.am): Likewise.
34930         * modules/frexp-tests (Makefile.am): Likewise.
34931         * modules/isnanl-tests (Makefile.am): Likewise.
34932         * modules/linked-list-tests (Makefile.am): Likewise.
34933         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34934         * modules/lock-tests (Makefile.am): Likewise.
34935         * modules/rbtree-list-tests (Makefile.am): Likewise.
34936         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34937         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34938         * modules/tls-tests (Makefile.am): Likewise.
34939         * modules/tsearch-tests (Makefile.am): Likewise.
34940         * modules/xvasprintf-tests (Makefile.am): Likewise.
34941
34942         Fix fpurge for cygwin.
34943         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34944         value.
34945         * modules/fpurge-tests (Depends-on): Clean up trash.
34946
34947 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34948
34949         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34950
34951         * m4/autobuild.m4: Re-indent.
34952
34953 2007-04-13  Bruno Haible  <bruno@clisp.org>
34954
34955         * modules/fpurge-tests: New file.
34956         * tests/test-fpurge.c: New file.
34957
34958         * modules/fpurge: New file.
34959         * lib/fpurge.h: New file.
34960         * lib/fpurge.c: New file.
34961         * m4/fpurge.m4: New file.
34962
34963 2007-04-13  Bruno Haible  <bruno@clisp.org>
34964
34965         * modules/fbufmode-tests: New file.
34966         * tests/test-fbufmode.c: New file.
34967
34968         * modules/fbufmode: New file.
34969         * lib/fbufmode.h: New file.
34970         * lib/fbufmode.c: New file.
34971         * m4/fbufmode.m4: New file.
34972
34973 2007-04-13  Bruno Haible  <bruno@clisp.org>
34974
34975         * modules/fwritable-tests: New file.
34976         * tests/test-fwritable.c: New file.
34977
34978         * modules/fwritable: New file.
34979         * lib/fwritable.h: New file.
34980         * lib/fwritable.c: New file.
34981         * m4/fwritable.m4: New file.
34982
34983 2007-04-13  Bruno Haible  <bruno@clisp.org>
34984
34985         * modules/freadable-tests: New file.
34986         * tests/test-freadable.c: New file.
34987
34988         * modules/freadable: New file.
34989         * lib/freadable.h: New file.
34990         * lib/freadable.c: New file.
34991         * m4/freadable.m4: New file.
34992
34993 2007-04-13  Bruno Haible  <bruno@clisp.org>
34994
34995         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34996         MOSTLYCLEANFILES.
34997
34998 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34999
35000         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35001         gzip bootstrap.conf to avoid dragging in i18n machinery.
35002         (gnulib_tool_option): Use it.
35003
35004 2007-04-13  Bruno Haible  <bruno@clisp.org>
35005
35006         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35007         %F directives.
35008         * tests/test-vasprintf-posix.c (test_function): Likewise.
35009         * tests/test-snprintf-posix.h (test_function): Likewise.
35010         * tests/test-sprintf-posix.h (test_function): Likewise.
35011         * tests/test-fprintf-posix.h (test_function): Likewise.
35012         * tests/test-printf-posix.h (test_function): Likewise.
35013         * tests/test-fprintf-posix.out: Likewise.
35014
35015 2007-04-13  Bruno Haible  <bruno@clisp.org>
35016
35017         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35018         * modules/tls-tests (configure.ac): Likewise.
35019         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35020
35021 2007-04-13  Bruno Haible  <bruno@clisp.org>
35022
35023         * lib/tls.c (glthread_tls_get): Fix return type.
35024         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35025
35026 2007-04-12  Eric Blake  <ebb9@byu.net>
35027
35028         * modules/gettime (Depends-on): Remove gettime.
35029         Reported by Dmitry V. Levin.
35030
35031 2007-04-12  Bruno Haible  <bruno@clisp.org>
35032
35033         * modules/fflush (Include): Mention <stdio.h>.
35034         * modules/strtoimax (Include): Mention <inttypes.h>.
35035         * modules/strtoumax (Include): Likewise.
35036
35037 2007-04-12  Eric Blake  <ebb9@byu.net>
35038
35039         * .cvsignore: New file.
35040         * .gitignore: Likewise.
35041
35042 2007-04-12  Bruno Haible  <bruno@clisp.org>
35043
35044         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35045         not before, since $(LDADD) often contains libgnu.a.
35046         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35047         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35048         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35049         Needed on Cygwin.
35050
35051 2007-04-12  Eric Blake  <ebb9@byu.net>
35052
35053         Work around glibc's failure to flush stdin on fclose.
35054         * lib/closein.c (close_stdin): Flush stdin before closing.
35055
35056         Work around glibc's failure to reset seekable stdin on exit.
35057         * modules/closein: New module.
35058         * lib/closein.c: New file.
35059         * lib/closein.h: Likewise.
35060         * m4/closein.m4: Likewise.
35061         * MODULES.html.sh (File stream based Input/Output): Document it.
35062
35063 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35064
35065         * gnulib-tool: Rename generated 'autobuild' script to
35066         'do-autobuild' in --create-megatestdir output.
35067
35068         * doc/gnulib.texi (Build robot for gnulib): Fix.
35069
35070 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35071
35072         * modules/sysexits (Depends-on): Add absolute-header.
35073
35074 2007-04-12  Eric Blake  <ebb9@byu.net>
35075
35076         No need to preserve errno on success.
35077         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35078         Reported by Bruno Haible.
35079
35080 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35081
35082         * MODULES.html.sh (Support for maintaining and releasing
35083         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35084
35085 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35086
35087         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35088
35089 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35090
35091         * modules/autobuild: New module.
35092
35093         * m4/autobuild.m4: New file.
35094
35095 2007-04-11  Bruno Haible  <bruno@clisp.org>
35096
35097         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35098         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35102         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35103         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35105         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35106         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35108         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35109         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35110         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35111         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35112         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35114         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35115         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35117         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35118         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35120         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35121         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35123         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35124         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35125         Reported by Eric Blake.
35126
35127 2007-04-11  Bruno Haible  <bruno@clisp.org>
35128
35129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35130
35131 2007-04-10  Bruno Haible  <bruno@clisp.org>
35132
35133         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35134         for NaN and Infinity. Needed on FreeBSD 6.1.
35135         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35136         regarding results for "%010a" of Infinity and NaN.
35137         * tests/test-vasprintf-posix.c (test_function): Likewise.
35138         * tests/test-snprintf-posix.h (test_function): Likewise.
35139         * tests/test-sprintf-posix.h (test_function): Likewise.
35140         * tests/test-fprintf-posix.h (test_function): Likewise.
35141         * tests/test-printf-posix.h (test_function): Likewise.
35142         * tests/test-fprintf-posix.out: Likewise.
35143
35144 2007-04-10  Bruno Haible  <bruno@clisp.org>
35145
35146         * modules/locale-tests: New file.
35147         * tests/test-locale.c: New file.
35148
35149         * modules/locale: New file.
35150         * lib/locale_.h: New file.
35151         * m4/locale_h.m4: New file.
35152
35153 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35154             Bruno Haible  <bruno@clisp.org>
35155
35156         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35157         be determined, test for availability of the copysignf, copysign,
35158         copysignl functions.
35159         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35160         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35161         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35162
35163 2007-04-09  Eric Blake  <ebb9@byu.net>
35164
35165         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35166         * modules/stdio (Makefile.am): Support fflush.
35167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35168         * modules/fflush: New file.
35169         * lib/fflush.c: Likewise.
35170         * m4/fflush.m4: Likewise.
35171         * modules/fflush-tests: New test.
35172         * tests/test-fflush.c: Likewise.
35173         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35174
35175 2007-04-06  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35178         (VASNPRINTF): Use signbit for faster determination whether to print a
35179         minus sign.
35180         * modules/vasnprintf (Files): Remove lib/float+.h.
35181         * modules/fprintf-posix (Depends-on): Add signbit.
35182         * modules/snprintf-posix (Depends-on): Likewise.
35183         * modules/sprintf-posix (Depends-on): Likewise.
35184         * modules/vasnprintf-posix (Depends-on): Likewise.
35185         * modules/vasprintf-posix (Depends-on): Likewise.
35186         * modules/vfprintf-posix (Depends-on): Likewise.
35187         * modules/vsnprintf-posix (Depends-on): Likewise.
35188         * modules/vsprintf-posix (Depends-on): Likewise.
35189
35190 2007-04-06  Bruno Haible  <bruno@clisp.org>
35191
35192         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35193         * tests/test-frexpl.c (main): Likewise.
35194         * tests/test-ldexpl.c (main): Likewise.
35195         * modules/frexp-tests (Depends-on): Add signbit.
35196         * modules/frexpl-tests (Depdends-on): Likewise.
35197         * modules/ldexpl-tests (Depdends-on): Likewise.
35198
35199 2007-04-06  Bruno Haible  <bruno@clisp.org>
35200
35201         * modules/signbit-tests: New file.
35202         * tests/test-signbit.c: New file.
35203
35204         * modules/signbit: New file.
35205         * lib/signbitf.c: New file.
35206         * lib/signbitd.c: New file.
35207         * lib/signbitl.c: New file.
35208         * m4/signbit.m4: New file.
35209         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35210         (signbit): New macro.
35211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35212         REPLACE_SIGNBIT.
35213         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35214         REPLACE_FREXPL into math.h.
35215
35216 2007-04-06  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/isnanf-nolibm-tests: New file.
35219         * tests/test-isnanf.c: New file.
35220
35221         * modules/isnanf-nolibm: New file.
35222         * lib/isnanf.h: New file.
35223         * lib/isnanf.c: New file.
35224         * lib/isnan.c: Consider the USE_FLOAT macro.
35225         * m4/isnanf.m4: New file.
35226
35227 2007-04-06  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35230         (Link): New section.
35231
35232         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35233
35234 2007-04-06  Bruno Haible  <bruno@clisp.org>
35235
35236         Assume the 'long double' type.
35237         * m4/longdouble.m4: Remove file.
35238         * config/srclist.txt: Don't mention longdouble.m4.
35239         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35240         * lib/float+.h: Likewise.
35241         * lib/frexp.c: Likewise.
35242         * lib/printf-args.h: Likewise.
35243         * lib/printf-args.c: Likewise.
35244         * lib/printf-frexp.c: Likewise.
35245         * lib/printf-parse.c: Likewise.
35246         * lib/vasnprintf.c: Likewise.
35247         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35248         * m4/intl.m4: Likewise.
35249         * m4/isnanl.m4: Likewise.
35250         * m4/printf.m4: Likewise.
35251         * m4/printf-frexpl.m4: Likewise.
35252         * m4/vasnprintf.m4: Likewise.
35253         * modules/allocsa (Files): Remove m4/longdouble.m4.
35254         * modules/gettext (Files): Likewise.
35255         * modules/relocatable-prog-wrapper (Files): Likewise.
35256         * modules/vasnprintf (Files): Likewise.
35257         * modules/isnanl (Files): Likewise.
35258         (Include): Simplify.
35259         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35260         (Include): Simplify.
35261         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35262         (Include): Simplify.
35263         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35264         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35265         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35266         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35267         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35268         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35269         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35270         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35271         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35272         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35273         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35274         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35275         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35276         * tests/test-isnanl.c: Likewise.
35277         * tests/test-snprintf-posix.h: Likewise.
35278         * tests/test-sprintf-posix.h: Likewise.
35279         * tests/test-vasnprintf-posix.c: Likewise.
35280         * tests/test-vasnprintf-posix2.c: Likewise.
35281         * tests/test-vasprintf-posix.c: Likewise.
35282
35283 2007-04-06  Bruno Haible  <bruno@clisp.org>
35284
35285         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35286         * lib/math_.h [__DECC]: Include the overridden include file through
35287         #include_next, outside the double-inclusion guard.
35288         * lib/stdio_.h [__DECC]: Likewise.
35289         * lib/stdlib_.h [__DECC]: Likewise.
35290         * lib/string_.h [__DECC]: Likewise.
35291         * lib/time_.h [__DECC]: Likewise.
35292         * lib/wchar_.h [__DECC]: Likewise.
35293         * lib/wctype_.h [__DECC]: Likewise.
35294         * lib/inttypes_.h [__DECC]: Likewise.
35295         Reported by Albert Chin <china@thewrittenword.com> in
35296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35297
35298 2007-04-04  Eric Blake  <ebb9@byu.net>
35299
35300         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35301         1.5.x.
35302
35303 2007-04-04  Bruno Haible  <bruno@clisp.org>
35304
35305         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35306         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35307
35308 2007-04-04  Bruno Haible  <bruno@clisp.org>
35309
35310         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35311         results for "%010a" of Infinity and NaN.
35312         * tests/test-vasprintf-posix.c (test_function): Likewise.
35313         * tests/test-snprintf-posix.h (test_function): Likewise.
35314         * tests/test-sprintf-posix.h (test_function): Likewise.
35315         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35316         * tests/test-printf-posix.h (test_function): Likewise.
35317         * tests/test-fprintf-posix.out: Update.
35318         Needed for FreeBSD 6.1.
35319
35320 2007-04-04  Bruno Haible  <bruno@clisp.org>
35321
35322         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35323         directly used by the gnulib modules nor by gnulib-tool.
35324
35325 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35326
35327         * DEPENDENCIES: Give overall description of version dependency
35328         desirability.  Use more-typical names for apps.
35329         Add shell, coreutils, diffutils, grep, tar, gzip.
35330
35331 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35332
35333         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35334
35335 2007-04-04  Karl Berry  <karl@gnu.org>
35336
35337         * MODULES.html.sh (func_module): missing '.
35338
35339 2007-04-03  Bruno Haible  <bruno@clisp.org>
35340
35341         * modules/argmatch-tests (Makefile.am): New variable
35342         test_argmatch_LDADD.
35343         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35344         * modules/array-list-tests (Makefile.am): New variable
35345         test_array_list_LDADD.
35346         * modules/array-oset-tests (Makefile.am): New variable
35347         test_array_oset_LDADD.
35348         * modules/avltree-list-tests (Makefile.am): New variable
35349         test_avltree_list_LDADD.
35350         * modules/avltree-oset-tests (Makefile.am): New variable
35351         test_avltree_oset_LDADD.
35352         * modules/avltreehash-list-tests (Makefile.am): New variable
35353         test_avltreehash_list_LDADD.
35354         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35355         test_canonicalize_lgpl_LDADD.
35356         * modules/carray-list-tests (Makefile.am): New variable
35357         test_carray_list_LDADD.
35358         * modules/dirname-tests (Makefile.am): New variable
35359         test_dirname_LDADD.
35360         * modules/linked-list-tests (Makefile.am): New variable
35361         test_linked_list_LDADD.
35362         * modules/linkedhash-list-tests (Makefile.am): New variable
35363         test_linkedhash_list_LDADD.
35364         * modules/rbtree-list-tests (Makefile.am): New variable
35365         test_rbtree_list_LDADD.
35366         * modules/rbtree-oset-tests (Makefile.am): New variable
35367         test_rbtree_oset_LDADD.
35368         * modules/rbtreehash-list-tests (Makefile.am): New variable
35369         test_rbtreehash_list_LDADD.
35370         * modules/xvasprintf-tests (Makefile.am): New variable
35371         test_xvasprintf_LDADD.
35372         Reported by Eric Blake.
35373
35374 2007-04-03  Eric Blake  <ebb9@byu.net>
35375
35376         * DEPENDENCIES: Weaken m4 requirements.
35377
35378 2007-04-03  Bruno Haible  <bruno@clisp.org>
35379
35380         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35381         * modules/isnanl-tests (configure.ac): Likewise.
35382
35383 2007-04-03  Ben Pfaff  <blp@gnu.org>
35384
35385         * modules/iconv_open: Add $(srcdir)/ to source directory
35386         references in Makefile fragments that call gperf, to fix VPATH
35387         builds.
35388
35389 2007-04-03  Bruno Haible  <bruno@clisp.org>
35390
35391         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35392         * lib/ldexpl.c: Undo last change.
35393
35394 2007-04-03  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/printf-frexpl (Depends-on): Undo last change.
35397         (Files): Add m4/ldexpl.m4.
35398
35399 2007-04-03  Bruno Haible  <bruno@clisp.org>
35400
35401         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35402         * modules/isnanl (Link): New section.
35403
35404         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35405         * modules/frexp (Link): New section.
35406
35407         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35408         * modules/frexpl (Link): New section.
35409
35410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35411         * modules/ldexpl (Link): New section.
35412
35413 2007-04-03  Bruno Haible  <bruno@clisp.org>
35414
35415         * modules/TEMPLATE-EXTENDED: New file.
35416         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35417
35418 2007-04-03  Bruno Haible  <bruno@clisp.org>
35419
35420         * DEPENDENCIES: New file.
35421         Suggested by Simon Josefsson.
35422
35423 2007-04-03  Bruno Haible  <bruno@clisp.org>
35424
35425         * doc/gnulib.texi: Escape @.
35426
35427 2007-04-03  James Youngman  <jay@gnu.org>
35428         and Paul Eggert  <eggert@cs.ucla.edu>
35429
35430         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35431         birthtime on all systems that have birthtime, not just those which
35432         use st_birthtimensec rather than st_birthtim.  Putting zero in
35433         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35434         that the birth time is not available for files on an NFS mount.
35435
35436 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35437
35438         * modules/memxor: Move back from crypto/, suggested by Bruno.
35439         * modules/crypto/hmac-sha1: Fix memxor dependency.
35440
35441         * modules/crypto/gc: Moved from ../.
35442
35443 2007-04-02  Eric Blake  <ebb9@byu.net>
35444
35445         * lib/ldexpl.c (includes): Avoid libm.
35446
35447         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35448
35449 2007-04-02  Bruno Haible  <bruno@clisp.org>
35450
35451         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35452         on IRIX.
35453
35454 2007-04-02  Bruno Haible  <bruno@clisp.org>
35455
35456         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35457         x86 or x86_64 platforms running MacOS X.
35458         Reported by Ryan Schmidt <@ryandesign.com>.
35459
35460 2007-04-02  Bruno Haible  <bruno@clisp.org>
35461
35462         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35463         i386.
35464
35465 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35466
35467         * modules/crypto/arcfour: Moved from ../.
35468         * modules/crypto/arcfour-tests: Moved from ../.
35469         * modules/crypto/arctwo: Moved from ../.
35470         * modules/crypto/arctwo-tests: Moved from ../.
35471         * modules/crypto/des: Moved from ../.
35472         * modules/crypto/des-tests: Moved from ../.
35473         * modules/crypto/gc-arcfour: Moved from ../.
35474         * modules/crypto/gc-arcfour-tests: Moved from ../.
35475         * modules/crypto/gc-arctwo: Moved from ../.
35476         * modules/crypto/gc-arctwo-tests: Moved from ../.
35477         * modules/crypto/gc-des: Moved from ../.
35478         * modules/crypto/gc-des-tests: Moved from ../.
35479         * modules/crypto/gc-hmac-md5: Moved from ../.
35480         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35481         * modules/crypto/gc-hmac-sha1: Moved from ../.
35482         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35483         * modules/crypto/gc-md2: Moved from ../.
35484         * modules/crypto/gc-md2-tests: Moved from ../.
35485         * modules/crypto/gc-md4: Moved from ../.
35486         * modules/crypto/gc-md4-tests: Moved from ../.
35487         * modules/crypto/gc-md5: Moved from ../.
35488         * modules/crypto/gc-md5-tests: Moved from ../.
35489         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35490         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35491         * modules/crypto/gc-random: Moved from ../.
35492         * modules/crypto/gc-rijndael: Moved from ../.
35493         * modules/crypto/gc-rijndael-tests: Moved from ../.
35494         * modules/crypto/gc-sha1: Moved from ../.
35495         * modules/crypto/gc-sha1-tests: Moved from ../.
35496         * modules/crypto/gc-tests: Moved from ../.
35497         * modules/crypto/hmac-md5: Moved from ../.
35498         * modules/crypto/hmac-md5-tests: Moved from ../.
35499         * modules/crypto/hmac-sha1: Moved from ../.
35500         * modules/crypto/hmac-sha1-tests: Moved from ../.
35501         * modules/crypto/md2: Moved from ../.
35502         * modules/crypto/md2-tests: Moved from ../.
35503         * modules/crypto/md4: Moved from ../.
35504         * modules/crypto/md4-tests: Moved from ../.
35505         * modules/crypto/md5: Moved from ../.
35506         * modules/crypto/md5-tests: Moved from ../.
35507         * modules/crypto/memxor: Moved from ../.
35508         * modules/crypto/rijndael: Moved from ../.
35509         * modules/crypto/rijndael-tests: Moved from ../.
35510         * modules/crypto/sha1: Moved from ../.
35511
35512 2007-03-30  James Youngman  <jay@gnu.org>
35513
35514         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35515         rename() to change the ctime of a file (because ctime is unaffected
35516         by rename on jfs2 on AIX 5.1).
35517         (main): Start by doing cleanup, in case a previous run failed leaving
35518         test files behind.
35519
35520 2007-03-31  Bruno Haible  <bruno@clisp.org>
35521
35522         Support old proprietary implementations of iconv.
35523         * modules/iconv_open: New file.
35524         * lib/iconv_.h: New file.
35525         * m4/iconv_h.m4: New file.
35526         * lib/iconv_open.c: New file.
35527         * lib/iconv_open-aix.gperf: New file.
35528         * lib/iconv_open-hpux.gperf: New file.
35529         * lib/iconv_open-irix.gperf: New file.
35530         * lib/iconv_open-osf.gperf: New file.
35531         * m4/iconv_open.m4: New file.
35532         * modules/linebreak (Depends-on): Add iconv_open.
35533         * modules/striconv (Depends-on): Likewise.
35534         * modules/striconveh (Depends-on): Likewise.
35535         * modules/unicodeio (Depends-on): Likewise.
35536         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35537         (iconv_t)(-1).
35538         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35539         conversion if cd is (iconv_t)(-1).
35540         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35541         is not possible.
35542
35543 2007-03-31  Bruno Haible  <bruno@clisp.org>
35544
35545         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35546         work on Solaris either. Protect also second use of "autodetect_jp".
35547
35548 2007-03-31  Bruno Haible  <bruno@clisp.org>
35549
35550         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35551         the function is not present.
35552
35553 2007-03-31  Bruno Haible  <bruno@clisp.org>
35554
35555         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35556         the function is not present.
35557
35558 2007-03-31  Bruno Haible  <bruno@clisp.org>
35559
35560         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35561         a bug in HP-UX iconv_open().
35562
35563 2007-03-31  Bruno Haible  <bruno@clisp.org>
35564
35565         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35566         (Mathematics <math.h>): New section, add fpieee.
35567         (Input/output <stdio.h>): Add fseterr.
35568         (Mathematics <math.h>): New section, add printf-frexp.
35569         (Container data structures): Add sublist.
35570         (Core language properties): Add fpucw, inline.
35571         (Functions for greatest-width integer types <inttypes.h>): Add
35572         imaxabs, imaxdiv, inttypes.
35573         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35574         isnanl-nolibm, ldexp.
35575         (Mathematics <math.h>): New section, add printf-frexpl.
35576         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35577         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35578         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35579         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35580         (Unicode string functions): Add unistr/u*-mbtoucr.
35581         (Java): Add javacomp-script, javaexec-script.
35582         (C#): Add csharpcomp-script, csharpexec-script.
35583         (Support for building libraries and executables): Add havelib,
35584         relocatable-*.
35585         (Support for maintaining and releasing projects): Renamed from
35586         'Support for maintaining and release projects'. Add announce-gen.
35587
35588 2007-03-31  Bruno Haible  <bruno@clisp.org>
35589
35590         * README: Talk primarily about git.
35591         (git and CVS): Renamed from CVS.
35592         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35593         gnulib is available through git.
35594         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35595
35596 2007-03-30  Bruno Haible  <bruno@clisp.org>
35597
35598         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35599         * lib/poll_.h: Likewise.
35600         * lib/stat_.h: Likewise.
35601         * lib/sys_time_.h: Likewise.
35602         * lib/sysexit_.h: Likewise.
35603         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35604         * lib/stdbool_.h: Likewise.
35605         * lib/byteswap_.h: Add double-inclusion guard.
35606
35607 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35608
35609         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35610
35611 2007-03-30  Karl Berry  <karl@gnu.org>
35612
35613         * config/srclist-update: double space after USA in the license
35614         substitution, since that's how it's usually (?) written.
35615
35616 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35617
35618         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35619         reported by Bruno Haible.
35620
35621 2007-03-29  Bruno Haible  <bruno@clisp.org>
35622
35623         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35624         a bug in AIX iconv().
35625
35626 2007-03-29  Bruno Haible  <bruno@clisp.org>
35627
35628         * modules/ldexpl-tests: New file.
35629         * tests/test-ldexpl.c: New file.
35630
35631 2007-03-29  Bruno Haible  <bruno@clisp.org>
35632
35633         * lib/ldexpl.c: Include fpucw.h.
35634         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35635         multiplication.
35636         * modules/ldexpl (Depends-on): Add fpucw.
35637
35638 2007-03-29  Bruno Haible  <bruno@clisp.org>
35639
35640         * modules/ldexpl: New file.
35641         * m4/ldexpl.m4: New file.
35642         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35643         set.
35644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35645         REPLACE_LDEXPL.
35646         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35647         REPLACE_LDEXPL.
35648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35649         gl_FUNC_LDEXPL_WORKS.
35650         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35651         * modules/mathl (Files): Remove lib/ldexpl.c.
35652         (Depends-on): Add ldexpl.
35653
35654 2007-03-29  Bruno Haible  <bruno@clisp.org>
35655
35656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35657
35658 2007-03-29  Bruno Haible  <bruno@clisp.org>
35659
35660         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35661         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35662         and possibly also HP-UX.
35663         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35664         work on AIX, IRIX, HP-UX, OSF/1.
35665         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35666         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35667         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35668         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35669         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35670         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35671
35672 2007-03-29  Bruno Haible  <bruno@clisp.org>
35673
35674         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35675
35676 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35677
35678         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35679         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35680
35681 2007-03-29  Eric Blake  <ebb9@byu.net>
35682
35683         * lib/acl-internal.h: Remove redundant include.
35684         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35685         Cygwin when a file is locked.
35686
35687 2007-03-29  Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35690         file.
35691         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35692
35693 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35694
35695         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35696         try to remove a parent directory if the child couldn't be removed
35697         (except for the first rmdir, which could fail because the child
35698         doesn't exist).  Problem reported by Jeff Blaine in
35699         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35700
35701 2007-03-28  Bruno Haible  <bruno@clisp.org>
35702
35703         * lib/striconveh.c (utf8conv_carefully): New function.
35704         (mem_cd_iconveh_internal): Invoke it.
35705
35706 2007-03-28  Bruno Haible  <bruno@clisp.org>
35707
35708         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35709         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35710         input.
35711         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35712         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35713         unistr/u8-uctomb.
35714
35715 2007-03-28  Bruno Haible  <bruno@clisp.org>
35716
35717         * modules/unistr/u8-mbtoucr: New file.
35718         * lib/unistr/u8-mbtoucr.c: New file.
35719         * modules/unistr/u16-mbtoucr: New file.
35720         * lib/unistr/u16-mbtoucr.c: New file.
35721         * modules/unistr/u16-mbtoucr: New file.
35722         * lib/unistr/u16-mbtoucr.c: New file.
35723         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35724
35725 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35726             Bruno Haible  <bruno@clisp.org>
35727
35728         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35729         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35730         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35731
35732         * m4/stdio_h.m4: Add stubs for vasprintf too.
35733
35734         * modules/stdio: Support vasprintf in sed command.
35735
35736         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35737         vasprintf.h.  Add stdio module indicator.
35738
35739         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35740         vasprintf.h.
35741
35742         * lib/vasprintf.h: File removed.
35743
35744         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35745         * lib/vasprintf.c: Ditto.
35746         * lib/xvasprintf.c: Ditto.
35747         * tests/test-vasprintf-posix.c: Ditto.
35748         * tests/test-vasprintf.c: Ditto.
35749
35750 2007-03-27  Bruno Haible  <bruno@clisp.org>
35751
35752         Make vasnprintf multithread-safe.
35753         * lib/vasnprintf.c (decimal_point_char): New function.
35754         (VASNPRINTF): Use it.
35755         Suggested by Simon Josefsson.
35756
35757 2007-03-27  Eric Blake  <ebb9@byu.net>
35758
35759         Support sub-second birthtime on cygwin.
35760         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35761         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35762         (get_stat_birthtime): Also work with st_birthtim.
35763
35764 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35765
35766         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35767         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35768         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35769         (get_stat_birthtime_ns): Simplify compile-time tests.
35770         (get_stat_birthtime): Change the API to look like
35771         get_stat_mtime etc., except return a negative tv_nsec on error.
35772         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35773         Don't check for "spare" fields.
35774         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35775         or for struct stat.st_birthtime, as these tests aren't used.
35776         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35777
35778 2007-03-27  Bruno Haible  <bruno@clisp.org>
35779
35780         * lib/stat-time.h: Include <sys/stat.h>.
35781
35782 2007-03-27  James Youngman  <jay@gnu.org>
35783
35784         * lib/stat-time.h (get_stat_birthtime): New function for
35785           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35786         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35787           and its variants.
35788         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35789         * modules/stat-time-test: New file.
35790         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35791
35792 2007-03-26  Bruno Haible  <bruno@clisp.org>
35793
35794         Better support of signalling NaNs.
35795         * lib/atanl.c: Include isnanl.h.
35796         (atanl): Perform test for NaN at the beginning of the function and
35797         through a call to isnanl.
35798         * lib/cosl.c: Include isnanl.h.
35799         (cosl): Perform test for NaN at the beginning of the function and
35800         through a call to isnanl.
35801         * lib/ldexpl.c: Include isnanl.h.
35802         (ldexpl): Perform test for NaN through a call to isnanl.
35803         * lib/logl.c: Include isnanl.h.
35804         (logl): Perform test for NaN at the beginning of the function and
35805         through a call to isnanl.
35806         * lib/sinl.c: Include isnanl.h.
35807         (sinl): Perform test for NaN at the beginning of the function and
35808         through a call to isnanl.
35809         * lib/sqrtl.c: Include isnanl.h.
35810         (sqrtl): Perform test for NaN at the beginning of the function and
35811         through a call to isnanl.
35812         * lib/tanl.c: Include isnanl.h.
35813         (tanl): Perform test for NaN at the beginning of the function and
35814         through a call to isnanl.
35815         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35816         * modules/mathl (Depends-on): Add isnanl.
35817
35818 2007-03-26  Eric Blake  <ebb9@byu.net>
35819
35820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35821         regression in logic sense of previous patch.
35822
35823 2007-03-26  Bruno Haible  <bruno@clisp.org>
35824
35825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35826         unportable shell command "if ! ...".
35827         Reported by Ralf Wildenhues.
35828
35829 2007-03-25  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35832         <sysexits.h> file, and only add EX_CONFIG.
35833         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35834         absolute file name and whether it is sufficient. Substitute also
35835         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35836         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35837         ABSOLUTE_SYSEXITS_H into sysexits.h.
35838
35839 2007-03-25  Bruno Haible  <bruno@clisp.org>
35840
35841         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35842         hints is NULL.
35843
35844 2007-03-25  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35847         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35848
35849 2007-03-25  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/vasnprintf.c: Include langinfo.h.
35852         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35853         multithread-safe.
35854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35859         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35860         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35862         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35863         Reported by Simon Josefsson.
35864
35865 2007-03-25  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35868         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35869         * modules/vasnprintf (Depends-on): Add stdint.
35870
35871 2007-03-25  Bruno Haible  <bruno@clisp.org>
35872
35873         * modules/fpieee: New file.
35874         * m4/fpieee.m4: New file.
35875         * modules/isnan-nolibm (Depends-on): Add fpieee.
35876         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35877         * modules/isnanl (Depends-on): Add fpieee.
35878
35879 2007-03-25  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35882
35883 2007-03-25  Bruno Haible  <bruno@clisp.org>
35884
35885         Avoid test failures on IRIX 6.5.
35886         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35887         (main): Use it.
35888         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35889         macros.
35890         (main): Use them.
35891
35892 2007-03-25  Bruno Haible  <bruno@clisp.org>
35893
35894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35895         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35896         exists but doesn't work.
35897         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35898         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35900         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35901
35902 2007-03-25  Bruno Haible  <bruno@clisp.org>
35903
35904         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35905         returns inf. Needed on IRIX 6.5.
35906
35907 2007-03-25  Bruno Haible  <bruno@clisp.org>
35908
35909         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35910         (main): Use isnanl instead of x != x idiom.
35911         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35912
35913         * tests/test-frexp.c: Include isnan.h.
35914         (main): Use isnan instead of x != x idiom.
35915         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35916
35917 2007-03-25  Bruno Haible  <bruno@clisp.org>
35918
35919         * tests/test-frexp.c (NaN): New function/macro.
35920         (main): Use it instead of 0.0 / 0.0.
35921         * tests/test-isnan.c (NaN): New function/macro.
35922         (main): Use it instead of 0.0 / 0.0.
35923         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35924         (test_function): Use it instead of 0.0 / 0.0.
35925         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35926         (test_function): Use it instead of 0.0 / 0.0.
35927         * tests/test-snprintf-posix.h (NaN): New function/macro.
35928         (test_function): Use it instead of 0.0 / 0.0.
35929         * tests/test-sprintf-posix.h (NaN): New function/macro.
35930         (test_function): Use it instead of 0.0 / 0.0.
35931         * tests/test-fprintf-posix.h (NaN): New function/macro.
35932         (test_function): Use it instead of 0.0 / 0.0.
35933         * tests/test-printf-posix.h (NaN): New function/macro.
35934         (test_function): Use it instead of 0.0 / 0.0.
35935
35936         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35937
35938 2007-03-25  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35941
35942 2007-03-25  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/regexec.c (merge_state_with_log): Make static.
35945
35946 2007-03-25  Bruno Haible  <bruno@clisp.org>
35947
35948         * lib/trigl.c (kernel_rem_pio2): Make static.
35949
35950 2007-03-25  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/sincosl.c (sincosl_table): Make static.
35953
35954 2007-03-25  Bruno Haible  <bruno@clisp.org>
35955
35956         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35957         if the compiler does not support C99.
35958
35959 2007-03-25  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/time (Makefile.am): Ensure all rule action lines start with a
35962         tab.
35963
35964 2007-03-24  Bruno Haible  <bruno@clisp.org>
35965
35966         * modules/tsearch-tests: New file.
35967         * tests/test-tsearch.sh: New file.
35968         * tests/test-tsearch.c: New file, mostly copied from glibc.
35969
35970         * modules/search-tests: New file.
35971         * tests/test-search.c: New file.
35972
35973         * modules/search: New file.
35974         * lib/search_.h: New file, incorporating lib/tsearch.h.
35975         * m4/search_h.m4: New file.
35976         * lib/tsearch.h: Remove file.
35977         * lib/tsearch.c: Include search.h instead of tsearch.h.
35978         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35979         HAVE_TSEARCH.
35980         * modules/tsearch (Files): Remove lib/tsearch.h.
35981         (Depends-on): Add search.
35982         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35983         (Include): Change tsearch.h into search.h.
35984
35985 2007-03-24  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/fpucw: New file.
35988         * lib/fpucw.h: New file.
35989         * lib/frexp.c: Include fpucw.h.
35990         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35991         (FUNC): Use them.
35992         * lib/printf-frexp.c: Include fpucw.h.
35993         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35994         (FUNC): Use them.
35995         * lib/vasnprintf.c: Include fpucw.h.
35996         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35997         'long double' calculations.
35998         * tests/test-frexpl.c: Include fpucw.h.
35999         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36000         * tests/test-printf-frexpl.c: Include fpucw.h.
36001         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36002         * modules/frexpl (Depends-on): Add fpucw.
36003         * modules/printf-frexpl (Depends-on): Likewise.
36004         * modules/fprintf-posix (Depends-on): Likewise.
36005         * modules/snprintf-posix (Depends-on): Likewise.
36006         * modules/sprintf-posix (Depends-on): Likewise.
36007         * modules/vasnprintf-posix (Depends-on): Likewise.
36008         * modules/vasprintf-posix (Depends-on): Likewise.
36009         * modules/vfprintf-posix (Depends-on): Likewise.
36010         * modules/vsnprintf-posix (Depends-on): Likewise.
36011         * modules/vsprintf-posix (Depends-on): Likewise.
36012         * modules/frexpl-tests (Depends-on): Likewise.
36013         * modules/printf-frexpl-tests (Depends-on): Likewise.
36014
36015 2007-03-24  Bruno Haible  <bruno@clisp.org>
36016
36017         * lib/float+.h: New file.
36018         * lib/isnan.c: Include float+.h.
36019         (SIZE): New macro.
36020         (FUNC): Compare only SIZE bytes of the value.
36021         * lib/vasnprintf.c: Include float+.h.
36022         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36023         SIZEOF_LDBL or SIZEOF_DBL bytes.
36024         * modules/isnan-nolibm (Files): Add lib/float+.h.
36025         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36026         * modules/isnanl (Files): Add lib/float+.h.
36027         * modules/vasnprintf (Files): Add lib/float+.h.
36028
36029 2007-03-24  Bruno Haible  <bruno@clisp.org>
36030
36031         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36032         include isnanl-nolibm.h.
36033
36034 2007-03-24  Bruno Haible  <bruno@clisp.org>
36035
36036         * tests/test-read-file.c (main): Don't produce spurious output for
36037         expected situations. Make the test fail if it encountered unexpected
36038         results.
36039
36040 2007-03-24  Bruno Haible  <bruno@clisp.org>
36041
36042         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36043         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36044
36045 2007-03-24  Bruno Haible  <bruno@clisp.org>
36046
36047         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36048
36049 2007-03-24  Bruno Haible  <bruno@clisp.org>
36050
36051         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36052         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36053
36054         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36055         * modules/utf8-ucs4: Turn into a symbolic link to module
36056         unistr/u8-mbtouc.
36057
36058         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36059         utf8-ucs4-unsafe.
36060         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36061         unistr/u8-mbtouc-unsafe.
36062
36063         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36064         * modules/utf16-ucs4: Turn into a symbolic link to module
36065         unistr/u16-mbtouc.
36066
36067         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36068         utf16-ucs4-unsafe.
36069         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36070         unistr/u16-mbtouc-unsafe.
36071
36072         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36073         * modules/ucs4-utf8: Turn into a symbolic link to module
36074         unistr/u8-ubtomb.
36075
36076         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36077         * modules/ucs4-utf16: Turn into a symbolic link to module
36078         unistr/u16-ubtomb.
36079
36080 2007-03-24  Bruno Haible  <bruno@clisp.org>
36081
36082         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36083         Enable the function only if HAVE_INLINE.
36084         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36085         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36086         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36087         Enable the function only if HAVE_INLINE.
36088         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36089         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36090         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36091         Enable the function only if HAVE_INLINE.
36092         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36093         Enable the function only if HAVE_INLINE.
36094         * modules/utf8-ucs4: Update.
36095         * modules/utf8-ucs4-unsafe: Update.
36096         * modules/utf16-ucs4: Update.
36097         * modules/utf16-ucs4-unsafe: Update.
36098         * modules/ucs4-utf8: Update.
36099         * modules/ucs4-utf16: Update.
36100
36101 2007-03-24  Bruno Haible  <bruno@clisp.org>
36102
36103         * lib/utf8-ucs4.h: Remove file.
36104         * lib/utf8-ucs4-unsafe.h: Remove file.
36105         * lib/utf16-ucs4.h: Remove file.
36106         * lib/utf16-ucs4-unsafe.h: Remove file.
36107         * lib/ucs4-utf8.h: Remove file.
36108         * lib/ucs4-utf16.h: Remove file.
36109         * lib/unistr.h: Include their previous contents.
36110         * m4/utf-ucs4.m4: Remove file.
36111         * m4/ucs4-utf.m4: Remove file.
36112         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36113         (Depends-on): Add unistr/base.
36114         (configure.ac): Remove gl_UTF_UCS4.
36115         (Makefile.am): Update.
36116         (Include): Change to unistr.h.
36117         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36118         (Depends-on): Add unistr/base.
36119         (configure.ac): Remove gl_UTF_UCS4.
36120         (Makefile.am): Update.
36121         (Include): Change to unistr.h.
36122         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36123         (Depends-on): Add unistr/base.
36124         (configure.ac): Remove gl_UTF_UCS4.
36125         (Makefile.am): Update.
36126         (Include): Change to unistr.h.
36127         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36128         (Depends-on): Add unistr/base.
36129         (configure.ac): Remove gl_UTF_UCS4.
36130         (Makefile.am): Update.
36131         (Include): Change to unistr.h.
36132         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36133         (Depends-on): Add unistr/base.
36134         (configure.ac): Remove gl_UCS4_UTF.
36135         (Makefile.am): Update.
36136         (Include): Change to unistr.h.
36137         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36138         (Depends-on): Add unistr/base.
36139         (configure.ac): Remove gl_UCS4_UTF.
36140         (Makefile.am): Update.
36141         (Include): Change to unistr.h.
36142         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36143         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36144         utf8-ucs4-unsafe.h.
36145         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36146         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36147         utf16-ucs4-unsafe.h.
36148         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36149         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36150         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36151         * lib/unistr/u8-strchr.c: Likewise.
36152         * lib/unistr/u8-strrchr.c: Likewise.
36153         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36154         * lib/unistr/u16-strchr.c: Likewise.
36155         * lib/unistr/u16-strrchr.c: Likewise.
36156         * lib/striconveh.c: Update.
36157         * lib/linebreak.c: Update.
36158
36159 2007-03-24  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36162         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36163
36164 2007-03-22  Bruno Haible  <bruno@clisp.org>
36165
36166         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36167
36168 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36169
36170         * MODULES.html.sh (File system functions): New module write-any-file.
36171         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36172         * m4/write-any-file.m4: New files.
36173
36174 2007-03-23  Eric Blake  <ebb9@byu.net>
36175
36176         * gnulib-tool: Rearrange space-tab sequences, since some editors
36177         like to eat them.
36178
36179 2007-03-23  Eric Blake  <ebb9@byu.net>
36180
36181         * lib/version-etc.c (version_etc_va): Update license wording to
36182         be more concise.  Recommended by Richard Stallman.
36183
36184 2007-03-22  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/poll.c (MSG_PEEK): New fallback definition.
36187
36188 2007-03-22  Bruno Haible  <bruno@clisp.org>
36189
36190         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36191         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36192         (main): Update.
36193         Fixes a compilation error on BeOS.
36194
36195 2007-03-22  Bruno Haible  <bruno@clisp.org>
36196
36197         * modules/frexpl-tests: New file.
36198         * tests/test-frexpl.c: New file.
36199
36200         * modules/frexpl: New file.
36201         * m4/frexpl.m4: New file.
36202         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36203         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36205         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36206         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36207         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36208
36209 2007-03-22  Bruno Haible  <bruno@clisp.org>
36210
36211         * lib/frexpl.c: Share code with lib/frexp.c.
36212         * modules/mathl (Files): Add lib/frexp.c.
36213         (Depends-on): Add isnanl-nolibm.
36214
36215 2007-03-22  Bruno Haible  <bruno@clisp.org>
36216
36217         * modules/printf-frexp (Files): Add m4/frexp.m4.
36218         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36219         only if the found frexp function actually works.
36220
36221 2007-03-22  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/frexp.c: Remove older implementation that uses divisions.
36224
36225 2007-03-21  Bruno Haible  <bruno@clisp.org>
36226
36227         * modules/frexp-tests: New file.
36228         * tests/test-frexp.c: New file.
36229
36230         * modules/frexp: New file.
36231         * lib/frexp.c: New file.
36232         * m4/frexp.m4: New file.
36233         * lib/math_.h (frexp): New declaration.
36234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36235         REPLACE_FREXP.
36236         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36237
36238 2007-03-21  Bruno Haible  <bruno@clisp.org>
36239
36240         * modules/isnanl-tests: New file.
36241         * tests/test-isnanl.c: New file.
36242
36243         * modules/isnanl: New file.
36244         * lib/isnanl.h: New file.
36245         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36246         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36247         gl_FUNC_ISNANL_WORKS.
36248         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36249         New macros.
36250
36251 2007-03-21  Bruno Haible  <bruno@clisp.org>
36252
36253         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36254         lib/isnanl.h.
36255         (Include): Update.
36256         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36257         * lib/vasnprintf.c: Update.
36258         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36259         tests/test-isnanl.h, remove tests/test-isnanl.c.
36260         (Makefile.am): Update.
36261         * tests/test-isnanl-nolibm.c: New file.
36262         * tests/test-isnanl.h: New file.
36263         * tests/test-isnanl.c: Remove file.
36264
36265 2007-03-21  Jim Meyering  <jim@meyering.net>
36266
36267         When trying to open ".", treat ESTALE like EACCES.
36268         * lib/savewd.c (savewd_save): Resort to forking not just upon
36269         failure with EACCES, but also when errno is ESTALE.
36270
36271 2007-03-20  Bruno Haible  <bruno@clisp.org>
36272
36273         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36274         Needed on AIX 5.1. Reported by Matthew Woehlke.
36275
36276 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36277
36278         Suggestions by Bruno Haible:
36279         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36280         our own.
36281         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36282         * modules/acl (Depends-on): Add gettext.
36283
36284 2007-03-19  Bruno Haible  <bruno@clisp.org>
36285
36286         * modules/iconvme: Remove file.
36287         * lib/iconvme.h: Remove file.
36288         * lib/iconvme.c: Remove file.
36289         * m4/iconvme.m4: Remove file.
36290
36291 2007-03-19  Bruno Haible  <bruno@clisp.org>
36292
36293         * doc/relocatable-maint.texi: Break long shell script line.
36294         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36295
36296 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36297
36298         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36299         handle file_has_acl.
36300         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36301         * lib/acl.c: Move header inclusions and related macro defns into
36302         lib/acl-internal.h.
36303         (S_ISLNK): Remove defn, since that's now done for us.
36304         (file_has_acl): Move to lib/file-has-acl.c.
36305         Call acl_trivial if available.  This is the crucial part of the fix.
36306         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36307         shared within the library.  Rewrite a bit, partly to make it compatible
36308         with the GNU coding style.
36309         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36310         Remove unnecessary double-quotes.
36311         Don't test for acl_to_text; the build will catch that.
36312         Replace acl_entries if it doesn't exist and it is needed.
36313         Check for -lsec and acl_trivial (as used on Solaris 10).
36314         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36315         lib/file-has-acl.c.
36316         (Depends-on): Add sys_stat, for S_ISLNK.
36317
36318 2007-03-19  Ben Pfaff  <blp@gnu.org>
36319
36320         * doc/gnulib.texi: Fix typos.
36321         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36322
36323 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36324
36325         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36326         If size is zero here, buf must be zero.
36327
36328 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36329
36330         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36331         <bruno@clisp.org>.
36332
36333 2007-03-18  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36336         Suggested by Eric Blake.
36337
36338 2007-03-18  Ben Pfaff  <blp@gnu.org>
36339
36340         * doc/relocatable.texi: Recommend using as prefix a directory
36341         that does not exist and will never be created.  Based on
36342         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36343         and others.
36344
36345 2007-03-17  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/fchownat.c: Include lchown.h.
36348
36349 2007-03-17  Bruno Haible  <bruno@clisp.org>
36350
36351         Fix endless loop when the given allocated size was > INT_MAX.
36352         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36353         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36354         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36355         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36356         * lib/sprintf.c (sprintf): Likewise.
36357
36358 2007-03-17  Bruno Haible  <bruno@clisp.org>
36359
36360         * tests/test-argp-2.sh (func_compare): Output a context diff.
36361
36362 2007-03-17  Bruno Haible  <bruno@clisp.org>
36363
36364         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36365         locale's decimal-point character.
36366
36367 2007-03-17  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36370         before comparing it. Needed because on some platforms (e.g. x86) a
36371         'long double' occupies less bytes than sizeof (long double).
36372
36373 2007-03-17  Bruno Haible  <bruno@clisp.org>
36374
36375         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36376         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36377         * tests/test-getaddrinfo.c (simple): Likewise.
36378         * tests/test-read-file.c (main): Likewise.
36379
36380 2007-03-17  Bruno Haible  <bruno@clisp.org>
36381
36382         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36383
36384 2007-03-17  Bruno Haible  <bruno@clisp.org>
36385
36386         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36387         unused variable.
36388
36389 2007-03-17  Bruno Haible  <bruno@clisp.org>
36390
36391         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36392         * tests/test-c-strncasecmp.c: Likewise.
36393
36394 2007-03-17  Bruno Haible  <bruno@clisp.org>
36395
36396         * modules/stdlib (Depends-on): Add unistd.
36397         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36398         Needed for MacOS X 10.3.
36399
36400 2007-03-17  Bruno Haible  <bruno@clisp.org>
36401
36402         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36403
36404 2007-03-17  Bruno Haible  <bruno@clisp.org>
36405
36406         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36407
36408 2007-03-17  Bruno Haible  <bruno@clisp.org>
36409
36410         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36411         to reflect files copied from gnulib (with or without modifications).
36412         Suggested by Jim Meyering.
36413
36414 2007-03-17  Eric Blake  <ebb9@byu.net>
36415
36416         * NEWS: Document stdlib change from 2007-02-18.
36417
36418 2007-03-17  Jim Meyering  <jim@meyering.net>
36419
36420         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36421         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36422         someone uses a name containing shell meta-characters.
36423         Reported by Alfred M. Szmidt.
36424
36425         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36426
36427 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36428
36429         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36430         and copy gettext configuration files only if configure.ac contains
36431         a use of AM_GNU_GETTEXT_VERSION.
36432
36433 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36434
36435         * build-aux/bootstrap (gnulib_name): New variable.
36436         (gnulib_tool_options): Use it.
36437
36438 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36439
36440         * tests/test-des.c: Use new namespace.
36441
36442 2007-03-15  Bruno Haible  <bruno@clisp.org>
36443
36444         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36445         Reported by James Youngman <jay@gnu.org>.
36446
36447 2007-03-15  Bruno Haible  <bruno@clisp.org>
36448
36449         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36450         declared prototype. Needed with cc on OSF/1 5.1.
36451
36452 2007-03-15  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36455         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36456         (struct gl_list_implementation): Add dispose_fn argument to the
36457         'create_empty', 'create' methods.
36458         (struct gl_list_impl_base): Add field 'dispose_fn'.
36459         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36460         argument.
36461         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36462         dispose_fn argument.
36463         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36464         dispose_fn on the dropped values.
36465         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36466         dispose_fn argument.
36467         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36468         dropped values.
36469         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36470         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36471         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36472         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36473         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36474         argument.
36475         (gl_tree_list_free): Call dispose_fn on the dropped values.
36476         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36477         the dropped values.
36478         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36479         Add dispose_fn argument.
36480         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36481         Call dispose_fn on the dropped values.
36482         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36483         Add dispose_fn argument.
36484         (gl_sublist_create): Initialize the 'dispose_fn' field.
36485         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36486         * tests/test-array_list.c (main): Update.
36487         * tests/test-carray_list.c (main): Update.
36488         * tests/test-avltree_list.c (main): Update.
36489         * tests/test-rbtree_list.c (main): Update.
36490         * tests/test-avltreehash_list.c (main): Update.
36491         * tests/test-rbtreehash_list.c (main): Update.
36492         * tests/test-linked_list.c (main): Update.
36493         * tests/test-linkedhash_list.c (main): Update.
36494         * tests/test-array_oset.c (main): Update.
36495
36496 2007-03-15  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36499         (gl_oset_create_empty): Add dispose_fn argument.
36500         (struct gl_oset_implementation): Add dispose_fn argument to
36501         'create_empty' method.
36502         (struct gl_oset_impl_base): Add dispose_fn field.
36503         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36504         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36505         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36506         values.
36507         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36508         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36509         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36510         dropped value.
36511         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36512         dropped value.
36513         * tests/test-array_oset.c (main): Update.
36514         * tests/test-avltree_oset.c (main): Update.
36515         * tests/test-rbtree_oset.c (main): Update.
36516         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36517
36518 2007-03-13  Bruno Haible  <bruno@clisp.org>
36519
36520         * tests/test-stdbool.c (i): Update after last patch.
36521
36522 2007-03-12  Bruno Haible  <bruno@clisp.org>
36523
36524         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36525         the iswprint macro. Needed on Solaris 2.5.1.
36526
36527 2007-03-12  Bruno Haible  <bruno@clisp.org>
36528
36529         * tests/test-printf-frexp.c (main): Declare x as volatile.
36530
36531 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36532
36533         * doc/gnulib.texi (Build robot for gnulib): New section.
36534
36535 2007-03-12  Jim Meyering  <jim@meyering.net>
36536
36537         * build-aux/bootstrap: New file.
36538         * build-aux/bootstrap.conf: New file, from coreutils.
36539
36540 2007-03-11  Bruno Haible  <bruno@clisp.org>
36541
36542         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36543
36544 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36545
36546         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36547         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36548         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36549
36550 2007-03-11  Bruno Haible  <bruno@clisp.org>
36551
36552         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36553         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36554
36555 2007-03-11  Bruno Haible  <bruno@clisp.org>
36556
36557         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36558         formula. Needed for SunPRO C 5.0.
36559
36560 2007-03-11  Bruno Haible  <bruno@clisp.org>
36561
36562         * modules/long-options (Depends-on): Add getopt.
36563
36564 2007-03-11  Bruno Haible  <bruno@clisp.org>
36565
36566         * modules/modechange (Depends-on): Add stdbool.
36567
36568 2007-03-11  Bruno Haible  <bruno@clisp.org>
36569
36570         * modules/i-ring (Depends-on): Add stdbool.
36571
36572 2007-03-11  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/gc-des (Depends-on): Add stdbool.
36575
36576 2007-03-11  Bruno Haible  <bruno@clisp.org>
36577
36578         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36579
36580 2007-03-11  Bruno Haible  <bruno@clisp.org>
36581
36582         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36583
36584 2007-03-11  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36587
36588 2007-03-11  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/vasnprintf.c (sprintf): Undefine.
36591
36592 2007-03-11  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36595         initializers in SunPRO C and Compaq C compilers.
36596
36597 2007-03-11  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36600         decrementing code ANSI C compliant.
36601
36602 2007-03-11  Bruno Haible  <bruno@clisp.org>
36603
36604         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36605         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36606
36607 2007-03-11  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36610         <stdbool.h> substitute doesn't pass.
36611
36612 2007-03-11  Bruno Haible  <bruno@clisp.org>
36613
36614         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36615
36616 2007-03-11  Bruno Haible  <bruno@clisp.org>
36617
36618         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36619         script, for submission to autobuild.josefsson.org.
36620
36621 2007-03-10  Bruno Haible  <bruno@clisp.org>
36622
36623         * modules/canonicalize-lgpl-tests: New file.
36624         * tests/test-canonicalize-lgpl.sh: New file.
36625         * tests/test-canonicalize-lgpl.c: New file.
36626
36627         * modules/c-strcase-tests: New file.
36628         * tests/test-c-strcase.sh: New file.
36629         * tests/test-c-strcasecmp.c: New file.
36630         * tests/test-c-strncasecmp.c: New file.
36631
36632         * modules/atexit-tests: New file.
36633         * tests/test-atexit.sh: New file.
36634         * tests/test-atexit.c: New file.
36635
36636 2007-03-10  Bruno Haible  <bruno@clisp.org>
36637
36638         * tests/test-binary-io.sh: Use temporary filenames that are not so
36639         likely to clash with those of other tests (in a parallel make).
36640         * tests/test-binary-io.c: Likewise.
36641
36642 2007-03-10  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36645         fallback; use #error instead.
36646         Suggested by Simon Josefsson.
36647
36648 2007-03-10  Bruno Haible  <bruno@clisp.org>
36649
36650         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36651         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36652         first and the last.
36653
36654 2007-03-10  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36657
36658 2007-03-10  Bruno Haible  <bruno@clisp.org>
36659
36660         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36661         "make distcheck".
36662         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36663         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36664         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36665
36666 2007-03-10  Bruno Haible  <bruno@clisp.org>
36667
36668         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36669         variable.
36670         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36671         variable.
36672
36673 2007-03-09  Eric Blake  <ebb9@byu.net>
36674         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36675
36676         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36677         types are not being provided by gnulib.
36678         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36679         types are supported.
36680
36681 2007-03-10  Bruno Haible  <bruno@clisp.org>
36682
36683         * lib/stdio_.h (__attribute__): New macro.
36684         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36685         vsprintf): Specify __attribute__ __format__ for GCC.
36686         Suggested by Eric Blake.
36687
36688 2007-03-09  Bruno Haible  <bruno@clisp.org>
36689
36690         * modules/printf-posix-tests: New file.
36691         * tests/test-printf-posix.sh: New file.
36692         * tests/test-printf-posix.c: New file.
36693
36694         * modules/printf-posix: New file.
36695         * lib/printf.c: New file.
36696         * m4/printf-posix-rpl.m4: New file.
36697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36698         REPLACE_PRINTF.
36699         * lib/stdio_.h (printf): New declaration.
36700         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36701         ____strfmon____): New macros.
36702         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36703         REPLACE_PRINTF.
36704
36705 2007-03-09  Bruno Haible  <bruno@clisp.org>
36706
36707         * tests/test-vasnprintf-posix2.sh: New file.
36708         * tests/test-vasnprintf-posix2.c: New file.
36709         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36710         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36711         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36712
36713         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36714         a locale dependent decimal point, rather than always '.'.
36715
36716 2007-03-09  Eric Blake  <ebb9@byu.net>
36717
36718         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36719         spite of platforms like Tandem/NSK that define it to -1.
36720
36721 2007-03-08  Bruno Haible  <bruno@clisp.org>
36722
36723         * modules/vprintf-posix-tests: New file.
36724         * tests/test-vprintf-posix.sh: New file.
36725         * tests/test-vprintf-posix.c: New file.
36726         * tests/test-printf-posix.h: New file.
36727
36728         * modules/vprintf-posix: New file.
36729         * lib/vprintf.c: New file.
36730         * m4/vprintf-posix.m4: New file.
36731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36732         REPLACE_VPRINTF.
36733         * lib/stdio_.h (vprintf): New declaration.
36734         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36735         REPLACE_VPRINTF.
36736
36737 2007-03-08  Bruno Haible  <bruno@clisp.org>
36738
36739         * modules/fprintf-posix-tests: New file.
36740         * tests/test-fprintf-posix.sh: New file.
36741         * tests/test-fprintf-posix.c: New file.
36742
36743         * modules/fprintf-posix: New file.
36744         * lib/fprintf.c: New file.
36745         * m4/fprintf-posix.m4: New file.
36746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36747         REPLACE_FPRINTF.
36748         * lib/stdio_.h (fprintf): New declaration.
36749         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36750         REPLACE_FPRINTF.
36751
36752 2007-03-08  Bruno Haible  <bruno@clisp.org>
36753
36754         * modules/vfprintf-posix-tests: New file.
36755         * tests/test-vfprintf-posix.sh: New file.
36756         * tests/test-vfprintf-posix.c: New file.
36757         * tests/test-fprintf-posix.h: New file.
36758         * tests/test-fprintf-posix.out: New file.
36759
36760         * modules/vfprintf-posix: New file.
36761         * lib/vfprintf.c: New file.
36762         * m4/vfprintf-posix.m4: New file.
36763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36764         REPLACE_VFPRINTF.
36765         * lib/stdio_.h (vfprintf): New declaration.
36766         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36767         REPLACE_VFPRINTF.
36768
36769 2007-03-08  Bruno Haible  <bruno@clisp.org>
36770
36771         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36772
36773 2007-03-08  Bruno Haible  <bruno@clisp.org>
36774
36775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36776         instead of 'expr' invocations.
36777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36781         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36782         Suggested by Paul Eggert.
36783
36784 2007-03-08  Bruno Haible  <bruno@clisp.org>
36785
36786         * modules/fseterr-tests: New file.
36787         * tests/test-fseterr.c: New file.
36788
36789         * modules/fseterr: New file.
36790         * lib/fseterr.h: New file.
36791         * lib/fseterr.c: New file.
36792
36793 2007-03-08  Bruno Haible  <bruno@clisp.org>
36794
36795         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36796         * lib/getopt_.h: Likewise.
36797         * lib/mbswidth.h: Likewise.
36798         * lib/setenv.h: Likewise.
36799         * lib/vasnprintf.h: Likewise.
36800         * lib/vasprintf.h: Likewise.
36801         * lib/verror.h: Likewise.
36802         * lib/xsetenv.h: Likewise.
36803         * lib/xvasprintf.h: Likewise.
36804
36805 2007-03-08  Jim Meyering  <jim@meyering.net>
36806
36807         * users.txt: Add parted.
36808
36809         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36810
36811 2007-03-07  Bruno Haible  <bruno@clisp.org>
36812
36813         * m4/printf.m4: Make the shell script snippets copy&pastable.
36814
36815 2007-03-02  Bruno Haible  <bruno@clisp.org>
36816
36817         * lib/netinet_in_.h: New file.
36818         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36819         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36820         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36821         (Depends-on): Add absolute-header.
36822         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36823         into netinet/in.h.
36824
36825 2007-03-03  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/sys_select_.h: New file.
36828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36829         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36830         * modules/sys_select (Files): Add lib/sys_select_.h.
36831         (Depends-on): Add absolute-header.
36832         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36833         into sys/select.h.
36834
36835 2007-03-02  Bruno Haible  <bruno@clisp.org>
36836
36837         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36838         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36839         values.
36840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36841         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36842         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36843         * modules/sys_socket (Depends-on): Add absolute-header.
36844         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36845         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36846         (Include): Remove requirement of inclusion of <sys/types.h>.
36847
36848 2007-03-02  Bruno Haible  <bruno@clisp.org>
36849
36850         * lib/byteswap_.h (bswap_32): Fix formula.
36851
36852 2007-03-06  Bruno Haible  <bruno@clisp.org>
36853
36854         * modules/sprintf-posix-tests: New file.
36855         * tests/test-sprintf-posix.c: New file.
36856
36857         * modules/sprintf-posix: New file.
36858         * lib/sprintf.c: New file.
36859         * m4/sprintf-posix.m4: New file.
36860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36861         REPLACE_SPRINTF.
36862         * lib/stdio_.h (sprintf): New declaration.
36863         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36864         REPLACE_SPRINTF.
36865
36866 2007-03-06  Bruno Haible  <bruno@clisp.org>
36867
36868         * modules/vsprintf-posix-tests: New file.
36869         * tests/test-vsprintf-posix.c: New file.
36870         * tests/test-sprintf-posix.h: New file.
36871
36872         * modules/vsprintf-posix: New file.
36873         * lib/vsprintf.c: New file.
36874         * m4/vsprintf-posix.m4: New file.
36875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36876         REPLACE_VSPRINTF.
36877         * lib/stdio_.h (vsprintf): New declaration.
36878         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36879         REPLACE_VSPRINTF.
36880
36881 2007-03-06  Bruno Haible  <bruno@clisp.org>
36882
36883         * modules/vsnprintf (Depend-on): Remove minmax.
36884
36885 2007-03-06  Bruno Haible  <bruno@clisp.org>
36886
36887         * modules/snprintf-posix-tests: New file.
36888         * tests/test-snprintf-posix.c: New file.
36889
36890         * modules/snprintf-posix: New file.
36891         * m4/snprintf-posix.m4: New file.
36892         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36893         gl_FUNC_SNPRINTF.
36894         (gl_FUNC_SNPRINTF): Invoke it.
36895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36896         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36897         is set.
36898         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36899
36900 2007-03-06  Bruno Haible  <bruno@clisp.org>
36901
36902         * modules/vsnprintf-posix-tests: New file.
36903         * tests/test-vsnprintf-posix.c: New file.
36904         * tests/test-snprintf-posix.h: New file.
36905
36906         * modules/vsnprintf-posix: New file.
36907         * m4/vsnprintf-posix.m4: New file.
36908         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36909         gl_FUNC_VSNPRINTF.
36910         (gl_FUNC_VSNPRINTF): Invoke it.
36911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36912         * lib/stdio_.h (vsnprintf): Define as a replacement if
36913         REPLACE_VSNPRINTF is set.
36914         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36915
36916 2007-03-06  Bruno Haible  <bruno@clisp.org>
36917
36918         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36920
36921 2007-03-06  Bruno Haible  <bruno@clisp.org>
36922
36923         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36924         (asinl): Declare also if HAVE_DECL_ASINL is set.
36925         (atanl): Declare also if HAVE_DECL_ATANL is set.
36926         (ceill): Declare also if HAVE_DECL_CEILL is set.
36927         (cosl): Declare also if HAVE_DECL_COSL is set.
36928         (expl): Declare also if HAVE_DECL_EXPL is set.
36929         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36930         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36931         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36932         (logl): Declare also if HAVE_DECL_LOGL is set.
36933         (sinl): Declare also if HAVE_DECL_SINL is set.
36934         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36935         (tanl): Declare also if HAVE_DECL_TANL is set.
36936         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36938         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36939         declaration of frexpl, ldexpl.
36940         * modules/printf-frexpl (Depends-on): Add math.
36941         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36942
36943 2007-03-05  Bruno Haible  <bruno@clisp.org>
36944
36945         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36946         frexpl and ldexpl are declared.
36947         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36948
36949 2007-03-05  Bruno Haible  <bruno@clisp.org>
36950
36951         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36952         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36953
36954 2007-03-05  Bruno Haible  <bruno@clisp.org>
36955
36956         * lib/stdio_.h: Include <stddef.h>.
36957
36958 2007-03-05  Bruno Haible  <bruno@clisp.org>
36959
36960         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36961
36962 2007-03-05  Bruno Haible  <bruno@clisp.org>
36963
36964         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36965         NetBSD 4, from Ralf Wildenhues.
36966
36967 2007-03-04  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/vasprintf.h: Update #if logic for the case when the functions
36970         exist but are overridden.
36971
36972 2007-03-04  Bruno Haible  <bruno@clisp.org>
36973
36974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36975         implementations: glibc-2.4 and MacOS X 10.3.
36976         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36977         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36978         * tests/test-vasprintf-posix.c (test_function): Likewise.
36979
36980 2007-03-04  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/vasprintf-posix-tests: New file.
36983         * tests/test-vasprintf-posix.c: New file.
36984
36985         * modules/vasprintf-posix: New file.
36986         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36987         defined.
36988         * m4/vasprintf-posix.m4: New file.
36989         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36990         gl_FUNC_VASPRINTF.
36991         (gl_FUNC_VASPRINTF): Invoke it.
36992         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36993         here.
36994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36995
36996 2007-03-04  Bruno Haible  <bruno@clisp.org>
36997
36998         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36999         REPLACE_GETTIMEOFDAY.
37000         * modules/sys_time (Makefile.am): Likewise.
37001         * m4/sys_time_h.m4: Likewise.
37002         * m4/gettimeofday.m4: Likewise.
37003
37004 2007-03-04  Bruno Haible  <bruno@clisp.org>
37005
37006         * modules/vasnprintf-posix-tests: New file.
37007         * tests/test-vasnprintf-posix.c: New file.
37008
37009         * modules/vasnprintf-posix: New file.
37010         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37011         printf-frexpl.h.
37012         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37013         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37014         REPLACE_VASNPRINTF is defined.
37015         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37016         gl_FUNC_VASNPRINTF.
37017         (gl_FUNC_VASNPRINTF): Invoke it.
37018         * m4/vasnprintf-posix.m4: New file.
37019         * m4/printf.m4: New file.
37020
37021 2007-03-04  Bruno Haible  <bruno@clisp.org>
37022
37023         Compile progreloc.c only if --enable-relocatable is specified.
37024         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37025         if --enable-relocatable was specified.
37026         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37027         lib_SOURCES.
37028
37029 2007-03-04  Jim Meyering  <jim@meyering.net>
37030
37031         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37032         Use it consistently, rather than enumerating errno constants.
37033
37034 2007-03-04  Bruno Haible  <bruno@clisp.org>
37035
37036         * modules/xvasprintf-tests: New file.
37037         * tests/test-xvasprintf.c: New file.
37038
37039         * modules/vasprintf-tests: New file.
37040         * tests/test-vasprintf.c: New file.
37041
37042         * modules/vasnprintf-tests: New file.
37043         * tests/test-vasnprintf.c: New file.
37044
37045         * modules/vsnprintf-tests: New file.
37046         * tests/test-vsnprintf.c: New file.
37047
37048         * modules/snprintf-tests: New file.
37049         * tests/test-snprintf.c: New file.
37050
37051 2007-03-04  Bruno Haible  <bruno@clisp.org>
37052
37053         Compile relocatable.c only if --enable-relocatable is specified.
37054         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37055         gl_RELOCATABLE_LIBRARY.
37056         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37057         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37058         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37059         gl_RELOCATABLE_LIBRARY.
37060         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37061         (Makefile.am): Remove lib_SOURCES.
37062         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37063         gl_RELOCATABLE_LIBRARY.
37064         (Makefile.am): Remove lib_SOURCES.
37065         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37066         always.
37067         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37068         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37069
37070 2007-03-04  Bruno Haible  <bruno@clisp.org>
37071
37072         * modules/argmatch-tests: New file.
37073         * tests/test-argmatch.c: New file.
37074
37075         * tests/test-allocsa.c (main): Halve the number of loop runs.
37076
37077         * modules/alloca-opt-tests: New file.
37078         * tests/test-alloca-opt.c: New file.
37079
37080 2007-03-04  Jim Meyering  <jim@meyering.net>
37081
37082         Work around difference between Linux ACLs and Solaris 10 ZFS.
37083         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37084         for EINVAL.
37085
37086 2007-03-03  Bruno Haible  <bruno@clisp.org>
37087
37088         * modules/relocatable-prog (Depends-on): Add back progreloc's
37089         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37090
37091 2007-03-03  Bruno Haible  <bruno@clisp.org>
37092
37093         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37094         * modules/relocatable-lib: New file.
37095
37096 2007-03-03  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/relocatable-prog: Renamed from modules/relocatable.
37099         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37100
37101 2007-03-03  Bruno Haible  <bruno@clisp.org>
37102
37103         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37104         m4/relocatable-lib.m4.
37105         (Depends-on): Remove 'relocatable'.
37106         (configure.ac): Add gl_RELOCATABLE_NOP.
37107
37108 2007-03-03  Bruno Haible  <bruno@clisp.org>
37109
37110         * modules/relocatable-prog-wrapper: New file.
37111         * modules/relocatable (Depends-on): Add it. Remove all other
37112         dependencies except progname.
37113         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37114
37115         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37116         (gl_FUNC_STRERROR): Nop.
37117         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37118
37119         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37120         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37121
37122         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37123         (gl_FUNC_READLINK): Update.
37124
37125         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37126
37127 2007-03-03  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37130         * modules/xreadlink (Depends-on): Add unistd.
37131         * modules/xreadlink-with-size (Depends-on): Likewise.
37132
37133 2007-03-03  Bruno Haible  <bruno@clisp.org>
37134
37135         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37136         extracted from gt_FUNC_SETENV.
37137         (gt_FUNC_SETENV): Remove macro.
37138         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37139         remove gt_FUNC_SETENV.
37140
37141 2007-03-03  Bruno Haible  <bruno@clisp.org>
37142
37143         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37144         ENABLE_RELOCATABLE here.
37145         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37146
37147 2007-03-03  Bruno Haible  <bruno@clisp.org>
37148
37149         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37150         * tests/test-rbtreehash_list.c: Include progname.h.
37151         (main): Call set_program_name.
37152
37153         * modules/rbtree-oset-tests (Depends-on): Add progname.
37154         * tests/test-rbtree_oset.c: Include progname.h.
37155         (main): Call set_program_name.
37156
37157         * modules/rbtree-list-tests (Depends-on): Add progname.
37158         * tests/test-rbtree_list.c: Include progname.h.
37159         (main): Call set_program_name.
37160
37161         * modules/linked-list-tests (Depends-on): Add progname.
37162         * tests/test-linked_list.c: Include progname.h.
37163         (main): Call set_program_name.
37164
37165 2007-03-03  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37168         All uses of __restrict changed to _Restrict_.
37169         * lib/glob_.h (__restrict): Remove macro.
37170
37171 2007-03-02  Bruno Haible  <bruno@clisp.org>
37172
37173         * modules/gettext (configure.ac): Require gettext infrastructure
37174         from version 0.16.1.
37175
37176 2007-03-02  Bruno Haible  <bruno@clisp.org>
37177
37178         * modules/linkedhash-list-tests (Depends-on): Add progname.
37179         * tests/test-linkedhash_list.c: Include progname.h.
37180         (main): Call set_program_name.
37181
37182         * modules/carray-list-tests (Depends-on): Add progname.
37183         * tests/test-carray_list.c: Include progname.h.
37184         (main): Call set_program_name.
37185
37186         * modules/avltreehash-list-tests (Depends-on): Add progname.
37187         * tests/test-avltreehash_list.c: Include progname.h.
37188         (main): Call set_program_name.
37189
37190         * modules/avltree-oset-tests (Depends-on): Add progname.
37191         * tests/test-avltree_oset.c: Include progname.h.
37192         (main): Call set_program_name.
37193
37194         * modules/avltree-list-tests (Depends-on): Add progname.
37195         * tests/test-avltree_list.c: Include progname.h.
37196         (main): Call set_program_name.
37197
37198         * modules/array-oset-tests (Depends-on): Add progname.
37199         * tests/test-array_oset.c: Include progname.h.
37200         (main): Call set_program_name.
37201
37202         * modules/array-list-tests (Depends-on): Add progname.
37203         * tests/test-array_list.c: Include progname.h.
37204         (main): Call set_program_name.
37205
37206         * modules/argp-tests (Depends-on): Add progname.
37207         * tests/test-argp.c: Include argp.h first. Include progname.h.
37208         (main): Call set_program_name.
37209
37210 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37211
37212         * doc/gnulib-tool.texi (Initial import): Reword description of
37213         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37214         limited effect even if defined after the first system include.
37215
37216 2007-03-01  Bruno Haible  <bruno@clisp.org>
37217
37218         * build-aux/config.libpath: Update to libtool-1.5.22.
37219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37220
37221 2007-03-01  Bruno Haible  <bruno@clisp.org>
37222
37223         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37224         foo_CFLAGS.
37225         Reported by Ralf Wildenhues.
37226
37227 2007-03-01  Bruno Haible  <bruno@clisp.org>
37228
37229         * build-aux/install-reloc: Remove object files left over by some
37230         compilers.
37231         Reported by Ralf Wildenhues.
37232
37233 2007-03-01  Bruno Haible  <bruno@clisp.org>
37234
37235         * build-aux/install-reloc: Break long lines.
37236
37237 2007-03-01  Bruno Haible  <bruno@clisp.org>
37238
37239         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37240         Reported by Ralf Wildenhues.
37241
37242 2007-03-01  Bruno Haible  <bruno@clisp.org>
37243
37244         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37245         include ordering constraints.
37246
37247 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37248
37249         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37251         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37252         as another example.
37253         * lib/time_.h: Fix misspelling.
37254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37255         Require gl_HEADER_TIME_H_DEFAULTS.
37256         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37257         * m4/time_r.m4 (gl_TIME_R): Likewise.
37258         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37259
37260 2007-03-01  Bruno Haible  <bruno@clisp.org>
37261
37262         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37263         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37264
37265 2007-03-01  Jim Meyering  <jim@meyering.net>
37266
37267         * modules/xreadlink (Maintainer): Add my name.
37268         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37269
37270 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37271             Bruno Haible  <bruno@clisp.org>
37272
37273         * build-aux/install-reloc: Compile also c-ctype.c.
37274         * build-aux/relocatable.sh.in: New file.
37275         * doc/relocatable.texi: New file.
37276         * doc/relocatable-maint.texi: New file.
37277         * doc/gnulib.texi: Include relocatable-maint.texi.
37278         * lib/progreloc.c: Include unistd.h unconditionally.
37279         * lib/relocwrapper.c: Include unistd.h unconditionally.
37280         Include c-ctype.h.
37281         (add_dotbin): Use c_tolower.
37282         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37283         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37284         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37285         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37286         to m4/relocatable-lib.m4.
37287         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37288         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37289         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37290         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37291         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37292         * modules/relocatable: New file.
37293         * modules/relocatable-lib: New file.
37294         * modules/relocatable-script: New file.
37295
37296 2007-02-28  Bruno Haible  <bruno@clisp.org>
37297
37298         Import --enable-relocatable infrastructure.
37299         * build-aux/config.libpath: New file, from GNU gettext.
37300         * build-aux/install-reloc: New file, from GNU gettext.
37301         * build-aux/reloc-ldflags: New file, from GNU gettext.
37302         * lib/relocatable.h: New file, from GNU gettext.
37303         * lib/relocatable.c: New file, from GNU gettext.
37304         * lib/relocwrapper.c: New file, from GNU gettext.
37305         * m4/relocatable.m4: New file, from GNU gettext.
37306
37307 2007-02-28  Bruno Haible  <bruno@clisp.org>
37308
37309         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37310
37311         * modules/xreadlink: New file, from GNU gettext with modifications.
37312         * lib/xreadlink.c: New file, from GNU gettext.
37313         * lib/xreadlink.h: Add comments.
37314         (xreadlink): New declaration.
37315
37316         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37317         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37318         lib/xreadlink-with-size.c.
37319         (configure.ac): Remove gl_XREADLINK invocation.
37320         (Makefile.am): Augment lib_SOURCES.
37321         * m4/xreadlink.m4: Remove file.
37322         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37323         (xreadlink_with_size): Renamed from xreadink.
37324         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37325         * modules/canonicalize (Depends-on): Replace xreadlink with
37326         xreadlink-with-size.
37327         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37328
37329 2007-02-25  Jim Meyering  <jim@meyering.net>
37330
37331         * build-aux/announce-gen: When complaining about excess arguments,
37332         list them.
37333
37334 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37335
37336         * README: Document signed integer overflow situation more
37337         accurately.
37338
37339 2007-02-25  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37342         'a' or 'A' conversion.
37343
37344 2007-02-25  Bruno Haible  <bruno@clisp.org>
37345
37346         * modules/filename: Renamed from modules/pathname.
37347         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37348         lib/concatpath.c with lib/concat-filename.c.
37349         (Makefile.am): Update.
37350         (Include): Replace pathname.h with filename.h.
37351         * lib/filename.h: Renamed from lib/pathname.h.
37352         (concatenated_filename): Renamed from concatenated_pathname.
37353         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37354         (concatenated_filename): Renamed from concatenated_pathname.
37355         * lib/findprog.c: Include filename.h instead of pathname.h.
37356         (find_in_path): Update.
37357         * lib/javacomp.c: Include filename.h instead of pathname.h.
37358         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37359         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37360         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37361         is_oldgcj_14_13_usable, is_javac_usable): Update.
37362         * lib/javaexec.c: Include filename.h instead of pathname.h.
37363         (execute_java_class): Update.
37364         * modules/findprog: Update.
37365         * modules/javacomp: Update.
37366         * modules/javaexec: Update.
37367         * MODULES.html.sh (File system functions): Add 'filename', remove
37368         'pathname'.
37369
37370 2007-02-25  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/printf-frexpl-tests: New file.
37373         * tests/test-printf-frexpl.c: New file.
37374
37375         * modules/printf-frexpl: New file.
37376         * lib/printf-frexpl.h: New file.
37377         * lib/printf-frexpl.c: New file.
37378         * m4/printf-frexpl.m4: New file.
37379
37380 2007-02-25  Bruno Haible  <bruno@clisp.org>
37381
37382         * modules/printf-frexp-tests: New file.
37383         * tests/test-printf-frexp.c: New file.
37384
37385         * modules/printf-frexp: New file.
37386         * lib/printf-frexp.h: New file.
37387         * lib/printf-frexp.c: New file.
37388         * m4/printf-frexp.m4: New file.
37389
37390 2007-02-25  Bruno Haible  <bruno@clisp.org>
37391
37392         Assume automake >= 1.10 for the tests.
37393         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37394         * modules/arctwo-tests: Likewise.
37395         * modules/argp-tests: Likewise.
37396         * modules/avltree-list-tests: Likewise.
37397         * modules/avltree-oset-tests: Likewise.
37398         * modules/avltreehash-list-tests: Likewise.
37399         * modules/carray-list-tests: Likewise.
37400         * modules/crc-tests: Likewise.
37401         * modules/des-tests: Likewise.
37402         * modules/gc-arcfour-tests: Likewise.
37403         * modules/gc-arctwo-tests: Likewise.
37404         * modules/gc-des-tests: Likewise.
37405         * modules/gc-hmac-md5-tests: Likewise.
37406         * modules/gc-hmac-sha1-tests: Likewise.
37407         * modules/gc-md2-tests: Likewise.
37408         * modules/gc-md4-tests: Likewise.
37409         * modules/gc-md5-tests: Likewise.
37410         * modules/gc-pbkdf2-sha1-tests: Likewise.
37411         * modules/gc-rijndael-tests: Likewise.
37412         * modules/gc-sha1-tests: Likewise.
37413         * modules/gc-tests: Likewise.
37414         * modules/getaddrinfo-tests: Likewise.
37415         * modules/hmac-md5-tests: Likewise.
37416         * modules/hmac-sha1-tests: Likewise.
37417         * modules/linked-list-tests: Likewise.
37418         * modules/linkedhash-list-tests: Likewise.
37419         * modules/lock-tests: Likewise.
37420         * modules/md2-tests: Likewise.
37421         * modules/md4-tests: Likewise.
37422         * modules/md5-tests: Likewise.
37423         * modules/rbtree-list-tests: Likewise.
37424         * modules/rbtree-oset-tests: Likewise.
37425         * modules/rbtreehash-list-tests: Likewise.
37426         * modules/read-file-tests: Likewise.
37427         * modules/rijndael-tests: Likewise.
37428         * modules/stdint-tests: Likewise.
37429         * modules/tls-tests: Likewise.
37430
37431 2007-02-24  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37434         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37435         function; instead check whether isnan with a double argument links.
37436         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37437         function; instead check whether isnan with a 'long double' argument
37438         links.
37439         Reported by Eric Blake <ebb9@byu.net>.
37440
37441 2007-02-24  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37444         defined.
37445         * lib/isnanl.c: Remove all code. Just include isnan.c.
37446         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37447
37448 2007-02-25  Jim Meyering  <jim@meyering.net>
37449
37450         Avoid conflicting types for 'unsetenv' on FreeBSD.
37451         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37452         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37453         in stdlib.h.
37454
37455 2007-02-24  Bruno Haible  <bruno@clisp.org>
37456
37457         * modules/isnanl-nolibm-tests: New file.
37458         * tests/test-isnanl.c: New file.
37459
37460         * modules/isnanl-nolibm: New file.
37461         * lib/isnanl.h: New file.
37462         * lib/isnanl.c: New file.
37463         * m4/isnanl.m4: New file.
37464
37465 2007-02-24  Bruno Haible  <bruno@clisp.org>
37466
37467         * modules/isnan-nolibm-tests: New file.
37468         * tests/test-isnan.c: New file.
37469
37470         * modules/isnan-nolibm: New file.
37471         * lib/isnan.h: New file.
37472         * lib/isnan.c: New file.
37473         * m4/isnan.m4: New file.
37474
37475 2007-02-24  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37478         assume that an exponent fits in 20 bits.
37479
37480 2007-02-24  Jim Meyering  <jim@meyering.net>
37481
37482         * m4/regex.m4: Update the description of the configure-time option,
37483         --without-included-regex, to state accurately what the defaults are,
37484         and perhaps to give people an idea why using this option is risky.
37485
37486 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37487
37488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37489         loops on small arguments.  This attempts to avoid the problem
37490         Bruno Haible reported for AIX 4.3.2 in
37491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37492
37493 2007-02-23  Bruno Haible  <bruno@clisp.org>
37494
37495         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37496         Needed for help2man.
37497
37498 2007-02-23  Karl Berry  <karl@gnu.org>
37499
37500         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37501         exists, foo.h should be cvs-ignored, not committed.
37502
37503 2007-02-23  Eric Blake  <ebb9@byu.net>
37504
37505         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37506         * lib/stat-time.h (includes): Likewise.
37507         * lib/utimecmp.c (includes): Likewise.
37508         * lib/utimens.h (includes): Likewise.
37509         * lib/getdate.y (includes): Also include "timespec.h" for use
37510         internal to the module.
37511         * modules/utimens (Depends-on): Revert yesterday's patch.
37512         * modules/nanosleep (Depends-on): Add missing dependency.
37513
37514 2007-02-22  Bruno Haible  <bruno@clisp.org>
37515
37516         * lib/glob.c: Don't include getlogin_r.h.
37517
37518 2007-02-22  Jim Meyering  <jim@meyering.net>
37519
37520         * modules/utimens (Depends-on): Add timespec, required for
37521         utimens.h's inclusion of timespec.h.
37522
37523 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37524
37525         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37526         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37527         Schwab in
37528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37529         I'll try to think of a better way to fix the Solaris problem.
37530
37531         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37532         like glibc; on Solaris 10, it fails with errno == EINVAL.
37533         POSIX says the behavior is unspecified if the first argument is NULL,
37534         so play it safe and never pass NULL to the system getcwd.
37535
37536 2007-02-21  Jim Meyering  <jim@meyering.net>
37537
37538         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37539         of gettimeofday.  It would conflict with the one now always
37540         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37541         an IRIX 6.5 build failure.
37542
37543 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37544
37545         Minor fixups to port to Solaris 10 with Sun C 5.8.
37546         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37547         * modules/getcwd (Depends-on): Add dirfd.
37548         * lib/putenv.c (putenv): #undef it.
37549         (rpl_putenv): New decl.
37550         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37551
37552 2007-02-20  Bruno Haible  <bruno@clisp.org>
37553
37554         * modules/stdio-tests: New file.
37555         * tests/test-stdio.c: New file.
37556
37557         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37558         (Depends-on): Add stdio.
37559         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37560         (Include): Use <stdio.h> instead of vsnprintf.h.
37561         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37562         HAVE_DECL_VSNPRINTF.
37563         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37564
37565         * modules/snprintf (Files): Remove lib/snprintf.h.
37566         (Depends-on): Add stdio.
37567         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37568         (Include): Use <stdio.h> instead of snprintf.h.
37569         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37570         HAVE_DECL_SNPRINTF.
37571         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37572         * lib/getaddrinfo.c: Likewise.
37573
37574         * modules/stdio: New file.
37575         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37576         * lib/snprintf.h: Remove file.
37577         * lib/vsnprintf.h: Remove file.
37578         * lib/.cppi-disable: Remove snprintf.h.
37579         * m4/stdio_h.m4: New file.
37580         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37581
37582 2007-02-20  Jim Meyering  <jim@meyering.net>
37583
37584         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37585         used by e.g., mingw.  From Bruno Haible.
37586
37587 2007-02-19  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37590         warnings.
37591         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37592
37593 2007-02-19  Bruno Haible  <bruno@clisp.org>
37594
37595         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37596         from mingw users.
37597
37598 2007-02-19  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37601         warnings.
37602         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37603
37604 2007-02-19  Jim Meyering  <jim@meyering.net>
37605
37606         Don't use FD after a successful "fdopendir (fd)".
37607         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37608         Reset it by calling dirfd on the just-obtained DIR*.
37609
37610         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37611         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37612
37613 2007-02-18  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/readlink.c: Include <unistd.h>.
37616         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37617         HAVE_READLINK.
37618         * modules/readlink (Depends-on): Add unistd.
37619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37620         (Include): Add <unistd.h>.
37621
37622         * lib/getlogin_r.h: Remove file.
37623         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37624         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37625         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37626         HAVE_DECL_GETLOGIN_R.
37627         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37629         (Include): Use <unistd.h> instead of getlogin_r.h.
37630
37631         * lib/getcwd.h: Remove file.
37632         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37633         * lib/xgetcwd.c: Likewise.
37634         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37635         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37636         * modules/getcwd (Files): Remove lib/getcwd.h.
37637         (Depends-on): Add unistd.
37638         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37639         (Include): Use <unistd.h> instad of getcwd.h.
37640
37641         * lib/ftruncate.c: Include <unistd.h> first.
37642         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37643         Set HAVE_FTRUNCATE.
37644         * modules/ftruncate (Depends-on): Add unistd.
37645         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37646
37647         * lib/fchdir.c: Include <unistd.h> first.
37648         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37650         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37651         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37652         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37653
37654         * lib/dup2.c: Include <unistd.h> first.
37655         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37656         HAVE_DUP2.
37657         * modules/dup2 (Depends-on): Add unistd.
37658         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37659
37660         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37661         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37662         REPLACE_CHOWN. Don't define chown as a macro here.
37663         * modules/chown (Depends-on): Add unistd.
37664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37665
37666         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37667         Add definition for GL_LINK_WARNING.
37668         (chown, dup2): New declarations.
37669         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37670         link warning.
37671         (ftruncate): New declaration.
37672         (getcwd): New declaration, taken from old getcwd.h.
37673         (getlogin_r): New declaration, taken from old getlogin_r.h.
37674         (readlink): New declaration.
37675         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37676         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37677         (gl_PREREQ_UNISTD): Remove macro.
37678         (gl_UNISTD_MODULE_INDICATOR): New macro.
37679         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37680         many new variables. Don't set UNISTD_H.
37681         * modules/unistd (Description): Change.
37682         (Depends-on): Add link-warning.
37683         (configure.ac): Update.
37684         (Makefile.am): Create unistd.h always. Substitute many new variables
37685         into it.
37686
37687 2007-02-18  Bruno Haible  <bruno@clisp.org>
37688
37689         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37690         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37691         HAVE_GETSUBOPT.
37692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37693         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37694         * lib/getsubopt.h: Remove file.
37695         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37696         (Depends-on): Add stdlib.
37697         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37698         (Includes): Use <stdlib.h> instead of getsubopt.h.
37699         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37700         Set HAVE_GETSUBOPT.
37701         * lib/getsubopt.c: Don't include getsubopt.h.
37702
37703 2007-02-18  Bruno Haible  <bruno@clisp.org>
37704
37705         * modules/fchdir (Depends-on): Add dup2.
37706
37707 2007-02-18  Bruno Haible  <bruno@clisp.org>
37708
37709         * lib/stdlib_.h: Handle glibc's special invocation convention
37710         specially.
37711
37712 2007-02-18  Bruno Haible  <bruno@clisp.org>
37713
37714         * modules/stdlib-tests: New file.
37715         * tests/test-stdlib.c: New file.
37716
37717         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37718         (Depends-on): Add stdlib.
37719         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37720         (Includes): Use <stdlib.h> instead of mkstemp.h.
37721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37722         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37723         * lib/mkstemp.c: Don't include mkstemp.h.
37724         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37725         * lib/stdlib--.h: Don't include mkstemp.h.
37726
37727         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37728         (Depends-on): Add stdlib.
37729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37730         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37731         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37732         HAVE_MKDTEMP.
37733         * lib/mkdtemp.c: Don't include mkdtemp.h.
37734         * lib/clean-temp.c: Don't include mkdtemp.h.
37735
37736         * modules/exit (Files): Remove lib/exit.h.
37737         (Depends-on): Add stdlib.
37738         (Makefile.am): Remove lib_SOURCES.
37739         (Include): Use <stdlib.h> instead of exit.h.
37740         * lib/argmatch.c: Don't include exit.h.
37741         * lib/execute.c: Likewise.
37742         * lib/pagealign_alloc.c: Likewise.
37743         * lib/pipe.c: Likewise.
37744         * lib/wait-process.c: Likewise.
37745         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37746         * lib/exitfail.c: Likewise.
37747         * lib/savewd.c: Likewise.
37748         * lib/xsetenv.c: Likewise.
37749
37750         * modules/stdlib: New file.
37751         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37752         and extra comments about mkstemp().
37753         * lib/exit.h: Remove file.
37754         * lib/mkdtemp.h: Remove file.
37755         * lib/mkstemp.h: Remove file.
37756         * m4/stdlib_h.m4: New file.
37757         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37758
37759 2007-02-18  Bruno Haible  <bruno@clisp.org>
37760
37761         * modules/math-tests: New file.
37762         * tests/test-math.c: New file.
37763
37764         * modules/math: New file.
37765         * modules/mathl (Files): Remove lib/mathl.h.
37766         (Depends-on): Add math.
37767         (Makefile.am): Don't mention mathl.h.
37768         (Include): Use <math.h> instead of mathl.h.
37769         * lib/math_.h: New file.
37770         * lib/mathl.h: Remove file.
37771         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37772         mathl.h.
37773         * lib/asinl.c: Likewise.
37774         * lib/atanl.c: Likewise.
37775         * lib/ceill.c: Likewise.
37776         * lib/cosl.c: Likewise.
37777         * lib/expl.c: Likewise.
37778         * lib/floorl.c: Likewise.
37779         * lib/frexpl.c: Likewise.
37780         * lib/ldexpl.c: Likewise.
37781         * lib/logl.c: Likewise.
37782         * lib/sincosl.c: Likewise.
37783         * lib/sinl.c: Likewise.
37784         * lib/sqrtl.c: Likewise.
37785         * lib/tanl.c: Likewise.
37786         * lib/trigl.c: Likewise.
37787         * m4/math_h.m4: New file.
37788         * MODULES.html.sh (Mathematics): Add math.
37789
37790 2007-02-17  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/wctype-tests: New file.
37793         * tests/test-wctype.c: New file.
37794
37795         * modules/wchar-tests: New file.
37796         * tests/test-wchar.c: New file.
37797
37798         * modules/unistd-tests: New file.
37799         * tests/test-unistd.c: New file.
37800
37801         * modules/time-tests: New file.
37802         * tests/test-time.c: New file.
37803
37804         * modules/sysexits-tests: New file.
37805         * tests/test-sysexits.c: New file.
37806
37807         * modules/sys_time-tests: New file.
37808         * tests/test-sys_time.c: New file.
37809
37810         * modules/sys_stat-tests: New file.
37811         * tests/test-sys_stat.c: New file.
37812
37813         * modules/sys_socket-tests: New file.
37814         * tests/test-sys_socket.c: New file.
37815
37816         * modules/sys_select-tests: New file.
37817         * tests/test-sys_select.c: New file.
37818
37819         * modules/string-tests: New file.
37820         * tests/test-string.c: New file.
37821
37822         * modules/stdbool-tests: New file.
37823         * tests/test-stdbool.c: New file.
37824
37825         * modules/netinet_in-tests: New file.
37826         * tests/test-netinet_in.c: New file.
37827
37828         * modules/inttypes-tests: New file.
37829         * tests/test-inttypes.c: New file.
37830
37831         * modules/fcntl-tests: New file.
37832         * tests/test-fcntl.c: New file.
37833
37834         * modules/byteswap-tests: New file.
37835         * tests/test-byteswap.c: New file.
37836
37837         * modules/arpa_inet-tests: New file.
37838         * tests/test-arpa_inet.c: New file.
37839
37840 2007-02-17  Bruno Haible  <bruno@clisp.org>
37841
37842         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37843         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37844         if the corresponding module is not enabled. Emit link warnings if
37845         the function is used nevertheless.
37846         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37847         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37848         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37849         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37850         * modules/inttypes (Depends-on): Add link-warning.
37851         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37852         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37853         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37854         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37855         * modules/imaxdiv (configure.ac): Likewise.
37856         * modules/strtoimax (configure.ac): Likewise.
37857         * modules/strtoumax (configure.ac): Likewise.
37858
37859 2007-02-17  Bruno Haible  <bruno@clisp.org>
37860
37861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37862         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37863         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37864         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37865
37866 2007-02-17  Bruno Haible  <bruno@clisp.org>
37867
37868         * modules/link-warning: New file.
37869         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37870         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37871         * modules/string (Depends-on): Add link-warning.
37872         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37873         string.h.
37874         * MODULES.html.sh (Support for building libraries and executables): Add
37875         link-warning.
37876
37877 2007-02-17  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37880         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37881         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37882         long lines.
37883
37884 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37885             Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/tmpfile: New file.
37888         * lib/tmpfile.c: New file.
37889         * m4/tmpfile.m4: New file.
37890         * MODULES.html.sh (func_all_modules): New section "Input/output".
37891
37892 2007-02-15  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37895         (supports_delete_on_close): New function.
37896         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37897
37898 2007-02-14  Bruno Haible  <bruno@clisp.org>
37899
37900         * modules/mbspcasecmp-tests: New file.
37901         * tests/test-mbspcasecmp.sh: New file.
37902         * tests/test-mbspcasecmp.c: New file.
37903
37904         New module mbspcasecmp.
37905         * modules/mbspcasecmp: New file.
37906         * lib/mbspcasecmp.c: New file.
37907         * lib/string_.h (strncasecmp): Change warning message.
37908         (mbspcasecmp): New declaration.
37909         * m4/mbspcasecmp.m4: New file.
37910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37911         GNULIB_MBSPCASECMP.
37912         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37913         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37914
37915 2007-02-14  Bruno Haible  <bruno@clisp.org>
37916
37917         * modules/mbsncasecmp-tests: New file.
37918         * tests/test-mbsncasecmp.sh: New file.
37919         * tests/test-mbsncasecmp.c: New file.
37920
37921         New module mbsncasecmp.
37922         * modules/mbsncasecmp: New file.
37923         * lib/mbsncasecmp.c: New file.
37924         * lib/string_.h (mbsncasecmp): New declaration.
37925         * m4/mbsncasecmp.m4: New file.
37926         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37927         GNULIB_MBSNCASECMP.
37928         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37929         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37930
37931 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37932
37933         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37934         Verify that it doesn't overlap with our flags.
37935         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37936         do not have the desired effect in multibyte locales; instead, use
37937         mbscasecmp.
37938         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37939         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37940         we don't require GNU fnmatch ourselves (if our users require it, they
37941         should do so explicitly).
37942
37943         Fix regex code so it doesn't rely on strcasecmp.
37944         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37945         Otherwise, include gnulib's langinfo.h.
37946         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37947         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37948         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37949         * modules/regex (FILES): Remove m4/codeset.m4.
37950         (Depends-on): Add localcharset.  Remove strcase.
37951
37952 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37953
37954         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37955         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37956
37957 2007-02-13  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37961
37962 2007-02-12  Bruno Haible  <bruno@clisp.org>
37963
37964         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37965         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37966         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37967         time warning rather than a link error.
37968
37969 2007-02-12  Bruno Haible  <bruno@clisp.org>
37970
37971         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37973         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37974
37975 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37978         args, not 2.
37979
37980 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37981
37982         New module 'time', so that apps can include <time.h> as per
37983         POSIX and GNU instead of separate include files like time_r.h
37984         and timegm.h.  This implementation tries out a simpler approach
37985         for replacing decls in standard include files (as compared to
37986         the string module), somewhat as an experiment.
37987
37988         * config/srclist.txt: Comment out mktime.c for now.
37989         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37990         since it doesn't apply any more.  Use generic wording instead.
37991         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37992         'time'.
37993         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37994         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37995         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37996         Don't include <sys/types.h>; no longer needed since we assume C89.
37997         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37998         * lib/strftime.c: Likewise.
37999         * lib/time_r.c: Likewise.
38000         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38001         * lib/nanosleep.c: Include <time.h> first, to check interface.
38002         * lib/strptime.c: Likewise.
38003         * lib/time_r.c: Likewise.
38004         * lib/timegm.c: Likewise.
38005         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38006         needed.
38007         * lib/timegm.c: Don't include timegm.h; no longer needed.
38008         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38009         time.h now handles any problems in that area.
38010         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38011         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38012         that time.h defines struct timespec.
38013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38014         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38015         handles that.
38016         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38017         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38018         needed.  Set REPLACE_LOCALTIME.
38019         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38020         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38021         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38022         nanosleep; time_h.m4 now does that.  Don't require
38023         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38024         module handles this now.
38025         * modules/getdate (Depends-on): Remove timespec.  Add time.
38026         * modules/nanosleep (Depends-on): Likewise.
38027         * modules/stat-time (Depends-on): Likewise.
38028         * modules/nanosleep (Include): Include time.h, not timespec.h.
38029         * modules/strptime (Files): Remove lib/strptime.h.
38030         (Depends-on): Add extensions, time.
38031         (Include): Include time.h, not strptime.h.
38032         * modules/time_r (Files): Remove lib/time_r.h.
38033         (Depends-on): Add time.
38034         (Include): Include time.h, not time_r.h.
38035         * modules/timegm: Likewise.
38036         * modules/timespec (Description): Now does timespec-related decls
38037         of our own, instead of struct timespec itself.
38038         (Depends-on): Add time; remove extensions.
38039         (Maintainer): Add self.
38040         * modules/utimecmp (Depends-on): Add time; remove timespec.
38041         * modules/utimens (Depends-on): Likewise.
38042         * modules/xnanosleep (Depends-on): Likewise.
38043
38044 2007-02-11  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/c-strstr.c: Include allocsa.h.
38047         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38048         * lib/c-strcasestr.c: Include allocsa.h.
38049         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38050         * lib/strcasestr.c: Include allocsa.h.
38051         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38052         * lib/mbsstr.c: Include allocsa.h.
38053         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38054         allocsa/freesa instead of malloc/free.
38055         * lib/mbscasestr.c: Include allocsa.h.
38056         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38057         allocsa/freesa instead of malloc/free.
38058         * modules/c-strstr (Depends-on): Add allocsa.
38059         * modules/c-strcasestr (Depends-on): Likewise.
38060         * modules/strcasestr (Depends-on): Likewise.
38061         * modules/mbsstr (Depends-on): Likewise.
38062         * modules/mbscasestr (Depends-on): Likewise.
38063
38064 2007-02-11  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38067
38068         * modules/mbsspn-tests: New file.
38069         * tests/test-mbsspn.sh: New file.
38070         * tests/test-mbsspn.c: New file.
38071
38072 2007-02-11  Bruno Haible  <bruno@clisp.org>
38073
38074         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38075
38076         * modules/mbspbrk-tests: New file.
38077         * tests/test-mbspbrk.sh: New file.
38078         * tests/test-mbspbrk.c: New file.
38079
38080 2007-02-11  Bruno Haible  <bruno@clisp.org>
38081
38082         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38083         unneeded cast.
38084
38085         * modules/mbscspn-tests: New file.
38086         * tests/test-mbscspn.sh: New file.
38087         * tests/test-mbscspn.c: New file.
38088
38089 2007-02-11  Bruno Haible  <bruno@clisp.org>
38090
38091         * modules/mbscasecmp-tests: New file.
38092         * tests/test-mbscasecmp.sh: New file.
38093         * tests/test-mbscasecmp.c: New file.
38094
38095 2007-02-11  Bruno Haible  <bruno@clisp.org>
38096
38097         Ensure O(n) worst-case complexity of mbscasestr.
38098         * lib/mbscasestr.c: Include stdbool.h.
38099         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38100         functions.
38101         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38102         the bookkeeping indicates that it's worth it.
38103         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38104
38105         * modules/mbscasestr-tests: New file.
38106         * tests/test-mbscasestr1.c: New file.
38107         * tests/test-mbscasestr2.sh: New file.
38108         * tests/test-mbscasestr2.c: New file.
38109         * tests/test-mbscasestr3.sh: New file.
38110         * tests/test-mbscasestr3.c: New file.
38111         * tests/test-mbscasestr4.sh: New file.
38112         * tests/test-mbscasestr4.c: New file.
38113         * m4/locale-tr.m4: New file.
38114
38115 2007-02-11  Bruno Haible  <bruno@clisp.org>
38116
38117         Ensure O(n) worst-case complexity of mbsstr.
38118         * lib/mbsstr.c: Include stdbool.h.
38119         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38120         functions.
38121         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38122         bookkeeping indicates that it's worth it.
38123         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38124
38125         * modules/mbsstr-tests: New file.
38126         * tests/test-mbsstr1.c: New file.
38127         * tests/test-mbsstr2.sh: New file.
38128         * tests/test-mbsstr2.c: New file.
38129         * tests/test-mbsstr3.sh: New file.
38130         * tests/test-mbsstr3.c: New file.
38131         * m4/locale-fr.m4: New file.
38132
38133 2007-02-11  Bruno Haible  <bruno@clisp.org>
38134
38135         * lib/mbsrchr.c (mbsrchr): Fix bug.
38136
38137         * modules/mbsrchr-tests: New file.
38138         * tests/test-mbsrchr.sh: New file.
38139         * tests/test-mbsrchr.c: New file.
38140
38141 2007-02-11  Bruno Haible  <bruno@clisp.org>
38142
38143         * lib/mbschr.c (mbschr): Fix bug.
38144
38145         * modules/mbschr-tests: New file.
38146         * tests/test-mbschr.sh: New file.
38147         * tests/test-mbschr.c: New file.
38148         * m4/locale-zh.m4: New file.
38149
38150 2007-02-11  Bruno Haible  <bruno@clisp.org>
38151
38152         Support for copying multibyte string iterators.
38153         * lib/mbiter.h: Include <string.h>.
38154         (mbiter_multi_copy): New function.
38155         (mbi_copy): New macro.
38156         * lib/mbuiter.h: Include <string.h>.
38157         (mbuiter_multi_copy): New function.
38158         (mbui_copy): New macro.
38159
38160 2007-02-11  Bruno Haible  <bruno@clisp.org>
38161
38162         New module mbslen.
38163         * modules/mbslen: New file.
38164         * lib/mbslen.c: New file.
38165         * lib/string_.h (mbslen): New declaration.
38166         * m4/mbslen.m4: New file.
38167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38168         GNULIB_MBSLEN.
38169         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38170         * MODULES.html.sh (Internationalization functions): Add mbslen.
38171
38172 2007-02-11  Bruno Haible  <bruno@clisp.org>
38173
38174         Ensure O(n) worst-case complexity of strcasestr substitute.
38175         * lib/strcasestr.c: Include stdbool.h.
38176         (knuth_morris_pratt): New function.
38177         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38178         bookkeeping indicates that it's worth it.
38179         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38180
38181         * modules/strcasestr-tests: New file.
38182         * tests/test-strcasestr.c: New file.
38183
38184 2007-02-11  Bruno Haible  <bruno@clisp.org>
38185
38186         Ensure O(n) worst-case complexity of c_strcasestr.
38187         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38188         (knuth_morris_pratt): New function.
38189         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38190         the bookkeeping indicates that it's worth it.
38191         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38192
38193         * modules/c-strcasestr-tests: New file.
38194         * tests/test-c-strcasestr.c: New file.
38195
38196 2007-02-11  Bruno Haible  <bruno@clisp.org>
38197
38198         Ensure O(n) worst-case complexity of c_strstr.
38199         * lib/c-strstr.c: Include stdbool.h, string.h.
38200         (knuth_morris_pratt): New function.
38201         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38202         bookkeeping indicates that it's worth it.
38203         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38204
38205         * lib/c-strstr.c: Complete rewrite for maintainability.
38206
38207         * modules/c-strstr-tests: New file.
38208         * tests/test-c-strstr.c: New file.
38209
38210 2007-02-11  Bruno Haible  <bruno@clisp.org>
38211
38212         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38213         5.2.1 and earlier, whereby \055 was treated just like the range
38214         delimiter '-'.
38215         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38216
38217 2007-02-08  Bruno Haible  <bruno@clisp.org>
38218
38219         * modules/regex (Depends-on): Add stdbool.
38220         Reported by Dalibor Topic <robilad@kaffe.org>.
38221
38222 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38223
38224         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38225         Prefer returning from main to exiting from it.
38226         Remove unnecessary parens after sizeof.
38227
38228 2007-02-05  Bruno Haible  <bruno@clisp.org>
38229
38230         New module mbssep.
38231         * modules/mbssep: New file.
38232         * lib/mbssep.c: New file.
38233         * lib/string_.h (strsep): Add a conditional link warning.
38234         (mbssep): New declaration.
38235         * m4/mbssep.m4: New file.
38236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38237         GNULIB_MBSSEP.
38238         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38239         * MODULES.html.sh (Internationalization functions): Add mbssep.
38240
38241 2007-02-05  Bruno Haible  <bruno@clisp.org>
38242
38243         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38244         Optimize search in case of 1 delimiter.
38245
38246 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38247
38248         * lib/acl.h: Include sys/types.h before sys/acl.h.
38249
38250 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38251
38252         Merge upstream fix for glibc bugzilla #3957:
38253
38254         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38255
38256         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38257         bit for RE_HAT_LISTS_NOT_NEWLINE.
38258         (build_charclass_op): Remove bogus comment.
38259
38260 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38261
38262         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38263
38264 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38265
38266         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38267         * lib/memmem.c [!defined _LIBC]: Include config.h.
38268
38269 2007-02-04  Bruno Haible  <bruno@clisp.org>
38270
38271         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38272         warning message.
38273
38274 2007-02-04  Bruno Haible  <bruno@clisp.org>
38275
38276         New module mbstok_r.
38277         * modules/mbstok_r: New file.
38278         * lib/mbstok_r.c: New file.
38279         * lib/string_.h (strtok_r): Change argument names to match the
38280         comments. Add a conditional link warning.
38281         (mbstok_r): New declaration.
38282         * m4/mbstok_r.m4: New file.
38283         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38284         GNULIB_MBSTOK_R.
38285         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38286         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38287
38288 2007-02-04  Bruno Haible  <bruno@clisp.org>
38289
38290         New module mbsspn.
38291         * modules/mbsspn: New file.
38292         * lib/mbsspn.c: New file.
38293         * lib/string_.h (strspn): Add a conditional link warning.
38294         (mbsspn): New declaration.
38295         * m4/mbsspn.m4: New file.
38296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38297         GNULIB_MBSSPN.
38298         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38299         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38300
38301 2007-02-04  Bruno Haible  <bruno@clisp.org>
38302
38303         New module mbspbrk.
38304         * modules/mbspbrk: New file.
38305         * lib/mbspbrk.c: New file.
38306         * lib/string_.h (strpbrk): Add a conditional link warning.
38307         (mbspbrk): New declaration.
38308         * m4/mbspbrk.m4: New file.
38309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38310         GNULIB_MBSPBRK.
38311         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38312         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38313
38314 2007-02-04  Bruno Haible  <bruno@clisp.org>
38315
38316         New module mbscspn.
38317         * modules/mbscspn: New file.
38318         * lib/mbscspn.c: New file.
38319         * lib/string_.h (strcspn): Add a conditional link warning.
38320         (mbscspn): New declaration.
38321         * m4/mbscspn.m4: New file.
38322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38323         GNULIB_MBSCSPN.
38324         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38325         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38326
38327 2007-02-04  Bruno Haible  <bruno@clisp.org>
38328
38329         New module mbscasestr, reduced goal of strcasestr.
38330         * modules/mbscasestr: New file.
38331         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38332         (mbscasestr): Renamed from strcasestr.
38333         * lib/strcasestr.c: Don't include mbuiter.h.
38334         (strcasestr): Remove support for multibyte locales.
38335         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38336         Change the conditional link warning.
38337         (mbscasestr): New declaration.
38338         * m4/mbscasestr.m4: New file.
38339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38340         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38341         REPLACE_STRCASESTR.
38342         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38344         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38345         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38346         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38347         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38348         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38349         (Depends-on): Remove mbuiter.
38350         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38351
38352 2007-02-04  Bruno Haible  <bruno@clisp.org>
38353
38354         Simplify handling of strncasecmp.
38355         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38356         the conditional link warning.
38357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38358         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38359         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38360         * modules/strcase (configure.ac): Don't invoke
38361         gl_STRING_MODULE_INDICATOR.
38362         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38363
38364 2007-02-04  Bruno Haible  <bruno@clisp.org>
38365
38366         New module mbscasecmp, reduced goal of strcasecmp.
38367         * modules/mbscasecmp: New file.
38368         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38369         (mbscasecmp): Renamed from strcasecmp.
38370         * lib/strcasecmp.c: Don't include mbuiter.h.
38371         (strcasecmp): Remove support for multibyte locales.
38372         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38373         Change the conditional link warning.
38374         (mbscasecmp): New declaration.
38375         * m4/mbscasecmp.m4: New file.
38376         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38377         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38378         REPLACE_STRCASECMP.
38379         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38381         GNULIB_MBSCASECMP.
38382         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38383         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38384         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38385         (Depends-on): Remove mbuiter.
38386         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38387
38388 2007-02-04  Bruno Haible  <bruno@clisp.org>
38389
38390         New module mbsstr. Remove module strstr.
38391         * modules/mbsstr: New file.
38392         * modules/strstr: Remove file.
38393         * lib/mbsstr.c: Renamed from lib/strstr.c.
38394         (mbsstr): Renamed from strstr.
38395         * lib/string_.h (strstr): Remove declaration. Change the conditional
38396         link warning.
38397         (mbsstr): New declaration.
38398         * m4/mbsstr.m4: New file.
38399         * m4/strstr.m4: Remove file.
38400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38401         REPLACE_STRSTR.
38402         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38403         Don't initialize GNULIB_STRSTR.
38404         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38405         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38406         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38407         (Support for systems lacking ANSI C 89): Remove strstr.
38408
38409 2007-02-04  Bruno Haible  <bruno@clisp.org>
38410
38411         New module mbsrchr.
38412         * modules/mbsrchr: New file.
38413         * lib/mbsrchr.c: New file.
38414         * lib/string_.h (strrchr): Add a conditional link warning.
38415         (mbsrchr): New declaration.
38416         * m4/mbsrchr.m4: New file.
38417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38418         GNULIB_MBSRCHR.
38419         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38420         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38421
38422 2007-02-04  Bruno Haible  <bruno@clisp.org>
38423
38424         New module mbschr.
38425         * modules/mbschr: New file.
38426         * lib/mbschr.c: New file.
38427         * lib/string_.h (strchr): Add a conditional link warning.
38428         (mbschr): New declaration.
38429         * m4/mbschr.m4: New file.
38430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38431         GNULIB_MBSCHR.
38432         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38433         * MODULES.html.sh (Internationalization functions): Add mbschr.
38434
38435 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38436
38437         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38438
38439         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38440
38441 2007-02-04  Bruno Haible  <bruno@clisp.org>
38442
38443         New module description section 'configure.ac-early'.
38444         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38445         (func_get_autoconf_early_snippet): New function.
38446         (func_import, func_create_testdir): Use it. Remove special cases for
38447         modules 'extensions' and 'lock'.
38448         * modules/extensions (configure.ac-early): Require
38449         gl_USE_SYSTEM_EXTENSIONS.
38450         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38451
38452 2007-02-04  Bruno Haible  <bruno@clisp.org>
38453
38454         Make use of gcj-4.3's -fsource and -ftarget option.
38455         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38456         and if so try the options -fsource and -ftarget.
38457         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38458         source_version, ftarget_option, target_version arguments.
38459         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38460         (is_envjavac_oldgcj_14_14_usable): Renamed from
38461         is_envjavac_gcj_14_14_usable.
38462         (is_envjavac_oldgcj_14_13_usable): Renamed from
38463         is_envjavac_gcj_14_13_usable.
38464         (is_gcj_present): Update.
38465         (is_gcj_43, is_gcj43_usable): New functions.
38466         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38467         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38468         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38469         try the options -fsource and -ftarget.
38470
38471 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38472
38473         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38474         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38475         larger value.
38476
38477 2007-02-03  Jim Meyering  <jim@meyering.net>
38478
38479         Give tools a better chance to allocate space for very large buffers.
38480         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38481
38482         Make pwd and readlink work also when run with an unreadable parent dir
38483         on systems with openat support.
38484         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38485         provided getcwd function, even when we have openat support.
38486         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38487
38488 2007-02-02  Bruno Haible  <bruno@clisp.org>
38489
38490         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38491         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38492         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38493         portability problems if one of these functions is only used on specific
38494         platforms.
38495         Reported by Paul Eggert.
38496
38497 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38498
38499         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38500         is causing more trouble than it's curing.
38501         * lib/regex_internal.h (__mempcpy): Remove.
38502         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38503         (and make the code a tad smaller to boot).
38504         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38505
38506 2007-02-02  Jim Meyering  <jim@meyering.net>
38507
38508         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38509         section, not in the Makefile.am: one.
38510
38511 2007-02-02  Eric Blake  <ebb9@byu.net>
38512
38513         * lib/strchrnul.c: Always include config.h first.
38514
38515         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38516         gnulib strstr is not necessary here.
38517
38518 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38519
38520         * m4/socklen.m4: Fix typo.
38521
38522 2007-02-02  Eric Blake  <ebb9@byu.net>
38523
38524         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38525         * modules/netinet_in (Makefile.am): Likewise.
38526
38527 2007-02-01  Bruno Haible  <bruno@clisp.org>
38528
38529         * lib/string_.h (GL_LINK_WARNING): New macro.
38530         (strcasecmp, strstr, strcasestr): If provided by the system,
38531         conditionally define as a macro that leads to a warning instead of to
38532         an error.
38533         (strncasecmp): Conditionally define as a macro that leads to a warning.
38534
38535 2007-02-01  Karl Berry  <karl@gnu.org>
38536
38537         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38538
38539 2007-02-01  Bruno Haible  <bruno@clisp.org>
38540
38541         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38542         renamings.
38543
38544 2007-02-01  Eric Blake  <ebb9@byu.net>
38545
38546         * modules/regex (Depends-on): Revert dependence on mempcpy.
38547         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38548         module's definition of mempcpy.
38549         Reported by Paul Eggert.
38550
38551 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38552
38553         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38554         the symbol XYZ before redefining it.  This fixes a problem with
38555         programs that don't use XYZ, when compiled on systems that define
38556         XYZ to something else.
38557
38558 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38559
38560         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38561         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38562         writeable to group or other and (2) is intended to have a special
38563         mode bit that is set or cleared.  In such a case, the directory
38564         should be neither group- nor other-writeable until the special
38565         mode bits are right.
38566
38567 2007-01-31  Eric Blake  <ebb9@byu.net>
38568
38569         * modules/mountlist (Depends-on): Add strstr.
38570
38571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38572         bug.
38573         * modules/string (Makefile.am): Remove redundant replacement.
38574         * modules/regex (Depends-on): Add mempcpy.
38575
38576 2007-01-31  Bruno Haible  <bruno@clisp.org>
38577
38578         New module description field 'Link'.
38579         * gnulib-tool (func_usage): Document --extract-link-directive.
38580         (sed_extract_prog): Recognize 'Link' directive.
38581         (func_get_link_directive): New function.
38582         (func_import): Show summary of link directives.
38583         Handle --extract-link-directive option.
38584         * modules/acl (Link): New section.
38585         * modules/clock-time (Link): New section.
38586         * modules/euidaccess (Link): New section.
38587         * modules/gettext (Link): New section.
38588         * modules/iconv (Link): New section.
38589         * modules/lock (Link): New section.
38590         * modules/nanosleep (Link): New section.
38591         * modules/readline (Link): New section.
38592
38593 2007-01-27  Bruno Haible  <bruno@clisp.org>
38594
38595         Enforce the use of gnulib modules for unportable <string.h> functions.
38596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38597         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38598         (gl_HEADER_STRING_H_BODY): Require it.
38599         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38600         the symbol XYZ to one that gives a link error.
38601         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38602         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38603         * modules/mempcpy (configure.ac): Likewise.
38604         * modules/memrchr (configure.ac): Likewise.
38605         * modules/stpcpy (configure.ac): Likewise.
38606         * modules/stpncpy (configure.ac): Likewise.
38607         * modules/strcase (configure.ac): Likewise.
38608         * modules/strcasestr (configure.ac): Likewise.
38609         * modules/strchrnul (configure.ac): Likewise.
38610         * modules/strdup (configure.ac): Likewise.
38611         * modules/strndup (configure.ac): Likewise.
38612         * modules/strnlen (configure.ac): Likewise.
38613         * modules/strpbrk (configure.ac): Likewise.
38614         * modules/strsep (configure.ac): Likewise.
38615         * modules/strstr (configure.ac): Likewise.
38616         * modules/strtok_r (configure.ac): Likewise.
38617
38618 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38619
38620         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38621
38622 2007-01-30  Jim Meyering  <jim@meyering.net>
38623
38624         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38625
38626 2007-01-29  Bruno Haible  <bruno@clisp.org>
38627
38628         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38629         * lib/execute.c: Likewise.
38630         * lib/pipe.c: Likewise.
38631         * lib/printf-args.h: Likewise.
38632         * lib/printf-args.c: Likewise.
38633         * lib/printf-parse.c: Likewise.
38634         * lib/vasnprintf.c: Likewise.
38635
38636 2007-01-29  Eric Blake  <ebb9@byu.net>
38637
38638         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38639         declaration.
38640
38641 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38642
38643         * lib/strptime.h (strptime): Use 'restrict' for args where
38644         POSIX requires this.
38645         * lib/strptime.c (strptime): Likewise.
38646         Change license notice from LGPL to GPL, since gnulib-tool will
38647         change this as needed.
38648         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38649         defined.
38650         Include "strptime.h" first, to check interface.
38651         Do not #undef _LIBC and _NL_CURRENT.
38652         Do not include <stdlib.h>; no longer needed.
38653         Include "time_r.h" and declare ptime_locale_status
38654         only if _LIBC is not defined.
38655         (__P): Remove unused macro.
38656         (match_string): Bring back glibc version, but use it only if _LIBC
38657         is defined.
38658         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38659         Remove unnecessary assertion and abort() call.
38660         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38661         * m4/strptime.m4: Fix serial number comment.
38662         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38663         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38664         (Depends-on): Add time_r.
38665
38666 2007-01-29  Bruno Haible  <bruno@clisp.org>
38667
38668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38669         strptime.
38670         * modules/strptime (Depends-on): Add stdbool.
38671         * lib/strptime.h: Include <time.h> always. Add comments.
38672
38673 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38674
38675         * modules/strptime: New file.
38676         * lib/strptime.h: New file.
38677         * lib/strptime.c: New file.
38678         * m4/strptime.m4: New file.
38679
38680 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38681
38682         * MODULES.html.sh: New module mpsort.
38683         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38684
38685         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38686         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38688         All uses changed.
38689         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38690         All uses changed.
38691         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38692         to _Restrict_.
38693         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38694         the parameter matches the prototype.
38695
38696 2007-01-28  Jim Meyering  <jim@meyering.net>
38697
38698         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38699         sys/time.h here, reverting that part of the previous patch:
38700         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38701
38702 2007-01-28  Bruno Haible  <bruno@clisp.org>
38703
38704         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38705         value of $(SYS_TIME_H).
38706         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38707         remove it conditionally, too. [added by Jim Meyering]
38708         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38710         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38711         GETTIMEOFDAY_REPLACEMENT to 1.
38712
38713 2007-01-28  Bruno Haible  <bruno@clisp.org>
38714
38715         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38716         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38718         Set UNISTD_H instead of UNISTD_H2.
38719         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38720
38721 2007-01-28  Bruno Haible  <bruno@clisp.org>
38722
38723         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38724         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38725
38726 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38727
38728         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38729         (func_create_testdir): Ensure C locale for `grep' and `tr'
38730         character ranges.
38731         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38732         ACLOCAL_AMFLAGS parsing state machine.
38733
38734 2007-01-27  Bruno Haible  <bruno@clisp.org>
38735
38736         * modules/unistr/base: Update.
38737
38738 2007-01-27  Bruno Haible  <bruno@clisp.org>
38739
38740         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38741         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38742         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38743         modules/unistr/u32-mbtouc.
38744         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38745         * lib/unistr.h: Update.
38746         * lib/linebreak.c: Update.
38747         * modules/unistr/u32-mbtouc: Renamed from
38748         modules/unistr/u32-mbtouc-safe.
38749         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38750         * lib/unistr.h: Update.
38751         * lib/unistr/u32-to-u8.c: Update.
38752         * lib/unistr/u32-to-u16.c: Update.
38753
38754 2007-01-27  Bruno Haible  <bruno@clisp.org>
38755
38756         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38757         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38758         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38759         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38760         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38761         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38762         modules/unistr/u16-mbtouc.
38763         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38764         * lib/unistr.h: Update.
38765         * lib/linebreak.c: Update.
38766         * modules/linebreak: Update.
38767         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38768         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38769         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38770         * modules/unistr/u16-mbtouc: Renamed from
38771         modules/unistr/u16-mbtouc-safe.
38772         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38773         * lib/unistr.h: Update.
38774         * lib/unistr/u16-to-u8.c: Update.
38775         * modules/unistr/u16-to-u8: Update.
38776         * lib/unistr/u16-to-u32.c: Update.
38777         * modules/unistr/u16-to-u32: Update.
38778
38779 2007-01-27  Bruno Haible  <bruno@clisp.org>
38780
38781         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38782         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38783         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38784         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38785         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38786         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38787         modules/unistr/u8-mbtouc.
38788         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38789         * lib/unistr.h: Update.
38790         * lib/striconveh.c: Update.
38791         * modules/striconveh: Update.
38792         * lib/linebreak.c: Update.
38793         * modules/linebreak: Update.
38794         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38795         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38796         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38797         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38798         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38799         * lib/unistr.h: Update.
38800         * lib/striconveh.c: Update.
38801         * modules/striconveh: Update.
38802         * lib/unistr/u8-to-u16.c: Update.
38803         * modules/unistr/u8-to-u16: Update.
38804         * lib/unistr/u8-to-u32.c: Update.
38805         * modules/unistr/u8-to-u32: Update.
38806
38807 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38808
38809         Sync from Libtool.
38810         * lib/argz.c: Do not include strings.h nor memory.h, include
38811         string.h unconditionally.  Patch by Simon Josefsson.
38812
38813 2007-01-27  Bruno Haible  <bruno@clisp.org>
38814
38815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38816         from gl_HEADER_STRING_H_BODY.
38817         (gl_HEADER_STRING_H_BODY): Require it.
38818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38819         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38820         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38821         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38823         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38826         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38827         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38828         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38829         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38830         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38831         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38832         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38833
38834 2007-01-27  Bruno Haible  <bruno@clisp.org>
38835
38836         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38837         check_PROGRAMS into noinst_PROGRAMS.
38838         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38839         check_PROGRAMS in this case.
38840         (func_import): Set for_test to false.
38841         (func_create_testdir): Set for_test to true.
38842
38843 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38844             Bruno Haible  <bruno@clisp.org>
38845
38846         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38847         (Depends-on): Add string.
38848         (Includes): Use <string.h> instead of strcasestr.h.
38849         * modules/string (Makefile.am): Also substitute the value of
38850         REPLACE_STRCASESTR.
38851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38852         assume strcasestr is declared in <string.h> not <strings.h>. Also
38853         set REPLACE_STRCASESTR.
38854         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38855         REPLACE_STRCASESTR.
38856         * lib/strcasestr.h: Remove file.
38857         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38858         * lib/string_.h (strcasestr): New declaration.
38859
38860 2007-01-27  Bruno Haible  <bruno@clisp.org>
38861
38862         * lib/string_.h: Use 'extern'.
38863
38864 2007-01-27  Jim Meyering  <jim@meyering.net>
38865
38866         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38867         of set-but-not-used local, "q".
38868
38869         * lib/mempcpy.c: Include <config.h> before <string.h>.
38870         This fixes a compilation error on HP-UX, due to the system's
38871         "restrict"-using mempcpy prototype.
38872
38873 2007-01-26  Bruno Haible  <bruno@clisp.org>
38874
38875         Small optimization.
38876         * lib/javacomp.c: Include c-strstr.h.
38877          (is_envjavac_gcj): Use c_strstr instead of strstr.
38878         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38879
38880 2007-01-26  Bruno Haible  <bruno@clisp.org>
38881
38882         * MODULES.html.sh (Unicode string functions): Add the new modules.
38883
38884         * modules/uniconv/u32-strconv-to-locale: New file.
38885         * lib/uniconv/u32-strconv-to-locale.c: New file.
38886
38887         * modules/uniconv/u16-strconv-to-locale: New file.
38888         * lib/uniconv/u16-strconv-to-locale.c: New file.
38889
38890         * modules/uniconv/u8-strconv-to-locale: New file.
38891         * lib/uniconv/u8-strconv-to-locale.c: New file.
38892
38893         * modules/uniconv/u32-strconv-from-locale: New file.
38894         * lib/uniconv/u32-strconv-from-locale.c: New file.
38895
38896         * modules/uniconv/u16-strconv-from-locale: New file.
38897         * lib/uniconv/u16-strconv-from-locale.c: New file.
38898
38899         * modules/uniconv/u8-strconv-from-locale: New file.
38900         * lib/uniconv/u8-strconv-from-locale.c: New file.
38901
38902         * modules/uniconv/u32-strconv-to-enc: New file.
38903         * lib/uniconv/u32-strconv-to-enc.c: New file.
38904         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38905         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38906
38907         * modules/uniconv/u16-strconv-to-enc: New file.
38908         * lib/uniconv/u16-strconv-to-enc.c: New file.
38909         * lib/uniconv/u-strconv-to-enc.h: New file.
38910         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38911         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38912
38913         * modules/uniconv/u8-strconv-to-enc: New file.
38914         * lib/uniconv/u8-strconv-to-enc.c: New file.
38915         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38916         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38917
38918         * modules/uniconv/u32-strconv-from-enc: New file.
38919         * lib/uniconv/u32-strconv-from-enc.c: New file.
38920         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38921         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38922
38923         * modules/uniconv/u16-strconv-from-enc: New file.
38924         * lib/uniconv/u16-strconv-from-enc.c: New file.
38925         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38926         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38927
38928         * modules/uniconv/u8-strconv-from-enc: New file.
38929         * lib/uniconv/u8-strconv-from-enc.c: New file.
38930         * lib/uniconv/u-strconv-from-enc.h: New file.
38931         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38932         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38933
38934         * modules/uniconv/u32-conv-from-enc: New file.
38935         * lib/uniconv/u32-conv-from-enc.c: New file.
38936         * modules/uniconv/u32-conv-from-enc-tests: New file.
38937         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38938
38939         * modules/uniconv/u16-conv-from-enc: New file.
38940         * lib/uniconv/u16-conv-from-enc.c: New file.
38941         * lib/uniconv/u-conv-from-enc.h: New file.
38942         * modules/uniconv/u16-conv-from-enc-tests: New file.
38943         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38944
38945         * modules/uniconv/u8-conv-from-enc: New file.
38946         * lib/uniconv/u8-conv-from-enc.c: New file.
38947         * modules/uniconv/u8-conv-from-enc-tests: New file.
38948         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38949
38950         * modules/uniconv/base: New file.
38951         * lib/uniconv.h: New file.
38952
38953 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38954
38955         * doc/gnulib-tool.texi (Initial import): Update to match current
38956         behavior with strdup module.
38957         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38958         * lib/memmem.h: Remove; all uses removed.  This is now done
38959         by <string.h>.
38960         * lib/mempcpy.h: Likewise.
38961         * lib/memrchr.h: Likewise.
38962         * lib/stpcpy.h: Likewise.
38963         * lib/stpncpy.h: Likewise.
38964         * lib/strcase.h: Likewise.
38965         * lib/strchrnul.h: Likewise.
38966         * lib/strdup.h: Likewise.
38967         * lib/strndup.h: Likewise.
38968         * lib/strnlen.h: Likewise.
38969         * lib/strpbrk.h: Likewise.
38970         * lib/strsep.h: Likewise.
38971         * lib/strstr.h: Likewise.
38972         * lib/strtok_r.h: Likewise.
38973         * lib/string_.h: New file.
38974         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38975         Rely on <string.h> instead.
38976         * lib/canon-host.c: Likewise.
38977         * lib/chdir-long.c: Likewise.
38978         * lib/concatpath.c: Likewise.
38979         * lib/exclude.c: Likewise.
38980         * lib/fchdir.c: Likewise.
38981         * lib/getaddrinfo.c: Likewise.
38982         * lib/getcwd.c: Likewise.
38983         * lib/getsubopt.c: Likewise.
38984         * lib/glob.c: Likewise.
38985         * lib/hard-locale.c: Likewise.
38986         * lib/iconvme.c: Likewise.
38987         * lib/javacomp.c: Likewise.
38988         * lib/mempcpy.c: Likewise.
38989         * lib/memrchr.c: Likewise.
38990         * lib/regex_internal.h: Likewise.
38991         * lib/stpncpy.c: Likewise.
38992         * lib/strcasecmp.c: Likewise.
38993         * lib/strchrnul.c: Likewise.
38994         * lib/strdup.c: Likewise.
38995         * lib/striconv.c: Likewise.
38996         * lib/striconveh.c: Likewise.
38997         * lib/striconveha.c: Likewise.
38998         * lib/strncasecmp.c: Likewise.
38999         * lib/strndup.c: Likewise.
39000         * lib/strnlen.c: Likewise.
39001         * lib/strsep.c: Likewise.
39002         * lib/strstr.c: Likewise.
39003         * lib/strtok_r.c: Likewise.
39004         * lib/userspec.c: Likewise.
39005         * lib/w32spawn.h: Likewise.
39006         * lib/xstrndup.c: Likewise.
39007         * lib/mountlist.c (strstr): Remove decl.
39008         * m4/string_h.m4: New file.
39009         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39010         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39011         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39012         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39013         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39014         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39015         Set REPLACE_STRCASECMP if necessary.
39016         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39017         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39018         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39019         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39020         HAVE_DECL_STRDUP if necessary.
39021         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39022         since gl_FUNC_STRNDUP does that now.
39023         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39024         Check for decl here...
39025         (gl_PREREQ_STRNLEN): ... not here.
39026         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39027         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39028         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39030         necessary.
39031         * modules/string: New file.
39032         * modules/memmem (Files): Remove special-purpose include file.
39033         (Depends-on): Add string.
39034         (Include): Include <string.h>, not the removed file.
39035         * modules/mempcpy: Likewise.
39036         * modules/memrchr: Likewise.
39037         * modules/stpcpy: Likewise.
39038         * modules/stpncpy: Likewise.
39039         * modules/strcase: Likewise.
39040         * modules/strchrnul: Likewise.
39041         * modules/strdup: Likewise.
39042         * modules/strndup: Likewise.
39043         * modules/strnlen: Likewise.
39044         * modules/strpbrk: Likewise.
39045         * modules/strsep: Likewise.
39046         * modules/strstr: Likewise.
39047         * modules/strtok_r: Likewise.
39048         * tests/test-dirname.c: Don't include "strdup.h", since
39049         <string.h> now suffices.
39050         * tests/test-memmem.c: Don't include "memmem.h", since
39051         <string.h> now suffices.
39052
39053 2007-01-25  Bruno Haible  <bruno@clisp.org>
39054
39055         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39056         *resultp is 0.
39057
39058         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39059         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39060         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39061         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39062
39063         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39064         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39065         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39066         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39067         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39068         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39069
39070 2007-01-24  Bruno Haible  <bruno@clisp.org>
39071
39072         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39074         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39075         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39076         gl_FUNC_FTS_CORE.
39077         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39078         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39079         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39080         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39081         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39082         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39083         gl_FUNC_FCHOWNAT.
39084         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39085         gl_FUNC_STRFTIME.
39086         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39087         Reported by Ralf Wildenhues.
39088
39089 2007-01-24  Bruno Haible  <bruno@clisp.org>
39090
39091         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39092         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39093         gl_GETADDRINFO.
39094         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39095         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39096         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39097
39098 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39099
39100         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39101         Don't use 'exit'; just return from 'main'.
39102         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39103
39104         * lib/fnmatch_.h: Readjust white space and comments to match
39105         glibc, to avoid spurious diffs.
39106
39107 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39108
39109         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39110         2004-12-01 change by Jakub Jelinek, since this code won't compile
39111         if !LIBC.  Problem reported by Bob Proulx.
39112
39113 2007-01-23  Bruno Haible  <bruno@clisp.org>
39114
39115         * lib/striconveh.c: Include c-strcaseeq.h.
39116         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39117         * modules/striconveh (Depends-on): Add c-strcaseeq.
39118
39119 2007-01-23  Bruno Haible  <bruno@clisp.org>
39120
39121         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39122
39123         * modules/c-strcaseeq: New file.
39124         * lib/c-strcaseeq.h: New file.
39125
39126         * modules/streq: New file.
39127         * lib/streq.h: New file.
39128
39129 2007-01-23  Bruno Haible  <bruno@clisp.org>
39130
39131         * modules/striconveha-tests: New file.
39132         * tests/test-striconveha.c: New file.
39133
39134         * lib/striconveha.h: Include <stdbool.h>.
39135         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39136         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39137         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39138         (mem_iconveha): New function.
39139         (str_iconveha_notranslit): Renamed from str_iconveha.
39140         (str_iconveha): New function.
39141         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39142         c-strcase.
39143
39144 2007-01-23  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39147         encodings without forgiving before trying any encoding with handler.
39148         (str_iconveha): Try all encodings without forgiving before trying any
39149         encoding with handler.
39150
39151 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39152
39153         Import the following changes from libc.
39154
39155         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39156
39157         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39158
39159         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39160
39161         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39162         normal_bracket label.
39163
39164         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39165
39166         [BZ #361]
39167         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39168         to normal_bracket after fetching the next character.
39169
39170 2007-01-22  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39173         argument.
39174         * lib/striconveh.c (iconv_carefully_1): New function.
39175         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39176         argument.
39177         (str_cd_iconveh): Update.
39178         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39179         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39180         * tests/test-striconveh.c (MAGIC): New macro.
39181         (new_offsets): New function.
39182         (main): Test call with and without offsets.
39183
39184 2007-01-22  Bruno Haible  <bruno@clisp.org>
39185
39186         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39187         * modules/sys_select (Makefile.am): Likewise.
39188         * modules/sys_socket (Makefile.am): Likewise.
39189         * modules/sys_time (Makefile.am): Likewise.
39190
39191 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39192
39193         * modules/gettimeofday (License): Change from GPL to LGPL, since
39194         gettimeofday is a library function.
39195
39196 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39197
39198         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39199
39200 2007-01-21  Bruno Haible  <bruno@clisp.org>
39201
39202         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39203
39204 2007-01-21  Bruno Haible  <bruno@clisp.org>
39205
39206         * modules/striconveha: New file.
39207         * lib/striconveha.h: New file.
39208         * lib/striconveha.c: New file.
39209         * MODULES.html.sh (Internationalization functions): Add striconveha.
39210         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39211         string.
39212         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39213
39214 2007-01-21  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39217         * lib/striconveh.c (str_iconveh): Likewise.
39218
39219 2007-01-21  Bruno Haible  <bruno@clisp.org>
39220
39221         * lib/striconveh.h (mem_iconveh): New declaration.
39222         * lib/striconveh.c (mem_iconveh): New function.
39223         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39224
39225 2007-01-21  Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39228
39229         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39230         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39231         original result buffer.
39232         (str_cd_iconveh): Update.
39233         * tests/test-striconveh.c (main): Update.
39234
39235         * lib/striconv.h (mem_cd_iconv): Change specification.
39236         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39237         result buffer.
39238         (str_cd_iconv): Update.
39239         * tests/test-striconv.c (main): Update.
39240
39241 2007-01-21  Bruno Haible  <bruno@clisp.org>
39242
39243         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39244
39245 2007-01-20  Jim Meyering  <jim@meyering.net>
39246
39247         * lib/userspec.c (parse_with_separator): If a user or group string
39248         starts with "+", skip the corresponding name-to-ID look-up, since
39249         such a look-up must fail: user and group names may not include "+".
39250
39251 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39252
39253         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39254         since we now assume the sys_time module.
39255         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39256         check for sys/time.h; no longer needed.
39257         * modules/poll (Depends-on): Depend on sys_time.
39258
39259 2007-01-18  Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39262         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39263
39264         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39265         gettimeofday.
39266
39267         * tests/test-gettimeofday.c: Include <time.h>.
39268         (dummy): Remove variable.
39269
39270         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39271         gl_HEADER_SYS_TIME_H.
39272         (gl_HEADER_SYS_TIME_H): New macro.
39273
39274         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39275         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39277         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39278         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39280         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39281         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39282         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39283         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39284         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39285
39286         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39287         last change; it caused a compilation error when cross-compiling to
39288         Cygwin.
39289
39290 2007-01-18  Jim Meyering  <jim@meyering.net>
39291
39292         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39293         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39294         than the race-prone "test -d sys || mkdir sys".
39295         (configure.ac): Use AC_PROG_MKDIR_P.
39296         * modules/sys_select: Likewise.
39297         * modules/sys_socket: Likewise.
39298         * modules/sys_time: Likewise.
39299
39300 2007-01-18  Eric Blake  <ebb9@byu.net>
39301
39302         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39303         replace gettimeofday.
39304         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39305         name, to avoid infinite recursion.
39306
39307 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39308
39309         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39310         module sys_time.
39311         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39312         assume timespec.h defines struct timeval.
39313         * lib/settime.c: Likewise.
39314         * lib/utimens.c: Likewise.
39315         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39316         since we now assume the gettimeofday module.
39317         * lib/tempname.c (__gen_tempname): Likewise.
39318         * lib/gettimeofday.h: Remove.
39319         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39320         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39321         Include <time.h>, for 'time()'.
39322         (localtime_buffer_addr): Also use this workaround if
39323         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39324         to simplify the uses.  All uses changed.
39325         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39326         that #undef is inside {}, and 'const' follows type name consistently.
39327         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39328         (gettimeofday): Do not use the maximum possible value for
39329         tv->tv_usec, since that might break usages other than ls.c.
39330         Instead, we'll leave ls.c alone.  This undoes today's patch
39331         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39332         we've never observed the problem but might as well keep the
39333         canary.
39334         * lib/nanosleep.c: Include timespec.h first, for interface check.
39335         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39336         now assume the sys_time module.
39337         * lib/tempname.c: Likewise.
39338         * lib/timespec.h: Likewise.
39339         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39340         needed.
39341         * lib/strftime.c: Likewise.
39342         * lib/timespec.h: Likewise.
39343         * lib/posixtm.c: Include posixtm.h first, for interface check.
39344         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39345         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39346         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39347         * lib/sys_time_.h: New file.
39348         * lib/timespec.h (struct timespec): Use long int, not long.
39349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39350         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39351         Remove obsolescent call to AC_HEADER_TIME.
39352         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39355         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39356         Likewise.
39357         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39358         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39360         into the sys_time module.  Check for gettimeofday just once.
39361         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39362         for gettimeofday signature to just check the signature.  Merely
39363         compile it, since linking doesn't test signature.  Improve test for
39364         whether gettimeofday.o is actually needed.
39365         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39366         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39367         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39368         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39369         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39370         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39371         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39372         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39373         than worrying about sys/time.h.
39374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39375         Don't bother worrying about TIME_WITH_SYS_TIME.
39376         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39377         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39378         * m4/sys_time_h.m4: New file.
39379         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39380         Don't include sys/time.h.  Return from main rather than exiting.
39381         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39382         all uses changed.
39383         * modules/gethrxtime (Depends-on): Add sys_time.
39384         * modules/gettime (Depends-on): Likewise.
39385         * modules/gettimeofday (Depends-on): Likewise.
39386         * modules/nanosleep (Depends-on): Likewise.
39387         * modules/settime (Depends-on): Likewise.
39388         * modules/tempname (Depends-on): Likewise.
39389         * modules/utimens (Depends-on): Likewise.
39390         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39391         (Include:) Change back to <sys/time.h>.
39392         (Maintainer:) Add self.
39393         * modules/sys_time: New file.
39394         * modules/tempname (Depends-on): Add gettimeofday.
39395         * tests/test-gettimeofday.c: Include <sys/time.h>
39396         rather than gettimeofday.h.
39397
39398 2007-01-17  Bruno Haible  <bruno@clisp.org>
39399
39400         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39401         the license default to GPL.
39402         (func_create_testdir): Don't complain if a module is LGPL and its
39403         tests module depends on GPLed modules.
39404
39405 2007-01-17  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/gettimeofday.c (gettimeofday): Add code for the case
39408         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39409         maximum possible value for tv->tv_usec, rather than the minimum one.
39410
39411 2005-10-08  Martin Lambers  <marlam@marlam.de>
39412 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39413 2007-01-16  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39416         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39417         gl_FUNC_GETTIMEOFDAY.
39418         (Include): Add gettimeofday.h.
39419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39420         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39421         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39422         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39423         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39424         * lib/gettimeofday.h: New file.
39425         * lib/gettimeofday.c: Include <sys/timeb.h>.
39426         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39427         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39428         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39429         fall back on time().
39430
39431         * tests/test-gettimeofday.c: New file.
39432         * modules/gettimeofday-tests: New file.
39433
39434 2007-01-16  Eric Blake  <ebb9@byu.net>
39435
39436         * modules/fnmatch (Depends-on): Depend on wchar.
39437         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39438         * m4/fnmatch.m4: Likewise.
39439         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39440         * m4/mbchar.m4: Likewise.
39441         * modules/mbswidth (Depends-on): Depend on wchar.
39442         * lib/mbswidth.c: Assume <wchar.h>.
39443         * m4/mbswidth.m4: Likewise.
39444         * modules/quotearg (Depends-on): Depend on wchar.
39445         * lib/quotearg.c: Assume <wchar.h>.
39446         * m4/quotearg.m4: Likewise.
39447         * modules/regex (Depends-on): Depend on wchar.
39448         * lib/regex_internal.h: Assume <wchar.h>.
39449         * m4/regex.m4: Likewise.
39450         * modules/stdint (Depends-on): Depend on wchar.
39451         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39452         * m4/stdint.m4: Likewise.
39453         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39454         * modules/strftime (Depends-on): Depend on wchar.
39455         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39456         * modules/strtol (Depends-on): Depend on wchar.
39457         * lib/strtol.c: Assume <wchar.h>.
39458         * modules/wcwidth (Depends-on): Depend on wchar.
39459         * lib/wcwidth.h: Assume <wchar.h>.
39460         * m4/wcwidth.m4: Likewise.
39461
39462 2007-01-16  Bruno Haible  <bruno@clisp.org>
39463
39464         * modules/csharpexec-script: New, created from...
39465         * modules/csharpexec: ... this.
39466
39467 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39468
39469         * modules/javaexec-script: New, created from...
39470         * modules/javaexec: ... this.
39471
39472 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39473
39474         * modules/poll (Dependencies): Add sys_select.
39475
39476 2007-01-15  Jim Meyering  <jim@meyering.net>
39477
39478         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39479         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39480         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39481         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39482
39483 2007-01-15  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/striconveh: New file.
39486         * lib/striconveh.h: New file.
39487         * lib/striconveh.c: New file.
39488         * MODULES.html.sh (Internationalization functions): Add striconveh.
39489
39490         * modules/striconveh-tests: New file.
39491         * tests/test-striconveh.c: New file.
39492
39493 2007-01-15  Bruno Haible  <bruno@clisp.org>
39494
39495         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39496         not from GNU libiconv or GNU libc.
39497
39498 2007-01-15  Bruno Haible  <bruno@clisp.org>
39499
39500         * doc/gnulib-intro.texi (Copyright): Explain the different license
39501         terms for module descriptions, autoconf macros, tests, documentation.
39502
39503 2007-01-14  Bruno Haible  <bruno@clisp.org>
39504
39505         * modules/striconv-tests: New file.
39506         * tests/test-striconv.c: New file.
39507
39508 2007-01-14  Bruno Haible  <bruno@clisp.org>
39509
39510         * modules/iconv-tests: New file.
39511         * tests/test-iconv.c: New file.
39512
39513 2007-01-14  Bruno Haible  <bruno@clisp.org>
39514
39515         * gnulib-tool (func_get_license): For test modules, use the license of
39516         the main module.
39517
39518 2007-01-14  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39521         if iconv is found to exist.
39522
39523 2007-01-14  Bruno Haible  <bruno@clisp.org>
39524
39525         * modules/c-ctype-tests: New file.
39526         * tests/test-c-ctype.c: New file.
39527
39528 2007-01-14  Bruno Haible  <bruno@clisp.org>
39529
39530         * modules/binary-io-tests: New file.
39531         * tests/test-binary-io.sh: New file.
39532         * tests/test-binary-io.c: New file.
39533
39534 2007-01-14  Bruno Haible  <bruno@clisp.org>
39535
39536         * modules/array-oset-tests: New file.
39537         * tests/test-array_oset.c: New file.
39538
39539 2007-01-14  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/array-list-tests: New file.
39542         * tests/test-array_list.c: New file.
39543
39544 2007-01-14  Bruno Haible  <bruno@clisp.org>
39545
39546         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39547         and make.
39548         Reported by Simon Josefsson in
39549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39550
39551 2007-01-14  Bruno Haible  <bruno@clisp.org>
39552
39553         * modules/allocsa-tests: New file.
39554         * tests/test-allocsa.c: New file.
39555
39556 2007-01-14  Bruno Haible  <bruno@clisp.org>
39557
39558         * modules/fchdir (Depends-on): Add absolute-header.
39559         * modules/unistd (Depends-on): Likewise.
39560
39561 2006-12-30  Bruno Haible  <bruno@clisp.org>
39562
39563         * modules/fchdir: New file.
39564         * modules/unistd (Files): Add lib/unistd_.h.
39565         (Makefile.am): Generate unistd.h from unistd_.h.
39566         * lib/fchdir.c: New file.
39567         * lib/dirent_.h: New file.
39568         * lib/unistd_.h: New file.
39569         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39570         * m4/fchdir.m4: New file.
39571         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39572         (gl_HEADER_UNISTD): Invoke it.
39573         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39574         function.
39575         * lib/backupfile.c (opendir, closedir): Undefine.
39576         * lib/chown.c (open, close): Undefine.
39577         * lib/clean-temp.c (open, close): Undefine.
39578         * lib/copy-file.c (open, close): Undefine.
39579         * lib/execute.c (open, close): Undefine.
39580         * lib/fsusage.c (open, close): Undefine.
39581         * lib/gc-gnulib.c (open, close): Undefine.
39582         * lib/getcwd.c (opendir, closedir): Undefine.
39583         * lib/glob.c (opendir, closedir): Undefine.
39584         * lib/javacomp.c (open, close): Undefine.
39585         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39586         * lib/openat-proc.c (open, close): Undefine.
39587         * lib/pagealign_alloc.c (open, close): Undefine.
39588         * lib/pipe.c (open, close): Undefine.
39589         * lib/progreloc.c (open, close): Undefine.
39590         * lib/savedir.c (opendir, closedir): Undefine.
39591         * lib/utime.c (open, close): Undefine.
39592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39593
39594 2007-01-10  Bruno Haible  <bruno@clisp.org>
39595
39596         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39597
39598 2007-01-12  Eric Blake  <ebb9@byu.net>
39599
39600         Provide a robust <wchar.h>.  Further simplifications are now
39601         possible in other modules, but not included here.
39602         * modules/wchar: New module.
39603         * m4/wchar.m4: New file.
39604         * lib/wchar_.h: Likewise.
39605         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39606         of the new module.
39607         * MODULES.html.sh (Extended multibyte and wide character utilities):
39608         New section.
39609
39610 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39611
39612         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39613         to a reasonable default for memory allocation.
39614         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39615         file system that reports garbage st_size values for symlinks.
39616         Problem reported by Liyang Hu.
39617
39618 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39619
39620         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39621         Emacs .#* auto-save files).
39622
39623 2007-01-11  Bruno Haible  <bruno@clisp.org>
39624
39625         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39626         directory.
39627
39628 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39629
39630         Use @...@ consistently in lib/wctype_.h.
39631         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39632         on it being set to 1 or 0.
39633         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39634         go back to AC_SUBSTing it.
39635         * modules/wctype (Makefile.am): Undo previous change.
39636
39637 2007-01-10  Eric Blake  <ebb9@byu.net>
39638
39639         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39640         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39641         * modules/wctype (Makefile.am): Likewise.
39642         Reported by Chris McGuire.
39643
39644 2007-01-10  Jim Meyering  <jim@meyering.net>
39645
39646         fts.c: a small readability/maintainability improvement
39647         * lib/fts.c (fts_read): Make this code slightly more readable and
39648         maintainable by hoisting the "sp->fts_cur = p" assignments to
39649         immediately follow the statements that set P.  Derived from
39650         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39651
39652 2007-01-10  Eric Blake  <ebb9@byu.net>
39653
39654         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39655         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39657         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39658         Reported by Chris McGuire.
39659
39660 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39661
39662         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39663         in sed script.
39664
39665 2007-01-09  Bruno Haible  <bruno@clisp.org>
39666
39667         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39668         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39669         variables.
39670         (func_module): Use them.
39671
39672 2007-01-09  Bruno Haible  <bruno@clisp.org>
39673
39674         * modules/unistr/base: New file.
39675         * lib/unistr.h: New file.
39676
39677         * modules/unistr/u8-to-u16: New file.
39678         * lib/unistr/u8-to-u16.c: New file.
39679
39680         * modules/unistr/u8-to-u32: New file.
39681         * lib/unistr/u8-to-u32.c: New file.
39682
39683         * modules/unistr/u16-to-u8: New file.
39684         * lib/unistr/u16-to-u8.c: New file.
39685
39686         * modules/unistr/u16-to-u32: New file.
39687         * lib/unistr/u16-to-u32.c: New file.
39688
39689         * modules/unistr/u32-to-u8: New file.
39690         * lib/unistr/u32-to-u8.c: New file.
39691
39692         * modules/unistr/u32-to-u16: New file.
39693         * lib/unistr/u32-to-u16.c: New file.
39694
39695         * modules/unistr/u8-check: New file.
39696         * modules/unistr/u16-check: New file.
39697         * modules/unistr/u32-check: New file.
39698         * lib/unistr/u8-check.c: New file.
39699         * lib/unistr/u16-check.c: New file.
39700         * lib/unistr/u32-check.c: New file.
39701
39702         * modules/unistr/u8-chr: New file.
39703         * modules/unistr/u16-chr: New file.
39704         * modules/unistr/u32-chr: New file.
39705         * lib/unistr/u8-chr.c: New file.
39706         * lib/unistr/u16-chr.c: New file.
39707         * lib/unistr/u32-chr.c: New file.
39708
39709         * modules/unistr/u8-cmp: New file.
39710         * modules/unistr/u16-cmp: New file.
39711         * modules/unistr/u32-cmp: New file.
39712         * lib/unistr/u8-cmp.c: New file.
39713         * lib/unistr/u16-cmp.c: New file.
39714         * lib/unistr/u32-cmp.c: New file.
39715
39716         * modules/unistr/u8-cpy: New file.
39717         * modules/unistr/u16-cpy: New file.
39718         * modules/unistr/u32-cpy: New file.
39719         * lib/unistr/u8-cpy.c: New file.
39720         * lib/unistr/u16-cpy.c: New file.
39721         * lib/unistr/u32-cpy.c: New file.
39722         * lib/unistr/u-cpy.h: New file.
39723
39724         * modules/unistr/u8-cpy-alloc: New file.
39725         * modules/unistr/u16-cpy-alloc: New file.
39726         * modules/unistr/u32-cpy-alloc: New file.
39727         * lib/unistr/u8-cpy-alloc.c: New file.
39728         * lib/unistr/u16-cpy-alloc.c: New file.
39729         * lib/unistr/u32-cpy-alloc.c: New file.
39730         * lib/unistr/u-cpy-alloc.h: New file.
39731
39732         * modules/unistr/u8-endswith: New file.
39733         * modules/unistr/u16-endswith: New file.
39734         * modules/unistr/u32-endswith: New file.
39735         * lib/unistr/u8-endswith.c: New file.
39736         * lib/unistr/u16-endswith.c: New file.
39737         * lib/unistr/u32-endswith.c: New file.
39738         * lib/unistr/u-endswith.h: New file.
39739
39740         * modules/unistr/u8-mblen: New file.
39741         * modules/unistr/u16-mblen: New file.
39742         * modules/unistr/u32-mblen: New file.
39743         * lib/unistr/u8-mblen.c: New file.
39744         * lib/unistr/u16-mblen.c: New file.
39745         * lib/unistr/u32-mblen.c: New file.
39746
39747         * modules/unistr/u8-mbtouc: New file.
39748         * modules/unistr/u16-mbtouc: New file.
39749         * modules/unistr/u32-mbtouc: New file.
39750         * lib/unistr/u8-mbtouc.c: New file.
39751         * lib/unistr/u16-mbtouc.c: New file.
39752         * lib/unistr/u32-mbtouc.c: New file.
39753
39754         * modules/unistr/u8-mbtouc-safe: New file.
39755         * modules/unistr/u16-mbtouc-safe: New file.
39756         * modules/unistr/u32-mbtouc-safe: New file.
39757         * lib/unistr/u8-mbtouc-safe.c: New file.
39758         * lib/unistr/u16-mbtouc-safe.c: New file.
39759         * lib/unistr/u32-mbtouc-safe.c: New file.
39760
39761         * modules/unistr/u8-move: New file.
39762         * modules/unistr/u16-move: New file.
39763         * modules/unistr/u32-move: New file.
39764         * lib/unistr/u8-move.c: New file.
39765         * lib/unistr/u16-move.c: New file.
39766         * lib/unistr/u32-move.c: New file.
39767         * lib/unistr/u-move.h: New file.
39768
39769         * modules/unistr/u8-next: New file.
39770         * modules/unistr/u16-next: New file.
39771         * modules/unistr/u32-next: New file.
39772         * lib/unistr/u8-next.c: New file.
39773         * lib/unistr/u16-next.c: New file.
39774         * lib/unistr/u32-next.c: New file.
39775
39776         * modules/unistr/u8-prev: New file.
39777         * modules/unistr/u16-prev: New file.
39778         * modules/unistr/u32-prev: New file.
39779         * lib/unistr/u8-prev.c: New file.
39780         * lib/unistr/u16-prev.c: New file.
39781         * lib/unistr/u32-prev.c: New file.
39782
39783         * modules/unistr/u8-set: New file.
39784         * modules/unistr/u16-set: New file.
39785         * modules/unistr/u32-set: New file.
39786         * lib/unistr/u8-set.c: New file.
39787         * lib/unistr/u16-set.c: New file.
39788         * lib/unistr/u32-set.c: New file.
39789         * lib/unistr/u-set.h: New file.
39790
39791         * modules/unistr/u8-startswith: New file.
39792         * modules/unistr/u16-startswith: New file.
39793         * modules/unistr/u32-startswith: New file.
39794         * lib/unistr/u8-startswith.c: New file.
39795         * lib/unistr/u16-startswith.c: New file.
39796         * lib/unistr/u32-startswith.c: New file.
39797         * lib/unistr/u-startswith.h: New file.
39798
39799         * modules/unistr/u8-stpcpy: New file.
39800         * modules/unistr/u16-stpcpy: New file.
39801         * modules/unistr/u32-stpcpy: New file.
39802         * lib/unistr/u8-stpcpy.c: New file.
39803         * lib/unistr/u16-stpcpy.c: New file.
39804         * lib/unistr/u32-stpcpy.c: New file.
39805         * lib/unistr/u-stpcpy.h: New file.
39806
39807         * modules/unistr/u8-stpncpy: New file.
39808         * modules/unistr/u16-stpncpy: New file.
39809         * modules/unistr/u32-stpncpy: New file.
39810         * lib/unistr/u8-stpncpy.c: New file.
39811         * lib/unistr/u16-stpncpy.c: New file.
39812         * lib/unistr/u32-stpncpy.c: New file.
39813         * lib/unistr/u-stpncpy.h: New file.
39814
39815         * modules/unistr/u8-strcat: New file.
39816         * modules/unistr/u16-strcat: New file.
39817         * modules/unistr/u32-strcat: New file.
39818         * lib/unistr/u8-strcat.c: New file.
39819         * lib/unistr/u16-strcat.c: New file.
39820         * lib/unistr/u32-strcat.c: New file.
39821         * lib/unistr/u-strcat.h: New file.
39822
39823         * modules/unistr/u8-strchr: New file.
39824         * modules/unistr/u16-strchr: New file.
39825         * modules/unistr/u32-strchr: New file.
39826         * lib/unistr/u8-strchr.c: New file.
39827         * lib/unistr/u16-strchr.c: New file.
39828         * lib/unistr/u32-strchr.c: New file.
39829
39830         * modules/unistr/u8-strcmp: New file.
39831         * modules/unistr/u16-strcmp: New file.
39832         * modules/unistr/u32-strcmp: New file.
39833         * lib/unistr/u8-strcmp.c: New file.
39834         * lib/unistr/u16-strcmp.c: New file.
39835         * lib/unistr/u32-strcmp.c: New file.
39836
39837         * modules/unistr/u8-strcpy: New file.
39838         * modules/unistr/u16-strcpy: New file.
39839         * modules/unistr/u32-strcpy: New file.
39840         * lib/unistr/u8-strcpy.c: New file.
39841         * lib/unistr/u16-strcpy.c: New file.
39842         * lib/unistr/u32-strcpy.c: New file.
39843         * lib/unistr/u-strcpy.h: New file.
39844
39845         * modules/unistr/u8-strcspn: New file.
39846         * modules/unistr/u16-strcspn: New file.
39847         * modules/unistr/u32-strcspn: New file.
39848         * lib/unistr/u8-strcspn.c: New file.
39849         * lib/unistr/u16-strcspn.c: New file.
39850         * lib/unistr/u32-strcspn.c: New file.
39851         * lib/unistr/u-strcspn.h: New file.
39852
39853         * modules/unistr/u8-strdup: New file.
39854         * modules/unistr/u16-strdup: New file.
39855         * modules/unistr/u32-strdup: New file.
39856         * lib/unistr/u8-strdup.c: New file.
39857         * lib/unistr/u16-strdup.c: New file.
39858         * lib/unistr/u32-strdup.c: New file.
39859         * lib/unistr/u-strdup.h: New file.
39860
39861         * modules/unistr/u8-strlen: New file.
39862         * modules/unistr/u16-strlen: New file.
39863         * modules/unistr/u32-strlen: New file.
39864         * lib/unistr/u8-strlen.c: New file.
39865         * lib/unistr/u16-strlen.c: New file.
39866         * lib/unistr/u32-strlen.c: New file.
39867         * lib/unistr/u-strlen.h: New file.
39868
39869         * modules/unistr/u8-strmblen: New file.
39870         * modules/unistr/u16-strmblen: New file.
39871         * modules/unistr/u32-strmblen: New file.
39872         * lib/unistr/u8-strmblen.c: New file.
39873         * lib/unistr/u16-strmblen.c: New file.
39874         * lib/unistr/u32-strmblen.c: New file.
39875
39876         * modules/unistr/u8-strmbtouc: New file.
39877         * modules/unistr/u16-strmbtouc: New file.
39878         * modules/unistr/u32-strmbtouc: New file.
39879         * lib/unistr/u8-strmbtouc.c: New file.
39880         * lib/unistr/u16-strmbtouc.c: New file.
39881         * lib/unistr/u32-strmbtouc.c: New file.
39882
39883         * modules/unistr/u8-strncat: New file.
39884         * modules/unistr/u16-strncat: New file.
39885         * modules/unistr/u32-strncat: New file.
39886         * lib/unistr/u8-strncat.c: New file.
39887         * lib/unistr/u16-strncat.c: New file.
39888         * lib/unistr/u32-strncat.c: New file.
39889         * lib/unistr/u-strncat.h: New file.
39890
39891         * modules/unistr/u8-strncmp: New file.
39892         * modules/unistr/u16-strncmp: New file.
39893         * modules/unistr/u32-strncmp: New file.
39894         * lib/unistr/u8-strncmp.c: New file.
39895         * lib/unistr/u16-strncmp.c: New file.
39896         * lib/unistr/u32-strncmp.c: New file.
39897
39898         * modules/unistr/u8-strncpy: New file.
39899         * modules/unistr/u16-strncpy: New file.
39900         * modules/unistr/u32-strncpy: New file.
39901         * lib/unistr/u8-strncpy.c: New file.
39902         * lib/unistr/u16-strncpy.c: New file.
39903         * lib/unistr/u32-strncpy.c: New file.
39904         * lib/unistr/u-strncpy.h: New file.
39905
39906         * modules/unistr/u8-strnlen: New file.
39907         * modules/unistr/u16-strnlen: New file.
39908         * modules/unistr/u32-strnlen: New file.
39909         * lib/unistr/u8-strnlen.c: New file.
39910         * lib/unistr/u16-strnlen.c: New file.
39911         * lib/unistr/u32-strnlen.c: New file.
39912         * lib/unistr/u-strnlen.h: New file.
39913
39914         * modules/unistr/u8-strpbrk: New file.
39915         * modules/unistr/u16-strpbrk: New file.
39916         * modules/unistr/u32-strpbrk: New file.
39917         * lib/unistr/u8-strpbrk.c: New file.
39918         * lib/unistr/u16-strpbrk.c: New file.
39919         * lib/unistr/u32-strpbrk.c: New file.
39920         * lib/unistr/u-strpbrk.h: New file.
39921
39922         * modules/unistr/u8-strrchr: New file.
39923         * modules/unistr/u16-strrchr: New file.
39924         * modules/unistr/u32-strrchr: New file.
39925         * lib/unistr/u8-strrchr.c: New file.
39926         * lib/unistr/u16-strrchr.c: New file.
39927         * lib/unistr/u32-strrchr.c: New file.
39928
39929         * modules/unistr/u8-strspn: New file.
39930         * modules/unistr/u16-strspn: New file.
39931         * modules/unistr/u32-strspn: New file.
39932         * lib/unistr/u8-strspn.c: New file.
39933         * lib/unistr/u16-strspn.c: New file.
39934         * lib/unistr/u32-strspn.c: New file.
39935         * lib/unistr/u-strspn.h: New file.
39936
39937         * modules/unistr/u8-strstr: New file.
39938         * modules/unistr/u16-strstr: New file.
39939         * modules/unistr/u32-strstr: New file.
39940         * lib/unistr/u8-strstr.c: New file.
39941         * lib/unistr/u16-strstr.c: New file.
39942         * lib/unistr/u32-strstr.c: New file.
39943         * lib/unistr/u-strstr.h: New file.
39944
39945         * modules/unistr/u8-strtok: New file.
39946         * modules/unistr/u16-strtok: New file.
39947         * modules/unistr/u32-strtok: New file.
39948         * lib/unistr/u8-strtok.c: New file.
39949         * lib/unistr/u16-strtok.c: New file.
39950         * lib/unistr/u32-strtok.c: New file.
39951         * lib/unistr/u-strtok.h: New file.
39952
39953         * modules/unistr/u8-uctomb: New file.
39954         * modules/unistr/u16-uctomb: New file.
39955         * modules/unistr/u32-uctomb: New file.
39956         * lib/unistr/u8-uctomb.c: New file.
39957         * lib/unistr/u16-uctomb.c: New file.
39958         * lib/unistr/u32-uctomb.c: New file.
39959
39960         * MODULES.html.sh (Unicode string functions): Add the new modules.
39961
39962 2007-01-08  Bruno Haible  <bruno@clisp.org>
39963
39964         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39965         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39966         subdirectories.
39967
39968 2007-01-08  Karl Berry  <karl@gnu.org>
39969
39970         * doc/error.texi: mention that main() fns must set program_name
39971         when progname is used.
39972
39973 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39974
39975         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39976         WCTYPE_H is empty, for the benefit of builds from non-distclean
39977         directories.  Problem reported by Eric Blake in
39978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39979
39980 2007-01-08  Bruno Haible  <bruno@clisp.org>
39981
39982         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39983         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39984         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39985         PROVIDE_CANONICALIZE_FILENAME_MODE.
39986         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39987
39988 2007-01-08  Bruno Haible  <bruno@clisp.org>
39989
39990         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39991         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39992         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39993         * lib/fts.c: Likewise.
39994         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39995
39996 2006-12-25  Bruno Haible  <bruno@clisp.org>
39997
39998         * modules/utf8-ucs4-safe: New file.
39999         * lib/utf8-ucs4-safe.h: New file.
40000         * lib/unistr/utf8-ucs4-safe.c: New file.
40001
40002         * modules/utf16-ucs4-safe: New file.
40003         * lib/utf16-ucs4-safe.h: New file.
40004         * lib/unistr/utf16-ucs4-safe.c: New file.
40005
40006         * MODULES.html.sh (Unicode string functions): Add the new modules.
40007
40008 2007-01-08  Bruno Haible  <bruno@clisp.org>
40009
40010         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40011         (Depends-on): Add unitypes.
40012         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40013         (u8_mbtouc_aux): Move out to separate file.
40014         (u8_mbtouc): Use ucs4_t, uint8_t types.
40015         * lib/unistr/utf8-ucs4.c: New file.
40016
40017         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40018         (Depends-on): Add unitypes.
40019         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40020         (u16_mbtouc_aux): Move out to separate file.
40021         (u16_mbtouc): Use ucs4_t, uint16_t types.
40022         * lib/unistr/utf16-ucs4.c: New file.
40023
40024         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40025         (Depends-on): Add unitypes.
40026         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40027         (u8_uctomb_aux): Move out to separate file.
40028         (u8_uctomb): Use ucs4_t, uint8_t types.
40029         * lib/unistr/ucs4-utf8.c: New file.
40030
40031         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40032         (Depends-on): Add unitypes.
40033         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40034         (u16_uctomb_aux): Move out to separate file.
40035         (u16_uctomb): Use ucs4_t, uint16_t types.
40036         * lib/unistr/ucs4-utf16.c: New file.
40037
40038 2006-12-25  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/unitypes: New file.
40041         * lib/unitypes.h: New file.
40042         * MODULES.html.sh (func_all_modules): New section "Unicode string
40043         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40044         this section. Add unitypes.
40045
40046 2007-01-08  Bruno Haible  <bruno@clisp.org>
40047
40048         Avoid variable names that conflict with those from libtool.
40049         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40050         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40051         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40052         library_names_spec to acl_library_names_spec, hardcode_* to
40053         acl_hardcode_*.
40054         Reported by Ralf Wildenhues.
40055
40056 2007-01-08  Bruno Haible  <bruno@clisp.org>
40057
40058         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40059         definition.
40060         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40061         definition.
40062         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40063         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40064         definition.
40065         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40066         definition.
40067         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40068         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40069         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40070         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40071         definition.
40072         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40073         definition.
40074         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40075         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40076         GC_USE_<algorithm>.
40077         * lib/gc-libgcrypt.c: Likewise.
40078         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40079         * modules/gc-arctwo (configure.ac): Likewise.
40080         * modules/gc-des (configure.ac): Likewise.
40081         * modules/gc-hmac-md5 (configure.ac): Likewise.
40082         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40083         * modules/gc-md2 (configure.ac): Likewise.
40084         * modules/gc-md4 (configure.ac): Likewise.
40085         * modules/gc-md5 (configure.ac): Likewise.
40086         * modules/gc-random (configure.ac): Likewise.
40087         * modules/gc-rijndael (configure.ac): Likewise.
40088         * modules/gc-sha1 (configure.ac): Likewise.
40089
40090 2007-01-08  Bruno Haible  <bruno@clisp.org>
40091
40092         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40093         macro definition.
40094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40095         definition.
40096         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40097         definition.
40098         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40099         * modules/fcntl-safer (configure.ac): Likewise.
40100         * modules/fopen-safer (configure.ac): Likewise.
40101         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40102         GNULIB_FWRITEERROR macro definition.
40103
40104 2007-01-08  Bruno Haible  <bruno@clisp.org>
40105
40106         * m4/gnulib-common.m4: New file.
40107         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40108         (func_get_filelist): Add m4/gnulib-common.m4.
40109
40110 2007-01-08  Bruno Haible  <bruno@clisp.org>
40111
40112         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40113         command.
40114
40115 2007-01-08  Jim Meyering  <jim@meyering.net>
40116
40117         Use a more robust test for a "can't happen" condition.
40118         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40119         narrowed the st_size value.  Presuming the "can't happen" condition
40120         is true, that narrowing could conceivably convert an invalid st_size
40121         value into a valid one.  Instead, use a change based on Matthew
40122         Woehlke's original patch.
40123
40124         Slight readability improvement: use an assert-like macro
40125         in place of literal "abort ()" uses.
40126         * lib/fts.c (fts_assert): Define.
40127         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40128         Use this macro instead of a bare 'abort'.
40129
40130 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40131
40132         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40133         simply work around them.
40134         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40135         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40136         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40137         declaring.
40138         Don't bother to define as macros, since the standard doesn't require it.
40139         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40140         longer worry about IRIX 5.3.
40141         (HAVE_WCTYPE_CTMP_BUG): Remove.
40142
40143 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40146         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40147         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40148         Problems reported by Georg Schwarz for IRIX 5.3.
40149
40150         * gnulib-tool (autoconf_minversion): Take the maximum version number
40151         found, not the minimum.  Problem reported by James Youngman.
40152
40153 2007-01-03  Karl Berry  <karl@gnu.org>
40154
40155         * doc/error.texi: new file, explaining interaction with progname.
40156         * doc/gnulib.texi: include it.  Update copyright.
40157
40158 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40159
40160         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40161         AC_CANONICAL_HOST, to improve autobuild outputs.
40162
40163 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40164             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40165
40166         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40167         sockets, server sockets, and other file descriptors.  Count errors
40168         to compute the return value.  Reorder the code a bit to be easier
40169         to follow.  Don't set event bits that were not requested (except
40170         POLLERR and POLLHUP).
40171
40172 2007-01-01  Bruno Haible  <bruno@clisp.org>
40173
40174         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40175
40176 2007-01-03  Jim Meyering  <jim@meyering.net>
40177
40178         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40179
40180 2007-01-02  Bruno Haible  <bruno@clisp.org>
40181
40182         * modules/settime (Include): Require timespec.h.
40183         * modules/nanosleep (Include): Likewise.
40184
40185 2007-01-01  Bruno Haible  <bruno@clisp.org>
40186
40187         * gnulib-tool (func_emit_copyright_notice): Bump year.
40188         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40189
40190 2007-01-01  Bruno Haible  <bruno@clisp.org>
40191
40192         Improve support for OpenBSD.
40193         * build-aux/config.rpath (libname_spec): Export.
40194         (library_names_spec): New variable. Export.
40195         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40196         library_names_spec from the config.rpath output. Locate shared library
40197         through the name pattern in library_names_spec.
40198
40199 2007-01-01  Eric Blake  <ebb9@byu.net>
40200
40201         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40202
40203 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40204
40205         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40206         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40207         assume the C locale, and avoid an "eval" that could cause trouble.
40208         Problem with SORT reported by Bob Proulx.
40209
40210         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40211         Define.  Trivial patch from Henning Nielsen Lund, originally
40212         sent to bug-grep@gnu.org today.
40213
40214 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40215
40216         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40217         struct stat.  Problem reported by Henning Nielsen Lund.
40218         * lib/acl.c: Include acl.h first, to check interface.  Don't
40219         bother to include sys/types.h and sys/stat.h again.
40220
40221 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40222
40223         Import the following change from libc; problem reported by
40224         Sven Verdoolaege.
40225
40226         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40227
40228         [BZ #1373]
40229         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40230
40231 2006-12-28  Jim Meyering  <jim@meyering.net>
40232
40233         * build-aux/announce-gen: Do not assume that the package
40234         builds any of tar.gz, tar.bz2, and .xdelta files.
40235         Suggestion from Simon Josefsson.
40236
40237 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40238
40239         * modules/announce-gen: New file.
40240
40241 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40242
40243         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40244         handles its gotchas now.
40245         * lib/mbswidth.c: Likewise.
40246         * lib/wcwidth.h: Likewise.
40247         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40248         and iswcntrl; the wctype module does this stuff now.
40249         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40251         * modules/mbchar (Depends-on): Add wctype.
40252         * modules/mbswidth (Depends-on): Likewise.
40253         * modules/wcwidth (Depends-on): Likewise.
40254
40255 2006-12-27  Eric Blake  <ebb9@byu.net>
40256
40257         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40258         module uses more than what <wctype.h> is required to provide.
40259
40260 2006-12-26  Eric Blake  <ebb9@byu.net>
40261
40262         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40263
40264 2006-12-26  Eric Blake  <ebb9@byu.net>
40265
40266         * modules/absolute-header: New module.
40267         * modules/fcntl (Depends-on): Depend on it.
40268         * modules/inttypes (Depends-on): Likewise.
40269         * modules/stdint (Depends-on): Likewise.
40270         * modules/sys_stat (Depends-on): Likewise.
40271         * modules/wctype (Depends-on): Likewise.
40272         * MODULES.html.sh (Support for building libraries and
40273         executables): Document it.
40274
40275 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40276
40277         * gnulib-tool (SED): Remove, undoing previous change.
40278         The problem was that it broke coreutils on Solaris, because
40279         "sed --posix" leaked into a makefile.
40280         (sed): New alias, if 'alias' and GNU sed.
40281
40282 2006-12-24  Jim Meyering  <jim@meyering.net>
40283
40284         Work around an fchownat bug in glibc-2.4:
40285         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40286         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40287         in spite of the -P option.
40288         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40289         New macros.
40290         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40291         * modules/openat (Files): Add lib/fchownat.c.
40292         * lib/openat.c (fchownat): Don't define here.  Move to...
40293         * lib/fchownat.c: ...this new file.
40294
40295 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40296
40297         Fix bug reported by Bruno Haible in
40298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40299         where quotearg.c didn't compile on Mac OS X 10.2 because it
40300         lacks <wchar.h> and wint_t.
40301         * lib/wctype_.h (__wctype_wint_t): New type.
40302         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40303         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40304         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40305         Arg is now of type __wctype_wint_t, not wint_t.
40306         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40307         substitute HAVE_WINT_T.
40308         * modules/wctype (Files): Add m4/wint_t.m4.
40309         (wctype.h): Substitute HAVE_WINT_T.
40310
40311 2006-12-23  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40314
40315 2006-12-23  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40318         S_ISLNK.
40319         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40320         mingw.
40321
40322 2006-12-22  Bruno Haible  <bruno@clisp.org>
40323
40324         * lib/copy-file.c: Include acl.h.
40325         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40326         Close the file descriptors only after being done with copy_acl.
40327         * modules/copy-file (Depends-on): Add acl.
40328
40329 2006-12-22  Bruno Haible  <bruno@clisp.org>
40330
40331         * gnulib-tool (SED): New variable.
40332         Use $SED instead of sed everywhere.
40333
40334 2006-12-22  Bruno Haible  <bruno@clisp.org>
40335
40336         * modules/no-c++: New file.
40337         * m4/no-c++.m4: New file.
40338         * MODULES.html.sh (Support for building libraries and executables):
40339         Add no-c++.
40340
40341 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40344         Include <limits.h>, and use its INT_MAX to rewrite the
40345         j loop so that it does not overflow 'int'.  Problem reported by
40346         Ralf Wildenhues in
40347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40348         Play it safe by shifting left by 1 rather than multiplying by 2,
40349         as GCC is less likely to optimize this away when the value
40350         is signed (when it assumes overflow leads to undefined behavior).
40351         Also, don't assume time_t uses two's complement.
40352
40353 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40354
40355         * MODULES.html.sh: New module wctype.
40356         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40357         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40358         <wctype.h>, since the new wctype module should fix this.
40359         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40360         the wctype module should arrange for it.
40361         * lib/regex_internal.h: Likewise.
40362         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40363         since the wctype module should handle this now.
40364         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40365         * modules/fnmatch (Depends-on): Add wctype.
40366         * modules/quotearg (Depends-on): Likewise.
40367         * modules/regex (Depends-on): Likewise.
40368
40369 2006-12-19  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40372         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40373
40374 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40375
40376         * modules/savewd (Depends-on): Fix dependency on fcntl.
40377
40378 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40379
40380         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40381         conforms to C99, rather than relying on the user's environment
40382         setting of STDINT_H.
40383
40384 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40385         and Eric Blake  <ebb9@byu.net>
40386
40387         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40388         This is more consistent with the other defines here.
40389         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40390         Port to z/OS.  Problem reported by Paul Gilmartin.
40391         Change local vars to use gl_ prefix rather than ac_.
40392         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40393         with other defines.
40394         * modules/double-slash-root: New module.
40395         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40396         (Depends-on): Add double-slash-root.
40397         * MODULES.html.sh (File system functions): Mention new module.
40398
40399 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40400
40401         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40402         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40403         This is for the benefit of gzip, which doesn't do i18n.
40404
40405 2006-12-12  Jim Meyering  <jim@meyering.net>
40406
40407         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40408         Reported by Andreas Schwab <schwab@suse.de>.
40409
40410 2006-12-12  Bruno Haible  <bruno@clisp.org>
40411
40412         Merge these changes.
40413         2006-09-05  Bruno Haible  <bruno@clisp.org>
40414         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40415         iconv_alloc succeeded.
40416         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40417         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40418         test for " && dest " at the end - dest is always != NULL there. Call
40419         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40420         with 2xNULL arguments, also to flush the state storage. Handle the
40421         IRIX iconv behaviour. Realloc the final result, to throw away unused
40422         memory.
40423
40424 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40425
40426         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40427         and fchmodat unconditionally, since glibc 2.4 has them.
40428         Problem reported by Arkadiusz Miskiewicz.
40429
40430 2006-12-10  Bruno Haible  <bruno@clisp.org>
40431
40432         * gnulib-tool (func_import): Show the include files only for those
40433         modules that are copied and specified.
40434         Reported by Karl Berry.
40435
40436 2006-12-08  Jim Meyering  <jim@meyering.net>
40437
40438         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40439         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40440
40441         * build-aux/announce-gen: Add two new options, both optional:
40442         --bootstrap-tools=TOOL_LIST
40443               a comma-separated list of tools, e.g.,
40444               autoconf,automake,bison,gnulib
40445         --gnulib-snapshot-date=DATE
40446               if gnulib is in the bootstrap tool list,
40447               then report this as the snapshot date.
40448               If not specified, use the current date/time.
40449               If you specify a date here, be sure it's UTC.
40450
40451 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40452
40453         * tests/test-argp-2.sh: Fix test to match actual output.
40454         (func_compare): Fix sed script to be portable.
40455
40456 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40457
40458         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40459         workaround for this case.  It is not autoconfigured now; offhand
40460         it's hard to see how to autoconfigure it.
40461
40462 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40465         a directory that is about to be chowned.  Such a directory's
40466         initial file permissions should permit the owner only and this
40467         should not be changed until after the chown, since the group and
40468         other bits would be incorrect if they granted permission before
40469         the chown.
40470
40471         Fix porting problem for iswctype reported by Georg Schwarz in:
40472         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40473         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40474         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40475         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40476         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40477
40478 2006-12-03  Jim Meyering  <jim@meyering.net>
40479
40480         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40481         p->fts_statp may not yet be defined.
40482         (fts_read): Instead, set it in the caller, once p->fts_statp is
40483         sure to be defined, and corresponds to a top-level directory.
40484         This bug made du -x fail.  Here's the coreutils test case:
40485         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40486         Reported by Mike Frysinger.
40487
40488 2006-12-01  Jim Meyering  <jim@meyering.net>
40489
40490         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40491         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40492         Reported by Simon Josefsson.
40493
40494 2006-11-30  Jim Meyering  <jim@meyering.net>
40495
40496         * m4/warning.m4: Use the all-permissive copyright notice
40497         recommended by RMS (rather than LGPL).
40498         * m4/vararrays.m4: Likewise.
40499         * m4/flexmember.m4: Likewise.
40500
40501 2006-11-29  Bruno Haible  <bruno@clisp.org>
40502
40503         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40504         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40505         using +=.
40506         Reported by Simon Josefsson <simon@josefsson.org>.
40507
40508 2006-11-28  James Youngman <jay@gnu.org>
40509
40510         * README: Advise users that they might find the bug-gnulib@gnu.org
40511         and autotools-announce@gnu.org mailing lists useful.
40512
40513 2006-11-28  Bruno Haible  <bruno@clisp.org>
40514
40515         * m4/ptrdiff_max.m4: Remove file.
40516
40517 2006-11-21  Bruno Haible  <bruno@clisp.org>
40518
40519         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40520         _AC_COMPUTE_INT.
40521         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40522         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40523         _AC_COMPUTE_INT.
40524         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40525         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40526         _AC_COMPUTE_INT.
40527         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40528
40529 2006-11-28  Jim Meyering  <jim@meyering.net>
40530
40531         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40532         warning from "gcc -Wshadow" about shadowing the builtin.
40533
40534 2006-11-27  Bruno Haible  <bruno@clisp.org>
40535
40536         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40537         _AC_COMPUTE_INT.
40538         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40539
40540 2006-11-27  Bruno Haible  <bruno@clisp.org>
40541             Paul Eggert  <eggert@cs.ucla.edu>
40542
40543         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40544
40545 2006-11-26  Bruno Haible  <bruno@clisp.org>
40546
40547         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40548         noinst_LTLIBRARIES.
40549
40550 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40551             Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40554         if compiling with "gcc -ansi".
40555
40556 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40557
40558         Fix some incompatibilities with gcc -ansi -pedantic.
40559         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40560         if compiling pedantically with GCC, unless it's C99 or later.
40561         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40562         it mishandles gcc -ansi -pedantic as well.
40563         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40564         if gcc -pedantic.
40565         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40566         initializers for struct if -pedantic, unless it's C99 or later.
40567
40568 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40569
40570         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40571         Don't close an fd more than once. Identical atimes indicate
40572         success, not failure.
40573
40574 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40575
40576         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40577
40578 2006-11-23  Jim Meyering  <jim@meyering.net>
40579
40580         * build-aux/announce-gen: New file.  From coreutils.
40581
40582 2006-11-22  Jim Meyering  <jim@meyering.net>
40583
40584         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40585         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40586         (fts_read): Use a temporary to narrow the overused st_size member
40587         before using it in a switch statement.  Reported by Matthew Woehlke.
40588
40589         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40590         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40591
40592 2006-11-20  Bruno Haible  <bruno@clisp.org>
40593
40594         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40595         changequote instead of pairs of brackets.
40596         Reported by Andreas Schwab <schwab@suse.de>.
40597
40598 2006-11-21  Jim Meyering  <jim@meyering.net>
40599
40600         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40601         so as to remain compatible with older compilers.
40602         Patch from Michael Deutschmann.
40603
40604 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40605
40606         * MODULES.html.sh (File system functions): Add openat.
40607
40608         * lib/openat.h (rpl_fstatat): New macro, if
40609         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40610         (fstatat): Define to rpl_fstatat under the same conditions,
40611         unless COMPILING_FSTATAT.
40612         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40613         seems to have the bug.
40614         * lib/fstatat.c: New file.
40615         * modules/openat (Files): Add it.
40616
40617 2006-11-20  Bruno Haible  <bruno@clisp.org>
40618
40619         * Makefile: New file.
40620
40621 2006-11-20  Jim Meyering  <jim@meyering.net>
40622
40623         The beginnings of syntax-related checks for gnulib.
40624         * lib/Makefile: New file.
40625         * lib/t-idcache: New script.  Ensure that the two halves of
40626         idcache.c stay in sync.
40627
40628         * lib/idcache.c: Adjust comments in user- and group- portions to
40629         be more accurate, and to be consistent with one another.
40630
40631 2006-11-20  Jim Meyering  <jim@meyering.net>
40632
40633         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40634         continue using the flexible array member (thus, this module performs
40635         half as many malloc calls), with the addition that...
40636         (getgroup, getuser): Consistently record a non-match via an empty
40637         "name" string, and map an empty string match to a NULL return value.
40638         * modules/idcache (Depends-on): Re-add flexmember.
40639
40640         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40641         (getuidbyname, getgroup, getgidbyname): Likewise.
40642
40643         Use cleaner syntax: NULL rather than 0.
40644         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40645
40646 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40647
40648         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40649         It mishandled the case where the group was missing.
40650         Problem reported by Greg Schafer.
40651         * modules/idcache: Likewise.
40652
40653 2006-11-18  Jim Meyering  <jim@meyering.net>
40654
40655         * check-module (%exempt_header): Add exception for some
40656         conditionally-included headers.
40657
40658         * modules/i-ring (Depends-on): Add verify.
40659         (License): Change to LGPL.
40660
40661 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40662
40663         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40664         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40665         and inttostr.h.  Use snprintf rather than uinttostr, so that
40666         LGPLed code doesn't depend on GPLed.
40667
40668 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40669
40670         * modules/inline (License): Change from GPL to LGPL.
40671
40672 2006-11-17  Jim Meyering  <jim@meyering.net>
40673
40674         * modules/d-type (License): Switch to LGPL.
40675
40676 2006-11-15  Bruno Haible  <bruno@clisp.org>
40677
40678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40679
40680 2006-11-15  Eric Blake  <ebb9@byu.net>
40681
40682         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40683         the module dependency.
40684
40685 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40686             Bruno Haible  <bruno@clisp.org>
40687
40688         * gnulib-tool (func_create_testdir): Add license consistency check.
40689
40690 2006-11-15  Eric Blake  <ebb9@byu.net>
40691
40692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40693         random "(cached)" in configure output.
40694
40695 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40696
40697         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40698         test for conforming inttypes.h is both announced and cached.
40699
40700         * MODULES.html.sh (seen_modules, seen_files): New variables.
40701         (func_module): Rewrite to use a few less gnulib-tool and sed
40702         invocations.  Avoid a couple of quadratic algorithms for ...
40703         (missed_modules, missed_files): ... these, with ...
40704         (func_append, func_tmpdir): ... these new functions, from
40705         gnulib-tool.  Analogously, install traps for cleanup.
40706
40707         * tests/test-gc.c (main): Remove unused variables.
40708         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40709
40710 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         * modules/inttostr (License): Change to LGPL.
40713
40714 2006-11-14  Eric Blake  <ebb9@byu.net>
40715
40716         * modules/tempname (License): Change to LGPL.
40717
40718 2006-11-14  Eric Blake  <ebb9@byu.net>
40719
40720         * doc/functions.texi (Function Portability): *printf functions on
40721         Cygwin now understand all POSIX size specifiers.
40722
40723 2006-11-14  Bruno Haible  <bruno@clisp.org>
40724
40725         * modules/c-ctype (License): Change to LGPL.
40726
40727 2006-11-12  Bruno Haible  <bruno@clisp.org>
40728
40729         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40730         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40731         for GNOME libraries, for which the include files are installed in
40732         subdirectories of $prefix/include.
40733
40734 2006-11-12  Bruno Haible  <bruno@clisp.org>
40735
40736         * m4/lib-link.m4: Require at least autoconf-2.54.
40737         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40738         name to underscores for the --with option.
40739
40740 2006-11-13  Bruno Haible  <bruno@clisp.org>
40741
40742         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40743         the tests directory.
40744         Reported by Ralf Wildenhues.
40745
40746 2006-11-13  Bruno Haible  <bruno@clisp.org>
40747
40748         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40749         (func_emit_initmacro_end): Undo the override here.
40750         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40751         Works around the famous automake error in coreutils.
40752
40753 2006-11-13  Eric Blake  <ebb9@byu.net>
40754
40755         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40756         element, not its node.
40757
40758 2006-11-12  Bruno Haible  <bruno@clisp.org>
40759
40760         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40761         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40762
40763 2006-11-12  Bruno Haible  <bruno@clisp.org>
40764
40765         * gnulib-tool: New option --local-symlink.
40766         (func_usage): Document it.
40767         (lsymbolic): New variable.
40768         (func_import, func_create_testdir): If --symlink was not specified,
40769         test whether --local-symlink was specified and the file comes from
40770         the local_gnulib_dir.
40771
40772 2006-11-12  Bruno Haible  <bruno@clisp.org>
40773
40774         * gnulib-tool (func_ln): New function.
40775         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40776
40777 2006-11-12  Bruno Haible  <bruno@clisp.org>
40778
40779         Finish support for source files in subdirectories.
40780         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40781         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40782         AUTOMAKE_OPTIONS.
40783         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40784
40785 2006-11-12  Bruno Haible  <bruno@clisp.org>
40786
40787         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40788         EXTRA_lib_SOURCES augmentation.
40789         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40790
40791 2006-11-12  Jim Meyering  <jim@meyering.net>
40792
40793         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40794         file descriptors.  This also averts a failure on systems with
40795         native openat support when a traversed directory lacks "x" access.
40796         * lib/fts_.h: Include "i-ring.h"
40797         (struct FTS) [fts_fd_ring]: New member.
40798         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40799         (FCHDIR): Add parentheses.
40800         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40801         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40802         When descending, rather than simply closing the previous
40803         fts_cwd_fd value, push that file descriptor onto the ring.
40804         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40805         (fts_open): Initialize the new fd_ring member.
40806         (fts_close): Clear the ring.
40807         (fts_safe_changedir): When possible, use our new fd_ring to skip
40808         the diropen and fstat and dev/ino comparison that would normally
40809         accompany a virtual `chdir ("..")'.
40810
40811         * modules/fts (Depends-on): Add i-ring.
40812         * modules/i-ring: New module.
40813         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40814         * m4/i-ring.m4: New file.
40815
40816 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40817
40818         * gnulib-tool (func_create_testdir): Fix replacement of
40819         `build-aux' in configure.ac.  Run autotools in gltests
40820         subdirectory.
40821         (func_create_testdir, func_create_megatestdir, test): There is
40822         no need for '--force' in most autotool invocations in a new
40823         tree.  Actually fail the whole test if any of the tools, or the
40824         configure or make stages fail.
40825
40826         Sync from Automake.
40827         * build-aux/gnupload: Revert last change.  Add pointer to upload
40828         instructions of the GNU Maintenance Instructions.
40829         Suggestion by Karl Berry.
40830
40831 2006-11-10  Jim Meyering  <jim@meyering.net>
40832
40833         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40834
40835 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40836
40837         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40838         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40839         (bind_textdomain_codeset) [! ENABLE_NLS]:
40840         Evaluate all the arguments.  That way, callers get compatible behavior
40841         if the arguments have side effects.  Also, it avoids some GCC
40842         diagnostics in some cases; Joel E. Denny reported problems when Bison
40843         was configured with --enable-gcc-warnigs.
40844
40845 2006-11-10  Jim Meyering  <jim@meyering.net>
40846
40847         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40848         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40849         account.
40850
40851 2006-11-10  Jim Meyering  <jim@meyering.net>
40852
40853         * modules/inline: New file/module.
40854         * modules/xalloc (Files): Remove m4/inline.m4.
40855         (Depends-on): Add inline, instead.
40856         * modules/oset: Likewise.
40857         * modules/list: Likewise.
40858
40859 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40860
40861         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40862         Problem reported by Matthew Woehlke.
40863
40864 2006-11-09  Bruno Haible  <bruno@clisp.org>
40865
40866         * lib/tempname.c (gen_tempname): Remove variant that invokes
40867         __gen_tempname.
40868         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40869         __gen_tempname.
40870
40871 2006-11-08  Bruno Haible  <bruno@clisp.org>
40872
40873         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40874         to 'yes' instead of 'cross-compiling'.
40875
40876 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40877
40878         * lib/quotearg.h (quotearg_free): New decl.
40879         * lib/quotearg.c (quotearg_free): New function.
40880         (slot0, nslots, slotvec0, slotvec):
40881         Now file-scope so that quotearg_free can get at them.
40882
40883 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40884
40885         Sync from Automake.
40886         * build-aux/gnupload: Add missing 'gnu' to example URL.
40887         Report by Karl Berry.
40888
40889 2006-11-08  Bruno Haible  <bruno@clisp.org>
40890
40891         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40892         Suggested by Paul Eggert.
40893
40894 2006-11-08  Jim Meyering  <jim@meyering.net>
40895
40896         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40897         It's already included if !_LIBC.
40898         (fts_safe_changedir): Add a comment.
40899
40900 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40901
40902         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40903         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40904         Matthew Woehlke.
40905
40906         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40907         definitions up, to avoid colliding with change below.
40908         (static_inline) [HAVE_INLINE]: New macro.
40909         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40910         Provide extern decls when !HAVE_INLINE.  Do not define unless
40911         static_inline is defined, either by us or by xmalloc.c.  Use
40912         static_inline rather than static inline.
40913         (XCALLOC): Optimize sizeof(T) = 1 case.
40914         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40915
40916 2006-11-07  Bruno Haible  <bruno@clisp.org>
40917
40918         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40919         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40920         AC_C_INLINE.
40921         * modules/xalloc (Files): Add m4/inline.m4.
40922
40923 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40924
40925         * README: Fix typo.
40926         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40927         (Miscellanous Notes): ...from this.
40928
40929 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40930
40931         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40932         Mention that offsetof should be used instead of sizeof.
40933         From Bruno Haible.
40934
40935 2006-11-07  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40938
40939 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40940
40941         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40942         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40943         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40944         (gl_tree_add_before, gl_tree_add_after):
40945         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40946         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40947         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40948         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40949         (gl_linked_add_after, gl_linked_add_at): Likewise.
40950         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40951         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40952         (gl_tree_add_before, gl_tree_add_after): Likewise.
40953         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40954         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40955         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40956
40957 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40958
40959         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40960
40961 2006-11-06  Bruno Haible  <bruno@clisp.org>
40962
40963         * m4/inline.m4: New file.
40964         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40965         * modules/list (Files): Add m4/inline.m4.
40966         * modules/oset (Files): Likewise.
40967
40968 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40969
40970         * lib/idcache.c: Include <stddef.h>, for offsetof.
40971         (struct userid.name): Change from char * to a flexible array member.
40972         All uses changed.
40973         * modules/idcache (Depends-on): Add flexmember.
40974
40975         * MODULES.html.sh (Core language properties): New module flexmember.
40976         * modules/flexmember, m4/flexmember.m4: New files.
40977
40978         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40979         inline functions that are identical with the old xnmalloc_inline,
40980         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40981         that we can avoid some unnecessary integer multiplications and
40982         divisions in the common case where the element size is known at
40983         compile time.
40984         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40985         needed.
40986         (xnboundedmalloc): Remove.
40987         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40988         arguments, for consistency with rest of this header.
40989         (xcharalloc): Rewrite using XNMALLOC.
40990         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40991         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40992         versions have been moved to lib/xalloc.h and renamed to be the
40993         non-*_inline versions.
40994         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40995         and xnrealloc functions, since those functions are now inline and
40996         now call us.
40997         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40998         renaming described above.
40999         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41000         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41001         captures the dependency in AC_C_INLINE.
41002
41003         New module canonicalize-lgpl, proposed by Charles Wilson in
41004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41005         with a few small changes afterwards.
41006         * MODULES.html.sh (File system functions): New module
41007         canonicalize-lgpl.
41008         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41009         and canonicalize_file_name.
41010         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41011         * modules/canonicalize-lgpl: New files.
41012
41013 2006-11-05  Bruno Haible  <bruno@clisp.org>
41014
41015         * gnulib-tool (func_import, func_create_testdir): Create directories
41016         also for files in subdirectories of lib/.
41017
41018 2006-11-05  Bruno Haible  <bruno@clisp.org>
41019
41020         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41021         ANSI C compliant.
41022
41023 2006-11-03  Bruno Haible  <bruno@clisp.org>
41024
41025         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41026         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41027         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41028         (xnboundedmalloc): New inline function.
41029         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41030         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41031         xmalloc.
41032         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41033         xmalloc.
41034         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41035         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41036         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41037         xmalloc.
41038         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41039         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41040         xmalloc.
41041         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41042         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41043         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41044         xmalloc.
41045         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41046         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41047         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41048         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41049         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41050         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41051         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41052
41053 2006-11-03  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/c-ctype.h [C++]: Define functions without name mangling.
41056         * lib/fwriteerror.h [C++]: Likewise.
41057         * lib/gcd.h [C++]: Likewise.
41058         * lib/linebreak.h [C++]: Likewise.
41059
41060 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41061
41062         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41063         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41064         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41065         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41066         Check for functions and headers just once.
41067         Check for declaration of canonicalize_file_name.
41068         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41069
41070 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41071
41072         * gnulib-tool (func_import): Fix typo in actioncmd.
41073
41074 2006-11-02  Bruno Haible  <bruno@clisp.org>
41075
41076         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41077         newline sequence in the Makefile.am snippet as a space, like "make"
41078         does.
41079         Reported by Roger Persson <perrog@gmail.com>.
41080
41081 2006-11-01  Bruno Haible  <bruno@clisp.org>
41082
41083         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41084         already declared in <string.h>.
41085         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41086
41087 2006-11-01  Bruno Haible  <bruno@clisp.org>
41088
41089         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41090         * lib/strcase.h: Include <string.h>.
41091         (strcasecmp): Define to rpl_strcasecmp here.
41092
41093 2006-11-01  Bruno Haible  <bruno@clisp.org>
41094
41095         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41096
41097 2006-11-01  Eric Blake  <ebb9@byu.net>
41098
41099         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41100
41101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41102
41103 2006-10-29  Bruno Haible  <bruno@clisp.org>
41104
41105         Make it compile in C++ mode.
41106         * lib/full-write.c (full_rw): Add a cast.
41107
41108 2006-11-01  Bruno Haible  <bruno@clisp.org>
41109
41110         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41111         be POSIX compliant.
41112         Reported by Roger Persson <perrog@gmail.com>.
41113
41114 2006-11-01  Eric Blake  <ebb9@byu.net>
41115
41116         * lib/getopt_.h: Fix comments.
41117
41118 2006-10-31  Eric Blake  <ebb9@byu.net>
41119
41120         * modules/tmpdir (Depends-on): Add sys_stat.
41121         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41122         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41123         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41124         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41125         tempname.
41126
41127 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41128
41129         Avoid some C++ diagnostics reported by Bruno Haible.
41130         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41131         xmalloc.
41132         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41133         (struct slotvec): Move to top level.
41134         (quotearg_n_options): Rewrite to avoid xmalloc.
41135         * lib/xalloc.h (xcharalloc): New function.
41136         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41137         [defined __cplusplus]: Add function template that provides result
41138         type propagation.  This part of the change is from Bruno Haible.
41139
41140 2006-10-29  Bruno Haible  <bruno@clisp.org>
41141
41142         Make it compile in C++ mode.
41143         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41144         * lib/strnlen1.c (strnlen1): Cast memchr result.
41145         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41146         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41147         (create_temp_dir): Rename local variable 'template'.
41148         (compile_csharp_using_sscli): Add cast.
41149         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41150         * lib/findprog.c (find_in_path): Likewise.
41151         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41152         * lib/wait-process.c (register_slave_subprocess): Likewise.
41153
41154 2006-10-22  Bruno Haible  <bruno@clisp.org>
41155
41156         * modules/tsearch: New file.
41157         * lib/tsearch.h: New file.
41158         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41159         * m4/tsearch.m4: New file.
41160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41161
41162 2006-10-29  Eric Blake  <ebb9@byu.net>
41163
41164         * lib/arcfour.c: Assume config.h.
41165         * lib/arctwo.c: Likewise.
41166         * lib/base64.c: Likewise.
41167         * lib/check-version.c: Likewise.
41168         * lib/crc.c: Likewise.
41169         * lib/des.c: Likewise.
41170         * lib/gc-gnulib.c: Likewise.
41171         * lib/gc-libgcrypt.c: Likewise.
41172         * lib/gc-pbkdf2-sha1.c: Likewise.
41173         * lib/getaddrinfo.c: Likewise.
41174         * lib/getdelim.c: Likewise.
41175         * lib/getline.c: Likewise.
41176         * lib/hmac-md5.c: Likewise.
41177         * lib/hmac-sha1.c: Likewise.
41178         * lib/iconvme.c: Likewise.
41179         * lib/md2.c: Likewise.
41180         * lib/md4.c: Likewise.
41181         * lib/memxor.c: Likewise.
41182         * lib/read-file.c: Likewise.
41183         * lib/readline.c: Likewise.
41184         * lib/rijndael-alg-fst.c: Likewise.
41185         * lib/rijndael-api-fst.c: Likewise.
41186         * lib/xgetdomainname.c: Likewise.
41187
41188 2006-10-28  Eric Blake  <ebb9@byu.net>
41189
41190         * lib/xstrndup.c: Assume config.h.
41191
41192 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41193
41194         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41195         stat-macros.h is now for our own macros, whereas stat_h is for
41196         macros in the <sys/stat.h> name space.
41197         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41198         (STAT_MACROS_H): Remove.
41199         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41200         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41201         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41202         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41203         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41204         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41205         Move these macros to ...
41206         * lib/stat_.h: here.  Don't include stat-macros.h.
41207         * lib/canonicalize.c: Don't include stat-macros.h.
41208         * lib/chown.c: Likewise.
41209         * lib/euidaccess.c: Likewise.
41210         * lib/file-type.c: Likewise.
41211         * lib/filemode.c: Likewise.
41212         * lib/glob.c: Likewise.
41213         * lib/isapipe.c: Likewise.
41214         * lib/lchown.c: Likewise.
41215         * lib/lstat.c: Likewise.
41216         * lib/mkdir-p.c: Likewise.
41217         * lib/rmdir.c: Likewise.
41218         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41220         unless mkdir isn't declared, to speed up 'configure'.
41221         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41222         would define all the S_* symbols.
41223         * modules/canonicalize (Depends-on):
41224         Depend on sys_stat, not stat-macros.
41225         * modules/chown: Likewise.
41226         * modules/euidaccess: Likewise.
41227         * modules/filemode: Likewise.
41228         * modules/file-type: Likewise.
41229         * modules/glob: Likewise.
41230         * modules/isapipe: Likewise.
41231         * modules/lchown: Likewise.
41232         * modules/lstat: Likewise.
41233         * modules/mkancesdirs: Likewise.
41234         * modules/rmdir: Likewise.
41235         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41236         * modules/modechange: Likewise.
41237         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41238         (configure.ac): Remove gl_STAT_MACROS.
41239         * modules/sys_stat (Depends-on): Remove stat-macros.
41240
41241 2006-10-27  Bruno Haible  <bruno@clisp.org>
41242
41243         * m4/signed.m4: Remove file.
41244         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41245         invocation.
41246         * modules/vasnprintf (Files): Remove m4/signed.m4.
41247
41248 2006-10-27  Bruno Haible  <bruno@clisp.org>
41249
41250         Update to GNU gettext 0.16.
41251         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41252         m4/inttypes-h.m4, m4/signed.m4.
41253         * m4/gettext.m4: Update to GNU gettext 0.16.
41254         * m4/intl.m4: New file, from GNU gettext.
41255         * m4/intldir.m4: New file, from GNU gettext.
41256         * config/srclist.txt: Update
41257
41258 2006-10-27  Eric Blake  <ebb9@byu.net>
41259
41260         * MODULES.html.sh: Document tempname.
41261         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41262         dependencies.
41263         (Files): Move lib/tempname.c...
41264         * modules/tempname: ...to this new module.
41265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41266         (gl_PREREQ_TEMPNAME): Move...
41267         * m4/tempname.m4: ...to this new file.
41268         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41269         * modules/sys_stat (Depends-on): Add stat-macros.
41270         * lib/stat_.h (includes): Pick up stat macros.
41271         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41272         if stat macros are broken.
41273         * lib/tempname.c (includes): No need to include "stat-macros.h".
41274         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41275         (direxists, __path_search) [!_LIBC]: Don't compile these in
41276         gnulib; the tmpdir module covers that.
41277         * lib/tempname.h: New file.
41278
41279 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41280
41281         * COPYING: Explain how gnulib-tool converts licence headers.
41282         Almost all wording by Eric Blake.
41283
41284 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41285
41286         * lib/mbchar.h (is_basic_table): Make read-only.
41287         * lib/mbchar.c (is_basic_table): Likewise.
41288         Reported by John Darrington.
41289
41290 2006-10-25  Bruno Haible  <bruno@clisp.org>
41291
41292         * lib/progname.h (set_program_name): Undefine before defining.
41293
41294 2006-10-25  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41297         false for non-gcc C++ compilers.
41298         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41299
41300 2006-10-24  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41303         iconv implementations like Irix iconv.
41304
41305 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41306
41307         * modules/vararrays: New file.
41308         * m4/vararrays.m4: New file, taken from diffutils.
41309         * MODULES.html.sh: New module vararrays.
41310
41311 2006-10-24  Karl Berry  <karl@gnu.org>
41312
41313         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41314         Don't call GNU Unix.
41315
41316 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41317
41318         * users.txt: Add Libtool.
41319
41320         Sync from Libtool:
41321
41322         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41323
41324         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41325         to gnulib's policy of including config.h unconditionally.
41326
41327 2006-10-24  Bruno Haible  <bruno@clisp.org>
41328
41329         * modules/wcwidth (Files): Add m4/wint_t.m4.
41330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41331         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41332
41333 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41334
41335         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41336         to pacify GCC with some -W flags enabled.  Problem reported by
41337         Bruno Haible.
41338
41339 2006-10-24  Jim Meyering  <jim@meyering.net>
41340
41341         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41342         Reported by Karl Berry.
41343
41344 2006-10-23  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41347
41348 2006-10-24  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/gl_list.h: Use C comment style, not C++ comment style.
41351
41352 2006-10-23  Eric Blake  <ebb9@byu.net>
41353
41354         * lib/getaddrinfo.c (includes): Add missing include.
41355
41356 2006-10-23  Bruno Haible  <bruno@clisp.org>
41357             Paul Eggert  <eggert@cs.ucla.edu>
41358
41359         Ability to rename obstack_free.
41360         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41361         obstack_free.
41362         (obstack_free): Invoke the __obstack_free macro.
41363         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41364
41365 2006-10-23  Bruno Haible  <bruno@clisp.org>
41366             Paul Eggert  <eggert@cs.ucla.edu>
41367
41368         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41369         __argc, __argv from the declaration. (They are defined as macros on
41370         mingw.)
41371
41372 2006-10-22  Bruno Haible  <bruno@clisp.org>
41373
41374         * doc/gnulib-intro.texi: New file.
41375         * doc/gnulib.texi: Include it.
41376
41377 2006-10-21  Bruno Haible  <bruno@clisp.org>
41378
41379         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41380         "Introduction", "Miscellanous Notes", "Particular Modules".
41381
41382 2006-10-21  Bruno Haible  <bruno@clisp.org>
41383
41384         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41385         Change mostlyclean-local rule to avoid sh syntax error from bash
41386         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41387
41388 2006-10-23  Jim Meyering  <jim@meyering.net>
41389
41390         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41391         in place of snprintf.
41392
41393         * modules/inttostr (Files): Add lib/uinttostr.c.
41394         * lib/uinttostr.c (inttostr): New file/function.
41395         * lib/inttostr.h (uinttostr): Declare.
41396         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41397         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41398         Add uinttostr.
41399         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41400
41401 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41402
41403         * lib/canonicalize.c (ELOOP): Define if not already defined.
41404         Problem reported by Bruno Haible in
41405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41406
41407 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41408
41409         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41410         Problem reported by Perry Smith and Ville Laurikari.
41411
41412         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41413         uses.
41414
41415 2006-10-19  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41418         for mingw.
41419
41420 2006-10-19  Bruno Haible  <bruno@clisp.org>
41421
41422         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41423         Needed for mingw.
41424
41425 2006-10-19  Bruno Haible  <bruno@clisp.org>
41426
41427         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41428
41429 2006-10-19  Bruno Haible  <bruno@clisp.org>
41430
41431         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41432         it.
41433
41434 2006-10-19  Bruno Haible  <bruno@clisp.org>
41435
41436         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41437         invocation.
41438
41439 2006-10-19  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41442         mountlist by default.
41443
41444 2006-10-16  Bruno Haible  <bruno@clisp.org>
41445
41446         * lib/c-strstr.c: Include c-strstr.h.
41447
41448 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41449
41450         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41451         in a slash.
41452
41453 2006-10-18  Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/lock.h [C++]: Wrap definitions in extern "C".
41456
41457 2006-10-18  Bruno Haible  <bruno@clisp.org>
41458
41459         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41460         gl_LIBOBJS list.
41461
41462 2006-10-18  Bruno Haible  <bruno@clisp.org>
41463
41464         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41465
41466 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41467
41468         * lib/xstrtol.h: Include gettext.h.
41469         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41470         Problem reported by Eric Blake.
41471         * modules/xstrtol (Depends-on): Add gettext-h.
41472
41473 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41474
41475         * lib/strftime.c (advance): New macro.
41476         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41477         incomplete type, so you can't add 0 to it.  Problem and patch
41478         reported by Eelco Dolstra for dietlibc.
41479
41480 2006-10-18  Jim Meyering  <jim@meyering.net>
41481
41482         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41483         type for a local, and rename it: s/up/user_proc/.
41484
41485 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41486
41487         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41488         READ_UTMP_USER_PROCESS.
41489         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41490
41491 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41492
41493         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41494         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41495
41496 2006-10-17  Eric Blake  <ebb9@byu.net>
41497
41498         * lib/sigprocmask.c (sigprocmask): Fix typo.
41499
41500         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41501
41502         * modules/clean-temp (Makefile.am): Don't add to make output...
41503         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41504         config.h.
41505
41506 2006-10-17  Bruno Haible  <bruno@clisp.org>
41507
41508         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41509         differently if DEFAULT_TEXT_DOMAIN is set.
41510
41511 2006-10-16  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/clean-temp.c: Include fwriteerror.h.
41514
41515 2006-10-16  Bruno Haible  <bruno@clisp.org>
41516
41517         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41518
41519 2006-10-16  Bruno Haible  <bruno@clisp.org>
41520
41521         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41522         * lib/sigprocmask.h: Include <sys/types.h>.
41523         (sigset_t): Use the system's definition if present.
41524
41525 2006-10-17  Eric Blake  <ebb9@byu.net>
41526
41527         * lib/xvasprintf.c (includes): Assume config.h.
41528         * lib/xasprintf.c (includes): Likewise.
41529
41530 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41531
41532         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41533         at least as wide as intmax_t.
41534
41535 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41536
41537         (Imported from Automake.)
41538         * build-aux/gnupload: Update to version 1.1 of directive file.
41539
41540 2006-10-16  Eric Blake  <ebb9@byu.net>
41541
41542         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41543         match Automake 1.10a.
41544
41545 2006-10-14  Bruno Haible  <bruno@clisp.org>
41546
41547         * modules/sigprocmask: New file.
41548         * lib/sigprocmask.h: New file.
41549         * lib/sigprocmask.c: New file.
41550         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41551         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41552         request sigprocmask.o.
41553         (gl_PREREQ_SIGPROCMASK): New macro.
41554         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41555         (Depends-on): Add sigprocmask.
41556         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41557         gt_SIGNALBLOCKING. Test for 'raise' only once.
41558         * lib/fatal-signal.c: Include sigprocmask.h.
41559         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41560         unblock_fatal_signals): Define always.
41561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41562         sigprocmask.
41563
41564 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41565
41566         Sync from Automake.
41567         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41568         which incorrectly sets the mode of an existing destination
41569         directory.  In some cases the unpatched install-sh could do the
41570         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41571         system.  We hope this is rare in practice, but it's clearly worth
41572         fixing.  Problem reported by Alex Unleashed in
41573         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41574         Also, don't bother to check for -m bugs unless we're using -m;
41575         suggested by Stepan Kasal.
41576
41577 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41578
41579         Sync from Automake.
41580         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41581         `-c' flag, so they appear at the same position as in %FASTDEP%
41582         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41583         which ignores unknown options only after the first non-option.
41584         Bug report against M4 by Nelson H. F. Beebe.
41585
41586 2006-10-13  Jim Meyering  <jim@meyering.net>
41587
41588         Fix a bug in yesterday's change.
41589         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41590         p->fts_statp->st_dev would be used uninitialized.
41591         Ensures that we always call fts_stat on the very first entry.
41592         Miklos Szeredi reported that find -xdev stopped working.
41593
41594 2006-10-12  Bruno Haible  <bruno@clisp.org>
41595
41596         * gnulib-tool (func_get_automake_snippet): Append an automatically
41597         computed EXTRA_DIST augmentation.
41598         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41599         * modules/alloca-opt (Makefile.am): Likewise.
41600         * modules/allocsa (Makefile.am): Likewise.
41601         * modules/arcfour (Makefile.am): Likewise.
41602         * modules/arctwo (Makefile.am): Likewise.
41603         * modules/argmatch (Makefile.am): Likewise.
41604         * modules/argz (Makefile.am): Likewise.
41605         * modules/atexit (Makefile.am): Likewise.
41606         * modules/backupfile (Makefile.am): Likewise.
41607         * modules/byteswap (Makefile.am): Likewise.
41608         * modules/c-strtod (Makefile.am): Likewise.
41609         * modules/c-strtold (Makefile.am): Likewise.
41610         * modules/calloc (Makefile.am): Likewise.
41611         * modules/canon-host (Makefile.am): Likewise.
41612         * modules/canonicalize (Makefile.am): Likewise.
41613         * modules/chdir-long (Makefile.am): Likewise.
41614         * modules/chdir-safer (Makefile.am): Likewise.
41615         * modules/check-version (Makefile.am): Likewise.
41616         * modules/chown (Makefile.am): Likewise.
41617         * modules/cloexec (Makefile.am): Likewise.
41618         * modules/close-stream (Makefile.am): Likewise.
41619         * modules/closeout (Makefile.am): Likewise.
41620         * modules/crc (Makefile.am): Likewise.
41621         * modules/csharpexec (Makefile.am): Likewise.
41622         * modules/cycle-check (Makefile.am): Likewise.
41623         * modules/des (Makefile.am): Likewise.
41624         * modules/dev-ino (Makefile.am): Likewise.
41625         * modules/dirfd (Makefile.am): Likewise.
41626         * modules/dirname (Makefile.am): Likewise.
41627         * modules/dup2 (Makefile.am): Likewise.
41628         * modules/eealloc (Makefile.am): Likewise.
41629         * modules/error (Makefile.am): Likewise.
41630         * modules/euidaccess (Makefile.am): Likewise.
41631         * modules/exclude (Makefile.am): Likewise.
41632         * modules/exitfail (Makefile.am): Likewise.
41633         * modules/fcntl-safer (Makefile.am): Likewise.
41634         * modules/fcntl (Makefile.am): Likewise.
41635         * modules/file-type (Makefile.am): Likewise.
41636         * modules/fileblocks (Makefile.am): Likewise.
41637         * modules/filemode (Makefile.am): Likewise.
41638         * modules/filenamecat (Makefile.am): Likewise.
41639         * modules/fnmatch (Makefile.am): Likewise.
41640         * modules/fopen-safer (Makefile.am): Likewise.
41641         * modules/fpending (Makefile.am): Likewise.
41642         * modules/fprintftime (Makefile.am): Likewise.
41643         * modules/free (Makefile.am): Likewise.
41644         * modules/fsusage (Makefile.am): Likewise.
41645         * modules/ftruncate (Makefile.am): Likewise.
41646         * modules/fts (Makefile.am): Likewise.
41647         * modules/gc-arcfour (Makefile.am): Likewise.
41648         * modules/gc-des (Makefile.am): Likewise.
41649         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41650         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41651         * modules/gc-md4 (Makefile.am): Likewise.
41652         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41653         * modules/gc-sha1 (Makefile.am): Likewise.
41654         * modules/gc (Makefile.am): Likewise.
41655         * modules/getaddrinfo (Makefile.am): Likewise.
41656         * modules/getcwd (Makefile.am): Likewise.
41657         * modules/getdelim (Makefile.am): Likewise.
41658         * modules/getdomainname (Makefile.am): Likewise.
41659         * modules/getgroups (Makefile.am): Likewise.
41660         * modules/gethostname (Makefile.am): Likewise.
41661         * modules/gethrxtime (Makefile.am): Likewise.
41662         * modules/getline (Makefile.am): Likewise.
41663         * modules/getloadavg (Makefile.am): Likewise.
41664         * modules/getlogin_r (Makefile.am): Likewise.
41665         * modules/getndelim2 (Makefile.am): Likewise.
41666         * modules/getopt (Makefile.am): Likewise.
41667         * modules/getpagesize (Makefile.am): Likewise.
41668         * modules/getpass-gnu (Makefile.am): Likewise.
41669         * modules/getpass (Makefile.am): Likewise.
41670         * modules/getsubopt (Makefile.am): Likewise.
41671         * modules/gettime (Makefile.am): Likewise.
41672         * modules/gettimeofday (Makefile.am): Likewise.
41673         * modules/getugroups (Makefile.am): Likewise.
41674         * modules/getusershell (Makefile.am): Likewise.
41675         * modules/glob (Makefile.am): Likewise.
41676         * modules/group-member (Makefile.am): Likewise.
41677         * modules/hard-locale (Makefile.am): Likewise.
41678         * modules/hash (Makefile.am): Likewise.
41679         * modules/hmac-md5 (Makefile.am): Likewise.
41680         * modules/hmac-sha1 (Makefile.am): Likewise.
41681         * modules/human (Makefile.am): Likewise.
41682         * modules/idcache (Makefile.am): Likewise.
41683         * modules/imaxabs (Makefile.am): Likewise.
41684         * modules/imaxdiv (Makefile.am): Likewise.
41685         * modules/inet_ntop (Makefile.am): Likewise.
41686         * modules/inet_pton (Makefile.am): Likewise.
41687         * modules/intprops (Makefile.am): Likewise.
41688         * modules/inttostr (Makefile.am): Likewise.
41689         * modules/inttypes (Makefile.am): Likewise.
41690         * modules/isapipe (Makefile.am): Likewise.
41691         * modules/javaversion (Makefile.am): Likewise.
41692         * modules/lchmod (Makefile.am): Likewise.
41693         * modules/lchown (Makefile.am): Likewise.
41694         * modules/localcharset (Makefile.am): Likewise.
41695         * modules/long-options (Makefile.am): Likewise.
41696         * modules/lstat (Makefile.am): Likewise.
41697         * modules/malloc (Makefile.am): Likewise.
41698         * modules/mathl (Makefile.am): Likewise.
41699         * modules/mbchar (Makefile.am): Likewise.
41700         * modules/md2 (Makefile.am): Likewise.
41701         * modules/md4 (Makefile.am): Likewise.
41702         * modules/md5 (Makefile.am): Likewise.
41703         * modules/memcasecmp (Makefile.am): Likewise.
41704         * modules/memchr (Makefile.am): Likewise.
41705         * modules/memcmp (Makefile.am): Likewise.
41706         * modules/memcoll (Makefile.am): Likewise.
41707         * modules/memcpy (Makefile.am): Likewise.
41708         * modules/memmem (Makefile.am): Likewise.
41709         * modules/memmove (Makefile.am): Likewise.
41710         * modules/mempcpy (Makefile.am): Likewise.
41711         * modules/memrchr (Makefile.am): Likewise.
41712         * modules/memset (Makefile.am): Likewise.
41713         * modules/memxor (Makefile.am): Likewise.
41714         * modules/mkancesdirs (Makefile.am): Likewise.
41715         * modules/mkdir-p (Makefile.am): Likewise.
41716         * modules/mkdir (Makefile.am): Likewise.
41717         * modules/mkdtemp (Makefile.am): Likewise.
41718         * modules/mkstemp (Makefile.am): Likewise.
41719         * modules/mktime (Makefile.am): Likewise.
41720         * modules/modechange (Makefile.am): Likewise.
41721         * modules/mountlist (Makefile.am): Likewise.
41722         * modules/nanosleep (Makefile.am): Likewise.
41723         * modules/obstack (Makefile.am): Likewise.
41724         * modules/openat (Makefile.am): Likewise.
41725         * modules/pagealign_alloc (Makefile.am): Likewise.
41726         * modules/pathmax (Makefile.am): Likewise.
41727         * modules/physmem (Makefile.am): Likewise.
41728         * modules/poll (Makefile.am): Likewise.
41729         * modules/posixtm (Makefile.am): Likewise.
41730         * modules/posixver (Makefile.am): Likewise.
41731         * modules/putenv (Makefile.am): Likewise.
41732         * modules/quote (Makefile.am): Likewise.
41733         * modules/quotearg (Makefile.am): Likewise.
41734         * modules/raise (Makefile.am): Likewise.
41735         * modules/read-file (Makefile.am): Likewise.
41736         * modules/readline (Makefile.am): Likewise.
41737         * modules/readlink (Makefile.am): Likewise.
41738         * modules/readtokens (Makefile.am): Likewise.
41739         * modules/readutmp (Makefile.am): Likewise.
41740         * modules/realloc (Makefile.am): Likewise.
41741         * modules/regex (Makefile.am): Likewise.
41742         * modules/rename-dest-slash (Makefile.am): Likewise.
41743         * modules/rename (Makefile.am): Likewise.
41744         * modules/rijndael (Makefile.am): Likewise.
41745         * modules/rmdir (Makefile.am): Likewise.
41746         * modules/rpmatch (Makefile.am): Likewise.
41747         * modules/safe-read (Makefile.am): Likewise.
41748         * modules/safe-write (Makefile.am): Likewise.
41749         * modules/same-inode (Makefile.am): Likewise.
41750         * modules/same (Makefile.am): Likewise.
41751         * modules/save-cwd (Makefile.am): Likewise.
41752         * modules/savedir (Makefile.am): Likewise.
41753         * modules/setenv (Makefile.am): Likewise.
41754         * modules/settime (Makefile.am): Likewise.
41755         * modules/sha1 (Makefile.am): Likewise.
41756         * modules/sig2str (Makefile.am): Likewise.
41757         * modules/snprintf (Makefile.am): Likewise.
41758         * modules/stat-macros (Makefile.am): Likewise.
41759         * modules/stat-time (Makefile.am): Likewise.
41760         * modules/stdbool (Makefile.am): Likewise.
41761         * modules/stdint (Makefile.am): Likewise.
41762         * modules/stdlib-safer (Makefile.am): Likewise.
41763         * modules/stpcpy (Makefile.am): Likewise.
41764         * modules/stpncpy (Makefile.am): Likewise.
41765         * modules/strcase (Makefile.am): Likewise.
41766         * modules/strcasestr (Makefile.am): Likewise.
41767         * modules/strchrnul (Makefile.am): Likewise.
41768         * modules/strcspn (Makefile.am): Likewise.
41769         * modules/strdup (Makefile.am): Likewise.
41770         * modules/strerror (Makefile.am): Likewise.
41771         * modules/strftime (Makefile.am): Likewise.
41772         * modules/strndup (Makefile.am): Likewise.
41773         * modules/strnlen (Makefile.am): Likewise.
41774         * modules/strpbrk (Makefile.am): Likewise.
41775         * modules/strsep (Makefile.am): Likewise.
41776         * modules/strstr (Makefile.am): Likewise.
41777         * modules/strtod (Makefile.am): Likewise.
41778         * modules/strtoimax (Makefile.am): Likewise.
41779         * modules/strtok_r (Makefile.am): Likewise.
41780         * modules/strtol (Makefile.am): Likewise.
41781         * modules/strtoll (Makefile.am): Likewise.
41782         * modules/strtoul (Makefile.am): Likewise.
41783         * modules/strtoull (Makefile.am): Likewise.
41784         * modules/strtoumax (Makefile.am): Likewise.
41785         * modules/strverscmp (Makefile.am): Likewise.
41786         * modules/sys_socket (Makefile.am): Likewise.
41787         * modules/sys_stat (Makefile.am): Likewise.
41788         * modules/sysexits (Makefile.am): Likewise.
41789         * modules/time_r (Makefile.am): Likewise.
41790         * modules/timegm (Makefile.am): Likewise.
41791         * modules/timespec (Makefile.am): Likewise.
41792         * modules/tmpfile-safer (Makefile.am): Likewise.
41793         * modules/trim (Makefile.am): Likewise.
41794         * modules/unistd-safer (Makefile.am): Likewise.
41795         * modules/unlinkdir (Makefile.am): Likewise.
41796         * modules/unlocked-io (Makefile.am): Likewise.
41797         * modules/userspec (Makefile.am): Likewise.
41798         * modules/utime (Makefile.am): Likewise.
41799         * modules/utimecmp (Makefile.am): Likewise.
41800         * modules/utimens (Makefile.am): Likewise.
41801         * modules/vasnprintf (Makefile.am): Likewise.
41802         * modules/vasprintf (Makefile.am): Likewise.
41803         * modules/vsnprintf (Makefile.am): Likewise.
41804         * modules/xalloc (Makefile.am): Likewise.
41805         * modules/xgetcwd (Makefile.am): Likewise.
41806         * modules/xnanosleep (Makefile.am): Likewise.
41807         * modules/xreadlink (Makefile.am): Likewise.
41808         * modules/xstrtod (Makefile.am): Likewise.
41809         * modules/xstrtol (Makefile.am): Likewise.
41810         * modules/xstrtold (Makefile.am): Likewise.
41811         * modules/yesno (Makefile.am): Likewise.
41812         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41813
41814 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41815
41816         * modules/error (Makefile.am): Distribute files through
41817         EXTRA_DIST, not lib_SOURCES.
41818
41819 2006-10-12  Eric Blake  <ebb9@byu.net>
41820
41821         * modules/error (Makefile.am): Distribute files in /lib.
41822         * modules/obstack (Makefile.am): Likewise.
41823
41824 2006-10-12  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/acl (Makefile.am): Distribute all files in lib/ through
41827         EXTRA_DIST.
41828         * modules/arcfour (Makefile.am): Likewise.
41829         * modules/arctwo (Makefile.am): Likewise.
41830         * modules/argmatch (Makefile.am): Likewise.
41831         * modules/argz (Makefile.am): Likewise.
41832         * modules/atexit (Makefile.am): Likewise.
41833         * modules/backupfile (Makefile.am): Likewise.
41834         * modules/c-strtod (Makefile.am): Likewise.
41835         * modules/c-strtold (Makefile.am): Likewise.
41836         * modules/calloc (Makefile.am): Likewise.
41837         * modules/canon-host (Makefile.am): Likewise.
41838         * modules/canonicalize (Makefile.am): Likewise.
41839         * modules/chdir-long (Makefile.am): Likewise.
41840         * modules/chdir-safer (Makefile.am): Likewise.
41841         * modules/check-version (Makefile.am): Likewise.
41842         * modules/chown (Makefile.am): Likewise.
41843         * modules/cloexec (Makefile.am): Likewise.
41844         * modules/close-stream (Makefile.am): Likewise.
41845         * modules/closeout (Makefile.am): Likewise.
41846         * modules/crc (Makefile.am): Likewise.
41847         * modules/cycle-check (Makefile.am): Likewise.
41848         * modules/des (Makefile.am): Likewise.
41849         * modules/dirfd (Makefile.am): Likewise.
41850         * modules/dirname (Makefile.am): Likewise.
41851         * modules/dup2 (Makefile.am): Likewise.
41852         * modules/euidaccess (Makefile.am): Likewise.
41853         * modules/exclude (Makefile.am): Likewise.
41854         * modules/exitfail (Makefile.am): Likewise.
41855         * modules/fcntl-safer (Makefile.am): Likewise.
41856         * modules/file-type (Makefile.am): Likewise.
41857         * modules/fileblocks (Makefile.am): Likewise.
41858         * modules/filemode (Makefile.am): Likewise.
41859         * modules/filenamecat (Makefile.am): Likewise.
41860         * modules/fnmatch (Makefile.am): Likewise.
41861         * modules/fopen-safer (Makefile.am): Likewise.
41862         * modules/fpending (Makefile.am): Likewise.
41863         * modules/fprintftime (Makefile.am): Likewise.
41864         * modules/free (Makefile.am): Likewise.
41865         * modules/fsusage (Makefile.am): Likewise.
41866         * modules/ftruncate (Makefile.am): Likewise.
41867         * modules/fts (Makefile.am): Likewise.
41868         * modules/gc (Makefile.am): Likewise.
41869         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41870         * modules/getaddrinfo (Makefile.am): Likewise.
41871         * modules/getcwd (Makefile.am): Likewise.
41872         * modules/getdelim (Makefile.am): Likewise.
41873         * modules/getdomainname (Makefile.am): Likewise.
41874         * modules/getgroups (Makefile.am): Likewise.
41875         * modules/gethostname (Makefile.am): Likewise.
41876         * modules/gethrxtime (Makefile.am): Likewise.
41877         * modules/getline (Makefile.am): Likewise.
41878         * modules/getloadavg (Makefile.am): Likewise.
41879         * modules/getlogin_r (Makefile.am): Likewise.
41880         * modules/getopt (Makefile.am): Likewise.
41881         * modules/getpass (Makefile.am): Likewise.
41882         * modules/getpass-gnu (Makefile.am): Likewise.
41883         * modules/getsubopt (Makefile.am): Likewise.
41884         * modules/gettime (Makefile.am): Likewise.
41885         * modules/gettimeofday (Makefile.am): Likewise.
41886         * modules/getugroups (Makefile.am): Likewise.
41887         * modules/getusershell (Makefile.am): Likewise.
41888         * modules/glob (Makefile.am): Likewise.
41889         * modules/group-member (Makefile.am): Likewise.
41890         * modules/hard-locale (Makefile.am): Likewise.
41891         * modules/hash (Makefile.am): Likewise.
41892         * modules/hmac-md5 (Makefile.am): Likewise.
41893         * modules/hmac-sha1 (Makefile.am): Likewise.
41894         * modules/human (Makefile.am): Likewise.
41895         * modules/idcache (Makefile.am): Likewise.
41896         * modules/imaxabs (Makefile.am): Likewise.
41897         * modules/imaxdiv (Makefile.am): Likewise.
41898         * modules/inet_ntop (Makefile.am): Likewise.
41899         * modules/inet_pton (Makefile.am): Likewise.
41900         * modules/inttostr (Makefile.am): Likewise.
41901         * modules/isapipe (Makefile.am): Likewise.
41902         * modules/lchown (Makefile.am): Likewise.
41903         * modules/long-options (Makefile.am): Likewise.
41904         * modules/lstat (Makefile.am): Likewise.
41905         * modules/malloc (Makefile.am): Likewise.
41906         * modules/mathl (Makefile.am): Likewise.
41907         * modules/mbchar (Makefile.am): Likewise.
41908         * modules/md2 (Makefile.am): Likewise.
41909         * modules/md4 (Makefile.am): Likewise.
41910         * modules/md5 (Makefile.am): Likewise.
41911         * modules/memcasecmp (Makefile.am): Likewise.
41912         * modules/memchr (Makefile.am): Likewise.
41913         * modules/memcmp (Makefile.am): Likewise.
41914         * modules/memcoll (Makefile.am): Likewise.
41915         * modules/memcpy (Makefile.am): Likewise.
41916         * modules/memmem (Makefile.am): Likewise.
41917         * modules/memmove (Makefile.am): Likewise.
41918         * modules/mempcpy (Makefile.am): Likewise.
41919         * modules/memrchr (Makefile.am): Likewise.
41920         * modules/memset (Makefile.am): Likewise.
41921         * modules/memxor (Makefile.am): Likewise.
41922         * modules/mkancesdirs (Makefile.am): Likewise.
41923         * modules/mkdir (Makefile.am): Likewise.
41924         * modules/mkdir-p (Makefile.am): Likewise.
41925         * modules/mkdtemp (Makefile.am): Likewise.
41926         * modules/mkstemp (Makefile.am): Likewise.
41927         * modules/mktime (Makefile.am): Likewise.
41928         * modules/modechange (Makefile.am): Likewise.
41929         * modules/mountlist (Makefile.am): Likewise.
41930         * modules/nanosleep (Makefile.am): Likewise.
41931         * modules/openat (Makefile.am): Likewise.
41932         * modules/pagealign_alloc (Makefile.am): Likewise.
41933         * modules/physmem (Makefile.am): Likewise.
41934         * modules/poll (Makefile.am): Likewise.
41935         * modules/posixtm (Makefile.am): Likewise.
41936         * modules/posixver (Makefile.am): Likewise.
41937         * modules/putenv (Makefile.am): Likewise.
41938         * modules/quote (Makefile.am): Likewise.
41939         * modules/quotearg (Makefile.am): Likewise.
41940         * modules/raise (Makefile.am): Likewise.
41941         * modules/read-file (Makefile.am): Likewise.
41942         * modules/readline (Makefile.am): Likewise.
41943         * modules/readlink (Makefile.am): Likewise.
41944         * modules/readtokens (Makefile.am): Likewise.
41945         * modules/readutmp (Makefile.am): Likewise.
41946         * modules/realloc (Makefile.am): Likewise.
41947         * modules/regex (Makefile.am): Likewise.
41948         * modules/rename (Makefile.am): Likewise.
41949         * modules/rename-dest-slash (Makefile.am): Likewise.
41950         * modules/rijndael (Makefile.am): Likewise.
41951         * modules/rmdir (Makefile.am): Likewise.
41952         * modules/rpmatch (Makefile.am): Likewise.
41953         * modules/safe-read (Makefile.am): Likewise.
41954         * modules/safe-write (Makefile.am): Likewise.
41955         * modules/same (Makefile.am): Likewise.
41956         * modules/save-cwd (Makefile.am): Likewise.
41957         * modules/savedir (Makefile.am): Likewise.
41958         * modules/setenv (Makefile.am): Likewise.
41959         * modules/settime (Makefile.am): Likewise.
41960         * modules/sha1 (Makefile.am): Likewise.
41961         * modules/sig2str (Makefile.am): Likewise.
41962         * modules/snprintf (Makefile.am): Likewise.
41963         * modules/stdlib-safer (Makefile.am): Likewise.
41964         * modules/stpcpy (Makefile.am): Likewise.
41965         * modules/stpncpy (Makefile.am): Likewise.
41966         * modules/strcase (Makefile.am): Likewise.
41967         * modules/strcasestr (Makefile.am): Likewise.
41968         * modules/strchrnul (Makefile.am): Likewise.
41969         * modules/strcspn (Makefile.am): Likewise.
41970         * modules/strdup (Makefile.am): Likewise.
41971         * modules/strerror (Makefile.am): Likewise.
41972         * modules/strftime (Makefile.am): Likewise.
41973         * modules/strndup (Makefile.am): Likewise.
41974         * modules/strnlen (Makefile.am): Likewise.
41975         * modules/strpbrk (Makefile.am): Likewise.
41976         * modules/strsep (Makefile.am): Likewise.
41977         * modules/strstr (Makefile.am): Likewise.
41978         * modules/strtod (Makefile.am): Likewise.
41979         * modules/strtoimax (Makefile.am): Likewise.
41980         * modules/strtok_r (Makefile.am): Likewise.
41981         * modules/strtol (Makefile.am): Likewise.
41982         * modules/strtoll (Makefile.am): Likewise.
41983         * modules/strtoul (Makefile.am): Likewise.
41984         * modules/strtoull (Makefile.am): Likewise.
41985         * modules/strtoumax (Makefile.am): Likewise.
41986         * modules/strverscmp (Makefile.am): Likewise.
41987         * modules/time_r (Makefile.am): Likewise.
41988         * modules/timegm (Makefile.am): Likewise.
41989         * modules/tmpfile-safer (Makefile.am): Likewise.
41990         * modules/unistd-safer (Makefile.am): Likewise.
41991         * modules/unlinkdir (Makefile.am): Likewise.
41992         * modules/userspec (Makefile.am): Likewise.
41993         * modules/utime (Makefile.am): Likewise.
41994         * modules/utimecmp (Makefile.am): Likewise.
41995         * modules/utimens (Makefile.am): Likewise.
41996         * modules/vasnprintf (Makefile.am): Likewise.
41997         * modules/vasprintf (Makefile.am): Likewise.
41998         * modules/vsnprintf (Makefile.am): Likewise.
41999         * modules/xalloc (Makefile.am): Likewise.
42000         * modules/xgetcwd (Makefile.am): Likewise.
42001         * modules/xnanosleep (Makefile.am): Likewise.
42002         * modules/xreadlink (Makefile.am): Likewise.
42003         * modules/xstrtod (Makefile.am): Likewise.
42004         * modules/xstrtol (Makefile.am): Likewise.
42005         * modules/xstrtold (Makefile.am): Likewise.
42006         * modules/yesno (Makefile.am): Likewise.
42007
42008 2006-10-12  Jim Meyering  <jim@meyering.net>
42009
42010         * m4/getloadavg.m4: Revert the change below.
42011
42012         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42013         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42014         fail with a symlink, which is what coreutils' ./bootstrap now
42015         creates by default.
42016
42017 2006-10-12  Bruno Haible  <bruno@clisp.org>
42018
42019         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42020         mingw.
42021         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42022         MSVC and mingw explicitly.
42023
42024 2006-10-11  Simon Josefsson  <jas@extundo.com>
42025             Bruno Haible  <bruno@clisp.org>
42026
42027         Add support for multiple gnulib-tool invocations in the scope of a
42028         single configure.ac file.
42029         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42030         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42031         with the same contents as the _LIBADD variable.
42032         (func_emit_initmacro_start, func_emit_initmacro_end,
42033         func_emit_initmacro_done): New functions.
42034         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42035         gl_LIBOBJS and gl_LTLIBOBJS.
42036
42037 2006-10-11  Bruno Haible  <bruno@clisp.org>
42038
42039         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42040         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42041         autoreconf. Instead, invoke autopoint explicitly but move back the
42042         *.m4 files from gnulib.
42043
42044 2006-10-11  Bruno Haible  <bruno@clisp.org>
42045
42046         * gnulib-tool (func_usage): Make module names after --create-testdir
42047         optional.
42048         (func_create_testdir): If no module was specified, use nearly all
42049         modules.
42050
42051 2006-10-12  Jim Meyering  <jim@meyering.net>
42052
42053         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42054         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42055         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42056         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42057         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42058         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42059         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42060         (fts_set_stat_required): New function.
42061         (fts_open): Defer the calls to fts_stat, if possible or requested.
42062         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42063         into fts_stat itself.
42064         (fts_read): Perform any required (deferred) fts_stat call.
42065         (fts_build): Likewise, for the directory we're about to open and read.
42066         In the readdir loop, carefully decide whether each entry will require
42067         an eventual call to fts_stat, using dirent.d_type info if available.
42068         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42069         a command line argument into this function.  Update all callers.
42070         Map a return value of FTS_DOT to FTS_D for a command line argument.
42071         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42072         Thanks to Miklos Szeredi for his tenacity and for the initial
42073         bug report about "find" failing on a FUSE-based file system.
42074
42075         * lib/fts.c (fts_open): Use consistent indentation.
42076
42077 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42078
42079         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42080         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42081         reported by Jim Meyering.  All uses of cache variables renamed
42082         to match Autoconf's.
42083         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42084         the other one.
42085
42086         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42087         Fix misspelling in diagnostic.
42088
42089 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42090
42091         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42092         defined.  Problem reported by Matthew Woehlke.
42093
42094         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42095         Add support for Tandem NonStop R series.
42096         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42097         Use new macro.
42098
42099         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42100         (has_trailing_slash): Omit size arg; all callers changed.
42101         Omit 'inline', since it doesn't help performance and we'd
42102         need to configure it.
42103         Don't count //, ///, etc. as having a trailing slash.
42104         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42105         (rpl_rename_dest_slash): On failure, use rename's errno rather
42106         than (in some cases) an incorrect or junk errno.
42107         Simplify code by removing need to compute length; this does
42108         cause it to make two passes instead of one over the file name,
42109         but it's worth it.
42110
42111         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42112         change, since Autoconf's version may no longer be appropriate now
42113         that we are using CVS Autoconf's version.  Add support for Tandem.
42114
42115 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42116             Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42119         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42120         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42121         gl_AC_TYPE_LONG_LONG.
42122
42123         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42124         instead of HAVE_LONG_LONG.
42125         * lib/printf-args.c (printf_fetchargs): Likewise.
42126         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42127         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42129         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42130         gl_AC_TYPE_LONG_LONG.
42131
42132 2006-10-11  Bruno Haible  <bruno@clisp.org>
42133
42134         * m4/longlong.m4: Add comments.
42135         * m4/ulonglong.m4: Likewise.
42136
42137 2006-10-10  Bruno Haible  <bruno@clisp.org>
42138
42139         Make it possible to #define stpcpy, strdup to aliases.
42140         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42141         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42142
42143 2006-10-10  Bruno Haible  <bruno@clisp.org>
42144
42145         Make it possible to #define gcd to an alias.
42146         * lib/gcd.c: Include config.h.
42147
42148 2006-10-10  Bruno Haible  <bruno@clisp.org>
42149
42150         Make it possible to #define c_isascii to an alias.
42151         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42152         defined. Undefine the macros before defining them, to avoid gcc
42153         warnings.
42154         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42155         define NO_C_CTYPE_MACROS early.
42156
42157 2006-10-10  Bruno Haible  <bruno@clisp.org>
42158
42159         Make it possible to #define set_program_name to an alias.
42160         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42161         ENABLE_RELOCATABLE early.
42162
42163 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42164
42165         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42166         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42167         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42168         More generally, don't assume that 64-bit signed int is available
42169         if unsigned int is, and vice versa.
42170         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42171         unsigned symbols, not on their signed counterparts.
42172         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42173         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42174         (UINT64_C, UINTMAX_C):
42175         Likewise.
42176         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42177         unsigned counterparts.
42178         (Have_long_long, Unsigned): New macros.
42179         (Int): Renamed from INT.
42180         (strtoimax): Use the new macros.
42181         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42182         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42183         * modules/inttypes (inttypes.h): Substitute
42184         HAVE_UNSIGNED_LONG_LONG_INT.
42185         * modules/stdint (stdint.h): Likewise.
42186         (Files): Add m4/ulonglong.m4.
42187
42188 2006-10-10  Bruno Haible  <bruno@clisp.org>
42189
42190         Fix a gcc -Wshadow warning.
42191         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42192         to 'bucket'.
42193         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42194         gl_linked_indexof_from_to): Likewise.
42195         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42196         Likewise.
42197         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42198         Likewise.
42199         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42200         Reported by Eric Blake.
42201
42202 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42203
42204         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42205         for NetBSD.  Problem reported by Bruno Haible.
42206
42207 2006-10-09  Jim Meyering  <jim@meyering.net>
42208
42209         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42210         Patch from Bruno Haible.
42211
42212 2006-10-09  Jim Meyering  <jim@meyering.net>
42213
42214         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42215         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42216         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42217
42218 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         Don't include <config.h> twice; this doesn't work in some cases,
42221         e.g., when config.h has "#define intmax_t long long int" and
42222         we include <config.h>, <inttypes.h>, <config.h> in that order.
42223         Problem reported by Matthew Woehlke in:
42224         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42225         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42226         * lib/fts-cycle.c: Don't include config.h.
42227         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42228         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42229         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42230         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42231         inttypes.h.
42232         * lib/xstrtoumax.c: Likewise.
42233         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42234         __strtol and the like, so that this module is more like its siblings.
42235         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42236         Remove; no longer needed now that we assume gnulib inttypes.h.
42237
42238 2006-10-08  Bruno Haible  <bruno@clisp.org>
42239
42240         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42241         option.
42242
42243 2006-10-07  Jim Meyering  <jim@meyering.net>
42244
42245         * modules/inttypes (inttypes.h): Revert what seems to have been
42246         an inadvertent part of today's change: use "|", not "/" in the
42247         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42248
42249 2006-10-07  Bruno Haible  <bruno@clisp.org>
42250
42251         * modules/sublist: New file.
42252
42253 2006-10-07  Bruno Haible  <bruno@clisp.org>
42254
42255         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42256         * modules/argz (argz.h): Likewise.
42257         * modules/arpa_inet (arpa/inet.h): Likewise.
42258         * modules/byteswap (byteswap.h): Likewise.
42259         * modules/configmake (configmake.h): Likewise.
42260         * modules/fcntl (fcntl.h): Likewise.
42261         * modules/fnmatch (fnmatch.h): Likewise.
42262         * modules/getopt (getopt.h): Likewise.
42263         * modules/glob (glob.h): Likewise.
42264         * modules/inttypes (inttypes.h): Likewise.
42265         * modules/netinet_in (netinet/in.h): Likewise.
42266         * modules/poll (poll.h): Likewise.
42267         * modules/stdbool (stdbool.h): Likewise.
42268         * modules/stdint (stdint.h): Likewise.
42269         * modules/sys_select (sys/select.h): Likewise.
42270         * modules/sys_socket (sys/socket.h): Likewise.
42271         * modules/sys_stat (sys/stat.h): Likewise.
42272         * modules/sysexits (sysexits.h): Likewise.
42273         * modules/unistd (unistd.h): Likewise.
42274         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42275         Add a "DO NOT EDIT" comment to the generated file.
42276         (func_import): Likewise for gnulib-comp.m4.
42277
42278 2006-10-07  Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/gl_sublist.h: New file.
42281         * lib/gl_sublist.c: New file.
42282
42283 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42284
42285         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42286         name (relative to the original working directory) and the file
42287         name component (relative to the temporary working directory).  All
42288         callers changed.
42289         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42290         * lib/mkdir-p.c (make_dir_parents): Likewise.
42291         * lib/mkdir-p.h (make_dir_parents): Likewise.
42292
42293 2006-10-06  Eric Blake  <ebb9@byu.net>
42294
42295         Define several macros for use by the clean-temp module.
42296         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42297         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42298         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42299
42300         * lib/clean-temp.h (close_stream_temp): New declaration.
42301         * lib/clean-temp.c (includes): Pull in headers according to what
42302         other modules are in use.
42303         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42304
42305 2006-10-06  Bruno Haible  <bruno@clisp.org>
42306
42307         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42308         instead of fopen, fwriteerror.
42309
42310 2006-10-06  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42313         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42314         int.
42315         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42316         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42317         Return an error indicator.
42318         Suggested by Eric Blake.
42319
42320 2006-10-06  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42323         Reported by Eric Blake.
42324
42325 2006-10-06  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/closeout (Description): Mention stderr too.
42328
42329 2006-10-06  Bruno Haible  <bruno@clisp.org>
42330         and Paul Eggert  <eggert@cs.ucla.edu>
42331
42332         * lib/closeout.c (close_stdout): Also close stderr.
42333         * lib/closeout.h: Update comment.
42334
42335 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42338         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42339         * lib/dirchownmod.c: Include lchown.h.
42340         * lib/lchown.c: Don't include files that lchown.h now includes.
42341         Don't declare chown, since lchown.h now does that.
42342         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42343         (lchown): Define to rpl_chown if lchown is declared but
42344         does not exist.  Declare using a prototype if lchown is not
42345         declared.  Add a copyright notice.
42346         * lib/mkstemp.h: Include <unistd.h>.
42347         * lib/openat.c: Include lchown.h.
42348
42349         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42350         we now test for that separately.
42351         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42352         rather than O_NOFOLLOW, when testing whether it's possible to
42353         avoid a race condition reliably.
42354         * lib/savewd.c (savewd_chdir): Likewise.
42355
42356         Remove macros that are no longer needed now that stdint.h is
42357         reliable.
42358         * lib/fsusage.c (UINTMAX_MAX): Remove.
42359         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42360         * lib/utimecmp.c (SIZE_MAX): Remove.
42361
42362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42363
42364         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42365         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42366         O_NOATIME works.
42367
42368 2006-10-05  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/gl_list.h (gl_sortedlist_search_from_to,
42371         gl_sortedlist_indexof_from_to): New declarations.
42372         (gl_list_implementation): New fields sortedlist_search_from_to,
42373         sortedlist_indexof_from_to.
42374         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42375         inline functions.
42376         * lib/gl_list.c (gl_sortedlist_search_from_to,
42377         gl_sortedlist_indexof_from_to): New functions.
42378         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42379         function.
42380         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42381         (gl_array_sortedlist_search_from_to): New function.
42382         (gl_array_list_implementation): Update.
42383         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42384         function.
42385         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42386         (gl_carray_sortedlist_search_from_to): New function.
42387         (gl_carray_list_implementation): Update.
42388         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42389         gl_linked_sortedlist_indexof_from_to): New functions.
42390         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42391         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42392         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42393         gl_tree_sortedlist_indexof_from_to): New functions.
42394         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42395         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42396         Update.
42397         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42398         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42399         Update.
42400
42401 2006-10-05  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42404         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42405         (struct gl_list_implementation): Add fields search_from_to,
42406         indexof_from_to. Remove fields search, indexof.
42407         (gl_list_search): Use the search_from_to method.
42408         (gl_list_search_from, gl_list_search_from_to): New functions.
42409         (gl_list_indexof): Use the indexof_from_to method.
42410         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42411         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42412         (gl_list_search_from, gl_list_search_from_to): New functions.
42413         (gl_list_indexof): Use the indexof_from_to method.
42414         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42415         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42416         gl_array_indexof. Add start_index, end_index arguments.
42417         (gl_array_search_from_to): Renamed from gl_array_search. Add
42418         start_index, end_index arguments.
42419         (gl_array_remove, gl_array_list_implementation): Update.
42420         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42421         gl_carray_indexof. Add start_index, end_index arguments.
42422         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42423         start_index, end_index arguments.
42424         (gl_carray_remove, gl_carray_list_implementation): Update.
42425         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42426         gl_linked_search. Add start_index, end_index arguments.
42427         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42428         start_index, end_index arguments.
42429         (gl_linked_remove): Update.
42430         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42431         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42432         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42433         field to 'size_t'.
42434         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42435         gl_tree_search. Add start_index, end_index arguments.
42436         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42437         start_index, end_index arguments.
42438         (gl_tree_remove): Update.
42439         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42440         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42441         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42442         function.
42443         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42444         gl_tree_search. Add start_index, end_index arguments.
42445         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42446         start_index, end_index arguments.
42447         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42448         Update.
42449         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42450
42451 2006-10-05  Bruno Haible  <bruno@clisp.org>
42452
42453         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42454
42455         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42456         fwriteerror_temp): New declarations.
42457         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42458         (descriptors): New variable.
42459         (cleanup): First, close the descriptors.
42460         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42461         fclose_temp, fwriteerror_temp): New functions.
42462
42463 2006-10-04  Jim Meyering  <jim@meyering.net>
42464
42465         * lib/fts.c (fts_open): Tiny comment change.
42466
42467 2006-10-04  Bruno Haible  <bruno@clisp.org>
42468
42469         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42470         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42471         gl_LOCK_BODY.
42472         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42473         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42474         gl_LOCK_EARLY_BODY.
42475         (gl_LOCK): Require gl_LOCK_BODY.
42476
42477 2006-10-04  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42480         (gl_oset_search_atleast): New declaration.
42481         (struct gl_oset_implementation): Add field 'search_atleast'.
42482         (gl_oset_search_atleast): New inline function.
42483         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42484         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42485         (gl_array_oset_implementation): Update.
42486         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42487         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42488         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42489
42490 2006-10-04  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42493
42494 2006-10-03  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42497         from gl_avltreehash_list_implementation.
42498
42499 2006-10-03  Bruno Haible  <bruno@clisp.org>
42500
42501         * lib/gl_oset.c (gl_oset_add): Fix return type.
42502
42503 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42504
42505         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42506
42507 2006-10-02  Eric Blake  <ebb9@byu.net>
42508
42509         * modules/strnlen (Depends-on): Add extensions.
42510
42511 2006-10-02  Eric Blake  <ebb9@byu.net>
42512
42513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42514         definition in 2.60+.
42515
42516 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42517
42518         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42519         checks.
42520
42521 2006-10-02  Bruno Haible  <bruno@clisp.org>
42522
42523         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42524         to the AUTOMAKE_OPTIONS.
42525         Reported by Jim Meyering.
42526
42527 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42528
42529         Work around bug in Solaris 10 /proc file system:
42530         /proc/self/fd/NNN/.. isn't the parent directory of
42531         the directory whose file descriptor is NNN.  This needs to
42532         be worked around at run time, not compile time, since a
42533         program might be built on Solaris 8, where things work, and
42534         run on Solaris 10.
42535         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42536         to use the following interface instead:
42537         (OPENAT_BUFFER_SIZE): New macro.
42538         (openat_proc_name): New function.
42539         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42540         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42541         Likewise.
42542         * lib/openat-proc.c: New file.
42543         * modules/openat (Files): Add lib/openat-proc.c.
42544         (Depends-on): Add same-inode, stdbool.
42545         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42546
42547 2006-09-29  Bruno Haible  <bruno@clisp.org>
42548
42549         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42550         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42551         argument. Set stdout_closed before testing for ferror, not after.
42552         (fwriteerror, fwriteerror_no_ebadf): New functions.
42553
42554 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42555
42556         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42557
42558 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42559
42560         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42561         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42562
42563 2006-09-28  Jim Meyering  <jim@meyering.net>
42564
42565         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42566         Include <unistd.h>.
42567
42568 2006-09-28  Bruno Haible  <bruno@clisp.org>
42569
42570         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42571         * modules/linkedhash-list (Depends-on): Likewise.
42572         * modules/rbtreehash-list (Depends-on): Likewise.
42573
42574 2006-09-28  Bruno Haible  <bruno@clisp.org>
42575
42576         * lib/strndup.h: Simplify the redefinition of strndup.
42577         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42579
42580 2006-09-28  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42583         * lib/gl_linkedhash_list.c: Likewise.
42584         * lib/gl_rbtreehash_list.c: Likewise.
42585
42586 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42587
42588         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42589         getaddrinfo.
42590
42591         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42592         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42593         it causes <stdio_ext.h> to cause a compile-time error.
42594         Problem reported by Nelson H. F. Beebe.
42595         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42596         of HAVE_DECL___PENDING.
42597
42598         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42599         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42600         declaration.
42601
42602 2006-09-27  Jim Meyering  <jim@meyering.net>
42603
42604         This file could end up with a definition for a function
42605         named __strndup, rather than rpl_strndup on a system with
42606         incomplete weak_alias support.
42607         * lib/strndup.c (strndup): Rename from __strndup.
42608         Remove #defines that used to map __strndup to strndup.
42609         Don't use K&R prototypes.
42610         Remove LIBC-related code, since this file is not sync'd with glibc.
42611         * lib/strndup.h: Revamp, accordingly.
42612         * m4/strndup.m4: Modernize.
42613
42614 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42615
42616         * modules/savewd (Depends-on): Add 'raise'.
42617         * lib/savewd.c: Include <signal.h>, for 'raise'.
42618
42619 2006-09-26  Jim Meyering  <jim@meyering.net>
42620
42621         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42622         when we detect Darwin 8.7.0's acl_get_file bug.
42623         Rearrange to perform the new (below) run-test while $LIBS
42624         contains any acl-related library.  Set USE_ACL at the end.
42625         (gl_ACL_GET_FILE): New function.
42626
42627 2006-09-26  Eric Blake  <ebb9@byu.net>
42628
42629         * lib/verror.c: Include <config.h> unconditionally.
42630
42631 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42632
42633         * modules/clock-time (Maintainer): Add self.
42634         * modules/getlogin_r (Depends-on): Add extensions.
42635
42636 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42637
42638         * modules/clock-time: New module.
42639         * modules/nanosleep (Depends-on): Add clock-time.
42640         * modules/gethrxtime (Depends-on): Likewise.
42641         * modules/gettime (Depends-on): Likewise.
42642         * modules/settime (Depends-on): Likewise.
42643
42644         * modules/fts-lgpl: Depend on openat.
42645         * modules/mkancesdirs: Depend on savewd.
42646         * modules/mkdir-p: Likewise.
42647
42648 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42649
42650         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42651
42652         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42653         `gl_have_arbitrary_file_name_length_limit' to
42654         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42655         actually works between configure runs.
42656
42657 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42658             Bruno Haible  <bruno@clisp.org>
42659
42660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42661
42662 2006-09-25  Jim Meyering  <jim@meyering.net>
42663
42664         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42665         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42666
42667 2006-09-25  Eric Blake  <ebb9@byu.net>
42668
42669         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42670         exec's in 2006-09-18 patch when shuffling fds.
42671
42672 2006-09-25  Bruno Haible  <bruno@clisp.org>
42673
42674         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42675         Reported by Jim Meyering.
42676
42677 2006-09-24  Jim Meyering  <jim@meyering.net>
42678
42679         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42680         compare a pointer against a literal "0".  That caused failures with
42681         at least HP-UX's hpcc.
42682
42683 2006-09-22  Simon Josefsson  <jas@extundo.com>
42684
42685         * modules/gc-sha1:
42686         * modules/gc-md4:
42687         * modules/gc-hmac-sha1:
42688         * modules/gc-hmac-md5:
42689         * modules/gc-des:
42690         * modules/gc-arcfour: Distribute more files.
42691
42692 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42693
42694         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42695         (gl_linked_iterator_from_to): Initialize struct completely.
42696         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42697         (gl_tree_iterator_from_to): Likewise
42698         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42699         * lib/gl_array_list.c [lint] (gl_array_iterator)
42700         (gl_array_iterator_from_to): Likewise.
42701         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42702         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42703         (gl_carray_iterator_from_to): Likewise.
42704
42705         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42706         * lib/md4.c (md4_process_block): Remove unused variable.
42707         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42708         parentheses for clarity.
42709
42710 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42711
42712         * modules/bison-i18n (Depends-on): Add gettext.
42713
42714 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42715
42716         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42717         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42718         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42719         also add missing comma that caused broken test.
42720         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42721         stdlib.h, for `abort'.
42722         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42723         variables.
42724         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42725         include unistd.h if present, for `rmdir'.
42726         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42727         variables.
42728         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42729         in the process include standard headers for prototypes.
42730         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42731         gets declared on GNU/Linux.
42732         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42733         unistd.h, for `rmdir'.
42734         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42735
42736         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42737         always true.
42738         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42739
42740         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42741
42742 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42743
42744         * gnulib-tool (func_version): Create output all at once.  This
42745         may help avoid triggering unnecessary SIGPIPEs, and at any
42746         rate it doesn't hurt.
42747
42748 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42749             Bruno Haible  <bruno@clisp.org>
42750
42751         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42752         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42753         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42754
42755         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42756         (gl_FUNC_VASPRINTF): Invoke it.
42757
42758 2006-09-22  Bruno Haible  <bruno@clisp.org>
42759
42760         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42761         getloadavg.c as first argument.
42762
42763 2006-09-22  Bruno Haible  <bruno@clisp.org>
42764
42765         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42766         at the beginning of the gl_INIT macro.
42767         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42768         gl_GETLOADAVG.
42769
42770 2006-09-22  Bruno Haible  <bruno@clisp.org>
42771
42772         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42773         module.
42774         Suggested by Ralf Wildenhues.
42775
42776 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42777
42778         Import this patch from libc:
42779
42780         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42781
42782         * lib/regex_internal.c (re_string_reconstruct): Handle
42783         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42784         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42785         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42786         re_string_context_at.
42787
42788         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42789         now requires it.
42790         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42791         gl_REGEX now does it for us.
42792         (gl_REGEX): Add test taken from
42793         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42794
42795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42796         Check that large offsets work.  Modernize Autoconf usages.
42797         Prefer "yes" to mean a good thing rather than a bad.
42798         Don't put "#define mkstemp" in config.h, as this might interfere
42799         with standard system headers that "#define mkstemp mkstemp64".
42800
42801         * modules/mkstemp (Depends-on): Add extensions, so that
42802         mkstemp is visible on some platforms.
42803         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42804         (Include): Change to "mkstemp.h" from <stdlib.h>.
42805         (Files): Add mkstemp.h.
42806
42807         * lib/mkstemp.h: New file, since some standard headers
42808         #define mkstemp.
42809         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42810         Include "mkstemp.h".
42811         Make the _LIBC code resemble glibc original more,
42812         e.g., use K&R style.
42813         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42814         (mkstemp): Remove, since mkstemp.h does this for us.
42815         * lib/stdlib--.h: Include mkstemp.h.
42816
42817         Import this patch from libc:
42818
42819         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42820
42821         * lib/tempname.c (__gen_tempname): Change attempts_min
42822         into a macro.  Use preprocessor to decide how to initialize
42823         attempts [Coverity CID 67].
42824
42825 2006-09-20  Bruno Haible  <bruno@clisp.org>
42826
42827         * lib/mkdtemp.c: Import from libc.
42828         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42829                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42830                 attempts_min into a macro.  Use preprocessor to decide how to
42831                 initialize attempts [Coverity CID 67].
42832         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42833                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42834                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42835
42836 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42837
42838         * gnulib-tool (func_exit): New function, to allow to pass the
42839         exit status portably through the trap.  Use everywhere.
42840         (--help, --version): Signal a write error.
42841         (trap): catch SIGPIPE, for write errors.
42842         Exit at the end of the trap, with the correct exit status.
42843
42844 2006-09-19  Karl Berry  <karl@gnu.org>
42845
42846         * doc/gnulib.texi: note about the license texinfo files.
42847
42848 2006-09-19  Eric Blake  <ebb9@byu.net>
42849
42850         * gnulib-tool: Avoid space-tab.
42851
42852 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42853
42854         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42855         that prevented coreutils 6.1 from building.  Problem reported
42856         by Petter Reinholdtsen.
42857
42858 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42859
42860         * gnulib-tool (avoidlist): Fix typo that broke options like
42861         --avoid=lock that are used by coreutils bootstrap.
42862
42863 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42864
42865         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42866         more systematically.
42867
42868 2006-09-18  Jim Meyering  <jim@meyering.net>
42869
42870         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42871
42872 2006-09-18  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42875
42876 2006-09-18  Bruno Haible  <bruno@clisp.org>
42877
42878         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42879         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42880         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42881         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42882         * m4/gettext.m4: Require autoconf >= 2.52.
42883         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42884         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42885         of gl_cv_header_inttypes_h.
42886
42887 2006-09-18  Bruno Haible  <bruno@clisp.org>
42888
42889         * lib/javaversion.c: Include configmake.h.
42890
42891 2006-09-18  Bruno Haible  <bruno@clisp.org>
42892
42893         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42894         avoid that the while loops be executed in a subshell.
42895
42896 2006-09-18  Bruno Haible  <bruno@clisp.org>
42897
42898         * MODULES.html.sh (func_module): Break long lines.
42899         Suggested by Bruce Korb <bkorb@gnu.org>.
42900
42901 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42902
42903         Speed up by a factor of 1.12.
42904         * gnulib-tool (nl): New variable.
42905         (func_import): Rewrite include directive extraction to only read each
42906         directive once.
42907
42908 2006-09-17  Bruno Haible  <bruno@clisp.org>
42909
42910         * modules/javaversion (Makefile.am): Remove DEFS setting.
42911         (Depends-on): Add configmake, for PKGDATADIR definition.
42912
42913 2006-09-17  Bruno Haible  <bruno@clisp.org>
42914
42915         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42916
42917 2006-09-17  Bruno Haible  <bruno@clisp.org>
42918
42919         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42920         (func_modules_transitive_closure, func_modules_add_dummy,
42921         func_modules_to_filelist, func_import, func_create_testdir,
42922         func_create_megatestdir, ...): Use it wherever possible.
42923         Suggested by Ralf Wildenhues.
42924
42925 2006-09-16  Karl Berry  <karl@gnu.org>
42926
42927         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42928         to avoid sectioning errors.
42929         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42930         [ifinfo]: blank line after @center-ed titles.
42931         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42932         Spell FSF address consistently with others.
42933         (These changes approved by rms.)
42934
42935 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42936
42937         Speed up by a factor of 1.61.
42938         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42939         already checked module names again.
42940
42941 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42942
42943         Speed up by a factor of 1.13.
42944         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42945         for new_files, and the input to func_add_or_update.
42946
42947 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42948
42949         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42950         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42951
42952 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42953
42954         * modules/mkancesdirs (Depends-on): Add fcntl.
42955         * modules/savewd: New file.
42956         * MODULES.html.sh (File system functions): Add savewd.
42957
42958         * modules/configmake (Makefile.am): Add support for the
42959         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42960
42961 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42962
42963         * m4/savewd.m4: New file.
42964
42965 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42966
42967         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42968         (dirchownmod): New arg FD.  All callers changed.
42969         Use FD rather than opening the directory ourself, as opening is
42970         now the caller's responsibility.
42971         * lib/dirchownmod.h: Likewise.
42972         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42973         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42974         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42975         (test_dir): Remove.
42976         (mkancesdirs): Return length of prefix of FILE that has already
42977         been made, or -2 if there is a child doing the work.  Redo
42978         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42979         ".", and treat ".." specially since it might stray back into
42980         already-created areas.  Use a subprocess if necessary.  New arg
42981         WD; all users changed.  MAKE_DIR function should now return 1
42982         if it creates a directory that is not readable.  Return -2 if
42983         a child process is spun off.
42984         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42985         Adjust signature to match code.
42986         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42987         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42988         all users changed.
42989         * lib/savewd.c, lib/savewd.h: New files.
42990
42991 2006-09-15  Jim Meyering  <jim@meyering.net>
42992
42993         * modules/rename-dest-slash: New module.
42994         * MODULES.html.sh (posix_compat): Add it here.
42995
42996         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42997
42998 2006-09-15  Jim Meyering  <jim@meyering.net>
42999
43000         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43001         file.
43002
43003         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43004
43005 2006-09-15  Jim Meyering  <jim@meyering.net>
43006
43007         * lib/rename-dest-slash.c (has_trailing_slash): Use
43008         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43009         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43010         test before testing whether SRC is a directory.
43011         Suggestions from Bruno Haible.
43012
43013         Avoid a warning about an unused variable.
43014         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43015         into the #ifdef block where it's used.
43016
43017         * lib/rename-dest-slash.c: New file.
43018
43019 2006-09-14  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/allocsa.c: Include <config.h> unconditionally.
43022         * lib/asnprintf.c: Likewise.
43023         * lib/asprintf.c: Likewise.
43024         * lib/c-strcasecmp.c: Likewise.
43025         * lib/c-strcasestr.c: Likewise.
43026         * lib/c-strncasecmp.c: Likewise.
43027         * lib/c-strstr.c: Likewise.
43028         * lib/classpath.c: Likewise.
43029         * lib/clean-temp.c: Likewise.
43030         * lib/concatpath.c: Likewise.
43031         * lib/copy-file.c: Likewise.
43032         * lib/csharpcomp.c: Likewise.
43033         * lib/csharpexec.c: Likewise.
43034         * lib/execute.c: Likewise.
43035         * lib/fatal-signal.c: Likewise.
43036         * lib/findprog.c: Likewise.
43037         * lib/fwriteerror.c: Likewise.
43038         * lib/gl_array_list.c: Likewise.
43039         * lib/gl_array_oset.c: Likewise.
43040         * lib/gl_avltree_list.c: Likewise.
43041         * lib/gl_avltree_oset.c: Likewise.
43042         * lib/gl_avltreehash_list.c: Likewise.
43043         * lib/gl_carray_list.c: Likewise.
43044         * lib/gl_linked_list.c: Likewise.
43045         * lib/gl_linkedhash_list.c: Likewise.
43046         * lib/gl_list.c: Likewise.
43047         * lib/gl_oset.c: Likewise.
43048         * lib/gl_rbtree_list.c: Likewise.
43049         * lib/gl_rbtree_oset.c: Likewise.
43050         * lib/gl_rbtreehash_list.c: Likewise.
43051         * lib/imaxabs.c: Likewise.
43052         * lib/imaxdiv.c: Likewise.
43053         * lib/javacomp.c: Likewise.
43054         * lib/javaexec.c: Likewise.
43055         * lib/javaversion.c: Likewise.
43056         * lib/linebreak.c: Likewise.
43057         * lib/localcharset.c: Likewise.
43058         * lib/lock.c: Likewise.
43059         * lib/mbchar.c: Likewise.
43060         * lib/mbswidth.c: Likewise.
43061         * lib/mkdtemp.c: Likewise.
43062         * lib/pipe.c: Likewise.
43063         * lib/printf-args.c: Likewise.
43064         * lib/printf-parse.c: Likewise.
43065         * lib/progname.c: Likewise.
43066         * lib/progreloc.c: Likewise.
43067         * lib/readlink.c: Likewise.
43068         * lib/sh-quote.c: Likewise.
43069         * lib/stpcpy.c: Likewise.
43070         * lib/stpncpy.c: Likewise.
43071         * lib/strcasecmp.c: Likewise.
43072         * lib/strcasestr.c: Likewise.
43073         * lib/strcspn.c: Likewise.
43074         * lib/striconv.c: Likewise.
43075         * lib/strncasecmp.c: Likewise.
43076         * lib/strnlen1.c: Likewise.
43077         * lib/strstr.c: Likewise.
43078         * lib/strtok_r.c: Likewise.
43079         * lib/tls.c: Likewise.
43080         * lib/tmpdir.c: Likewise.
43081         * lib/unicodeio.c: Likewise.
43082         * lib/unsetenv.c: Likewise.
43083         * lib/vasnprintf.c: Likewise.
43084         * lib/vasprintf.c: Likewise.
43085         * lib/wait-process.c: Likewise.
43086         * lib/xallocsa.c: Likewise.
43087         * lib/xsetenv.c: Likewise.
43088         * lib/xstriconv.c: Likewise.
43089
43090 2006-09-13  Simon Josefsson  <jas@extundo.com>
43091
43092         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43093         that internally, suggested by Ralf Wildenhues
43094         <Ralf.Wildenhues@gmx.de>.
43095
43096 2006-09-13  Simon Josefsson  <jas@extundo.com>
43097
43098         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43099         @LIBOBJS@.
43100         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43101
43102 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43103
43104         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43105         longer worry about uses that don't define HAVE_CONFIG_H.
43106         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43107         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43108         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43109         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43110         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43111         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43112         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43113         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43114         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43115         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43116         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43117         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43118         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43119         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43120         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43121         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43122         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43123         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43124         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43125         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43126         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43127         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43128         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43129         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43130         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43131         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43132         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43133         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43134         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43135         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43136         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43137         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43138         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43139         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43140         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43141         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43142         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43143         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43144         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43145         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43146         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43147         Likewise.
43148
43149 2006-09-13  Eric Blake  <ebb9@byu.net>
43150
43151         * lib/getopt.c: Fix typo in last commit.
43152
43153 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43154
43155         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43156         dgettext.
43157
43158 2006-09-12  Jim Meyering  <jim@meyering.net>
43159
43160         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43161         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43162         Reported by Nelson H. F. Beebe.
43163
43164 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43165
43166         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43167         program_invocation_name and program_invocation_short_name are
43168         initialized.
43169         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43170         and program_invocation_short_name to argp.h, so they are visible
43171         to user programs.
43172         * lib/argp.h: Likewise
43173
43174 2006-09-10  Bruno Haible  <bruno@clisp.org>
43175
43176         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43177         m4/inttypes_h.m4, m4/uintmax_t.m4.
43178
43179 2006-09-10  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43182         gl_AC_TYPE_UINTMAX_T.
43183
43184 2006-09-10  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43187
43188 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43189
43190         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43191         convention.  Text proposed by Bruno Haible.
43192         (struct argp_option): Document the use of N_() wrappers.
43193
43194         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43195         '\v', and translate the two parts separately, instead of feeding
43196         the whole string to gettext.  This allows to exclude
43197         '\v' from the strings visible to the translator by writing doc
43198         strings as N_("..") "\v" N_("..").
43199
43200 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43201
43202         * config/srclist.txt: Undo latest change; the bug was fixed.
43203
43204 2006-09-09  Bruno Haible  <bruno@clisp.org>
43205
43206         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43207         assignments if building a library without libtool.
43208         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43209         in func_emit_lib_Makefile_am.
43210         (func_import): When building a static library libfoo.a, arrange to
43211         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43212         (func_create_testdir): Likewise.
43213         * modules/gc (configure.ac, Makefile.am): If building statically,
43214         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43215         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43216         * modules/striconv (configure.ac, Makefile.am): Likewise.
43217         Based on a suggestion by Ralf Wildenhues.
43218
43219 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43220
43221         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43222         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43223         Also:
43224
43225         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43226         Add year_2050_test to catch glibc bug 2821
43227         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43228
43229         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43230         Prefer #ifdef to #if.
43231
43232         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43233         Return from 'main' instead of calling 'exit'.
43234
43235 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43236
43237         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43238         returned the maximum time_t value rather than (time_t) -1.
43239         Problem originally reported by William Bardwell
43240         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43241
43242         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43243         Moved to here ...
43244         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43245         ... from here.
43246
43247 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43248
43249         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43250         2821 is fixed.
43251
43252 2006-09-08  Jim Meyering  <jim@meyering.net>
43253
43254         Don't make generated files read-only.  That would bother too many
43255         people.  However, do retain the ability to work when targets are
43256         read-only: remove the destination and temporary files before writing
43257         them (when generated via sed or echo), or by using the -f option for
43258         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43259         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43260         * modules/byteswap, modules/configmake, modules/fcntl:
43261         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43262         * modules/localcharset, modules/netinet_in, modules/poll:
43263         * modules/stdbool, modules/stdint, modules/sys_select:
43264         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43265
43266 2006-09-08  Jim Meyering  <jim@meyering.net>
43267
43268         Avoid new build failure on FreeBSD 6.0.
43269         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43270         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43271         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43272
43273 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43274
43275         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43276
43277 2006-09-07  Jim Meyering  <jim@meyering.net>
43278
43279         Fix global typo in last change: use chmod u-w, not chmod u-x.
43280         Spotted by Paul Eggert and Bruce Korb.
43281         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43282         * modules/byteswap, modules/configmake, modules/fcntl:
43283         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43284         * modules/localcharset, modules/netinet_in, modules/poll:
43285         * modules/stdbool, modules/stdint, modules/sys_select:
43286         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43287
43288 2006-09-06  Jim Meyering  <jim@meyering.net>
43289
43290         Make generated files be read-only.
43291         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43292         Ensure that each generated file is now read-only.
43293         * modules/argz: Likewise.
43294         * modules/arpa_inet: Likewise.
43295         * modules/byteswap: Likewise.
43296         * modules/configmake: Likewise.
43297         * modules/fcntl: Likewise.
43298         * modules/fnmatch: Likewise.
43299         * modules/getopt: Likewise.
43300         * modules/glob: Likewise.
43301         * modules/inttypes: Likewise.
43302         * modules/netinet_in: Likewise.
43303         * modules/poll: Likewise.
43304         * modules/stdbool: Likewise.
43305         * modules/stdint: Likewise.
43306         * modules/sys_select: Likewise.
43307         * modules/sys_socket: Likewise.
43308         * modules/sys_stat: Likewise.
43309         * modules/sysexits: Likewise.
43310         * modules/localcharset: Same as above, but continue using temporary
43311         file named "t-$@" (why different?) rather than the "$@-t" used
43312         everywhere else.
43313
43314         * modules/sysexits (Makefile.am): Replace literal occurrences
43315         of "sysexit.h" more readable, and more consistent, "$@".
43316
43317 2006-09-06  Bruno Haible  <bruno@clisp.org>
43318
43319         * modules/striconv: New file.
43320         * modules/xstriconv: New file.
43321         * MODULES.html.sh (Internationalization functions): Add striconv,
43322         xstriconv.
43323
43324 2006-09-06  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43327         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43328         not using libtool correctly.
43329
43330 2006-09-06  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/striconv.h: New file.
43333         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43334         iconvstring.c.
43335         * lib/xstriconv.h: New file.
43336         * lib/xstriconv.c: New file.
43337
43338 2006-09-06  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43341         lib_..._LDFLAGS.
43342
43343 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43344
43345         * lib/argz_.h: Sync from Libtool.
43346
43347         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43348                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43349
43350         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43351
43352 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43353
43354         * modules/trim: New file.
43355
43356 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43357
43358         * lib/trim.h: New file.
43359         * lib/trim.c: New file.
43360
43361 2006-09-05  Bruno Haible  <bruno@clisp.org>
43362
43363         * MODULES.html.sh (String handling): Add trim.
43364
43365 2006-09-04  Karl Berry  <karl@gnu.org>
43366
43367         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43368         until next release.
43369
43370 2006-09-03  Bruno Haible  <bruno@clisp.org>
43371
43372         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43373         correctly.
43374
43375 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43376
43377         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43378         not gl_GETLOADAVG.  Omit unneeded semicolons.
43379         Problems reported by Ralf Wildenhues in
43380         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43381         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43382         at the end, which is the usual gnulib style.
43383
43384         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43385         of doing all the work ourselves.
43386         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43387         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43388
43389 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43390
43391         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43392         Problem reported by Ralf Wildenhues in
43393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43394
43395         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43396         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43397
43398 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43401         yesterday's patch by changing test -n to test -z.
43402
43403 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43406         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43407         the former is now obsolescent.
43408
43409         * modules/chdir-long (Depends-on): Add fcntl.
43410
43411 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43412
43413         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43414         obsolescent, and programs should use gnulib instead.
43415         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43416         but with prefixes changed.
43417
43418 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43419
43420         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43421         or stdbool.h, because they might not exist while configuring.
43422
43423         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43424         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43425         does that for us.
43426         (O_DIRECTORY): Remove.
43427
43428 2006-08-31  Eric Blake  <ebb9@byu.net>
43429
43430         * gnulib-tool: Don't let emacs change spaces to TAB.
43431
43432 2006-08-31  Bruno Haible  <bruno@clisp.org>
43433
43434         * gnulib-tool: When calling func_import more than once, do it in a
43435         subshell.
43436         Reported by Eric Blake <ebb9@byu.net>.
43437
43438 2006-08-31  Bruno Haible  <bruno@clisp.org>
43439
43440         * gnulib-tool (nl): Remove variable.
43441         (sed_transform_lib_file): Use more robust test for config-h module.
43442         (func_import): Fix typo in 2006-08-25 patch.
43443
43444 2006-08-31  Bruno Haible  <bruno@clisp.org>
43445
43446         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43447         specified, augment Makefile.am variables instead of assigning them.
43448
43449 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43450
43451         Work around a bug in both the Linux and SunOS 64-bit kernels:
43452         nanosleep mishandles sleeps for longer than 2**31 seconds.
43453         Problem reported by Frank v Waveren in
43454         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43456         Check for nanosleep bug.
43457         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43458
43459 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43460
43461         Work around a bug in both the Linux and SunOS 64-bit kernels:
43462         nanosleep mishandles sleeps for longer than 2**31 seconds.
43463         Problem reported by Frank v Waveren in
43464         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43465         * lib/nanosleep.c (BILLION): New constant.
43466         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43467         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43468         implementation.
43469
43470 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43471
43472         * modules/nanosleep (Depends-on): Add gettime.
43473
43474 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43475         and Simon Josefsson  <jas@extundo.com>
43476         and Oskar Liljeblad  <oskar@osk.mine.nu>
43477
43478         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43479         * gnulib-tool (func_import): New license type 'unmodifiable license
43480         text'.
43481         * modules/fdl: Use it.  Longer description.
43482         * module/gpl, module/lgpl: New files.
43483
43484 2006-08-30  Jim Meyering  <jim@meyering.net>
43485
43486         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43487         shadowing the parameter.
43488
43489 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43490
43491         Sync from Libtool:
43492
43493         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43494
43495         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43496         sharing with gnulib.  Report by Eric Blake.
43497
43498 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43499
43500         * modules/isapipe: New file.
43501         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43502
43503 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43504
43505         * modules/configmake (Makefile.am): Add a comment, and omit
43506         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43507         by Bruno Haible.
43508
43509 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43510
43511         * m4/isapipe.m4: New file.
43512
43513 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43514
43515         * lib/isapipe.c, lib/isapipe.h: New files.
43516
43517 2006-08-29  Jim Meyering  <jim@meyering.net>
43518
43519         * modules/configmake (Makefile.am): Make configmake.h depend on
43520         Makefile.  Otherwise, a stale configmake.h could hang around.
43521
43522 2006-08-29  Eric Blake  <ebb9@byu.net>
43523
43524         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43525         resolution of upstream bug 3044.
43526
43527 2006-08-29  Bruno Haible  <bruno@clisp.org>
43528
43529         * modules/localcharset (Depends-on): Add configmake.
43530         (Makefile.am): Remove setting of LIBDIR through DEFS.
43531
43532 2006-08-29  Bruno Haible  <bruno@clisp.org>
43533
43534         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43535         defined.
43536
43537 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43538
43539         * modules/fcntl: New file.
43540         * modules/chdir-safer (Depends-on): Add fcntl.
43541         * modules/fts: Likewise.
43542         * modules/mkdir-p: Likewise.
43543
43544         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43545         This undoes the most recent change, since we're now addressing the
43546         problem in a different way.
43547
43548         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43549         into output, since the output might be called Makefile.am even
43550         if $makefile_name is something different.
43551         (func_import): Use $makefile_am rather than
43552         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43553         empty.
43554
43555         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43556
43557 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43558
43559         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43560         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43561         recent change to stdint.m4, since we're now addressing the problem in a
43562         different way.
43563
43564 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         * m4/fcntl_h.m4: New file.
43567
43568 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43569
43570         * lib/fcntl_.h: New file.
43571         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43572         the fcntl module.
43573         * lib/dirchownmod.c: Likewise.
43574         * lib/fts.c: Likewise.
43575
43576         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43577         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43578         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43579         just before including <inttypes.h>, to avoid circular inclusion.
43580
43581 2006-08-28  Jim Meyering  <jim@meyering.net>
43582
43583         * doc/visibility.texi: Actually read and correct the grammar of the
43584         sentence affected by yesterday's change.
43585
43586 2006-08-28  Eric Blake  <ebb9@byu.net>
43587
43588         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43589         needs wrapper.
43590
43591 2006-08-28  Eric Blake  <ebb9@byu.net>
43592
43593         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43594
43595 2006-08-28  Eric Blake  <ebb9@byu.net>
43596
43597         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43598
43599 2006-08-28  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/c-strstr: New file, from GNU gettext.
43602         * MODULES.html.sh (String handling): Add c-strstr.
43603
43604 2006-08-28  Bruno Haible  <bruno@clisp.org>
43605
43606         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43607         macros.
43608         Reported by Eric Blake.
43609
43610 2006-08-28  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43613         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43614         * lib/vasprintf.c: Include errno.h, limits.h.
43615         (EOVERFLOW): New fallback definition.
43616         (vasprintf): Test here whether the string length is > INT_MAX.
43617         * lib/vsnprintf.c: Include errno.h, limits.h.
43618         (EOVERFLOW): New fallback definition.
43619         (vsnprintf): Fix bug when generated string was too long for the buffer.
43620         Test here whether the string length is > INT_MAX.
43621
43622 2006-08-28  Bruno Haible  <bruno@clisp.org>
43623
43624         * lib/inttypes_.h (SCNX*): Remove definitions.
43625         Reported by Eric Blake.
43626
43627 2006-08-28  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/c-strstr.h: New file, from GNU gettext.
43630         * lib/c-strstr.c: New file, from GNU gettext.
43631
43632 2006-08-28  Bruno Haible  <bruno@clisp.org>
43633
43634         * gnulib-tool: Reorder some statements.
43635
43636 2006-08-28  Bruno Haible  <bruno@clisp.org>
43637
43638         * gnulib-tool: New option --makefile-name.
43639         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43640         $makefile_name.
43641         (func_import): Write $makefile_name to the cache file, and read it from
43642         there unless explicitly specified. Use $makefile_name as file name
43643         instead of Makefile.am. Adjust the recommendations accordingly.
43644
43645 2006-08-28  Bruno Haible  <bruno@clisp.org>
43646
43647         * gnulib-tool (func_verify_module): Check against misapplying patch.
43648
43649 2006-08-28  Bruno Haible  <bruno@clisp.org>
43650
43651         * gnulib-tool (func_relativize, func_relconcat): New functions.
43652         Give an error if --local-dir is given with --update.
43653         Remove trailing slashes from $local_gnulib_dir.
43654         (func_import): Store the relativized $local_gnulib_dir in
43655         gnulib-cache.m4, and read it from there if not specified explicitly.
43656
43657 2006-08-28  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43660         is the current directory. Respect also $local_gnulib_dir.
43661
43662 2006-08-28  Bruno Haible  <bruno@clisp.org>
43663             Simon Josefsson  <jas@extundo.com>
43664
43665         BeOS portability.
43666         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43667
43668 2006-08-27  Jim Meyering  <jim@meyering.net>
43669
43670         * doc/visibility.texi: Remove duplicate word: "pointer".
43671
43672 2006-08-26  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43675         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43676         (Makefile.am): Create inttypes.h from inttypes_.h.
43677         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43678
43679         * modules/imaxabs: New file.
43680
43681         * modules/imaxdiv: New file.
43682
43683 2006-08-26  Bruno Haible  <bruno@clisp.org>
43684
43685         * m4/inttypes.m4: New file.
43686         * m4/_inttypes_h.m4: Remove file.
43687         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43688         PRI_MACROS_BROKEN.
43689         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43690
43691         * m4/imaxabs.m4: New file.
43692
43693         * m4/imaxdiv.m4: New file.
43694
43695 2006-08-26  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/inttypes_.h: New file.
43698         * lib/inttypes.h: Remove file.
43699         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43700
43701         * lib/imaxabs.c: New file.
43702
43703         * lib/imaxdiv.c: New file.
43704
43705 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43706
43707         New config-h module, so that "make" output needn't be cluttered
43708         by -DHAVE_CONFIG_H.
43709         * MODULES.html.sh (Support for building libraries and executables):
43710         Add config-h.
43711         * modules/config-h: New file.
43712         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43713         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43714         the config-h module is used.
43715
43716         New configmake module, so that "make" output needn't be cluttered
43717         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43718         * MODULES.html.sh (Support for building libraries and executables):
43719         Add configmake.
43720         * modules/configmake: New file.
43721
43722 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * m4/config-h.m4: New file.
43725
43726 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43727
43728         * config/srclist.txt: Add elisp-comp.
43729
43730 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43731
43732         * MODULES.html.sh (Support for building libraries and executables):
43733         Add elisp-comp.
43734         * build-aux/elisp-comp: New file.
43735         * modules/elisp-comp: New file.
43736
43737 2006-08-24  Bruno Haible  <bruno@clisp.org>
43738
43739         * gnulib-tool (func_create_testdir): Use non-default values of
43740         sourcebase and m4base.
43741
43742 2006-08-24  Bruno Haible  <bruno@clisp.org>
43743
43744         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43745         HTML structure.
43746
43747 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43748
43749         * modules/openat (Depends-on): Add lchown.
43750
43751 2006-08-23  Bruno Haible  <bruno@clisp.org>
43752
43753         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43754         of gl_LOCK_EARLY instead of gl_LOCK.
43755
43756 2006-08-23  Bruno Haible  <bruno@clisp.org>
43757
43758         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43759         on OSF/1 to no.
43760         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43761
43762 2006-08-23  Bruno Haible  <bruno@clisp.org>
43763
43764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43765         as unusable.
43766
43767         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43768         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43769         (gl_LOCK): New macro.
43770
43771 2006-08-22  Simon Josefsson  <jas@extundo.com>
43772
43773         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43774         to md5 module.
43775
43776 2006-08-22  Simon Josefsson  <jas@extundo.com>
43777
43778         * MODULES.html.sh: Add "Support for maintaining and release
43779         projects".
43780
43781         * build-aux/gnupload: New file, from coreutils.
43782
43783 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         Avoid the need for AC_LIBSOURCES in m4 macros.
43786         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43787         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43788         * modules/check-version (EXTRA_DIST): Add check-version.h.
43789         * modules/crc (EXTRA_DIST): Add crc.h.
43790         * modules/des (EXTRA_DIST): Add des.h.
43791         * modules/gc (EXTRA_DIST): Add gc.h.
43792         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43793         * modules/getline (EXTRA_DIST): Add getline.h.
43794         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43795         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43796         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43797         * modules/md2 (EXTRA_DIST): Add md2.h.
43798         * modules/md4 (EXTRA_DIST): Add md4.h.
43799         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43800         * modules/read-file (EXTRA_DIST): Add read-file.h.
43801         * modules/readline (EXTRA_DIST): Add readline.h.
43802         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43803         rijndael-api-fst.h.
43804
43805 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43806
43807         * m4/rijndael.m4 (gl_ARCFOUR):
43808         * m4/arctwo.m4 (gl_ARCTWO):
43809         * m4/check-version.m4 (gl_CHECK_VERSION):
43810         * m4/crc.m4 (gl_CRC):
43811         * m4/des.m4 (gl_DES):
43812         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43813         * m4/gc.m4 (gl_GC):
43814         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43815         * m4/getline.m4 (gl_FUNC_GETLINE):
43816         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43817         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43818         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43819         * m4/md2.m4 (gl_MD2):
43820         * m4/md4.m4 (gl_MD4):
43821         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43822         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43823         * m4/readline.m4 (gl_FUNC_READLINE):
43824         * m4/rijndael.m4 (gl_RIJNDAEL):
43825         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43826         to get the necessary .h files and whatnot.
43827
43828 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43829
43830         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43831         gnulib rather than the other way around.
43832         * config/srclistvars.sh (COREUTILS): Remove.
43833
43834 2006-08-22  Jim Meyering  <jim@meyering.net>
43835
43836         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43837
43838         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43839
43840 2006-08-22  Eric Blake  <ebb9@byu.net>
43841
43842         * modules/regexprops-generic: New file.
43843         * MODULES.html.sh (Support for building documentation): List it.
43844
43845 2006-08-22  Eric Blake  <ebb9@byu.net>
43846
43847         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43848         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43850         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43851
43852 2006-08-22  Bruno Haible  <bruno@clisp.org>
43853
43854         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43855         and lib_LTLIBRARIES like the other lib_* variables.
43856
43857 2006-08-22  Bruno Haible  <bruno@clisp.org>
43858
43859         * build-aux/x-to-1.in: New file, from GNU gettext.
43860
43861 2006-08-22  Bruno Haible  <bruno@clisp.org>
43862
43863         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43864         <utmpx.h> exists.
43865
43866 2006-08-22  Bruno Haible  <bruno@clisp.org>
43867
43868         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43869         <utmpx.h> exists.
43870
43871 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43872
43873         BeOS portability.
43874         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43875         exist.
43876         Problem reported by Bruno Haible.
43877
43878 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43879
43880         Avoid the need for AC_LIBSOURCES in m4 macros.
43881         * modules/acl (EXTRA_DIST): Add acl.h.
43882         * modules/argmatch (Files): Add m4/argmatch.m4.
43883         (configure.ac): Add gl_ARGMATCH.
43884         (EXTRA_DIST): Renamed from lib_SOURCES, for
43885         consistency with the other modules.  Remove argmatch.c.
43886         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43887         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43888         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43889         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43890         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43891         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43892         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43893         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43894         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43895         * modules/closeout (EXTRA_DIST): Add closeout.h.
43896         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43897         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43898         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43899         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43900         dirname.h; remove basename.c and stripslash.c.
43901         * modules/exclude (EXTRA_DIST): Add exclude.h.
43902         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43903         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43904         * modules/file-type (EXTRA_DIST): Add file-type.h.
43905         * modules/filemode (EXTRA_DIST): Add filemode.h.
43906         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43907         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43908         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43909         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43910         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43911         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43912         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43913         * modules/getdate (EXTRA_DIST): Add getdate.c.
43914         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43915         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43916         * modules/getpass (EXTRA_DIST): Add getpass.h.
43917         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43918         * modules/group-member (EXTRA_DIST): Add group-member.h.
43919         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43920         * modules/hash (EXTRA_DIST): Add hash.h.
43921         * modules/human (EXTRA_DIST): Add human.h.
43922         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43923         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43924         * modules/lchown (EXTRA_DIST): Add lchown.h.
43925         * modules/long-options (EXTRA_DIST): Add long-options.h.
43926         * modules/lstat (EXTRA_DIST): Add lstat.h.
43927         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43928         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43929         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43930         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43931         * modules/memxor (EXTRA_DIST): Add memxor.h.
43932         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43933         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43934         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43935         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43936         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43937         * modules/physmem (EXTRA_DIST): Add physmem.h.
43938         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43939         * modules/posixver (EXTRA_DIST): Add posixver.h.
43940         * modules/quote (EXTRA_DIST): Add quote.h.
43941         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43942         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43943         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43944         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43945         regex_internal.h regexec.c.
43946         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43947         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43948         * modules/same (EXTRA_DIST): Add same.h.
43949         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43950         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43951         * modules/savedir (EXTRA_DIST): Add savedir.h.
43952         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43953         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43954         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43955         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43956         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43957         * modules/strdup (EXTRA_DIST): Add strdup.h.
43958         * modules/strftime (EXTRA_DIST): Add strftime.h.
43959         * modules/strndup (EXTRA_DIST): Add strndup.h.
43960         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43961         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43962         * modules/time_r (EXTRA_DIST): Add time_r.h.
43963         * modules/timespec (EXTRA_DIST): Add timespec.h.
43964         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43965         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43966         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43967         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43968         * modules/userspec (EXTRA_DIST): Add userspec.h.
43969         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43970         * modules/utimens (EXTRA_DIST): Add utimens.h.
43971         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43972         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43973         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43974         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43975         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43976         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43977         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43978         * modules/yesno (EXTRA_DIST): Add yesno.h.
43979
43980 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43981
43982         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43983
43984         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43985         * m4/dev-ino.m4, same-inode.m4: Remove.
43986
43987         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43988         * m4/acl.m4 (AC_FUNC_ACL):
43989         * m4/backupfile.m4 (gl_BACKUPFILE):
43990         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43991         * m4/canon-host.m4 (gl_CANON_HOST):
43992         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43993         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43994         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43995         * m4/cloexec.m4 (gl_CLOEXEC):
43996         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43997         * m4/closeout.m4 (gl_CLOSEOUT):
43998         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43999         * m4/dirname.m4 (gl_DIRNAME):
44000         * m4/exclude.m4 (gl_EXCLUDE):
44001         * m4/exitfail.m4 (gl_EXITFAIL):
44002         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44003         * m4/file-type.m4 (gl_FILE_TYPE):
44004         * m4/filemode.m4 (gl_FILEMODE):
44005         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44006         * m4/fpending.m4 (gl_FUNC_FPENDING):
44007         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44008         * m4/fts.m4 (gl_FUNC_FTS):
44009         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44010         * m4/getdate.m4 (gl_GETDATE):
44011         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44012         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44013         * m4/getpass.m4 (gl_FUNC_GETPASS):
44014         * m4/gettime.m4 (gl_GETTIME):
44015         * m4/getugroups.m4 (gl_GETUGROUPS):
44016         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44017         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44018         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44019         * m4/hash.m4 (gl_HASH):
44020         * m4/idcache.m4 (gl_IDCACHE):
44021         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44022         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44023         * m4/long-options.m4 (gl_LONG_OPTIONS):
44024         * m4/lstat.m4 (gl_FUNC_LSTAT):
44025         * m4/md5.m4 (gl_MD5):
44026         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44027         * m4/memcoll.m4 (gl_MEMCOLL):
44028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44030         * m4/memxor.m4 (gl_MEMXOR):
44031         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44032         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44033         * m4/modechange.m4 (gl_MODECHANGE):
44034         * m4/mountlist.m4 (gl_MOUNTLIST):
44035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44036         * m4/openat.m4 (gl_FUNC_OPENAT):
44037         * m4/pathmax.m4 (gl_PATHMAX):
44038         * m4/physmem.m4 (gl_PHYSMEM):
44039         * m4/posixtm.m4 (gl_POSIXTM):
44040         * m4/posixver.m4 (gl_POSIXVER):
44041         * m4/quote.m4 (gl_QUOTE):
44042         * m4/quotearg.m4 (gl_QUOTEARG):
44043         * m4/readtokens.m4 (gl_READTOKENS):
44044         * m4/readutmp.m4 (gl_READUTMP):
44045         * m4/regex.m4 (gl_REGEX):
44046         * m4/safe-read.m4 (gl_SAFE_READ):
44047         * m4/safe-write.m4 (gl_SAFE_WRITE):
44048         * m4/same.m4 (gl_SAME):
44049         * m4/save-cwd.m4 (gl_SAVE_CWD):
44050         * m4/savedir.m4 (gl_SAVEDIR):
44051         * m4/settime.m4 (gl_SETTIME):
44052         * m4/sha1.m4 (gl_SHA1):
44053         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44054         * m4/stat-macros.m4 (gl_STAT_MACROS):
44055         * m4/stat-time.m4 (gl_STAT_TIME):
44056         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44057         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44058         * m4/strdup.m4 (gl_FUNC_STRDUP):
44059         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44060         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44061         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44062         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44063         * m4/time_r.m4 (gl_TIME_R):
44064         * m4/timespec.m4 (gl_TIMESPEC):
44065         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44066         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44067         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44068         * m4/userspec.m4 (gl_USERSPEC):
44069         * m4/utimecmp.m4 (gl_UTIMECMP):
44070         * m4/utimens.m4 (gl_UTIMENS):
44071         * m4/xalloc.m4 (gl_XALLOC):
44072         * m4/xgetcwd.m4 (gl_XGETCWD):
44073         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44074         * m4/xreadlink.m4 (gl_XREADLINK):
44075         * m4/xstrtod.m4 (gl_XSTRTOD):
44076         * m4/yesno.m4 (gl_YESNO):
44077         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44078         to get the necessary .h files and whatnot.
44079
44080 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44081             Bruno Haible  <bruno@clisp.org>
44082
44083         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44084         /bin/sh understanding of '!' conditional negation.
44085
44086 2006-08-21  Jim Meyering  <jim@meyering.net>
44087
44088         * modules/openat (Depends-on): Really alphabetize.
44089
44090         * modules/acl (Depends-on): Add error and quote.
44091
44092         * check-module (find_included_lib_files): Add at-func.c to the
44093         ok-to-include-more-than-once white list.
44094
44095         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44096
44097 2006-08-21  Bruno Haible  <bruno@clisp.org>
44098
44099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44100         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44101         Reported by Martin Lambers <marlam@marlam.de>.
44102
44103 2006-08-21  Bruno Haible  <bruno@clisp.org>
44104
44105         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44106         specify an installation location, don't emit a noinst_LIBRARIES or
44107         noinst_LTLIBRARIES assignment.
44108
44109 2006-08-21  Bruno Haible  <bruno@clisp.org>
44110
44111         BeOS portability.
44112         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44113         BeOS has mbrtowc() but no <wctype.h>.
44114
44115 2006-08-21  Bruno Haible  <bruno@clisp.org>
44116
44117         BeOS portability.
44118         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44119         exist.
44120
44121 2006-08-21  Bruno Haible  <bruno@clisp.org>
44122
44123         BeOS portability.
44124         * lib/mbchar.h: Include <wctype.h> only if it exists.
44125
44126 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44127
44128         Remove files that are no longer needed by their respective modules.
44129         * m4/obstack.m4: Remove.
44130         * m4/strerror_r.m4: Remove.
44131         * m4/uint32_t.m4: Remove.
44132         * m4/uintptr_t.m4: Remove.
44133         * m4/ullong_max.m4: Remove.
44134         * m4/xstrtoimax.m4: Remove.
44135         * m4/xstrtoumax.m4: Remove.
44136
44137         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44138         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44139         dependencies now capture this.
44140
44141         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44142         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44143         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44144         * m4/human.m4 (gl_HUMAN): Likewise.
44145         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44146         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44147
44148         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44149
44150         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44151         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44152         stdint.
44153         * m4/human.m4 (gl_HUMAN): Likewise.
44154         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44155         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44156         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44157         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44158         * m4/xstrtol (gl_XSTRTOL): Likewise.
44159
44160         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44161         AC_TYPE_LONG_LONG_INT.
44162         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44163         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44164         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44165         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44166
44167         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44168         on stdbool.
44169
44170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44171         (gl_PREREQ_XSTRTOUL): Remove.
44172
44173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44174
44175         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44176         mode.
44177
44178 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44179
44180         Add and change modules to make it easier for coreutils to use
44181         gnulib-tool.
44182         * modules/backupfile (Files): Remove m4/d-ino.m4.
44183         (Depends-on): Add d-ino.
44184         * modules/cycle-check (Depends-on): Add stdint.
44185         (lib_SOURCES): Add cycle-check.h.
44186         * modules/d-ino: New module.
44187         * modules/d-type: New module.
44188         * modules/error (Files): Remove m4/strerror_r.m4.
44189         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44190         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44191         m4/inttypes_h.m4, m4/uintmax_t.m4.
44192         (Depends-on): Add stdint.
44193         (lib_SOURCES): Add fsusage.h.
44194         * modules/getcwd (Files): Remove d-ino.m4.
44195         (Depends-on): Add d-ino.
44196         * modules/getndelim2 (Depends-on): Add stdint.
44197         * modules/glob (Files): Remove m4/d-type.m4.
44198         (Depends-on): Add d-type.
44199         * modules/host-os: New module.
44200         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44201         m4/inttypes_h.m4, m4/uintmax_t.m4.
44202         * Depends-on: Add stdint.
44203         (lib_SOURCES): Add human.h.
44204         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44205         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44206         m4/uintmax_t.m4, m4/ulonglong.m4.
44207         (Depends-on): Add stdint.
44208         (EXTRA_DIST): Add inttostr.h.
44209         * modules/lchmod: New module.
44210         * modules/link-follow: New module.
44211         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44212         (Depends-on): Add lchmod.
44213         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44214         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44215         (Depends-on): Add stdint.
44216         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44217         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44218         (Depends-on): Add stdint.
44219         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44220         * modules/perl: New module.
44221         * modules/regex (Depends-on): Add stdint.
44222         * modules/rmdir-errno: New module.
44223         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44224         m4/intmax_t.m4.
44225         (Depends-on): Add stdint.
44226         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44227         m4/uintmax_t.m4.
44228         (Depends-on): Add stdint.
44229         * modules/unlink-busy: New module.
44230         * modules/utimecmp (Depends-on): Add stdint.
44231         * modules/uptime: New module.
44232         * modules/winsz-ioctl: New module.
44233         * modules/winsz-termios: New module.
44234         * modules/xnanosleep (Depends-on): Add nanosleep.
44235         * modules/ullong_max: Remove.
44236         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44237         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44238         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44239         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44240         (Depends-on): Add inttypes.
44241         (lib_SOURCES): Add xstrtol.h.
44242         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44243         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44244         * MODULES.html.sh: Move 'assert' into the assert section.
44245         Move 'dummy' into the linking section.
44246         Remove ullong_max.
44247         Add section for compatibility checks for POSIX:2001 functions,
44248         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44249         winsz-ioctl, and winsz-termios into it.
44250         Add lchmod.
44251         Add top-level Misc section and put host-os, perl, and uptime
44252         into it.
44253
44254 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44255
44256         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44257         now assume the stdint module.  Do not include inttypes.h.
44258         * lib/fsusage.h: Likewise.
44259         * lib/getndelim2.c: Likewise.
44260         * lib/human.h: Likewise.
44261         * lib/inttostr.h: Likewise.
44262         * lib/obstack.c: Likewise.
44263         * lib/regex_internal.h: Likewise.
44264         * lib/tempname.c: Likewise.
44265         * lib/utimecmp.c: Likewise.
44266         * lib/xstrtol.h: Likewise.
44267
44268         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44269
44270         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44271         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44272         * lib/xtime.h: Likewise.
44273
44274 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44275
44276         * modules/openat (Files): Add lib/fchmodat.c.
44277         Fixes problem reported by Jay Youngman.
44278
44279 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44280
44281         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44282         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44283
44284 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44285             Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44288         and is a script that invokes bison. Tighten the code. Add comments.
44289
44290 2006-08-18  Jim Meyering  <jim@meyering.net>
44291
44292         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44293         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44294         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44295         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44296
44297 2006-08-18  Bruno Haible  <bruno@clisp.org>
44298
44299         * modules/bison-i18n: New file.
44300         * MODULES.html.sh (Internationalization functions): Add it.
44301
44302 2006-08-18  Bruno Haible  <bruno@clisp.org>
44303
44304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44305         sys/statvfs.h. When getmntinfo was found, check its declaration and
44306         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44307
44308 2006-08-18  Bruno Haible  <bruno@clisp.org>
44309
44310         * m4/bison-i18n.m4: New file, from bison.
44311
44312 2006-08-18  Bruno Haible  <bruno@clisp.org>
44313
44314         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44315         (ME_DUMMY): Treat "kernfs" as a dummy.
44316         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44317
44318 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44319
44320         Update from coreutils.
44321
44322         2006-08-15  Jim Meyering  <jim@meyering.net>
44323
44324         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44325
44326         2006-01-17  Jim Meyering  <jim@meyering.net>
44327
44328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44329
44330         2006-01-11  Jim Meyering  <jim@meyering.net>
44331
44332         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44333         Check for the lchmod function.
44334
44335 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44336
44337         Update from coreutils.
44338
44339         * lib/__fpending.h: Add copyright notice.
44340         * lib/fprintftime.h: Likewise.
44341         * lib/savedir.c: Use (C) in copyright notice.
44342         * lib/savedir.h: Likewise.
44343
44344         2006-08-15  Jim Meyering  <jim@meyering.net>
44345
44346         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44347         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44348         in support of the EXPECTED_ERRNO macro.
44349         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44350         definitions.  Instead, define the appropriate symbols and include
44351         "at-func.c".
44352         * lib/mkdirat.c (mkdirat): Likewise.
44353         * lib/fchmodat.c (fchmodat): Likewise.
44354         (ENOSYS): Remove definition.
44355         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44356         it.  Don't include "unistd--.h" -- it wasn't ever used.
44357
44358         2006-01-17  Jim Meyering  <jim@meyering.net>
44359
44360         Rewrite fts.c not to change the current working directory,
44361         by using openat, fstatat, fdopendir, etc..
44362
44363         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44364         (HAVE_OPENAT_SUPPORT): Define.
44365         [_LIBC] (fchdir): Don't undef or define; no longer used.
44366         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44367         Now, this `function' always succeeds, and consumes its file descriptor
44368         parameter -- so callers must not close such FDs.  Update callers.
44369         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44370         (diropen): Add parameter, SP.  Adjust all callers.
44371         Implement using diropen_fd, rather than open.
44372         (fts_open): Initialize new member, fts_cwd_fd.
44373         Remove fts_rft-setting code.
44374         (fts_close): Close fts_cwd_fd, if necessary.
44375         (__opendir2): Define in terms of opendir or opendirat,
44376         depending on whether the FST_NOCHDIR flag is set.
44377         (fts_build): Since fts_safe_changedir consumes its FD, and since
44378         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44379         and close the dup'd file descriptor upon failure.
44380         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44381         (fts_safe_changedir): Tweak semantics to reflect that this function
44382         now calls cwd_advance_fd and hence consumes its FD argument.
44383         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44384         [struct FTS] (fts_rft): Remove now-unused member.
44385         [struct FTS] (fts_cycle.state): Improve comment.
44386
44387         * lib/openat.c (openat_needs_fchdir): New function.
44388         * lib/openat.h (openat_needs_fchdir): Declare it.
44389
44390 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44391
44392         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44393         Problem and fix reported by Pádraig Brady in
44394         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44395
44396 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44397
44398         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44399
44400 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44401
44402         * lib/memcoll.c (memcoll): Optimize for the common case where the
44403         arguments are bytewise equal.
44404
44405 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44406
44407         * doc/regexprops-generic.texi: Add a copyright notice.
44408
44409 2006-08-15  Bruno Haible  <bruno@clisp.org>
44410
44411         * modules/tmpdir (License): Change to LGPL.
44412
44413 2006-08-15  Bruno Haible  <bruno@clisp.org>
44414
44415         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44416         module.
44417
44418 2006-08-14  Simon Josefsson  <jas@extundo.com>
44419
44420         * config/srclist.txt: Add gnupload.
44421
44422 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44423
44424         Change copyright notice from LGPL 2 to GPL 2, since that's the
44425         standard form used in the gnulib repository.
44426         * tests/test-lock.c: Likewise.
44427         * tests/test-stdint.c: Likewise.
44428         * tests/test-tls.c: Likewise.
44429
44430         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44431         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44432         Add copyright notice.
44433
44434         * check-module: Add copyright notice.  Output a copyright
44435         notice if "--version" is specified.
44436         * modules/COPYING: New file.
44437         * tests/test-getaddrinfo.c: Add copyright notice.
44438         * tests/test-verify.c: Likewise.
44439
44440 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44441
44442         Change copyright notice from LGPL 2 to GPL 2, since that's the
44443         standard form used in the gnulib repository.
44444         * lib/lock.c: LGPL -> GPL.
44445         * lib/lock.h: Likewise.
44446         * lib/strnlen1.c: Likewise.
44447         * lib/strnlen1.h: Likewise.
44448         * lib/tls.c: Likewise.
44449         * lib/tls.h: Likewise.
44450         * lib/tmpdir.c: Likewise.
44451
44452         * lib/TODO: Remove; this belongs only in coreutils.
44453
44454 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         Add copyright notices to long-enough files that lack them, since
44457         otherwise the files aren't clearly free.  Use the same notice that
44458         getdate.texi already uses.
44459         * doc/alloca-opt.texi: Add copyright notice.
44460         * doc/alloca.texi: Likewise.
44461         * doc/ctime.texi: Likewise.
44462         * doc/functions.texi: Likewise.
44463         * doc/gcd.texi: Likewise.
44464         * doc/gnulib-tool.texi: Likewise.
44465         * doc/inet_ntoa.texi: Likewise.
44466         * doc/visibility.texi: Likewise.
44467
44468         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44469         * doc/quote.texi: Add copyright notice.
44470
44471         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44472         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44473         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44474         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44475         is now obsolete, and give a pointer to the Sun list.
44476         Add copyright notice.
44477
44478 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44479
44480         * config/srclistvars.sh: Add copyright notice.
44481
44482 2006-08-14  Eric Blake  <ebb9@byu.net>
44483
44484         Import the following change from libc:
44485
44486         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44487
44488         Upstream bug 2997.
44489         * lib/misc/error.c: Add space between program name and message if file
44490         name is missing.
44491
44492 2006-08-12  Karl Berry  <karl@gnu.org>
44493
44494         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44495         remove, these originate in gnulib now.
44496
44497 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44498
44499         * doc/Makefile (standards.info standards.html standards.dvi):
44500         Also depend on make-stds.texi.
44501
44502 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44505         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44506
44507         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44508         in wchar_t.  Problem reported by Eric Blake.
44509
44510         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44511         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44512         Also, help the compiler to keep LEN in a register.
44513
44514 2006-08-11  Eric Blake  <ebb9@byu.net>
44515
44516         * users.txt: Sort.  Add tar.
44517
44518 2006-08-11  Bruno Haible  <bruno@clisp.org>
44519
44520         * users.txt: New file.
44521
44522 2006-08-11  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44525         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44526
44527 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44528
44529         * modules/snprintf (Depends-on): Remove minmax.
44530         (Maintainer): Add self and Bruno.
44531
44532 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44535         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44536         (EOVERFLOW): Define if the system does not.
44537         Do not include "minmax.h"; it wasn't used.
44538         (snprintf): Don't assume size_t promotes to an unsigned type.
44539         Fix bug when generated string was too long for the buffer: the
44540         buffer's contents are supposed to be the initial prefix of the
44541         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44542         exceeds INT_MAX; do the check ourselves.
44543
44544         Import the following changes from libc:
44545
44546         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44547
44548         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44549         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44550         set wc to the byte which couldn't be converted.
44551         (re_string_reconstruct): Don't clear valid_raw_len before calling
44552         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44553         tip_context using re_string_context_at.
44554
44555         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44556
44557         * lib/posix/regex.h: g++ still cannot handled [restrict].
44558
44559         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44560
44561         * lib/posix/regex.h: Remove special handling for VMS.
44562
44563 2006-08-10  Jim Meyering  <jim@meyering.net>
44564
44565         * modules/same-inode: New module.
44566         * modules/dev-ino: New module.
44567         * modules/cycle-check: Depend on these modules, rather than simply
44568         including their .h files.
44569         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44570         required via m4/cycle-check.m4.
44571         * modules/same: Depend on new same-inode module, rather than
44572         including same-inode.h.
44573         * modules/chdir-safer: New file.
44574
44575         * modules/chown (Depends-on): Add stat-macros.
44576
44577 2006-08-10  Jim Meyering  <jim@meyering.net>
44578
44579         * m4/cycle-check.m4: New file.
44580         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44581         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44582
44583 2006-08-10  Eric Blake  <ebb9@byu.net>
44584
44585         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44586         in from original proposal.
44587
44588 2006-08-10  Eric Blake  <ebb9@byu.net>
44589         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44590
44591         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44592         namespace.
44593
44594 2006-08-10  Bruno Haible  <bruno@clisp.org>
44595
44596         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44597         as well.
44598
44599 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44600
44601         Sync from coreutils.
44602
44603         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44604
44605         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44606         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44607
44608 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44609
44610         * modules/restrict: Remove; no longer needed now that we assume
44611         Autoconf 2.59 or later.
44612         * MODULES.html.sh: Remove 'restrict'.
44613         * modules/argp (Depends-on): Remove 'restrict'.
44614         * modules/base64 (Depends-on): Likewise.
44615         * modules/gc (Depends-on): Likewise.
44616         * modules/getaddrinfo (Depends-on): Likewise.
44617         * modules/glob (Depends-on): Likewise.
44618         * modules/inet_ntop (Depends-on): Likewise.
44619         * modules/inet_pton (Depends-on): Likewise.
44620         * modules/memxor (Depends-on): Likewise.
44621         * modules/regex (Depends-on): Likewise.
44622         * modules/strtok_r (Depends-on): Likewise.
44623         * modules/time_r (Depends-on): Likewise.
44624
44625 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44626
44627         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44628         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44629         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44630         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44631         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44632         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44633         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44634         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44635
44636         Merge from coreutils.
44637         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44638         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44639         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44640         * m4/time_r.m4 (gl_TIME_R): Likewise.
44641
44642 2006-08-09  Karl Berry  <karl@gnu.org>
44643
44644         * config/srclist.txt: no more gettext-tools, per Bruno.
44645
44646 2006-08-08  Eric Blake  <ebb9@byu.net>
44647
44648         * modules/verror: New module.
44649         * MODULES.html.sh: Document it.
44650
44651 2006-08-08  Eric Blake  <ebb9@byu.net>
44652
44653         * lib/verror.h, lib/verror.c: New files.
44654
44655 2006-08-08  Eric Blake  <ebb9@byu.net>
44656
44657         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44658         verror_at_line output complies with GNU Coding Standards even when
44659         file is NULL.
44660
44661 2006-08-07  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44664         versions of AIX.
44665         Reported by Ralf Wildenhues.
44666
44667 2006-08-07  Bruno Haible  <bruno@clisp.org>
44668
44669         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44670         in an AC_DEFUN. Needed so that the autoconf snippets can use
44671         AC_REQUIRE.
44672
44673 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44674
44675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44676         Initialize pkgdata_DATA.
44677         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44678         overriding it.
44679
44680 2006-08-06  Eric Blake  <ebb9@byu.net>
44681
44682         * lib/error.h: Fold in some upstream changes from glibc.
44683         * lib/error.c: Likewise.
44684
44685 2006-08-04  Bruno Haible  <bruno@clisp.org>
44686
44687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44688         Make the mostlyclean-local rule depend on mostlyclean-generic.
44689         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44690
44691 2006-07-31  Bruno Haible  <bruno@clisp.org>
44692
44693         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44694         <stdlib.h>, <string.h>.
44695
44696 2006-07-30  Bruno Haible  <bruno@clisp.org>
44697
44698         * modules/readlink (License): Change to LGPL.
44699
44700 2006-07-30  Bruno Haible  <bruno@clisp.org>
44701
44702         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44703         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44704         set PKGDATADIR to point to it.
44705
44706 2006-07-30  Bruno Haible  <bruno@clisp.org>
44707
44708         * modules/csharpexec (configure.ac): Comment out macro invocation.
44709         * modules/javaexec (configure.ac): Likewise.
44710         * modules/javacomp-script (configure.ac): Likewise.
44711
44712         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44713
44714 2006-07-30  Bruno Haible  <bruno@clisp.org>
44715
44716         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44717         linked-list.
44718
44719 2006-07-30  Bruno Haible  <bruno@clisp.org>
44720
44721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44722
44723 2006-07-30  Bruno Haible  <bruno@clisp.org>
44724
44725         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44726         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44727         get removed.
44728
44729 2006-07-29  Bruno Haible  <bruno@clisp.org>
44730
44731         Make it possible for gnulib-tool to work with locally modified or
44732         augmented gnulib repositories.
44733         * gnulib-tool (func_usage): Document --local-dir option.
44734         (local_gnulib_dir): New variable.
44735         Handle --local-dir option.
44736         (func_lookup_file): New function.
44737         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44738         (func_get_description, func_get_filelist, func_get_description,
44739         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44740         func_get_automake_snippet, func_get_include_directive,
44741         func_get_license, func_get_maintainer): Use func_lookup_file.
44742         (func_import, func_create_testdir): Use func_lookup_file.
44743
44744 2006-07-29  Bruno Haible  <bruno@clisp.org>
44745
44746         * modules/setenv (Depends-on): Add unistd.
44747
44748 2006-07-29  Bruno Haible  <bruno@clisp.org>
44749
44750         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44751
44752 2006-07-29  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44755
44756 2006-07-29  Bruno Haible  <bruno@clisp.org>
44757
44758         * gnulib-tool (import, update): If there is no Makefile.am, look at
44759         aclocal.m4, instead of bailing out.
44760
44761 2006-07-29  Bruno Haible  <bruno@clisp.org>
44762
44763         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44764         Categorize the options by when they are useful.
44765
44766 2006-07-29  Bruno Haible  <bruno@clisp.org>
44767
44768         * gnulib-tool (func_usage): Document option --no-libtool.
44769         Handle option --no-libtool.
44770         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44771         for changed semantics of $libtool variable.
44772         (func_import): Likewise. If libtool is not used, show this through
44773         an option --no-libtool.
44774         (func_create_testdir): Update.
44775
44776 2006-07-29  Bruno Haible  <bruno@clisp.org>
44777
44778         * gnulib-tool (func_import): Extend error message about missing
44779         --doc-base.
44780
44781 2006-07-29  Bruno Haible  <bruno@clisp.org>
44782
44783         * gnulib-tool (func_import): Don't create the $docbase directory if
44784         there is no file to store there.
44785
44786 2006-07-29  Bruno Haible  <bruno@clisp.org>
44787
44788         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44789         relevant, look for configure.ac there, not in the current directory.
44790         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44791
44792 2006-07-29  Bruno Haible  <bruno@clisp.org>
44793
44794         * gnulib-tool (SORT): New variable.
44795         (func_usage): Undocument --assume-autoconf option.
44796         Remove --assume-autoconf option handling.
44797         (autoconf_minversion): Determine from the contents of configure.ac.
44798         (func_import): Remove autoconf_minversion handling.
44799         Suggested by Eric Blake.
44800
44801 2006-07-29  Bruno Haible  <bruno@clisp.org>
44802
44803         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44804
44805 2006-07-29  Bruno Haible  <bruno@clisp.org>
44806
44807         * config/srclist.txt (*setenv.[ch]): Remove rules.
44808
44809 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44810
44811         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44812
44813 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44814
44815         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44816         arpa/inet.h.
44817
44818 2006-07-28  Simon Josefsson  <jas@extundo.com>
44819
44820         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44821         * modules/inet_pton (Depends-on): Likewise.
44822
44823 2006-07-28  Simon Josefsson  <jas@extundo.com>
44824
44825         * m4/netinet_in_h.m4: New file.
44826
44827 2006-07-28  Simon Josefsson  <jas@extundo.com>
44828
44829         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44830         #include's.
44831
44832 2006-07-28  Simon Josefsson  <jas@extundo.com>
44833
44834         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44835         #include's.
44836
44837 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44838
44839         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44840         setgid on directories only if they set these bits.
44841         * lib/modechange.h: Remove obsolete comment about masks.
44842
44843 2006-07-28  Eric Blake  <ebb9@byu.net>
44844
44845         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44846         macro expansion.
44847
44848 2006-07-28  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44851
44852 2006-07-28  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44855
44856 2006-07-28  Bruno Haible  <bruno@clisp.org>
44857
44858         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44859         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44860         Define fallbacks.
44861         Avoids link error on FreeBSD 4.x.
44862         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44863
44864         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44865         encoding.
44866         * lib/mbswidth.c (iswcntrl): Likewise.
44867
44868 2006-07-27  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44871         test.
44872
44873 2006-07-27  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44876         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44877         defined.
44878
44879 2006-07-26  Eric Blake  <ebb9@byu.net>
44880
44881         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44882
44883 2006-07-26  Eric Blake  <ebb9@byu.net>
44884
44885         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44886         like mingw that lack mkstemp.
44887         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44888         avoid compilation warning on mingw.
44889
44890 2006-07-26  Bruno Haible  <bruno@clisp.org>
44891
44892         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44893         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44894         INT_FAST*_MIN, INTPTR_MIN.
44895
44896 2006-07-25  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/version-etc (Depends-on): Add stdarg.
44899
44900 2006-07-25  Bruno Haible  <bruno@clisp.org>
44901
44902         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44903         complex commands.
44904
44905 2006-07-25  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44908         defined in <stdarg.h> or config.h.
44909
44910 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44913         (gl_STDIO_SAFER): Remove.
44914
44915 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44916
44917         * MODULES.html.sh (File stream based Input/Output):
44918         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44919         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44920         * modules/fopen-safer, modules/tmpfile-safer: New files.
44921         * modules/stdio-safer: Remove.
44922
44923 2006-07-24  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/tmpdir: New file.
44926         * MODULES.html.sh (File system functions): Add it.
44927
44928 2006-07-24  Bruno Haible  <bruno@clisp.org>
44929
44930         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44931         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44932
44933 2006-07-24  Bruno Haible  <bruno@clisp.org>
44934
44935         * modules/clean-temp: New file.
44936
44937 2006-07-24  Bruno Haible  <bruno@clisp.org>
44938
44939         * m4/tmpdir.m4: New file, from GNU gettext.
44940
44941 2006-07-24  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/tmpdir.h: New file, from GNU gettext.
44944         * lib/tmpdir.c: New file, from GNU gettext.
44945
44946 2006-07-24  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/clean-temp.h: New file, from GNU gettext.
44949         * lib/clean-temp.c: New file, from GNU gettext.
44950
44951 2006-07-23  Eric Blake  <ebb9@byu.net>
44952
44953         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44954         (Depends-on): Add binary-io.
44955
44956 2006-07-23  Eric Blake  <ebb9@byu.net>
44957
44958         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44959
44960 2006-07-23  Eric Blake  <ebb9@byu.net>
44961
44962         * lib/tmpfile-safer.c: New file.
44963         * lib/stdio-safer.h (fopen_safer): Add prototype.
44964         * lib/stdio--.h (tmpfile): Make safer.
44965
44966 2006-07-23  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44969         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44970         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44971         gl_linked_remove_at): Use it.
44972
44973 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44974         and Simon Josefsson <jas@extundo.com>
44975
44976         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44977
44978         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44979
44980 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         * modules/close-stream: New file.
44983         * modules/closeout (Description): Make it clear that it exits
44984         with a diagnostic on error.
44985         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44986         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44987
44988 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44989
44990         * m4/close-stream.m4: New file.
44991
44992 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44993
44994         * lib/close-stream.c, lib/close-stream.h: New files.
44995
44996 2006-07-22  Bruno Haible  <bruno@clisp.org>
44997
44998         Merge from GNU gettext 0.15.
44999
45000         2006-05-01  Bruno Haible  <bruno@clisp.org>
45001
45002                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45003
45004         2006-07-22  Bruno Haible  <bruno@clisp.org>
45005
45006                 * modules/javaversion: New file.
45007                 * MODULES.html.sh (Java): Add javaversion.
45008
45009         2006-03-12  Bruno Haible  <bruno@clisp.org>
45010
45011                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45012
45013         2005-12-04  Bruno Haible  <bruno@clisp.org>
45014
45015                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45016                 (untested).
45017
45018         2006-06-21  Bruno Haible  <bruno@clisp.org>
45019
45020                 Avoid warnings from recent versions of mcs.
45021                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45022                 -o, -L, -r any more. Use options documented since mcs-1.0
45023                 instead. Similarly for -g.
45024
45025         2005-12-04  Bruno Haible  <bruno@clisp.org>
45026
45027                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45028                 .resources, not .resource.
45029
45030         2005-07-09  Bruno Haible  <bruno@clisp.org>
45031
45032                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45033                 add a .dll suffix.
45034                 Reported by Mark Junker <mjscod@gmx.de>.
45035
45036         2006-07-22  Bruno Haible  <bruno@clisp.org>
45037
45038                 * modules/gettext: Upgrade to gettext-0.15.
45039                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45040                 m4/visibility.m4.
45041                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45042
45043 2006-07-22  Bruno Haible  <bruno@clisp.org>
45044
45045         Merge from GNU gettext 0.15.
45046
45047         2006-03-25  Bruno Haible  <bruno@clisp.org>
45048
45049                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45050
45051         2006-07-21  Bruno Haible  <bruno@clisp.org>
45052
45053                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45054                 "1.1".
45055
45056         2006-05-09  Bruno Haible  <bruno@clisp.org>
45057
45058                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45059                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45060                 for the conftestver execution.
45061
45062         2006-05-01  Bruno Haible  <bruno@clisp.org>
45063
45064                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45065                 optional target-version argument. Verify that the compiler
45066                 groks source of the specified source-version, or add -source
45067                 option as necessary. Verify that the compiler produces
45068                 bytecode in the specified target-version, or add -target and
45069                 -source options as necessary. Make the result of the test
45070                 available as variable CONF_JAVAC. Also log error output in
45071                 config.log.
45072
45073         2006-03-11  Bruno Haible  <bruno@clisp.org>
45074
45075                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45076
45077         2006-05-09  Bruno Haible  <bruno@clisp.org>
45078
45079                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45080                 CLASSPATH_SEPARATOR to a semicolon.
45081
45082         2006-03-12  Bruno Haible  <bruno@clisp.org>
45083
45084                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45085                 available as variable CONF_JAVA, for subsequent autoconf
45086                 tests. Also log error output in config.log.
45087
45088         2006-07-19  Bruno Haible  <bruno@clisp.org>
45089
45090                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45091                 that getline works on glibc2 systems. Needed to avoid trouble
45092                 in relocatable.c.
45093                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45094
45095         2005-12-04  Bruno Haible  <bruno@clisp.org>
45096
45097                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45098                 launcher (untested).
45099
45100         2005-12-04  Bruno Haible  <bruno@clisp.org>
45101
45102                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45103
45104         2006-07-22  Bruno Haible  <bruno@clisp.org>
45105
45106                 * gettext.m4: Update from GNU gettext-0.15.
45107                 * nls.m4: Likewise.
45108                 * po.m4: Likewise.
45109                 * inttypes-pri.m4: Likewise.
45110                 * inttypes-h.m4: Renamed from inttypes.m4.
45111                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45112
45113 2006-07-22  Bruno Haible  <bruno@clisp.org>
45114
45115         Merge from GNU gettext 0.15.
45116
45117         2005-07-05  Bruno Haible  <bruno@clisp.org>
45118
45119                 * printf-args.c (printf_fetchargs): Work around broken
45120                 definition of wint_t on mingw.
45121
45122         2005-02-12  Bruno Haible  <bruno@clisp.org>
45123
45124                 * xallocsa.h: Add extern "C" for C++.
45125
45126         2006-05-17  Bruno Haible  <bruno@clisp.org>
45127
45128                 Cygwin portability.
45129                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45130
45131         2006-04-30  Bruno Haible  <bruno@clisp.org>
45132
45133                 * progreloc.c: Include <mach-o/dyld.h> if available.
45134                 (find_executable): Use _NSGetExecutablePath when possible.
45135
45136         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45137
45138                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45139                 function.
45140
45141         2005-12-29  Bruno Haible  <bruno@clisp.org>
45142
45143                 * progreloc.c (set_program_name_and_installdir): Fix
45144                 compilation error.
45145
45146         2005-12-04  Bruno Haible  <bruno@clisp.org>
45147
45148                 Cygwin portability.
45149                 * progreloc.c: Include <windows.h> also on Cygwin.
45150                 (find_executable): Add support for Cygwin.
45151                 (set_program_name_and_installdir): Handle also platforms with
45152                 nonempty EXEEXT.
45153
45154         2006-07-11  Bruno Haible  <bruno@clisp.org>
45155
45156                 * javacomp.c: Fix a comment.
45157                 Reported by Jim Meyering.
45158
45159         2006-04-30  Bruno Haible  <bruno@clisp.org>
45160
45161                 * javacomp.h (compile_java_class): Add source_version,
45162                 target_version arguments.
45163                 * javacomp.c: Rewritten to choose only a compiler that
45164                 respects the specified source_version and target_version.
45165
45166         2006-06-27  Bruno Haible  <bruno@clisp.org>
45167
45168                 Assume correct S_ISDIR macro.
45169                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45170
45171         2006-07-22  Bruno Haible  <bruno@clisp.org>
45172
45173                 * javaversion.h: New file, from GNU gettext.
45174                 * javaversion.c: New file, from GNU gettext.
45175                 * javaversion.java: New file, from GNU gettext.
45176                 * javaversion.class: New file, from GNU gettext.
45177
45178         2006-05-17  Bruno Haible  <bruno@clisp.org>
45179
45180                 Cygwin portability.
45181                 * javaexec.c (execute_java_class): Test for jview program
45182                 also on Cygwin.
45183
45184         2006-04-09  Bruno Haible  <bruno@clisp.org>
45185
45186                 * fatal-signal.c: Don't include string.h.
45187                 (at_fatal_signal): Use a copying loop instead of memcpy.
45188
45189         2005-12-04  Bruno Haible  <bruno@clisp.org>
45190
45191                 * csharpexec.c: Add support for 'clix' launcher (untested).
45192                 (execute_csharp_using_sscli): New function.
45193                 (execute_csharp_program): Call it.
45194
45195         2006-06-21  Bruno Haible  <bruno@clisp.org>
45196
45197                 Avoid warnings from recent versions of mcs.
45198                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45199                 -o, -L, -r any more. Use options documented since mcs-1.0
45200                 instead. Similarly for -g.
45201
45202         2005-07-09  Bruno Haible  <bruno@clisp.org>
45203
45204                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45205                 add a .dll suffix.
45206                 Reported by Mark Junker <mjscod@gmx.de>.
45207
45208         2006-06-17  Bruno Haible  <bruno@clisp.org>
45209
45210                 * config.charset: Update for NetBSD 3.0.
45211
45212         2006-05-17  Bruno Haible  <bruno@clisp.org>
45213
45214                 Cygwin portability.
45215                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45216
45217         2006-05-16  Bruno Haible  <bruno@clisp.org>
45218
45219                 * localcharset.c [CYGWIN]: Include <windows.h>.
45220                 (get_charset_aliases): For Cygwin, return the same CPxxx
45221                 aliases list as under WIN32.
45222                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45223                 the environment variables. Fall back to GetACP().
45224
45225         2006-04-05  Bruno Haible  <bruno@clisp.org>
45226
45227                 * config.charset: Update Juan Manuel Guerrero's address.
45228
45229         2005-02-12  Bruno Haible  <bruno@clisp.org>
45230
45231                 * allocsa.h: Add extern "C" for C++.
45232
45233         2005-02-10  Bruno Haible  <bruno@clisp.org>
45234
45235                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45236                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45237
45238         2006-07-22  Bruno Haible  <bruno@clisp.org>
45239
45240                 * gettext.h: Update to GNU gettext-0.15.
45241
45242 2006-07-22  Bruno Haible  <bruno@clisp.org>
45243
45244         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45245         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45246         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45247
45248 2006-07-21  Eric Blake  <ebb9@byu.net>
45249
45250         * modules/stdlib-safer: New file.
45251         * MODULES.html.sh (File stream based Input/Output): Add
45252         stdlib-safer.
45253
45254 2006-07-21  Eric Blake  <ebb9@byu.net>
45255
45256         * lib/stdlib-safer.h: New file from coreutils, required by
45257         stdlib--.h.
45258
45259 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45260
45261         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45262
45263 2006-07-20  Bruno Haible  <bruno@clisp.org>
45264
45265         * gnulib-tool: Recognize new option --assume-autoconf.
45266         (autoconf_minversion): New variable.
45267         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45268
45269 2006-07-20  Bruno Haible  <bruno@clisp.org>
45270
45271         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45272
45273 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45274
45275         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45276         Reindent and repaginate.
45277
45278 2006-07-19  Derek Price  <derek@ximbiot.com>
45279
45280         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45281         Correct grammar.
45282
45283 2006-07-17  Bruno Haible  <bruno@clisp.org>
45284
45285         * modules/list: New file.
45286         * modules/array-list: New file.
45287         * modules/carray-list, modules/carray-list-tests: New files.
45288         * modules/linked-list, modules/linked-list-tests: New files.
45289         * modules/avltree-list, modules/avltree-list-tests: New files.
45290         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45291         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45292         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45293         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45294         * modules/oset: New file.
45295         * modules/array-oset: New file.
45296         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45297         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45298         * tests/test-carray_list.c: New file.
45299         * tests/test-linked_list.c: New file.
45300         * tests/test-avltree_list.c: New file.
45301         * tests/test-rbtree_list.c: New file.
45302         * tests/test-linkedhash_list.c: New file.
45303         * tests/test-avltreehash_list.c: New file.
45304         * tests/test-rbtreehash_list.c: New file.
45305         * tests/test-avltree_oset.c: New file.
45306         * tests/test-rbtree_oset.c: New file.
45307         * MODULES.html.sh (Container data structures): New section.
45308
45309 2006-07-17  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/gl_list.m4: New file.
45312
45313 2006-07-17  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/gl_list.h: New file.
45316         * lib/gl_list.c: New file.
45317         * lib/gl_array_list.h: New file.
45318         * lib/gl_array_list.c: New file.
45319         * lib/gl_carray_list.h: New file.
45320         * lib/gl_carray_list.c: New file.
45321         * lib/gl_linked_list.h: New file.
45322         * lib/gl_linked_list.c: New file.
45323         * lib/gl_anylinked_list1.h: New file.
45324         * lib/gl_anylinked_list2.h: New file.
45325         * lib/gl_avltree_list.h: New file.
45326         * lib/gl_avltree_list.c: New file.
45327         * lib/gl_anyavltree_list1.h: New file.
45328         * lib/gl_anyavltree_list2.h: New file.
45329         * lib/gl_rbtree_list.h: New file.
45330         * lib/gl_rbtree_list.c: New file.
45331         * lib/gl_anyrbtree_list1.h: New file.
45332         * lib/gl_anyrbtree_list2.h: New file.
45333         * lib/gl_anytree_list1.h: New file.
45334         * lib/gl_anytree_list2.h: New file.
45335         * lib/gl_linkedhash_list.h: New file.
45336         * lib/gl_linkedhash_list.c: New file.
45337         * lib/gl_anyhash_list1.h: New file.
45338         * lib/gl_anyhash_list2.h: New file.
45339         * lib/gl_avltreehash_list.h: New file.
45340         * lib/gl_avltreehash_list.c: New file.
45341         * lib/gl_rbtreehash_list.h: New file.
45342         * lib/gl_rbtreehash_list.c: New file.
45343         * lib/gl_anytreehash_list1.h: New file.
45344         * lib/gl_anytreehash_list2.h: New file.
45345
45346         * lib/gl_oset.h: New file.
45347         * lib/gl_oset.c: New file.
45348         * lib/gl_array_oset.h: New file.
45349         * lib/gl_array_oset.c: New file.
45350         * lib/gl_avltree_oset.h: New file.
45351         * lib/gl_avltree_oset.c: New file.
45352         * lib/gl_rbtree_oset.h: New file.
45353         * lib/gl_rbtree_oset.c: New file.
45354         * lib/gl_anytree_oset.h: New file.
45355
45356 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45357
45358         * m4/mkancesdirs.m4: New file.
45359         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45360         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45361         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45362         it.
45363
45364 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45365
45366         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45367         * lib/mkancesdirs.h: New files.
45368         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45369         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45370         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45371         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45372         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45373         callers changed.  Revamp internals significantly, by not
45374         attempting to create directories that are temporarily more
45375         permissive than the final results.  Do not attempt to use
45376         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45377         This removes some race conditions, fixes some bugs, and simplifies
45378         things.  Use new dirchownmod function to do owner and mode changes.
45379         * lib/mkdir-p.h: Likewise.
45380         * lib/modechange.c (octal_to_mode): New function.
45381         (struct mode_change): New member mentioned.
45382         (make_node_op_equals): New arg mentioned.  All callers changed.
45383         (mode_compile): Keep track of which mode bits the user has explicitly
45384         mentioned.
45385         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45386         New arg PMODE_BITS, to keep track of which mode bits the user
45387         mentioned; it treats S_ISUID and S_ISGID speciall.
45388         All callers changed.
45389         * lib/modechange.h: Likewise.
45390
45391 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45392
45393         * MODULES.html.sh: Add mkancestors.
45394         * modules/mkancesdirs: New module.
45395         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45396         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45397         The chdir-safer and afs files are now orphans; I'll remove them
45398         unless someone speaks up.
45399         Add lib/dirchownmod.c, lib/dirchownmod.h.
45400         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45401         Add lchown, mkancesdirs.
45402         (Maintainer): Add self.
45403
45404 2006-07-15  Karl Berry  <karl@gnu.org>
45405
45406         * gnulib-tool: help message wording/arrangement.
45407
45408 2006-07-14  Simon Josefsson  <jas@extundo.com>
45409
45410         * doc/gnulib.texi (Libtool and Windows): New section.
45411
45412 2006-07-12  Simon Josefsson  <jas@extundo.com>
45413
45414         * modules/gendocs (License): Fix license, approved by Karl.
45415
45416 2006-07-12  Eric Blake  <ebb9@byu.net>
45417
45418         * MODULES.html.sh: Add gendocs.
45419
45420 2006-07-11  Eric Blake  <ebb9@byu.net>
45421
45422         * modules/fdl: New module, to install doc/fdl.texi.
45423         * MODULES.html.sh: Add new section for documentation modules.
45424         * gnulib-tool: Avoid space-tab.
45425         (--doc-base): New option, to manage files from doc.
45426
45427 2006-07-11  Eric Blake  <ebb9@byu.net>
45428
45429         * m4/absolute-header.m4: Fix comments to match recent change.
45430
45431 2006-07-11  Eric Blake  <ebb9@byu.net>
45432
45433         * gnulib-tool: List --doc-base before --tests-base.
45434
45435 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45436
45437         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45438
45439 2006-07-11  Bruno Haible  <bruno@clisp.org>
45440
45441         * README: Mention where to put documentation.
45442
45443 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45444
45445         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45446
45447 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45448
45449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45450         to stdint.m4.
45451
45452 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45453
45454         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45455         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45456         "no/such/file/stdint.h" when there is no such file, so that
45457         the resulting C code can be parsed by dodgy compilers.
45458         Problems reported by Bob Proulx.
45459
45460 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45461
45462         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45463         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45464         macros into the GNU _D_EXACT_NAMLEN.
45465         * lib/savedir.c:  Likewise.
45466         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45467
45468 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45469         and Paul Eggert  <eggert@cs.ucla.edu>
45470
45471         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45472         * m4/savedir.m4:
45473         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45474         macros into the GNU _D_EXACT_NAMLEN.
45475
45476 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45479         around the absolute name, to work around a problem with the HP-UX
45480         11.23 native C compiler, reported by Bob Proulx.
45481
45482 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45483
45484         * doc/maintain.texi, make-stds.texi: Sync from
45485         <http://savannah.gnu.org/projects/gnustandards>.
45486
45487 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45490
45491 2006-07-09  Jim Meyering  <jim@meyering.net>
45492
45493         * m4/glob.m4: Remove a doubled word in a comment.
45494
45495 2006-07-09  Jim Meyering  <jim@meyering.net>
45496
45497         * lib/argp-pv.c: Remove a doubled word in a comment.
45498         * lib/check-version.c (check_version): Likewise.
45499         * lib/javacomp.c (compile_java_class): Likewise.
45500
45501 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45504         for the benefit of people using Autoconf 2.60.  If you want to
45505         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45506         (or m4/onceonly.m4, if pre-2.57) manually.
45507
45508 2006-07-08  Jim Meyering  <jim@meyering.net>
45509
45510         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45511         comment.
45512         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45513         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45514         comment.
45515
45516 2006-07-08  Jim Meyering  <jim@meyering.net>
45517
45518         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45519
45520 2006-07-07  Simon Josefsson  <jas@extundo.com>
45521
45522         * tests/test-crc.c: Change expected crc value, the test vector
45523         were probably computed using the old broken crc.c?
45524
45525 2006-07-06  Simon Josefsson  <jas@extundo.com>
45526
45527         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45528         now the canonical place for the M4 file).
45529
45530         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45531         from the sys_socket dependency now.
45532
45533         * modules/inet_pton (Files): Ditto.
45534
45535         * modules/inet_ntop (Files): Ditto.
45536
45537 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45538
45539         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45540         not gl_PREREQ_GETUSERSHELL.
45541
45542 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45543
45544         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45545         with only one argument, for Autoconf 2.60.
45546         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45547         expand to nothing, so add a shell command to avoid syntax error.
45548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45549
45550 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45551
45552         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45553
45554 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45555
45556         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45557         no longer needed.  Check for isblank decl.
45558         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45559         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45560         of existence.
45561
45562 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45563
45564         * lib/getloadavg.c: Use __VMS, not VMS.
45565         * lib/getopt.c: Likewise.
45566         * lib/getpagesize.h: Likewise.
45567         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45568         and probably does not work.
45569
45570 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45571
45572         * lib/.cppi-disable: Add wcwidth.
45573         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45574         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45575         (ISGRAPH): Remove.  All uses changed to isgraph.
45576         (FOLD) [!defined _LIBC]: Remove special case.
45577         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45578         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45579         HAVE_ISBLANK.
45580         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45581         case.
45582
45583 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45584
45585         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45586         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45587         brackets.  Other minor changes to suppress some compiler
45588         warnings.
45589
45590 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45591         and Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45594         of invoking obsolescent AC_HEADER_DIRENT macro.
45595         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45596         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45597         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45599         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45600         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45601         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45602         * m4/readdir.m4: Remove; no longer needed.
45603
45604 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45605         and Paul Eggert  <eggert@cs.ucla.edu>
45606
45607         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45608         Don't worry about this obsolete case any more.
45609         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45610         directories.
45611         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45612         worry about this obsolete case any more.
45613         * lib/fts.c: Likewise.
45614         * lib/getcwd.c: Likewise.
45615         * lib/glob.h: Likewise.
45616         * lib/savedir.c: Likewise.
45617
45618 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45619
45620         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45621         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45622         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45623         needed.
45624         All uses removed.
45625         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45626         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45627         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45628         needed.
45629         * m4/getdate.m4 (gl_GETDATE): Likewise.
45630         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45631         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45632         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45633         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45634         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45635         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45636         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45637         needed.
45638
45639 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45640
45641         * lib/memcasecmp.c: Include <limits.h>.
45642         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45643         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45644         Don't assume isdigit succeeds only on '0' through '9'.
45645
45646 2006-07-05  Eric Blake  <ebb9@byu.net>
45647
45648         * modules/getaddrinfo (Depends-on): Add snprintf.
45649
45650 2006-07-05  Eric Blake  <ebb9@byu.net>
45651
45652         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45653         to avoid 'header present but could not be compiled' on cygwin.
45654
45655 2006-07-05  Eric Blake  <ebb9@byu.net>
45656
45657         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45658         missing from netdb.h.
45659         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45660
45661 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45662
45663         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45664         no longer needed.
45665         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45666         * m4/getdate.m4 (gl_GETDATE): Likewise.
45667         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45668         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45669         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45670         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45672
45673 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45674
45675         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45676         All uses of is_space replaced by isspace.
45677         * lib/exit.h: Don't talk about STDC_HEADERS.
45678         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45679         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45680         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45681         replaced by isprint etc.
45682         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45683         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45684         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45685         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45686         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45687         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45688
45689 2006-07-05  Bruno Haible  <bruno@clisp.org>
45690
45691         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45692         the function exists, before testing against AIX.
45693         Reported by Martin Lambers <marlam@marlam.de>.
45694
45695 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45696
45697         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45698         From Mark D. Baushke.
45699
45700 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45703         to the absolute name, not just one, to bypass Sun C 5.8's
45704         "warning: #include of /usr/include/... may be non-portable".
45705
45706 2006-07-04  Eric Blake  <ebb9@byu.net>
45707
45708         * modules/dirname-tests: New test module.
45709         * tests/test-dirname.c: New file, replacing dirname.c
45710         TEST_DIRNAME section that was recently deleted.
45711
45712 2006-07-04  Bruno Haible  <bruno@clisp.org>
45713
45714         Assume ANSI C header files and <ctype.h> functions.
45715         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45716         (mbsnwidth): Use isprint, iscntrl instead.
45717
45718 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45719
45720         Merge from coreutils.
45721         * MODULES.html.sh: Add xstrtold.
45722         * modules/xstrtold: New file.
45723         * modules/cycle-check (Files): Add lib/same-inode.h.
45724         * modules/dirname (Files): Add m4/double-slash-root.m4.
45725         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45726         * modules/mkdir-p (Files): Add lib/same-inode.h.
45727         * modules/same (Files): Add lib/same-inode.h.
45728
45729 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45730
45731         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45732         This is to keep the terminology clean; POSIX talks about
45733         "absolute pathnames", not "full pathnames", but the GNU
45734         Coding Standards say to use "path" for something else;
45735         so use "absolute" to keep both sides happy.
45736         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45737         Set gl_absolute_header, not gl_full_header_path.
45738         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45739         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45740         All uses changed.
45741
45742         Merge from coreutils.
45743
45744         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45745
45746         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45747         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45748         want to require the building of c-strtod.o.
45749         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45750         needs -lm directly.
45751         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45752
45753         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45756         --as-needed option if available.  Problem reported by Albert Chin in
45757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45758         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45759         cc merely issues a bunch of annoying warnings for --as-needed
45760         (this problem was reported by Bob Proulx).  Also, try linking with
45761         -lm to detect a bug in binutils 2.16 (this problem was reported
45762         by Ralf Wildenhues).
45763
45764         2006-06-18  Jim Meyering  <jim@meyering.net>
45765
45766         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45767         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45768         macro.
45769         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45770         also check for glibc-2.4's abort-inducing bug.
45771
45772         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45773         Low-probability clean-up should be to use rmdir to get rid of
45774         the just-created directory, not unlink.
45775
45776         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45777         configure fail, and request a bug report to inform us about it.
45778         Add a comment that, barring reports to the contrary, in 2007 we'll
45779         assume ftruncate is universally available.
45780
45781         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45782
45783         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45784
45785         2006-03-12  Jim Meyering  <jim@meyering.net>
45786
45787         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45788         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45789         * m4/same.m4 (gl_SAME): Likewise.
45790         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45791
45792         2006-03-11  Eric Blake  <ebb9@byu.net>
45793
45794         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45795         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45796         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45797         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45798
45799 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45802         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45803         reported by Mark D. Baushke, one in
45804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45805
45806         Merge from coreutils.
45807
45808         * lib/.cppi-disable: Add stdint_.h.
45809         * lib/.cvsignore: Add stdint.h.
45810
45811         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45812
45813         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45814         both double and long double versions.
45815         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45816         * lib/xstrtold.c: New file.
45817         * lib/xstrtod.h (xstrtold): New decl.
45818
45819         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45820
45821         * lib/filemode.c (setst): Remove.
45822         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45823         (arguably) clearer, and the generated code is a bit smaller on my
45824         Debian GNU/Linux stable x86 host.
45825
45826         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45827
45828         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45829         Assume that filemode.h includes sys/types.h and sys/stat.h.
45830         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45831         (ftypelet): Reorder to put common cases first, for efficiency.
45832         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45833         to do 'M'.
45834         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45835         of 10, for compatibility with FreeBSD.  All callers changed.
45836         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45837         types that can't be deduced solely from st_mode.  First arg is now a
45838         const pointer.
45839         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45840         (strmode): Renamed from mode_string.
45841         (filemodestring): New decl.
45842         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45843         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45844         needed.
45845         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45846
45847         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45848
45849         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45850         fsusage.h now does that.  Include fsusage.h first, to test interface.
45851         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45852         at most one method (the old code could have generated decls that
45853         didn't conform to C89, not that this was ever exercised).
45854         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45855
45856         2006-03-19  Jim Meyering  <jim@meyering.net>
45857
45858         Work even in a chroot where d_ino values for entries in "/"
45859         don't match the stat.st_ino values for the same names.
45860         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45861         number, iterate through all entries again, using lstat instead.
45862         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45863         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45864
45865         * lib/getcwd.c (__getcwd): Clarify a comment.
45866         Use memcpy in place of a call to strcpy.
45867
45868         2006-03-12  Jim Meyering  <jim@meyering.net>
45869
45870         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45871         matches that of the current directory (which we're about to chdir ".."
45872         out of), then save the dev-ino of the parent, instead.
45873
45874         * lib/same-inode.h (SAME_INODE): New file/macro.
45875         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45876         Include "same-inode.h", instead.
45877         * lib/same.c: Likewise.
45878         * lib/cycle-check.h: Include "same-inode.h".
45879         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45880         * lib/cycle-check.c (SAME_INODE): Remove definition.
45881         * lib/root-dev-ino.h: Include "same-inode.h".
45882
45883         2006-03-11  Eric Blake  <ebb9@byu.net>
45884
45885         * lib/same.c (same_name): s/base_name/last_component/
45886         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45887         * lib/filenamecat.c (file_name_concat): Likewise.
45888
45889         2006-03-11  Eric Blake  <ebb9@byu.net>,
45890                     Paul Eggert  <eggert@cs.ucla.edu>
45891
45892         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45893         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45894         drive prefix.
45895         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45896         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45897         (last_component): New method.
45898         * lib/dirname.c (dir_len): Determine when drive letters need a
45899         subsequent slash.  Preserve // when it is special.
45900         (dir_name): Don't append dot when drive letter is absolute.
45901         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45902         * lib/basename.c (base_name): New semantics - malloc the result.
45903         Preserve // when it is special.  Preserve relative files that look
45904         like drive letters.
45905         (base_len): Preserve // when it is special.
45906         (last_component): New method, similar to old base_name semantics.
45907         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45908         base_name.  Strip redundant slashes from ///.
45909
45910 2006-07-03  Jim Meyering  <jim@meyering.net>
45911
45912         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45913         macro is used before the first cycle_check call.
45914
45915 2006-07-03  Eric Blake  <ebb9@byu.net>
45916
45917         * modules/dirname (Depends-on): Add xstrndup.
45918
45919 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45920
45921         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45922         test cases, so that config.log is a bit easier to follow.
45923
45924 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45927         both are 64 bits, since this seems to be the tradition, and this
45928         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45929         we ever run into a host that prefers long long to long in this
45930         case, we'll need another configure-time test.  Problem reported by
45931         Jim Meyering.
45932
45933 2006-07-02  Eric Blake  <ebb9@byu.net>
45934
45935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45936
45937 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45938
45939         * modules/inttypes (Depends-on): No longer depends on stdint.
45940         * modules/stdint (Description): Say more about assumptions.
45941         Say that the fast types might differ.  Say macros are used.
45942         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45943         (Makefile.am): Revise list of substituted symbols to match
45944         new stdint.m4.
45945         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45946         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45947         * tests/test-stdint.c (verify_same_types)
45948         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45949         the code conforms to C99/C89.
45950         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45951         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45952
45953 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45954
45955         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45956         but fix a bug, by requiring at least 64 bits.
45957         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45958         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45959         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45960         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45961
45962         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45963         changes.  Make 2.59 a prerequisite.  Check and substitute for
45964         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45965         inttypes.h.  Do not use special include files; just use the
45966         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45967         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45968         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45969         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45970         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45971         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45972         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45973         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45974         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45975         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45976         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45977         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45978         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45979         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45980         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45981         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45982         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45983         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45984         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45985         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45986         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45987         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45988         not check for things that C99 does not require, e.g., int8_t.  If
45989         a test isn't needed unless <stdint.h> isn't working, and is
45990         unlikely to be needed for any other reason, then don't do it
45991         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45992         size_t, since we assume C89 freestanding at least.  Do not check
45993         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45994         the right thing even if the types are not defined.  Instead use:
45995         (gl_STDINT_TYPE_PROPERTIES): New macro.
45996         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45997         testing whether <sys/types.h> clashes, as Autoconf does this for
45998         us now.  All uses removed.
45999         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46000         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46001         (gl_CHECK_TYPE_SAME):
46002         Remove; no longer needed.
46003         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46004         exists, since we'll return 0 anyway in that case.
46005         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46006
46007 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46010         possible collision with system files.
46011         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46012         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46013         WCHAR_MIN and WCHAR_MAX in this case.
46014         (<stddef.h>): Do not include; no longer needed.
46015         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46016         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46017         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46018         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46019         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46020         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46021         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46022         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46023         !defined(__c99))]: Include in this case too, since it's harmless
46024         now.
46025         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46026         dangerous to do so.
46027         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46028         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46029         (_STDINT_MIN, _STDINT_MAX): New macros.
46030         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46031         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46032         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46033         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46034         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46035         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46036         macros, not typedefs; this simplifies things quite a bit.
46037         Use long int for all types narrower than int64_t.
46038         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46039         Define in terms of long long int or int64_t or long int,
46040         not int64_t or int32_t.  This saves some compile-time testing.
46041         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46042         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46043         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46044         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46045         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46046         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46047         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46048         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46049         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46050         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46051         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46052         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46053         undef any previous version and define our own version, for
46054         simplicity and consistency with the new macros for types.
46055         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46056         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46057         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46058         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46059         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46060         @WINT_T_SUFFIX@ to keep things simple here.
46061         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46062         Simplify by assuming typical 8/16/32/64 host, since we're
46063         already doing that elsewhere anyway.
46064         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46065         and assume long long int is 64 bits if available.  This
46066         speeds up 'configure'.
46067
46068 2006-07-01  Eric Blake  <ebb9@byu.net>
46069
46070         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46071         Reported by Andreas Buening.
46072
46073 2006-07-01  Eric Blake  <ebb9@byu.net>
46074
46075         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46076
46077 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46078
46079         * lib/getaddrinfo.c: fixed typo
46080
46081 2006-06-29  Jim Meyering  <jim@meyering.net>
46082
46083         * modules/strftime (Maintainer): Add my name, since with the
46084         FPRINTFTIME changes strftime.c has forked from glibc.
46085
46086 2006-06-29  Eric Blake  <ebb9@byu.net>
46087
46088         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46089
46090 2006-06-29  Eric Blake  <ebb9@byu.net>
46091
46092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46093
46094 2006-06-29  Eric Blake  <ebb9@byu.net>
46095
46096         * lib/stat_.h: New file.
46097
46098 2006-06-29  Eric Blake  <ebb9@byu.net>
46099
46100         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46101         unused static function.
46102
46103 2006-06-29  Eric Blake  <ebb9@byu.net>
46104
46105         * doc/functions.texi (Function Portability): Document missing lstat
46106         on mingw.
46107
46108 2006-06-29  Eric Blake  <ebb9@byu.net>
46109
46110         * MODULES.html.sh: Add sys_stat.
46111         * modules/sys_stat: New module.
46112         * modules/mkstemp (Depends-on): Add sys_stat.
46113
46114 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46115
46116         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46117
46118 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46119
46120         * m4/c-bs-a.m4: Removed.
46121
46122 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46123
46124         * lib/strftime.c: Assume strftime() exists.
46125
46126 2006-06-29  Derek Price  <derek@ximbiot.com>
46127
46128         * modules/c-bs-a: Removed - \a is C89.
46129         * MODULES.html.sh: Remove c-bs-a.
46130
46131 2006-06-29  Bruno Haible  <bruno@clisp.org>
46132
46133         * modules/wcwidth (License): Change to LGPL.
46134
46135 2006-06-28  Simon Josefsson  <jas@extundo.com>
46136
46137         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46138         on _WIN32.
46139
46140         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46141         getnameinfo.
46142
46143 2006-06-28  Simon Josefsson  <jas@extundo.com>
46144
46145         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46146
46147 2006-06-28  Simon Josefsson  <jas@extundo.com>
46148
46149         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46150         functions there.  It will succeed on Windows XP, but on Windows
46151         2000 and (presumably) earlier, it will fail, and use the internal
46152         re-implementation.
46153         (use_win32_p): New function.
46154         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46155         Support AI_NUMERICSERV to disable getservbyname.
46156         (getnameinfo): New function, only supports
46157         NI_NUMERICHOST|NI_NUMERICSERV for now.
46158
46159         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46160         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46161         getnameinfo.
46162
46163 2006-06-28  Eric Blake  <ebb9@byu.net>
46164
46165         * modules/wcwidth: New file.
46166         * modules/mbchar (Depends-on): Add wcwidth.
46167         * modules/mbswidth (Depends-on): Add wcwidth.
46168         * MODULES.html.sh: Add wcwidth.
46169
46170 2006-06-28  Eric Blake  <ebb9@byu.net>
46171
46172         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46174
46175 2006-06-28  Eric Blake  <ebb9@byu.net>
46176
46177         * lib/xvasprintf.h: Fix comments.
46178
46179 2006-06-28  Eric Blake  <ebb9@byu.net>
46180
46181         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46182         * lib/mbswidth.c (wcwidth): Move from here...
46183         * lib/wcwidth.h: ...to this new file.
46184
46185 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46186
46187         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46188
46189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46190         it's obsolete.
46191         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46192
46193 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46194
46195         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46196         Autoconf 2.60 says this stuff was obsolete.
46197
46198 2006-06-28  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46201
46202 2006-06-28  Bruno Haible  <bruno@clisp.org>
46203
46204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46205         gt_TYPE_WCHAR_T.
46206
46207 2006-06-28  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46210         declaration for wcwidth.
46211         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46212
46213 2006-06-28  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46216         (mkdir): Define using _mkdir.
46217
46218 2006-06-28  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/getaddrinfo.h: Fix POSIX URL.
46221         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46222         _WIN32.
46223         (use_win32_p): Make static.
46224         (getaddrinfo): Reject service name if it is empty or does not consist
46225         solely of decimal digits, or if its value is > 65535.
46226         (getnameinfo): Remove useless casts.
46227
46228 2006-06-27  Simon Josefsson  <jas@extundo.com>
46229
46230         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46231         Eggert and Martin Lambers.
46232
46233 2006-06-27  Simon Josefsson  <jas@extundo.com>
46234
46235         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46236         Eggert and Martin Lambers.
46237
46238 2006-06-27  Bruno Haible  <bruno@clisp.org>
46239
46240         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46241         result to 0, not to empty.
46242         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46243
46244 2006-06-27  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46247
46248 2006-06-26  Simon Josefsson  <jas@extundo.com>
46249
46250         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46251         present.
46252
46253 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46254
46255         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46256         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46258
46259 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46260
46261         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46262
46263 2006-06-26  Bruno Haible  <bruno@clisp.org>
46264
46265         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46266
46267 2006-06-26  Bruno Haible  <bruno@clisp.org>
46268
46269         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46270
46271 2006-06-26  Bruno Haible  <bruno@clisp.org>
46272
46273         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46274         SGI C compiler in pre-C99 mode.
46275         Suggested by Mark D. Baushke and Larry Jones.
46276
46277 2006-06-26  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46280         WCHAR_MAX.
46281         Reported by Mark D. Baushke and Larry Jones.
46282
46283 2006-06-26  Bruno Haible  <bruno@clisp.org>
46284
46285         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46286         in pre-C99 mode.
46287         Suggested by Mark D. Baushke and Larry Jones.
46288
46289 2006-06-23  Simon Josefsson  <jas@extundo.com>
46290             Bruno Haible  <bruno@clisp.org>
46291
46292         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46293         Emit mostlyclean-local rule.
46294         (func_emit_tests_Makefile_am): Likewise.
46295         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46296
46297 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46298
46299         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46300
46301 2006-06-23  Bruno Haible  <bruno@clisp.org>
46302
46303         * tests/test-stdint.c: Update to match ISO C 99 Technical
46304         Corrigendum 1.
46305
46306 2006-06-23  Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46309
46310 2006-06-23  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/stdint_.h: Treat IRIX like OpenBSD.
46313
46314 2006-06-23  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46317         ISO C 99 Technical Corrigendum 1.
46318
46319 2006-06-22  Simon Josefsson  <jas@extundo.com>
46320
46321         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46322         MinGW.
46323
46324 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46325
46326         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46327         needed.  Some compiler complained about some of them.  Problem reported
46328         by Larry Jones in
46329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46330
46331 2006-06-21  Simon Josefsson  <jas@extundo.com>
46332
46333         * tests/test-getaddrinfo.c: New file.
46334
46335         * modules/getaddrinfo-tests: New file.
46336
46337         * MODULES.html.sh: Add inet_pton.
46338
46339         * modules/inet_pton: New file.
46340
46341 2006-06-21  Simon Josefsson  <jas@extundo.com>
46342
46343         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46344         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46345         of using the (limited) gnulib implementation on Windows XP.
46346
46347         * m4/inet_pton.m4: New file.
46348
46349 2006-06-21  Simon Josefsson  <jas@extundo.com>
46350
46351         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46352         variable.
46353
46354         * lib/socket_.h: Don't define WINVER.
46355
46356         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46357         slightly modified to work in gnulib.
46358
46359 2006-06-21  Simon Josefsson  <jas@extundo.com>
46360
46361         * doc/gnulib.texi (Windows sockets): Add.
46362
46363 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         * lib/read-file.c (fread_file): Start with buffer allocation of
46366         0 bytes rather than 1 byte; this simplifies the code.
46367         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46368         code to free buffer and save/restore errno.
46369         (internal_read_file): Remove unused local.
46370
46371 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46372
46373         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46374         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46375         Problem reported by Denis Excoffier in
46376         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46377
46378 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46379
46380         * modules/sys_socket, modules/socklen: Include sys/types since
46381         FreeBSD 4.x's sys/socket.h needs it.
46382
46383 2006-06-19  Simon Josefsson  <jas@extundo.com>
46384
46385         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46386
46387 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46390
46391 2006-06-19  Bruno Haible  <bruno@clisp.org>
46392
46393         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46394         and FULL_PATH_INTTYPES_H in angle brackets.
46395         Reported by Mark D. Baushke <mdb@gnu.org>.
46396
46397 2006-06-17  Eric Blake  <ebb9@byu.net>
46398
46399         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46400         errno.
46401
46402 2006-06-17  Bruno Haible  <bruno@clisp.org>
46403
46404         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46405         <sys/inttypes.h>.
46406
46407 2006-06-17  Bruno Haible  <bruno@clisp.org>
46408
46409         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46410         whether errno is declared. Assume <errno.h> declares errno.
46411
46412 2006-06-17  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46415
46416 2006-06-17  Bruno Haible  <bruno@clisp.org>
46417
46418         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46419         problem on Solaris 2.5.1.
46420
46421 2006-06-16  Eric Blake  <ebb9@byu.net>
46422
46423         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46424         * lib/unicodeio.c [!defined errno]: Likewise.
46425         * lib/strtol.c [!defined errno]: Likewise.
46426         * lib/strtod.c [!defined errno]: Likewise.
46427
46428 2006-06-15  Eric Blake  <ebb9@byu.net>
46429
46430         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46431
46432 2006-06-15  Eric Blake  <ebb9@byu.net>
46433
46434         * config/srclist.txt (ssize_t.m4): Lose sync.
46435
46436 2006-06-15  Bruno Haible  <bruno@clisp.org>
46437
46438         * modules/stdint (Files): Include m4/full-header-path.m4,
46439         m4/size_max.m4, m4/wchar_t.m4.
46440         (Makefile.am): Many more substitutions.
46441         * modules/stdint-tests: New file.
46442         * tests/test-stdint.c: New file.
46443
46444 2006-06-15  Bruno Haible  <bruno@clisp.org>
46445
46446         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46447         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46448         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46449         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46450         gl_CHECK_TYPE_SAME): New macros.
46451
46452 2006-06-15  Bruno Haible  <bruno@clisp.org>
46453
46454         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46455
46456 2006-06-15  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/stdint_.h: Rewritten to be fully auto-configured.
46459         Fixes bug on HP-UX/IA64.
46460
46461 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         * lib/getdate.y (__attribute__): Don't define if already defined.
46464         Problem reported by Larry Jones.
46465         * lib/utimens.c (__attribute__): Likewise.
46466
46467 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46470         reported by Andreas Schwab.
46471
46472 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46473             Bruno Haible  <bruno@clisp.org>
46474
46475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46476         check for the declaration of strnlen and a run test that exposes the
46477         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46478         rpl_strndup.
46479
46480 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46481             Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46484
46485 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46486
46487         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46488         compile test, for Tru64 4.0D.
46489
46490 2006-05-28  Karl Berry  <karl@gnu.org>
46491
46492         * config/srclist.txt (printf-args.c): lose sync.
46493
46494 2006-05-26  Martin Lambers  <marlam@marlam.de>
46495
46496         * lib/getpass.c: Updates the test for the native W32 API, and adds
46497         missing includes, thus fixing compilation warnings.
46498
46499 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46500
46501         * lib/exclude.c (exclude_fnmatch): New function.
46502         (excluded_file_name): Call exclude_fnmatch.
46503         * lib/exclude.h (excluded_file_name): New prototype
46504
46505 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46506
46507         * lib/tempname.c (small_open, large_open): New macros.
46508         (__open, __open64) [!_LIBC]: Remove.
46509         (__gen_tempname): Use small_open and large_open instead of __open
46510         and __open64.  This fixes a portability bug on HP-UX 11.11i
46511         reported by Simon Wing-Tang in
46512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46513
46514 2006-05-24  Bruno Haible  <bruno@clisp.org>
46515
46516         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46517         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46518         Reported by Thorsten Maerz <torte@netztorte.de> via
46519         Aaron Stone <aaron@serendipity.cx>.
46520
46521 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46522
46523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46524         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46525         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46526         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46527         not really conditional on the cache.
46528         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46529
46530 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46533         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46534         (my_usleep): Don't mishandle maximum value.
46535
46536 2006-05-19  Jim Meyering  <jim@meyering.net>
46537
46538         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46539
46540 2006-05-17  Bruno Haible  <bruno@clisp.org>
46541
46542         Cygwin portability.
46543         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46544
46545 2006-05-17  Bruno Haible  <bruno@clisp.org>
46546
46547         * lib/stdint_.h: Fix recognition of Cygwin.
46548
46549 2006-05-15  Bruno Haible  <bruno@clisp.org>
46550
46551         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46552         on libtool patch by Ralf Wildenhues.
46553
46554 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46555
46556         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46557         test for C99 conformance; (bool) 0.5 is an integer constant
46558         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46559         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46560
46561 2006-05-11  Simon Josefsson  <jas@extundo.com>
46562
46563         * m4/xvasprintf.m4: Fix obvious typo.
46564
46565 2006-05-11  Jim Meyering  <jim@meyering.net>
46566
46567         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46568         James Lemley.
46569
46570 2006-05-10  Simon Josefsson  <jas@extundo.com>
46571
46572         * lib/md4.c: Typo fix, update copyright years.
46573         (K1, K2): Don't use L because it turn computations into 64-bit on
46574         64-bit platforms.
46575
46576 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46577
46578         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46579         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46580         unwanted sign propagation, e.g., on hosts with 64-bit int.
46581         There still are some problems with reeelly weird theoretical hosts
46582         (e.g., 33-bit int) but it's not worth worrying about now.
46583         * lib/sha1.c (rol): Likewise.
46584         (K1, K2, K3, K4): Remove unnecessary L suffix.
46585
46586 2006-05-10  Bruno Haible  <bruno@clisp.org>
46587
46588         * lib/des.c: Cast to avoid warnings.
46589
46590 2006-05-09  Bruno Haible  <bruno@clisp.org>
46591
46592         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46593         (Depends-on): Depend also on xsize, stdarg.
46594         (configure.ac): Add gl_XVASPRINTF.
46595
46596 2006-05-09  Bruno Haible  <bruno@clisp.org>
46597
46598         * m4/xvasprintf.m4: New file.
46599
46600 2006-05-09  Bruno Haible  <bruno@clisp.org>
46601
46602         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46603         (EOVERFLOW): Define fallback value.
46604         (xstrcat): New function.
46605         (xvasprintf): Recognize the special case of a string concatenation.
46606
46607 2006-05-08  Eric Blake  <ebb9@byu.net>
46608
46609         * gnulib-tool (func_version): Base copyright year on CVS date.
46610         (func_emit_copyright_notice): New function.
46611         (func_emit_lib_Makefile_am): Use it.
46612         (func_emit_tests_Makefile_am): Likewise.
46613         (func_import): Likewise.
46614
46615 2006-05-08  Bruno Haible  <bruno@clisp.org>
46616
46617         * modules/stdarg: New file.
46618         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46619
46620 2006-05-08  Bruno Haible  <bruno@clisp.org>
46621
46622         * m4/stdarg.m4: New file, from GNU gettext.
46623
46624 2006-05-08  Bruno Haible  <bruno@clisp.org>
46625
46626         * config/srclist.txt (build-aux/config.rpath): different from latest
46627         release.
46628
46629 2006-05-08  Bruno Haible  <bruno@clisp.org>
46630
46631         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46632
46633 2006-05-05  Jim Meyering  <jim@meyering.net>
46634
46635         * m4/warning.m4: New file, derived from bison's file by the same name.
46636
46637 2006-05-03  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/stdint_.h: Shorter URL.
46640         * lib/inttypes.h: Likewise.
46641
46642 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46643
46644         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46645
46646 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46647
46648         * lib/verify.h: Document the internals better.  Most of this change
46649         was written by Bruno Haible.
46650
46651 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         * doc/verify.texi: New file, partly based on a proposal by
46654         Bruno Haible.
46655
46656 2006-05-02  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46659         test from here...
46660         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46661
46662 2006-04-29  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46665         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46666
46667 2006-04-29  Bruno Haible  <bruno@clisp.org>
46668
46669         * gnulib-tool: Make --update option actually work.
46670
46671 2006-04-29  Bruno Haible  <bruno@clisp.org>
46672
46673         * doc/gcd.texi: New file.
46674         * doc/gnulib.texi: Include it.
46675
46676 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46677
46678         * lib/getdate.y (get_date): When adding relative date, start with the
46679         initial time, not with the result of the first mktime call.
46680
46681 2006-04-25  Bruno Haible  <bruno@clisp.org>
46682
46683         * gnulib-tool (func_import): Output the include directives in three
46684         blocks, sorted separately.
46685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46686
46687 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46688
46689         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46690         to define main with arguments, for C++.  Reported by Eric Blake.
46691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46692         Prefer 'int main ()' to 'int main (void)', for C++.
46693         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46694         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46695         for 'main', for C99 and C++.
46696
46697 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46698
46699         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46700         Don't assume that exit status -1 is valid.
46701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46702         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46703         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46704         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46705         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46706         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46707         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46708         functions can be used without declaring them, or that you can
46709         exit with status -1.
46710         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46711
46712 2006-04-24  Karl Berry  <karl@gnu.org>
46713
46714         * config/srclist.txt (longdouble.m4): sync lost.
46715
46716 2006-04-24  Eric Blake  <ebb9@byu.net>
46717
46718         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46719
46720 2006-04-24  Bruno Haible  <bruno@clisp.org>
46721
46722         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46723         poll() implementation in AIX.
46724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46725
46726 2006-04-24  Bruno Haible  <bruno@clisp.org>
46727
46728         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46729         assigned exactly once.
46730
46731 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46732             Bruno Haible  <bruno@clisp.org>
46733
46734         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46735         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46736         for AM_CPPFLAGS.
46737
46738 2006-04-23  Bruno Haible  <bruno@clisp.org>
46739
46740         * modules/copy-file: Depend on unistd.
46741         * modules/execute: Likewise.
46742         * modules/fatal-signal: Likewise.
46743         * modules/findprog: Likewise.
46744         * modules/mkdtemp : Likewise.
46745         * modules/pipe: Likewise.
46746         * modules/wait-process: Likewise.
46747
46748 2006-04-23  Bruno Haible  <bruno@clisp.org>
46749
46750         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46751         condition was already detected.
46752         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46753
46754 2006-04-23  Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/copy-file.c: Include <unistd.h> unconditionally.
46757         * lib/execute.c: Likewise.
46758         * lib/fatal-signal.c: Likewise.
46759         * lib/findprog.c: Likewise.
46760         * lib/mkdtemp.c: Likewise.
46761         * lib/pipe.h: Likewise.
46762         * lib/pipe.c: Likewise.
46763         * lib/wait-process.h: Likewise.
46764
46765 2006-04-23  Bruno Haible  <bruno@clisp.org>
46766
46767         * gnulib-tool (func_usage): Fix --import description. Document
46768         --update.
46769         (func_import): Create temporary file in a temporary directory, if
46770         --dry-run is specified. Silence errors from 'grep' when there are no
46771         m4 files in $m4dir.
46772         (func_create_testdir): Silence errors from 'grep' when there are no
46773         m4 files in $m4dir.
46774         Reported by Karl Berry <karl@freefriends.org>.
46775
46776 2006-04-20  Bruno Haible  <bruno@clisp.org>
46777
46778         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46779         one argument, so that the code will be portable to Autoconf 2.60.
46780         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46781         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46782         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46783
46784 2006-04-19  Derek Price  <derek@ximbiot.com>
46785             Eric Blake  <ebb9@byu.net>
46786
46787         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46788         rather than "/full/path.h".  Update comment to match.  Shorten &
46789         generalize m4_translit call via AS_TR_CPP.
46790
46791 2006-04-19  Derek Price  <derek@ximbiot.com>
46792             Eric Blake  <ebb9@byu.net>
46793
46794         * lib/inttypes.h: Correct grammar in comment.
46795
46796 2006-04-18  Derek Price  <derek@ximbiot.com>
46797             Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * modules/inttypes: New file.
46800         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46801
46802 2006-04-18  Derek Price  <derek@ximbiot.com>
46803             Paul Eggert  <eggert@cs.ucla.edu>
46804
46805         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46806         New files.
46807
46808 2006-04-18  Derek Price  <derek@ximbiot.com>
46809             Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         * lib/inttypes.h: New file.
46812         * lib/strtoimax.c: Assume <inttypes.h>.
46813
46814 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46815
46816         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46817         isn't mounted.  Problem reported by Kir Kolyshkin.
46818
46819 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46820
46821         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46822         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46823         Derek R. Price.
46824         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46825         implementation.
46826
46827 2006-04-12  Eric Blake  <ebb9@byu.net>
46828
46829         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46830         is now done automatically by the corresponding Autoconf macro.
46831
46832 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46833
46834         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46835         time_r.h.
46836
46837 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         Merge regex changes from libc, removing some of our
46840         POSIX-conformance changes that were rejected and redoing them in a
46841         less-intrusive way.
46842
46843         * lib/regcomp.c (re_compile_internal, init_dfa):
46844         Length arg is now size_t, not Idx.  All uses changed.
46845         (peek_token): Forward decl now says internal_function.
46846         (__re_error_msgid, __re_error_msgid_idx):
46847         Now static rather than extern with attribute_hidden.
46848         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46849         For some reason libc prefers K&R style defns for external functions.
46850         (regerror) [!defined _LIBC]: Likewise.
46851         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46852         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46853         (build_range_exp, build_collating_symbol):
46854         Use K&R-style defn.
46855         (re_compile_fastmap): Use '\0' to memset, not 0.
46856         (utf8_sb_map): Make the calculations more obvious.
46857         (init_dfa, parse_bracket_exp, build_charclass_op):
46858         Call calloc and cast result, as glibc does.
46859         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46860         (build_range_exp, build_collating_symbol):
46861         Now internal functions.
46862
46863         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46864
46865         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46866         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46867         Don't depend on VMS; depend on __VMS instead, for POSIX
46868         namespace cleanness.
46869         (regoff_t): Define to ssize_t, not long int.
46870
46871         Remove the REG_ macros named below.  Instead, make the old names
46872         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46873         __USE_GNU_REGEX.
46874         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46875         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46876         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46877         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46878         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46879         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46880         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46881         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46882         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46883         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46884         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46885         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46886         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46887         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46888         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46889         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46890         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46891         (REG_NREGS):
46892         Remove.  All uses replaced by the old RE_* names.
46893         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46894         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46895         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46896         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46897         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46898         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46899         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46900         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46901         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46902         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46903         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46904         Don't bother having these macros be independent of each others'
46905         values, since they no longer exist in the POSIX name space.
46906
46907         Rename the following member names back to their old names,
46908         unless !__USE_GNU_REGEX.  All uses changed back.
46909         (buffer): Renamed from re_buffer.
46910         (allocated): Renamed from re_allocated.
46911         (used): Renamed from re_used.
46912         (syntax): Renamed from re_syntax.
46913         (fastmap): Renamed from re_fastmap.
46914         (translate): Renamed from re_translate.
46915         (can_be_null): Renamed from re_can_be_null.
46916         (regs_allocated): Renamed from re_regs_allocated.
46917         (fastmap_accurate): Renamed from re_fastmap_accurate.
46918         (no_sub): Renamed from re_no_sub.
46919         (not_bol): Renamed from re_not_bol.
46920         (not_eol): Renamed from re_not_eol.
46921         (newline_anchor): Renamed from re_newline_anchor.
46922         (num_regs): Renamed from rm_num_regs.
46923         (start): Renamed from rm_start.
46924         (end): Renamed from rm_end.
46925
46926         (free_state): Move up a bit.
46927
46928         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46929         #define to be empty.
46930         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46931         when that is what is intended.
46932         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46933         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46934         (MAX): New macro.
46935         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46936         All uses changed back to re_malloc, etc.  It's now the caller's
46937         responsibility to check for overflow; all callers changed.
46938         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46939         (re_x2nrealloc): Remove.
46940         (free_state): Remove decl.
46941
46942         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46943         (re_set_registers, re_exec):
46944         Use K&R-style defn.
46945
46946         2006-01-31  Roland McGrath  <roland@redhat.com>
46947
46948         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46949         Reported by Mike Frysinger <vapier@gentoo.org>.
46950
46951         2006-01-15  Andreas Jaeger  <aj@suse.de>
46952
46953         [BZ #1950]
46954         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46955         build_wcs_upper_buffer change.
46956         (build_wcs_upper_buffer): Change return type.
46957
46958         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46959
46960         * lib/regex_internal.h: Include <stdint.h> if available.
46961
46962         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46963
46964         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46965
46966         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46967
46968         * lib/regcomp.c: Adjust for changed secondary hash function.
46969
46970         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46971
46972         * lib/regex.h: Pretty printing.
46973         Clean up namespace a bit.
46974
46975         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46976
46977         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46978         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46979
46980         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46981                     Ulrich Drepper  <drepper@redhat.com>
46982
46983         [BZ #1302]
46984         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46985         changed.
46986         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46987
46988         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46989
46990         [BZ #281]
46991         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46992         * lib/regcomp.c: Remove unnecessary uses of
46993         unsigned RE_TRANSLATE_TYPE.
46994         * lib/regex_internal.h: Likewise.
46995         * lib/regex_internal.c: Likewise.
46996         * lib/regexec.c: Likewise.
46997         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46998
46999         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47000
47001         * lib/regexec.c (find_recover_state): Remove unnecessary
47002         initialization.
47003         (transit_state_bkref): Make DFA a const pointer.
47004         (get_subexp): Likewise.
47005         (check_arrival): Likewise.
47006         (update_cur_sifted_state): Likewise.
47007         (re_search_internal): Likewise.
47008         (prune_impossible_nodes): Likewise.
47009         (acquire_init_state_context): Likewise.
47010         (proceed_next_node): Likewise.
47011         (set_regs): Likewise.
47012         (free_fail_stack_return): Likewise.
47013         (check_arrival_expand_ecl): Mark DFA parameter as const.
47014         (check_arrival_expand_ecl_sub): Likewise.
47015         (check_subexp_limits): Likewise.
47016         (sub_epsilon_src_nodes):  Likewise.
47017         (add_epsilon_src_nodes):  Likewise.
47018         (merge_state_array): Likewise.
47019         (update_regs): Likewise.
47020         (build_trtable): Likewise.
47021         (sift_states_backward): Mark MCTX parameter as const.
47022         (build_sifted_states): Likewise.
47023         (update_cur_sifted_state): Likewise.
47024         (sift_states_mkref): Likewise.
47025         (check_arrival_expand_ecl): Mark eclosure as const.
47026         (check_dst_limits_calc_pos_1): Likewise.
47027         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47028         pointer.
47029
47030         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47031
47032         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47033         (transit_state_sb): Likewise.
47034         (transit_state_mb): Likewise.
47035         (sift_states_iter_mb): Likewise.
47036         (check_arrival_add_next_nodes): Likewise.
47037         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47038         [_LIBC] (re_search_2_stub): Use mempcpy.
47039
47040         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47041         mbrtowc for very simple UTF-8 case.
47042
47043         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47044         a pointer-to-const.
47045         (re_acquire_state_context): Likewise.
47046         * lib/regex_internal.h: Adjust prototypes.
47047
47048         * lib/regex.c: Prevent using C++ compilers.
47049
47050         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47051         (re_acquire_state_context): Likewise.
47052
47053 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47054
47055         * modules/regex (Depends-on): Add ssize_t.
47056
47057 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47058
47059         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47060         translation table.
47061
47062 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47063
47064         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47065
47066 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47067             Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47070         <sys/types.h> and <inttypes.h>.
47071
47072 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47073
47074         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47075         `__error_t_defined', so argp.h will not typedef the former.
47076
47077 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47078
47079         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47080         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47081         glibc names.  Even if glibc is changed to conform to POSIX, the
47082         traditional names will be available anyway, since regex depends on
47083         the extensions module.  Also, fix a longstanding typo in the
47084         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47085         reported by Emanuele Giaquinta.  Also, change sense of cached
47086         variable, so that the message makes sense.
47087
47088 2006-03-24  Simon Josefsson  <jas@extundo.com>
47089
47090         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47091         including some doc fixes.
47092         (base64_encode_alloc): Fix +1 bug on allocation failures.
47093
47094 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47095
47096         * lib/base64.c (base64_encode): Do not read past end of array with
47097         unsanitized input on systems with CHAR_BIT > 8.
47098
47099 2006-03-24  Eric Blake  <ebb9@byu.net>
47100
47101         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47102
47103 2006-03-22  Karl Berry  <karl@gnu.org>
47104
47105         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47106         * config/srclistvars.sh (COREUTILS): new var.
47107
47108 2006-03-17  Jim Meyering  <jim@meyering.net>
47109
47110         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47111         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47112
47113 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47114
47115         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47116         no longer needs it.  Instead, check that regoff_t is as least
47117         as wide as ptrdiff_t.
47118
47119         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47120         so that our regex.h stays compatible with the installed regex.
47121         This is helpful for installers who configure --without-included-regex.
47122         Problem reported by Emanuele Giaquinta.
47123
47124 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47125
47126         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47127         Typedef to long int, not to off_, as POSIX will likely change
47128         in that direction.
47129
47130 2006-03-15  Eric Blake  <ebb9@byu.net>
47131
47132         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47133
47134 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47135
47136         * lib/argp-help.c (validate_uparams): Fix typo
47137         * lib/argp-parse.c (argp_default_options): Consistently begin help
47138         messages with a lowercase letter.
47139
47140 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47141
47142         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47143         overrun buffers and shouldn't be used (much as gets shouldn't be
47144         used).
47145         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47146
47147 2006-03-08  Simon Josefsson  <jas@extundo.com>
47148
47149         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47150         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47151
47152 2006-03-08  Simon Josefsson  <jas@extundo.com>
47153
47154         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47155         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47156
47157 2006-03-08  Simon Josefsson  <jas@extundo.com>
47158
47159         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47160         signal that configure disabled the device.
47161
47162 2006-03-08  Simon Josefsson  <jas@extundo.com>
47163
47164         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47165         languages.
47166
47167 2006-03-07  Simon Josefsson  <jas@extundo.com>
47168
47169         * modules/getopt (Depends-on): Add unistd.
47170
47171         * modules/unistd: New file.
47172
47173 2006-03-07  Simon Josefsson  <jas@extundo.com>
47174
47175         * modules/gc-random: New file.
47176
47177 2006-03-07  Simon Josefsson  <jas@extundo.com>
47178
47179         * m4/unistd_h.m4: New file.
47180
47181 2006-03-07  Simon Josefsson  <jas@extundo.com>
47182
47183         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47184         test to be side-effect free by storing the result in the cache
47185         variable gl_cv_lib_readline, and moving the assignment of
47186         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47187         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47188
47189 2006-03-07  Simon Josefsson  <jas@extundo.com>
47190
47191         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47192         error on missing devices (the functions will return an error).
47193
47194         * m4/gc.m4: Move random stuff to gc-random.m4
47195
47196 2006-03-07  Simon Josefsson  <jas@extundo.com>
47197
47198         * lib/unistd_.h: New file.
47199
47200 2006-03-07  Simon Josefsson  <jas@extundo.com>
47201
47202         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47203
47204 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47207         Problem reported by Juan Manuel Guerrero.
47208
47209 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47210
47211         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47212         the unistd module.
47213         * lib/getlogin_r.c: Likewise.
47214         * lib/getlogin_r.h: Likewise.
47215         * lib/glob.c: Likewise.
47216         * lib/pagealign_alloc.c: Likewise.
47217         * lib/unistd_.h: Remove; no longer needed.
47218
47219 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47220
47221         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47222         Add unistd.
47223         * modules/c-stack (Depends-on): Add unistd.
47224         * modules/getlogin_r: Likewise.
47225         * modules/glob: Likewise.
47226         * modules/pagealign_alloc: Likewise.
47227         * modules/unistd (Files): Remove lib/unistd_.h.
47228         (EXTRA_DIST): Remove.
47229         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47230         need unistd_.h.
47231         (MOSTLYCLEANFILES): Remove unistd.h-t.
47232
47233 2006-03-03  Simon Josefsson  <jas@extundo.com>
47234
47235         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47236
47237 2006-03-03  Simon Josefsson  <jas@extundo.com>
47238
47239         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47240         libidn and bison.
47241
47242 2006-03-03  Simon Josefsson  <jas@extundo.com>
47243
47244         * build-aux/maint.mk: Add indent target.
47245
47246 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47247
47248         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47249         our replacement poll.h in any case, to avoid a differing
47250         declaration from a system header.  Seen on AIX.
47251
47252 2006-03-01  Simon Josefsson  <jas@extundo.com>
47253
47254         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47255         <kasal@ucw.cz>.
47256
47257 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47258
47259         * modules/gettime (Depends-on): Add extensions module.
47260         * modules/nanosleep (Depends-on): Likewise.
47261         * modules/settime (Depends-on): Likewise.
47262
47263 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47266         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47267         pedantically.
47268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47269         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47270
47271         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47272         not "==".  Reported by Ralf Wildenhues.
47273
47274 2006-03-01  Karl Berry  <karl@gnu.org>
47275
47276         * doc/Copyright/request-*: new files, synced from gnuorg.
47277
47278 2006-03-01  Karl Berry  <karl@gnu.org>
47279
47280         * config/srclist.txt (Copyright/*): new entries.
47281
47282 2006-02-28  Simon Josefsson  <jas@extundo.com>
47283
47284         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47285
47286 2006-02-27  Simon Josefsson  <jas@extundo.com>
47287
47288         * lib/base64.h: Indent #define's.  From Jim Meyering
47289         <jim@meyering.net>.
47290
47291 2006-02-27  Jim Meyering  <jim@meyering.net>
47292
47293         Revert the change of 2006-02-24, so these files can continue
47294         to be sync'd from gettext.
47295         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47296         of `config.h'.
47297
47298 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47299
47300         * modules/intprops: New file.
47301         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47302         Add intprops.
47303         * modules/getloadavg (Files): Remove lib/intprops.h.
47304         (Depends-on): Add intprops.
47305         * modules/human: Likewise.
47306         * modules/inttostr: Likewise.
47307         * modules/openat: Likewise.
47308         * modules/sig2str: Likewise.
47309         * modules/userspec: Likewise.
47310         * modules/utimecmp: Likewise.
47311         * modules/xnanosleep: Likewise.
47312         * modules/xstrtol: Likewise.
47313
47314 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47315
47316         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47317         * modules/lock-tests (TESTS): Use $(EXEEXT).
47318         * modules/tls-tests: Likewise.
47319         * modules/argp-tests: Likewise.
47320         (check_PROGRAMS): New var, replacing...
47321         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47322
47323 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47324
47325         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47326         `config.h'.
47327
47328 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47329
47330         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47331
47332 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47333
47334         Sync from coreutils.
47335         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47336         gl_CHDIR_SAFER.
47337
47338 2006-02-22  Jim Meyering  <jim@meyering.net>
47339
47340         Sync from coreutils.
47341         * m4/chdir-safer.m4: New file.
47342
47343 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47344
47345         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47346         AT_FDCWD exceeds INT_MAX.
47347         * lib/openat.h (AT_FDCWD): Likewise.
47348
47349 2006-02-17  Eric Blake  <address@hidden>
47350
47351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47352
47353 2006-02-16  Simon Josefsson  <jas@extundo.com>
47354
47355         * modules/getaddrinfo (Depends-on): Add sys_socket.
47356
47357 2006-02-15  Simon Josefsson  <jas@extundo.com>
47358
47359         * build-aux/maint.mk: Add dsyntax-check rule.
47360
47361 2006-02-15  Eric Blake  <ebb9@byu.net>
47362
47363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47364         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47365         'present but cannot compile' warnings on cygwin.
47366         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47367         use ws2tcpip.h if sys/socket.h works.
47368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47369         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47370
47371 2006-02-14  Simon Josefsson  <jas@extundo.com>
47372
47373         * modules/maintainer-makefile (Files): Rename.
47374
47375         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47376         and (the local) Makefile.cfg to maint-cfg.mk.
47377
47378         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47379         to the latter.
47380
47381         * modules/maintainer-makefile: New module.
47382
47383         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47384         severaly stripped to make it possible to build it up from scratch
47385         with reliable tests.
47386
47387         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47388         fixes to permit overriding the default actions when configure and
47389         makefile are not available.
47390
47391 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47392
47393         Sync from coreutils.
47394         * modules/lstat (Depends-on): Don't depend on xalloc.
47395         (License): Change from GPL to LGPL, since this is now simply a
47396         replacement for a libc function.
47397
47398 2006-02-14  Jim Meyering  <jim@meyering.net>
47399
47400         Sync from coreutils.
47401
47402         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47403         failure on deficient systems, and simplify gnulib lgpl dependencies.
47404         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47405         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47406
47407         * lib/xalloc-die.c: Remove unused definition of N_.
47408
47409 2006-02-14  Jim Meyering  <jim@meyering.net>
47410
47411         Sync from coreutils.
47412         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47413         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47414         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47415         double-quote uses of that variable, to accommodate the rare case in
47416         which getmntent is available in none of the libraries checked.  This
47417         happens at least on FreeBSD 5.0.
47418
47419 2006-02-13  Simon Josefsson  <jas@extundo.com>
47420
47421         * gnulib-tool (Usage): Fix --import, from
47422         karl@freefriends.org (Karl Berry).
47423
47424 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47425
47426         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47427
47428 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47429
47430         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47431         "autoupdate" on 2005-12-12.
47432
47433 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47434
47435         * modules/closeout (Depends-on): Remove atexit.
47436
47437 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47438
47439         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47440         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47441
47442 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47443
47444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47445         __EXTENSIONS__ if this causes compilation to fail.  Problem
47446         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47447         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47448
47449 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47452         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47454         All uses changed.
47455
47456 2006-01-26  Simon Josefsson  <jas@extundo.com>
47457
47458         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47459         prototype is visible on mingw32.
47460
47461         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47462         for mingw32.
47463
47464         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47465         mingw32).
47466
47467 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47468
47469         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47470         attempt to open for write; this always fails, at least on POSIX
47471         hosts.  This reinstates the 2006-01-09 change, which was
47472         inadvertently removed.
47473
47474 2006-01-26  Bruno Haible  <bruno@clisp.org>
47475
47476         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47477         Reported by Paul Eggert.
47478
47479 2006-01-26  Bruno Haible  <bruno@clisp.org>
47480             Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * lib/stdbool_.h (_Bool)
47483         [(! (defined __cplusplus || defined __BEOS__)
47484           && !defined __GNUC__
47485           && !(defined __HP_cc || defined __xlc__
47486                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47487                || defined __sgi))]:
47488         #define to signed char in these cases too; this simplifies
47489         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47490         etc., separately) and makes it more conservative.
47491
47492 2006-01-25  Simon Josefsson  <jas@extundo.com>
47493
47494         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47495         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47496         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47497
47498 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47499
47500         * lib/argp-namefrob.h: Bugfix. Remove stray #
47501
47502 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47503
47504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47505         so that we test the test.
47506         Check for yet another HP-UX cc bug involving *bool |= bool.
47507
47508 2006-01-25  Karl Berry  <karl@gnu.org>
47509
47510         * config/srclist.txt (vasnprintf.c): sync lost.
47511
47512 2006-01-25  Jim Meyering  <jim@meyering.net>
47513
47514         Sync from the stable (b5) branch of coreutils:
47515
47516         * lib/fts.c (fts_children): Don't let close() clobber errno from
47517         failed fchdir().
47518
47519         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47520         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47521         a dangling symlink.  That can also happen at least for ELOOP.
47522         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47523         FYI, this bug predates the inclusion of fts.c in coreutils.
47524
47525         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47526         in their own block, so pre-c99 compilers don't object.
47527
47528         Avoid the double-free (first in fts_read, second in fts_close) that
47529         would occur when an `active' directory is made inaccessible (e.g.,
47530         via chmod a-x) during a traversal.
47531         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47532         before returning.  Reproduce this failure by
47533         mkdir -p a/b; cd a; chmod a-x . b
47534         Reported by Stavros Passas.
47535
47536 2006-01-25  Jim Meyering  <jim@meyering.net>
47537
47538         * lib/fileblocks.c: Remove more useless parentheses.
47539         * lib/readutmp.h: Likewise.
47540
47541 2006-01-25  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47544         warnings.
47545         Reported by Paul Eggert.
47546
47547 2006-01-25  Bruno Haible  <bruno@clisp.org>
47548
47549         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47550         rid of a trap command. For Solaris sh.
47551         Reported by Mark D. Baushke <mdb@gnu.org>.
47552
47553 2006-01-24  Simon Josefsson  <jas@extundo.com>
47554
47555         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47556         Bruno.
47557
47558 2006-01-24  Karl Berry  <karl@gnu.org>
47559
47560         * config/srclist.txt (argp-namefrob.h): sync lost.
47561
47562 2006-01-24  Jim Meyering  <jim@meyering.net>
47563
47564         * modules/openat (Files): Add lib/intprops.h.
47565         From Mark D. Baushke.
47566
47567 2006-01-24  Jim Meyering  <jim@meyering.net>
47568
47569         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47570         Reported by Mark D. Baushke.
47571
47572 2006-01-24  Jim Meyering  <jim@meyering.net>
47573
47574         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47575
47576 2006-01-24  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/strnlen (Maintainer): Change from glibc to all.
47579
47580 2006-01-24  Bruno Haible  <bruno@clisp.org>
47581
47582         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47583         Patch by Paul Eggert.
47584
47585 2006-01-24  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47588         already has it.
47589         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47590         2005-11-26.
47591
47592         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47593         'signed char' to avoid problems with the built-in _Bool type.
47594         Reported by Paul Eggert on 2005-11-26.
47595
47596 2006-01-24  Bruno Haible  <bruno@clisp.org>
47597
47598         * gnulib-tool (func_import): Avoid constructing complicated sed
47599         expressions inside backquote.
47600         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47601
47602 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47603
47604         These changes imported from libc.
47605         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47606         test and two separate function calls.
47607         * lib/strndup.c (__strndup): Add libc_hidden_def.
47608
47609 2006-01-23  Simon Josefsson  <jas@extundo.com>
47610
47611         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47612         Remove the test_*_SOURCES variable: automake infers it by default.
47613         * modules/tls-tests: Likewise.
47614
47615 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47616
47617         Work around porting bugs reported by Dieter in
47618         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47619         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47620         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47621         Include "getopt.h" first, to check interface.
47622         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47623         !HAVE_DECL_GETENV.
47624         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47625         (__strndup): Revert to K&R-style function dfns, the glibc style.
47626         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47627         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47628         Include strnlen.h first, to get prototype properly.
47629         (strnlen): Renamed from __strnlen.
47630         Remove weak alias.
47631
47632 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47633
47634         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47635
47636 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47637
47638         * config/srclist.txt: Adjust to reflect glibc reorganization.
47639         This affects only comments.
47640
47641 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47642
47643          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47644          Reported by Bruce Korb <bkorb@gnu.org>.
47645
47646 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47647
47648         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47649         to pacify gcc -Wswitch-default.
47650
47651 2006-01-22  Bruno Haible  <bruno@clisp.org>
47652
47653         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47654         temporary buffer for sprintf, take into account the precision also
47655         for 'd', 'i', 'u', 'o', 'x', 'X'.
47656
47657 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47658
47659         * modules/argp-tests: New module
47660         * tests/test-argp.c: New file
47661         * tests/test-argp-2.sh: New file
47662
47663 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47664
47665         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47666         (__argp_base_name): Removed
47667         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47668         typo.
47669         (__argp_base_name): Provide macro definition or extern declaration
47670         depending on the configuration
47671
47672 2006-01-20  Simon Josefsson  <jas@extundo.com>
47673
47674         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47675
47676 2006-01-20  Simon Josefsson  <jas@extundo.com>
47677
47678         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47679
47680 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47681
47682         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47683         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47684         Suggested by Bruno Haible.
47685
47686 2006-01-20  Karl Berry  <karl@gnu.org>
47687
47688         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47689         until changes propagate, I guess.
47690
47691 2006-01-19  Simon Josefsson  <jas@extundo.com>
47692
47693         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47694
47695 2006-01-19  Simon Josefsson  <jas@extundo.com>
47696
47697         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47698
47699 2006-01-19  Simon Josefsson  <jas@extundo.com>
47700
47701         * gnulib-tool: Set check_PROGRAMS.
47702
47703         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47704         modules/des-tests, modules/gc-arcfour-tests,
47705         modules/gc-arctwo-tests, modules/gc-des-tests,
47706         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47707         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47708         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47709         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47710         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47711         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47712         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47713         test_*_SOURCES.
47714
47715 2006-01-18  Simon Josefsson  <jas@extundo.com>
47716
47717         * modules/socklen (Depends-on): Depend on sys_socket.
47718
47719 2006-01-18  Simon Josefsson  <jas@extundo.com>
47720
47721         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47722         modules/des-tests, modules/gc-arcfour-tests,
47723         modules/gc-arctwo-tests, modules/gc-des-tests,
47724         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47725         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47726         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47727         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47728         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47729         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47730         $(EXEEXT) to automake TESTS variable, for mingw32.
47731
47732 2006-01-17  Simon Josefsson  <jas@extundo.com>
47733
47734         * modules/socklen (Include): Need sys/socket.h.
47735
47736 2006-01-17  Bruno Haible  <bruno@clisp.org>
47737
47738         * modules/ssize_t (Include): Add <sys/types.h>.
47739
47740 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47741
47742         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47743         it's not portable and it doesn't work with cross-compiles.
47744         Problem reported by Bruno Haible.  Fix missing-$ typo in
47745         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47746         -zignore from being used with Sun's C compiler.
47747
47748 2006-01-12  Simon Josefsson  <jas@extundo.com>
47749
47750         * lib/base64.c: Fix warning, reported by Bruno Haible
47751         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47752
47753 2006-01-12  Bruno Haible  <bruno@clisp.org>
47754
47755         * modules/ldd: New file.
47756         * build-aux/ldd.sh.in: New file.
47757         * MODULES.html.sh (Support for building libraries and executables): Add
47758         ldd.
47759
47760 2006-01-12  Bruno Haible  <bruno@clisp.org>
47761
47762         * m4/ldd.m4: New file.
47763
47764 2006-01-12  Bruno Haible  <bruno@clisp.org>
47765
47766         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47767         endless loop while replacing $auxdir with build-aux.
47768
47769 2006-01-11  Simon Josefsson  <jas@extundo.com>
47770
47771         * lib/stdint_.h (SIZE_MAX): Add missing (.
47772
47773 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47774
47775         Sync from coreutils.
47776         * lib/md5.c: Fix commentary typos.
47777         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47778         * lib/md5.h (__attribute__): Remove; unused.
47779         * lib/sha1.c: Fix commentary to match md5 better.
47780         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47781         so that we don't need to worry about alignment.  All uses changed.
47782         This merges the 2005-10-28 md5 change into sha1.
47783
47784 2006-01-11  Jim Meyering  <jim@meyering.net>
47785
47786         Sync from coreutils.
47787         * lib/md5.c (OP): Fix spacing.
47788
47789 2006-01-11  Bruno Haible  <bruno@clisp.org>
47790
47791         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47792         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47793         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47794
47795 2006-01-11  Bruno Haible  <bruno@clisp.org>
47796
47797         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47798         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47799         the "early" section as well.
47800
47801 2006-01-11  Bruno Haible  <bruno@clisp.org>
47802
47803         Avoid "ar: no archive members specified" error on MacOS X.
47804         * gnulib-tool (func_modules_add_dummy): New function.
47805         (func_import, func_create_testdir): Invoke it.
47806
47807 2006-01-11  Bruno Haible  <bruno@clisp.org>
47808
47809         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47810         with $auxdir in AC_CONFIG_FILES statements.
47811
47812 2006-01-11  Bruno Haible  <bruno@clisp.org>
47813
47814         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47815         Initialize also noinst_HEADERS to empty.
47816
47817 2006-01-11  Bruno Haible  <bruno@clisp.org>
47818
47819         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47820         variables.
47821         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47822         autoreconf.
47823
47824 2006-01-11  Bruno Haible  <bruno@clisp.org>
47825
47826         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47827         overridable by the user.
47828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47829
47830 2006-01-10  Simon Josefsson  <jas@extundo.com>
47831
47832         * modules/sys_socket: New file.
47833
47834 2006-01-10  Simon Josefsson  <jas@extundo.com>
47835
47836         * m4/sys_socket_h.m4: New file.
47837
47838 2006-01-10  Simon Josefsson  <jas@extundo.com>
47839
47840         * lib/socket_.h: New file.
47841
47842 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47843
47844         * modules/readutmp (Maintainer): Add myself.
47845
47846 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47849         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47850         People who are still concerned with buggy memcmp implementations
47851         can invoke gl_FUNC_MEMCMP themselves.
47852
47853 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47854
47855         * lib/regex_internal.h (BITSET_WORD_BITS):
47856         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47857         preprocessor mishandles large unsigned values as if they were signed.
47858         Problem reported by Claudio Fontana in
47859         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47860
47861 2006-01-10  Jim Meyering  <jim@meyering.net>
47862
47863         Avoid the double-free (first in fts_read, second in fts_close) that
47864         would occur when an `active' directory is made inaccessible (e.g.,
47865         via chmod a-x) during a traversal.
47866         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47867         before returning.  Reproduce this failure by
47868         mkdir -p a/b; cd a; chmod a-x . b
47869         Reported by Stavros Passas.
47870
47871         Sync from coreutils.
47872         * lib/sha1.c: Tweak grammar in a comment.
47873
47874 2006-01-10  Jim Meyering  <jim@meyering.net>
47875
47876         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47877         Patch by Joerg Sonnenberger.
47878
47879 2006-01-10  Bruno Haible  <bruno@clisp.org>
47880
47881         * modules/readutmp: Depend on module free.
47882         * modules/strtok_r: Depend on module restrict.
47883
47884 2006-01-10  Bruno Haible  <bruno@clisp.org>
47885
47886         * modules/gettext (configure.ac): Add an invocation of
47887         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47888
47889 2006-01-10  Bruno Haible  <bruno@clisp.org>
47890
47891         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47892         Reported by Werner Lemberg <wl@gnu.org>.
47893
47894 2006-01-10  Bruno Haible  <bruno@clisp.org>
47895
47896         * lib/localcharset.c: Update from GNU gettext.
47897
47898 2006-01-10  Bruno Haible  <bruno@clisp.org>
47899
47900         * lib/argp.h (__const): Remove macro. Use const instead.
47901         * lib/argp-fmtstream.h (__const): Likewise.
47902         * lib/glob_.h (__const): Remove macro.
47903         * lib/glob-libc.h: Use const instead of __const.
47904
47905 2006-01-10  Bruno Haible  <bruno@clisp.org>
47906
47907         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47908         variable.
47909         Needed to avoid an automake error regarding the 'gettext' module.
47910
47911 2006-01-09  Simon Josefsson  <jas@extundo.com>
47912
47913         * modules/inet_ntop (Depends-on): Add restrict.
47914
47915 2006-01-09  Simon Josefsson  <jas@extundo.com>
47916
47917         * modules/gc-rijndael-tests (License): Put under LGPL.
47918
47919         * modules/gc-des-tests (License): Likewise.
47920
47921         * modules/gc-arcfour-tests (License): Likewise.
47922
47923         * modules/gc-arctwo-tests (License): Likewise.
47924
47925         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47926
47927         * modules/gc-hmac-sha1-tests (Files): Likewise.
47928
47929         * modules/gc-hmac-md5-tests (License): Likewise.
47930
47931         * modules/gc-sha1-tests (License): Likewise.
47932
47933         * modules/gc-md5-tests (License): Likewise.
47934
47935         * modules/gc-md4-tests (License): Likewise.
47936
47937         * modules/gc-md2-tests (License): Likewise.
47938
47939         * modules/gc-tests (License): Likewise.
47940
47941         * modules/des-tests (License): Likewise.
47942
47943         * modules/md4-tests (License): Likewise.
47944
47945         * modules/md2-tests (License): Likewise.
47946
47947 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47948
47949         Sync from coreutils:
47950
47951         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47952         * modules/lib-ignore: New file.
47953         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47954         chdir-safer.m4, lchmod.m4.
47955         * modules/openat: Add mkdirat.c, openat-priv.h.
47956
47957 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47958
47959         Sync from coreutils.
47960         * m4/lib-ignore.m4: New file.
47961         * m4/lchmod.m4: New file.
47962
47963 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47964
47965         Sync from coreutils.
47966         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47967         for write access: POSIX says that must fail.
47968         * lib/fts.c (diropen): Likewise.
47969         * lib/save-cwd.c (save_cwd): Likewise.
47970         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47971         well, for minor improvements on hosts that lack O_DIRECTORY.
47972         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47973         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47974         Fall back on chown if open failed with EACCES.
47975
47976         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47977         Report an error at compile-time if only a 1-second nominal clock
47978         resolution is found.
47979
47980         * lib/lchmod.h: New file.
47981         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47982         (make_dir_parents): Use lchown rather than chown, and
47983         lchmod rather than chmod.
47984
47985         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47986         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47987         "proc" reported by n0dalus.
47988
47989         * lib/mountlist.c: Include <limits.h>.
47990         (dev_from_mount_options)
47991         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47992         New function.  It no longer assumes "dev=" has the System V meaning
47993         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47994         (read_file_system_list)
47995         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47996         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47997         dev= in that case.
47998
47999         * lib/posixtm.h (PDS_PRE_2000): New macro.
48000         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48001         allow_century.  All usages changed.  Reject dates outside the range
48002         1969-1999 if PDS_PRE_2000 is used.
48003
48004 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         Sync from coreutils.
48007         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48008         (Time of day items): Mention the possibility of leap seconds.
48009         Problem reported by Dr. David Alan Gilbert.
48010
48011 2006-01-09  Jim Meyering  <jim@meyering.net>
48012
48013         Sync from coreutils.
48014
48015         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48016
48017         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48018
48019         * lib/modechange.c (mode_compile): Reject an invalid mode string
48020         that starts with an octal digit.  From Andreas Gruenbacher.
48021
48022         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48023         and dup to open_safer and dup_safer, respectively.
48024         (openat_permissive): Fix typo in comment.
48025
48026         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48027         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48028         (_): Remove; no longer needed.
48029         (openat): Renamed from rpl_openat; no need for rpl_openat
48030         since openat.h renames openat for us.
48031         Replace most of the body with a call to openat_permissive,
48032         to avoid duplicate code.
48033         Port to (probably hypothetical) environments were mode_t is
48034         wider than int.
48035         (openat_permissive): Require mode arg, so that we can check
48036         types better.  Put it just after flags.  Change cwd failure
48037         indicator from pointer-to-bool to pointer-to-errno-value.
48038         All callers changed.
48039         Invoke openat_save_fail and/or openat_restore_fail if
48040         cwd_errno is null, so that openat can call us.
48041         (openat_permissive, fdopendir, fstatat, unlinkat):
48042         Simplify errno handling to avoid some duplicate code,
48043         as it's OK to set errno on success.
48044         * lib/openat.h: Revamp code so that function macros depend on
48045         __OPENAT_PREFIX only, not also on AT_FDCWD.
48046         (openat_ro): Remove.  Caller changed to use openat_permissive.
48047         (openat_permissive): Now a macro, if not a function.
48048         (openat_restore_fail, openat_save_fail): Now always functions,
48049         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48050
48051         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48052         and openat.c.
48053         * lib/mkdirat.c: Include openat-priv.h.
48054         Remove definitions of macros defined therein.
48055         * lib/openat.c: Likewise.
48056
48057         * lib/mkdirat.c (mkdirat): New file and function.
48058         * lib/openat.h (mkdirat): Declare.
48059
48060         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48061
48062         * lib/openat.h (openat_permissive): Declare.
48063         (openat_ro): Define.
48064
48065         * lib/openat.c (EXPECTED_ERRNO): New macro.
48066         (openat_permissive): New function -- used in remove.c rewrite.
48067         (all functions): Set errno just before returning, only if there
48068         was an actual failure.
48069         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48070
48071         Emulate openat-family functions using Linux's procfs, if possible.
48072         Idea and some code based on Ulrich Drepper's glibc changes.
48073
48074         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48075         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48076         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48077         before falling back on save_cwd and restore_cwd.
48078         (fdopendir, fstatat, unlinkat): Likewise.
48079
48080         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48081         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48082
48083         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48084         as second argument to va_arg.  Otherwise, some versions of gcc
48085         warn that `if this code is reached, the program will abort'.
48086
48087 2006-01-09  Jim Meyering  <jim@meyering.net>
48088
48089         Sync from coreutils.
48090         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48091         Require openat-priv.h.
48092
48093 2006-01-09  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/strnlen (Include): Use strnlen.h.
48096
48097 2006-01-09  Bruno Haible  <bruno@clisp.org>
48098
48099         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48100
48101 2006-01-09  Bruno Haible  <bruno@clisp.org>
48102
48103         * lib/sysexit_.h (EX_OK): New macro.
48104         Suggested by Martin Lambers <marlam@marlam.de>.
48105
48106 2006-01-09  Bruno Haible  <bruno@clisp.org>
48107
48108         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48109         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48110
48111 2006-01-09  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48114         numbers.
48115
48116 2006-01-09  Bruno Haible  <bruno@clisp.org>
48117
48118         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48119         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48120         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48121         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48122
48123 2006-01-09  Bruno Haible  <bruno@clisp.org>
48124
48125         * build-aux/javacomp.sh.in: New file, moved from lib/.
48126         * modules/javacomp-script (Files): Update.
48127         (configure.ac): Add AC_CONFIG_FILES invocation.
48128         (EXTRA_DIST): Remove variable.
48129
48130         * build-aux/javaexec.sh.in: New file, moved from lib/.
48131         * modules/javaexec (Files): Update.
48132         (configure.ac): Add AC_CONFIG_FILES invocation.
48133         (EXTRA_DIST): Remove javaexec.sh.in.
48134
48135         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48136         * modules/csharpcomp-script (Files): Update.
48137         (configure.ac): Add AC_CONFIG_FILES invocation.
48138         (EXTRA_DIST): Remove variable.
48139
48140         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48141         * modules/csharpexec (Files): Update.
48142         (configure.ac): Add AC_CONFIG_FILES invocation.
48143         (EXTRA_DIST): Remove csharpexec.sh.in.
48144
48145 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48146
48147         Sync from coreutils.
48148
48149         Add POSIX ACL support
48150         * lib/acl.h (copy_acl, set_acl): Add declarations.
48151         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48152         systems other than Linux.
48153         (chmod_or_fchmod): New function: use fchmod when possible,
48154         and chmod otherwise.
48155         (file_has_acl): Add a POSIX ACL implementation, with a
48156         Linux-specific subcase.
48157         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48158         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48159         acls are unsupported.
48160         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48161         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48162         are unsupported.
48163
48164 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48165
48166         Sync from coreutils.
48167         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48168
48169 2006-01-07  Bruno Haible  <bruno@clisp.org>
48170
48171         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48172         gl_EARLY.
48173
48174 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48175
48176         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48177         Problem reported for Mingw by Mark Junker.
48178
48179 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         * README: Gnulib normally doesn't generate a tarball.
48182
48183 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48184
48185         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48186         long int, not int, for nanosecond counts, so that people who are
48187         used to POSIX struct timespec won't be surprised.  Reported by Jim
48188         Meyering.
48189
48190 2005-12-28  Bruno Haible  <bruno@clisp.org>
48191
48192         * build-aux/config.rpath: Update from GNU gettext.
48193
48194 2005-12-16  Jim Meyering  <jim@meyering.net>
48195
48196         * modules/fprintftime: New module.
48197         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48198
48199 2005-12-16  Jim Meyering  <jim@meyering.net>
48200
48201         * m4/fprintftime.m4: New file.
48202
48203 2005-12-16  Jim Meyering  <jim@meyering.net>
48204
48205         * lib/fprintftime.c, lib/fprintftime.h: New files.
48206
48207 2005-12-15  Simon Josefsson  <jas@extundo.com>
48208
48209         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48210         new m4/socklen.m4.
48211
48212 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48213
48214         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48215         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48216
48217 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48218
48219         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48220         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48221         struct uparams is valid. Fall back to the default values if it is
48222         not.
48223
48224 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48225
48226         * modules/argp (Files): Add argp-pin.c
48227         (Depends-on): dirname
48228         (lib_SOURCES): Add argp-pin.c
48229
48230 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48231
48232         * m4/argp.m4:  Check if program_invocation_name and
48233         program_invocation_short_name are declared and define appropriate
48234         macros if they are not.
48235
48236 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48237
48238         * lib/argp-help.c (__argp_base_name): New function
48239         (__argp_short_program_name): Rewrite using __argp_base_name
48240         * lib/argp-namefrob.h: Define program_invocation_name and
48241         program_invocation_short_name if requested
48242         (__argp_base_name): Add prototype
48243         * lib/argp-parse.c (argp_def): Use gettext wrappers
48244         (argp_default_parser): Use __argp_base_name
48245         * lib/argp-pin.c: New file. Defines program_invocation_name and
48246         program_invocation_short_name on systems that lack them.
48247
48248 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48249
48250         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48251         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48252         porting problem reported by Georg Schwarz in
48253         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48254
48255 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48256
48257         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48258         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48259         porting problem reported by Georg Schwarz in
48260         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48261
48262 2005-12-05  Bruno Haible  <bruno@clisp.org>
48263
48264         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48265         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48266         Reported by Mark Junker <mjscod@gmx.de>.
48267
48268 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48269
48270         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48271         Use implementation from Albert Chin, with some
48272         comments/corrections by Stepan Kasal and myself.
48273
48274 2005-12-02  Bruno Haible  <bruno@clisp.org>
48275
48276         * gnulib-tool (func_import): Accept GPLed build tool modules when
48277         --lgpl is given.
48278         * modules/csharpcomp-script: New file.
48279         * modules/csharpcomp: Depend on it.
48280         * modules/javacomp-script: New file.
48281         * modules/javacomp: Depend on it.
48282         Suggested by Simon Josefsson.
48283
48284 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48287         statement, to work around an HP-UX 10.20 compiler bug reported by
48288         Peter O'Gorman.
48289
48290 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48291
48292         * modules/savedir (Depends-on): Add openat.
48293
48294 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48295
48296         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48297         (uintmax_t) [defined uintmax_t]: Do not declare.
48298         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48299         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48300         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48301         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48302         sake of portability to weird hosts that C allows (though we don't
48303         know of any practical examples).
48304
48305         * lib/savedir.h (fdsavedir): New decl.
48306         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48307         contains most of the former guts of savedir.
48308         (savedir): Use savedirstream.
48309         Include "openat.h".
48310
48311 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * modules/obstack (Files): Add m4/ulonglong.m4.
48314         Problem reported by Davide Angelocola.
48315
48316 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48317
48318         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48319         coreutils no longer futzes with rounding modes.
48320
48321 2005-11-14  Jim Meyering  <jim@meyering.net>
48322
48323         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48324         replacement of mkstemp.
48325
48326 2005-11-10  Simon Josefsson  <jas@extundo.com>
48327
48328         * lib/readline.c: Remove EOL.
48329
48330 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48331
48332         * modules/gethrxtime (Depends-on): Add gettime.
48333
48334 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48335
48336         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48337         or gettimeofday; no longer needed.
48338
48339 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48340
48341         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48342         time business.
48343         (gethrxtime) [! (HAVE_NANOUPTIME
48344         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48345         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48346         our own approximation.
48347
48348 2005-11-08  Eric Blake  <ebb9@byu.net>
48349
48350         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48351
48352 2005-11-08  Eric Blake  <ebb9@byu.net>
48353
48354         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48355
48356 2005-11-04  Bruno Haible  <bruno@clisp.org>
48357
48358         * gnulib-tool: Implement --update mode.
48359
48360 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48361
48362         Fix porting problem reported by Theodoros V. Kalamatianos.
48363         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48364         Don't assume that futimes failing means we must fail.
48365
48366 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48367
48368         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48369         variables to suggest the intended function of the PATH_MAX check.
48370
48371 2005-10-30  Kean Johnston  <jkj@sco.com>
48372
48373         Trivial changes to support SCO systems.
48374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48375         as PATH_MAX.
48376         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48377         where __ptr is null when no I/O is pending.
48378
48379 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48380
48381         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48382         leave errno alone.  Problem reported by Dmitry V. Levin.
48383
48384 2005-10-28  Simon Josefsson  <jas@extundo.com>
48385
48386         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48387         Test more.
48388
48389         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48390
48391         * modules/md2, modules/md2-tests: New files.
48392
48393 2005-10-28  Simon Josefsson  <jas@extundo.com>
48394
48395         * m4/inet_ntop.m4: More tests.
48396
48397         * m4/gc-md2.m4, md2.m4: New file.
48398
48399 2005-10-28  Simon Josefsson  <jas@extundo.com>
48400
48401         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48402         "restrict" keywords, as per POSIX.  Protect the function
48403         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48404         Don't use K&R prototypes.  Check the sprintf return values.
48405         Re-define EAFNOSUPPORT if not present.  Indent.
48406
48407         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48408         suggested by Bruno Haible <bruno@clisp.org>.
48409
48410         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48411
48412         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48413
48414         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48415         libgcrypt).
48416
48417         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48418
48419         * lib/md2.h, lib/md2.c: New files.
48420
48421 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48422
48423         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48424         errno alone.  Problem reported by Frederic Jolliton.
48425
48426 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48427
48428         * modules/verify (License): Change from GPL to LGPL.  This is a
48429         tiny module and there are apparently near-equivalents that are
48430         under the BSD license.
48431
48432 2005-10-24  Simon Josefsson  <jas@extundo.com>
48433
48434         * modules/sha1: Relicense to LGPL.
48435
48436 2005-10-24  Simon Josefsson  <jas@extundo.com>
48437
48438         * lib/md4.h: Shrink buffer size, now that we changed the type.
48439
48440 2005-10-23  Simon Josefsson  <jas@extundo.com>
48441
48442         * gnulib-tool (func_import): Fix --tests-base.
48443
48444 2005-10-22  Simon Josefsson  <jas@extundo.com>
48445
48446         * modules/arcfour (Depends-on): Need stdint.
48447
48448 2005-10-22  Simon Josefsson  <jas@extundo.com>
48449
48450         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48451         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48452
48453 2005-10-22  Simon Josefsson  <jas@extundo.com>
48454
48455         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48456         suggested by Bruno Haible <bruno@clisp.org>.
48457
48458 2005-10-22  Simon Josefsson  <jas@extundo.com>
48459
48460         * lib/crc.h: Include stddef.h, for size_t.
48461
48462 2005-10-22  Simon Josefsson  <jas@extundo.com>
48463
48464         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48465         arcfour_context struct (simplify test vector testing in GNU
48466         Shishi).
48467
48468 2005-10-21  Simon Josefsson  <jas@extundo.com>
48469
48470         * modules/des, modules/des-tests: New files.
48471
48472         * modules/gc-des, modules/gc-des-tests: New files.
48473
48474         * tests/test-des.c, tests/test-gc-des.c: New file.
48475
48476 2005-10-21  Simon Josefsson  <jas@extundo.com>
48477
48478         * modules/arctwo, modules/arctwo-tests: New files.
48479
48480         * tests/test-arctwo.c: New file.
48481
48482         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48483
48484         * tests/test-gc-arctwo.c: New file.
48485
48486 2005-10-21  Simon Josefsson  <jas@extundo.com>
48487
48488         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48489         Bruno Haible <bruno@clisp.org>.
48490
48491         * m4/gc-des.m4: New file.
48492
48493 2005-10-21  Simon Josefsson  <jas@extundo.com>
48494
48495         * m4/arctwo.m4: New file.
48496
48497         * m4/gc-arctwo.m4: New file.
48498
48499 2005-10-21  Simon Josefsson  <jas@extundo.com>
48500
48501         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48502         block.
48503
48504 2005-10-21  Simon Josefsson  <jas@extundo.com>
48505
48506         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48507         <bruno@clisp.org>.
48508
48509         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48510
48511         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48512         Bruno Haible <bruno@clisp.org>.
48513
48514         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48515         <bruno@clisp.org>.
48516
48517 2005-10-21  Simon Josefsson  <jas@extundo.com>
48518
48519         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48520
48521 2005-10-21  Simon Josefsson  <jas@extundo.com>
48522
48523         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48524
48525 2005-10-21  Simon Josefsson  <jas@extundo.com>
48526
48527         * lib/des.h, lib/des.c: New files.
48528
48529         * lib/gc-gnulib.c: Support DES.c
48530
48531 2005-10-21  Simon Josefsson  <jas@extundo.com>
48532
48533         * lib/arctwo.h, lib/arctwo.c: New files.
48534
48535         * lib/gc-gnulib.c: Support ARCTWO.
48536
48537 2005-10-21  Simon Josefsson  <jas@extundo.com>
48538
48539         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48540         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48541
48542 2005-10-21  Simon Josefsson  <jas@extundo.com>
48543
48544         * gnulib-tool (func_import, func_create_testdir): Define automake
48545         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48546         Makefile.am snippet),
48547         suggested by Bruno Haible <bruno@clisp.org>.
48548
48549         * modules/gc (Makefile.am): Use it.
48550
48551 2005-10-21  Bruno Haible  <bruno@clisp.org>
48552
48553         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48554         patch.
48555
48556 2005-10-19  Simon Josefsson  <jas@extundo.com>
48557
48558         * tests/test-gc-rijndael.c: New file.
48559
48560         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48561
48562 2005-10-19  Simon Josefsson  <jas@extundo.com>
48563
48564         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48565         interface too.
48566
48567 2005-10-19  Simon Josefsson  <jas@extundo.com>
48568
48569         * tests/test-gc-arcfour.c: New file.
48570
48571         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48572
48573 2005-10-19  Simon Josefsson  <jas@extundo.com>
48574
48575         * modules/gc-md4, modules/gc-md4-tests: New file.
48576
48577         * tests/test-gc-md4.c: New file.
48578
48579 2005-10-19  Simon Josefsson  <jas@extundo.com>
48580
48581         * m4/gc-md4.m4: New file.
48582
48583 2005-10-19  Simon Josefsson  <jas@extundo.com>
48584
48585         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48586         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48587         <kasal@ucw.cz>.
48588
48589 2005-10-19  Simon Josefsson  <jas@extundo.com>
48590
48591         * m4/gc-arcfour.m4: New file.
48592
48593         * m4/gc-rijndael.m4: New file.
48594
48595 2005-10-19  Simon Josefsson  <jas@extundo.com>
48596
48597         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48598
48599 2005-10-19  Simon Josefsson  <jas@extundo.com>
48600
48601         * lib/gc-gnulib.c: Support ARCFOUR.
48602
48603 2005-10-19  Simon Josefsson  <jas@extundo.com>
48604
48605         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48606         support.
48607
48608         * lib/gc.h: Add ECB enum type.
48609
48610         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48611
48612 2005-10-18  Simon Josefsson  <jas@extundo.com>
48613
48614         * tests/test-md5.c: New file.
48615
48616         * modules/md5-tests: New file.
48617
48618 2005-10-18  Simon Josefsson  <jas@extundo.com>
48619
48620         * tests/test-md4.c: New file.
48621
48622         * modules/md4, modules/md4-tests: New files.
48623
48624 2005-10-18  Simon Josefsson  <jas@extundo.com>
48625
48626         * m4/md4.m4: New file.
48627
48628 2005-10-18  Simon Josefsson  <jas@extundo.com>
48629
48630         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48631
48632 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48633
48634         * gnulib-tool (func_create_testdir): Omit the second check whether
48635         BUILT_SOURCES in nonempty.
48636
48637 2005-10-17  Simon Josefsson  <jas@extundo.com>
48638
48639         * tests/test-rijndael.c: New file.
48640
48641 2005-10-17  Simon Josefsson  <jas@extundo.com>
48642
48643         * modules/sha1: Depend on stdint instead of md5.
48644
48645         * modules/md5: Depend on stdint, remove uint32_t.
48646
48647 2005-10-17  Simon Josefsson  <jas@extundo.com>
48648
48649         * modules/gc-sha1-tests: New file.
48650
48651         * tests/test-gc-sha1.c: New file.
48652
48653 2005-10-17  Simon Josefsson  <jas@extundo.com>
48654
48655         * m4/md5.m4: Remove call to uint32_t.m4.
48656
48657 2005-10-17  Simon Josefsson  <jas@extundo.com>
48658
48659         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48660
48661         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48662         md5.h.
48663
48664         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48665
48666         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48667
48668 2005-10-17  Simon Josefsson  <jas@extundo.com>
48669
48670         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48671
48672 2005-10-17  Simon Josefsson  <jas@extundo.com>
48673
48674         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48675
48676 2005-10-17  Simon Josefsson  <jas@extundo.com>
48677
48678         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48679
48680         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48681
48682 2005-10-17  Bruno Haible  <bruno@clisp.org>
48683
48684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48685         that it can also be used in a test.
48686
48687 2005-10-16  Bruno Haible  <bruno@clisp.org>
48688
48689         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48690         TESTS_ENVIRONMENT, so that individual tests can augment it.
48691
48692         * gnulib-tool (func_create_testdir): Use an intermediate target for
48693         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48694         macros, like $(ALLOCA_H), which cannot be passed through the command
48695         line.
48696
48697 2005-10-15  Simon Josefsson  <jas@extundo.com>
48698
48699         * modules/rijndael-tests: New file.
48700
48701         * modules/rijndael: New file.
48702
48703 2005-10-15  Simon Josefsson  <jas@extundo.com>
48704
48705         * m4/rijndael.m4: New file.
48706
48707 2005-10-15  Simon Josefsson  <jas@extundo.com>
48708
48709         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48710
48711         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48712
48713 2005-10-14  Simon Josefsson  <jas@extundo.com>
48714
48715         * tests/test-arcfour.c: New file.
48716
48717         * modules/arcfour, modules/arcfour-tests: New files.
48718
48719 2005-10-14  Simon Josefsson  <jas@extundo.com>
48720
48721         * m4/arcfour.m4: New file.
48722
48723 2005-10-14  Simon Josefsson  <jas@extundo.com>
48724
48725         * lib/arcfour.h, lib/arcfour.c: New files.
48726
48727 2005-10-14  Roland McGrath  <roland@redhat.com>
48728
48729         Import from libc.  [BZ #1331]
48730         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48731         macro argument.
48732         Reported by Matej Vela <vela@debian.org>.
48733
48734 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48735
48736         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48737         include <wchar.h>; no longer needed.
48738
48739 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48742
48743 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48744         and  Ulrich Drepper  <drepper@redhat.com>
48745
48746         Import from libc.
48747         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48748         instead of inline stream orientation test and two separate
48749         function calls.  Pay no attention to USE_IN_LIBIO.
48750
48751 2005-10-13  Simon Josefsson  <jas@extundo.com>
48752
48753         * modules/gc-hmac-md5-tests: New file.
48754
48755         * tests/test-gc-hmac-sha1.c: New file.
48756
48757         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48758
48759         * modules/gc-hmac-md5-tests: New file.
48760
48761         * tests/test-gc-md5.c: New file.
48762
48763         * modules/gc-md5-tests: New file.
48764
48765 2005-10-13  Simon Josefsson  <jas@extundo.com>
48766
48767         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48768         Move memory allocation outside of loop.
48769
48770 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48771
48772         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48773         intermediate directory is in a read-only file system.  Problem
48774         reported by Eric Blake.
48775
48776 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48777
48778         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48779
48780 2005-10-12  Simon Josefsson  <jas@extundo.com>
48781
48782         * tests/test-hmac-sha1.c: New file.
48783
48784         * modules/hmac-sha1-tests: New file.
48785
48786         * modules/hmac-sha1: New file.
48787
48788 2005-10-12  Simon Josefsson  <jas@extundo.com>
48789
48790         * modules/gc-sha1: New file.
48791
48792 2005-10-12  Simon Josefsson  <jas@extundo.com>
48793
48794         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48795
48796         * tests/test-gc-pbkdf2-sha1.c: New file.
48797
48798 2005-10-12  Simon Josefsson  <jas@extundo.com>
48799
48800         * modules/gc-md5, modules/gc-hmac-md5: New files.
48801
48802         * modules/gc (Files): Remove md5, memxor and hmac files.
48803
48804 2005-10-12  Simon Josefsson  <jas@extundo.com>
48805
48806         * m4/gc-pbkdf2-sha1.m4: New file.
48807
48808         * m4/gc-hmac-sha1.m4: New file.
48809
48810         * m4/gc-sha1: New file.
48811
48812         * m4/hmac-sha1.m4: New file.
48813
48814 2005-10-12  Simon Josefsson  <jas@extundo.com>
48815
48816         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48817
48818         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48819
48820 2005-10-12  Simon Josefsson  <jas@extundo.com>
48821
48822         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48823         suggested by Bruno Haible <bruno@clisp.org>.
48824
48825 2005-10-12  Simon Josefsson  <jas@extundo.com>
48826
48827         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48828
48829 2005-10-12  Simon Josefsson  <jas@extundo.com>
48830
48831         * lib/gc-pbkdf2-sha1.c: New file.
48832
48833         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48834
48835 2005-10-12  Simon Josefsson  <jas@extundo.com>
48836
48837         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48838
48839         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48840
48841 2005-10-12  Simon Josefsson  <jas@extundo.com>
48842
48843         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48844         GC_USE_HMAC_MD5, respectively.
48845
48846         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48847         (gc_md5): Fix typo.
48848
48849         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48850
48851         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48852
48853         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48854
48855 2005-10-12  Bruno Haible  <bruno@clisp.org>
48856
48857         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48858         Reported by Stepan Kasal <kasal@ucw.cz>.
48859
48860 2005-10-11  Simon Josefsson  <jas@extundo.com>
48861
48862         * tests/test-crc.c: New file.
48863
48864         * modules/crc, modules/crc-tests: New files.
48865
48866 2005-10-11  Simon Josefsson  <jas@extundo.com>
48867
48868         * m4/crc.m4: New file.
48869
48870 2005-10-11  Simon Josefsson  <jas@extundo.com>
48871
48872         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48873
48874         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48875
48876         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48877
48878 2005-10-11  Simon Josefsson  <jas@extundo.com>
48879
48880         * lib/crc.h, lib/crc.c: New files.
48881
48882         * lib/gc.h (gc_hash_buffer): Add doc.
48883
48884 2005-10-11  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/c-strcasestr: New file.
48887         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48888
48889 2005-10-11  Bruno Haible  <bruno@clisp.org>
48890
48891         * modules/c-strcase: New file.
48892         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48893
48894 2005-10-11  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/strcasecmp.c: Include limits.h.
48897         (strcasecmp): Avoid integer overflow on exotic platforms.
48898         * lib/strncasecmp.c: Include limits.h.
48899         (strncasecmp): Avoid integer overflow on exotic platforms.
48900         Reported by Paul Eggert.
48901
48902 2005-10-11  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/c-strcasestr.h: New file, from GNU gettext.
48905         * lib/c-strcasestr.c: New file, from GNU gettext.
48906
48907 2005-10-11  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/c-strcase.h: New file, from GNU gettext.
48910         * lib/c-strcasecmp.c: New file, from GNU gettext.
48911         * lib/c-strncasecmp.c: New file, from GNU gettext.
48912
48913 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         * modules/mempcpy (License): GPL -> LGPL.
48916         * modules/strchrnul (License): Likewise.
48917         * modules/sysexits (License): Likewise.
48918
48919 2005-10-08  Simon Josefsson  <jas@extundo.com>
48920
48921         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48922
48923 2005-10-07  Simon Josefsson  <jas@extundo.com>
48924
48925         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48926
48927 2005-10-06  Simon Josefsson  <jas@extundo.com>
48928
48929         * tests/test-hmac-md5.c: New file.
48930
48931         * modules/hmac-md5-tests: New file.
48932
48933         * modules/hmac-md5: New file.
48934
48935 2005-10-06  Simon Josefsson  <jas@extundo.com>
48936
48937         * m4/hmac-md5.m4: New file.
48938
48939         * m4/memxor.m4: Require gl_C_RESTRICT.
48940
48941 2005-10-06  Simon Josefsson  <jas@extundo.com>
48942
48943         * lib/memxor.c (memxor): Avoid casts and warnings.
48944
48945 2005-10-06  Simon Josefsson  <jas@extundo.com>
48946
48947         * lib/hmac-md5.c: New file.
48948
48949         * lib/hmac.h: New file.
48950
48951 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48952
48953         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48954         promotes to int, not unsigned int, to catch the AIX 5.3
48955         compiler bug.
48956
48957 2005-10-05  Simon Josefsson  <jas@extundo.com>
48958
48959         * modules/memxor: New file.
48960
48961         * modules/iconv (Files): Move config.rpath to havelib, it is used
48962         there.
48963
48964         * modules/havelib (Files): Add config.rpath.
48965
48966 2005-10-05  Simon Josefsson  <jas@extundo.com>
48967
48968         * m4/memxor.m4: New file.
48969
48970 2005-10-05  Simon Josefsson  <jas@extundo.com>
48971
48972         * lib/memxor.c (memxor): Fix compiler error.
48973
48974         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48975         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48976
48977         * lib/memxor.h, lib/memxor.c: New files.
48978
48979         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48980         we assume all systems have it, suggested by Jim Meyering
48981         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48982         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48983         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48984         same reasons.
48985
48986 2005-10-05  Simon Josefsson  <jas@extundo.com>
48987
48988         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48989
48990 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48991
48992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48993         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48994         needed, since the source code now assumes these .h files.
48995
48996 2005-10-05  Derek Price  <derek@ximbiot.com>
48997
48998         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48999
49000 2005-10-05  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/stdint (License): Change to LGPL.
49003
49004 2005-10-04  Simon Josefsson  <jas@extundo.com>
49005
49006         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49007         D. Baushke" <mdb@gnu.org>.
49008
49009 2005-10-04  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/verify.h (verify_true): Provide alternative definition for C++.
49012
49013 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49014
49015         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49016         (SSIZE_MAX): New macro, if not already defined.
49017         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49018         than 2 GiB.
49019
49020 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49021
49022         Sync from coreutils.
49023         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49024         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49025         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49026         ULLONG_MAX doesn't work with 2.7.2.1.
49027
49028 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49029
49030         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49031         From Ben Pfaff.
49032
49033         * modules/exclude (Depends-on): Depend on verify.
49034         * modules/strtoimax (Depends-on): Likewise.
49035         * modules/utimecmp (Depends-on): Likewise.
49036
49037 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49038
49039         * lib/exclude.c: Include verify.h.
49040         (verify): Remove.  All callers changed to use verify.h's version.
49041         * lib/strtoimax.c: Likewise.
49042         * lib/utimecmp.c: Likewis.e
49043
49044         Sync from coreutils.
49045         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49046         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49047         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49048         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49049         bother returning ENOSYS if settimeofday or stime fails; just let
49050         them return whatever errno they want to return.
49051         * lib/utimens.c: Include unistd.h, for dup2.
49052         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49053         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49054
49055 2005-10-02  Jim Meyering  <jim@meyering.net>
49056
49057         Sync from coreutils.
49058         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49059         from glibc-2.2.5 that fails for read-only files.
49060
49061 2005-10-02  Jim Meyering  <jim@meyering.net>
49062
49063         Sync from coreutils.
49064         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49065         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49066         `#if HAVE_CONFIG_H'.
49067         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49068         Remove AT_FDCWD test.
49069         Do not consume the fd unless successful.
49070         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49071         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49072         block, so that we don't even try to compile it if settimeofday is
49073         available.  This works around a compilation failure on OSF1 V5.1,
49074         due to stime requiring a `long int*' while tv_sec is `int'.
49075
49076 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49077
49078         Sync from coreutils.
49079         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49080         against `yes', rather than just testing for nonempty.
49081
49082 2005-10-01  Simon Josefsson  <jas@extundo.com>
49083
49084         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49085         and Darwin.
49086
49087         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49088         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49089         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49090         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49091         Check if struct addrinfo is declared.
49092
49093 2005-10-01  Simon Josefsson  <jas@extundo.com>
49094
49095         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49096         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49097         AI_* and EAI_* definitions.  Protect function declarations.
49098
49099 2005-10-01  Jim Meyering  <jim@meyering.net>
49100
49101         Sync from coreutils.
49102
49103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49104         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49105         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49107         in the inet and nsl libraries.  Required on Solaris 5.7.
49108
49109 2005-10-01  Jim Meyering  <jim@meyering.net>
49110
49111         Sync from coreutils.
49112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49113         in the inet and nsl libraries.  Required on Solaris 5.7.
49114
49115 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49116
49117         * lib/getdelim.c (getdelim): Remove unused variables.
49118
49119 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49120
49121         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49122         so that the code works even with ancient cpp.  Portability problem
49123         with GCC 2.7.2.1 reported by Thomas M.Ott.
49124
49125 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49126
49127         * modules/regex (Depends-on): Add strcase.
49128
49129         * modules/gethostname (Licence): Change from GPL to LGPL, since
49130         gethostname.c is a trivial implementation of a standard library
49131         function.
49132         * modules/poll (License): Change from GPL to LGPL, since it's
49133         derived from LGPL code.
49134
49135 2005-09-27  Jim Meyering  <jim@meyering.net>
49136
49137         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49138         HAVE_CONFIG_H.
49139
49140         * lib/intprops.h (signed_type_or_expr__): Define.
49141         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49142         for unsigned types.
49143
49144 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49145
49146         * lib/verify.h (verify_expr): Remove, replacing with:
49147         (verify_true): New macro that returns true instead of void.
49148         (verify_type__): Remove.
49149         (verify): Use verify_true rather than verify_type__.
49150
49151 2005-09-26  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49154         is necessary.
49155         (lib_SOURCES): Remove mbchar.c.
49156         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49157         (Files): Add m4/mbrtowc.m4.
49158         * modules/mbiter: Likewise.
49159         * modules/mbuiter: Likewise.
49160
49161 2005-09-26  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49164         compile mbchar.c if they are not both present.
49165         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49166         * m4/mbiter.m4 (gl_MBITER): Likewise.
49167         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49168         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49169         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49170
49171 2005-09-25  Jim Meyering  <jim@meyering.net>
49172
49173         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49174         also uses socklen_t.
49175
49176 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         * lib/utimens.c (ENOSYS): Define if not already defined.
49179         (futimens): Support having a null PATH if the file descriptor
49180         is nonnegative.
49181
49182         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49183         Remove.
49184         (__attribute): Define to empty unless GCC 3.1 or later.
49185         This works around a core dump on OpenBSD 3.4, which has GCC
49186         2.95.3, which dumps core when given __attribute__(()).  It also
49187         simplifies other tests, since we really don't want to bother with
49188         worrying about which ancient version of GCC supported what.
49189         Original problem reported by Yoann Vandoorselaere, with part of
49190         the fix suggested by Derek Price.
49191
49192 2005-09-24  Jim Meyering  <jim@meyering.net>
49193
49194         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49195         so we can once again use a positive bitfield width of 1 -- now we
49196         don't have to explain why we were using a bitfield width of 2.
49197
49198 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49201         and similarly for the other external symbols.  Problem reported
49202         by James Gallager.
49203
49204         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49205         bug reported by Jim Meyering.
49206
49207         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49209         not needed, since socklen is a prerequisite module.
49210
49211 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49212
49213         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49214         Problem reported by Eric Blake.
49215         (getaddrinfo): Initialize se so that it's not garbage.
49216         Redo internal storage allocation so that it doesn't make unportable
49217         assumptions about alignment.
49218         Fix a memory leak.
49219
49220         * lib/utimens.c (futimens): Use futimesat if available.
49221         Prefer it to futimes since it doesn't have the futimes bug.
49222
49223         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49224         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49225         Instead, declare a function that returns a pointer to an array,
49226         and use verify_type__ to declare the size of the array.
49227         Problem and germ of a solution reported by Bruno Haible.
49228         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49229         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49230
49231 2005-09-23  Jim Meyering  <jim@meyering.net>
49232
49233         Sync from coreutils.
49234         Correct build failure (socklen_t not defined) on at least
49235         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49236         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49237
49238 2005-09-23  Jim Meyering  <jim@meyering.net>
49239
49240         * modules/getaddrinfo (Depends-on): Add socklen.
49241
49242 2005-09-23  Bruno Haible  <bruno@clisp.org>
49243
49244         * tests/test-verify.c: New file.
49245
49246 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49247
49248         Sync from coreutils.
49249
49250         * modules/argmatch (Depends-on): Add verify.
49251         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49252         unistd-safer.
49253         * modules/save-cwd (Depends-on): Likewise.
49254
49255         * modules/openat (Files): Add lib/openat-die.c.
49256         (Depends-on): Remove error, exitfail.
49257         Add dirname.
49258
49259         * modules/verify: New file.
49260         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49261         with "verify" module.
49262
49263 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49264
49265         Sync from coreutils.
49266
49267         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49268         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49269         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49270         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49271         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49272         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49273         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49274         Don't bother checking for string.h, stdlib.h, unistd.h.
49275         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49276         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49277         module's job.
49278         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49279         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49280
49281         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49282         (gl_GETDATE): Use it.
49283
49284         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49285
49286 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49287
49288         Sync from coreutils.
49289
49290         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49291         stat-time.h.
49292         * lib/argmatch.h: Include verify.h
49293         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49294         (ARGMATCH_ASSERT): Remove; unused.
49295         * lib/canonicalize.c: Assume STDC_HEADERS.
49296         * lib/exclude.c: Include "strcase.h".
49297         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49298         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49299         and stdio-safer.h.
49300         (getusershell): Call fopen, not fopen_safer.
49301         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49302         Do not include unistd-safer.h.
49303         (save_cwd): Don't call fd_safer; no longer needed
49304         now that we include fcntl--.h.
49305
49306         * lib/getdate.y (relative_time): New type.
49307         (RELATIVE_TIME_0): New constant.
49308         (parser_control): Use relative_time instead of doing it ourselves.
49309         (%union): Add new relative_time rel member.
49310         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49311         Now typeless.
49312         (relunit, relunit_snumber): Now of type rel.
49313         (zone, rel, relunit, get_date): Adjust to above changes.
49314
49315         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49316         Do not include unistd-safer.h.
49317         (getloadavg): Don't call fd_safer; no longer needed
49318         now that we include fcntl--.h.
49319
49320         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49321         (make_dir_parents): Treat ENOSYS like EEXIST.
49322
49323         Improve quality of diagnostics on restore_cwd failure.
49324         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49325         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49326         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49327         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49328         each time through the loop.  Do not diagnose restore_cwd failure;
49329         that is the caller's job (and perhaps the caller does not care).
49330
49331         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49332         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49333         If the file already exists but is not a directory, don't bother
49334         to try to make its parents.
49335         Close potential file descriptor leak if we can't chdir("/") (!).
49336         Don't always return true if chdir($PWD) fails; return true only
49337         if the requested action was done successfully (except for the
49338         chdir($PWD)).
49339         Don't log final directory unless we actually made it.
49340         Refactor to avoid duplicate code to fix up permissions.
49341         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49342
49343         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49344         to make it a bit faster and (I hope) clearer.
49345         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49346         Fix bug in formats like %2N.
49347
49348         * lib/verify.h: New file.
49349
49350 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         Sync from coreutils.
49353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49354
49355 2005-09-22  Jim Meyering  <jim@meyering.net>
49356
49357         Sync from coreutils.
49358
49359         * m4/lstat.m4 (gl_FUNC_LSTAT):
49360         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49361         Remove obsolete comment.
49362         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49363         * m4/xstrtod.m4: Likewise.
49364
49365         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49366
49367 2005-09-22  Jim Meyering  <jim@meyering.net>
49368
49369         Sync from coreutils.
49370
49371         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49372
49373         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49374         the .tm_year member, since otherwise gcc-4.0 would now warn about
49375         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49376
49377         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49378         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49379
49380         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49381         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49382         when run in a time zone for which daylight savings time is in effect
49383         for the starting date.
49384
49385         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49386         stop us from restricting permissions of just-created absolute-named
49387         directories.
49388         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49389         to restore initial working directory.
49390         * lib/mkdir-p.c (make_dir_parents): New parameter:
49391         different_working_dir, to tell caller if/when we change the working
49392         directory and are unable to return to the initial one.
49393         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49394         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49395         `return false'.  This fixes a bug introduced on 2004-07-30.
49396
49397         * lib/openat.c (fdopendir): Be sure to close the supplied
49398         file descriptor before returning.  This makes our replacement
49399         implementation a little closer to Solaris's, where fdopendir
49400         ties the file descriptor to the returned DIR* pointer.
49401         * lib/openat.c (unlinkat): New function.
49402         * lib/openat.h (unlinkat): Add prototype.
49403         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49404         (openat_restore_fail): Rename from openat_restore_die.
49405         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49406
49407         Provide an alternative to exiting immediately upon save_cwd or
49408         restore_cwd failure.  Now, an application can arrange e.g.,
49409         to perform a longjump in that case.
49410         * lib/openat.c: Include dirname.h.
49411         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49412         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49413         and openat_restore_die rather than calling error directly.
49414         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49415
49416         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49417         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49418         define.
49419
49420         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49421         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49422                             int utc, int nanoseconds);
49423         Background:
49424         date should not have to allocate a megabyte of virtual memory to
49425         handle a format argument like +%1048575T.  When implemented with
49426         strftime, it must allocate such a buffer, use strftime to fill it
49427         in, print it, then free it.
49428         With fprintftime, it simply prints everything and exits.
49429         With no need for memory allocation, that's one fewer way to fail.
49430         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49431         optional field width, not before, so we accept %9:z, not %:9z.
49432         (my_strftime): Be sure to use L_('x') for literals.
49433
49434         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49435         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49436         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49437         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49438         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49439         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49440         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49441         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49442         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49443         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49444         * lib/xgethostname.c, lib/xreadlink.c:
49445         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49446
49447         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49448         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49449         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49450         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49451         and don't include <sys/file.h>).
49452
49453 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49454
49455         Sync from coreutils.
49456
49457         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49458         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49459         [!LDAV_DONE]: Avoid unused variable warning.
49460
49461 2005-09-21  Bruno Haible  <bruno@clisp.org>
49462
49463         * lib/unicodeio.h (unicode_to_mb): New declaration.
49464
49465 2005-09-20  Derek Price  <derek@ximbiot.com>
49466
49467         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49468         getaddrinfo.h.
49469
49470 2005-09-20  Bruno Haible  <bruno@clisp.org>
49471
49472         * gnulib-tool: Remove trailing slashes from the values specified for
49473         --source-base, --m4-base, --tests-base, --aux-dir.
49474         Suggested by Simon Josefsson <jas@extundo.com>.
49475
49476 2005-09-20  Bruno Haible  <bruno@clisp.org>
49477
49478         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49479         func_modules_to_filelist, func_import, func_create_testdir): Make all
49480         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49481         change when gnulib-tool is invoked in a different locale.
49482
49483 2005-09-19  Simon Josefsson  <jas@extundo.com>
49484
49485         * m4/socklen.m4: Fix typo.
49486
49487 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49488
49489         Use a consistent style for including <config.h>.
49490         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49491         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49492         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49493         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49494         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49495         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49496         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49497         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49498         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49499         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49500         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49501         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49502         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49503         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49504         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49505         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49506         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49507         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49508         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49509         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49510         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49511         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49512         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49513         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49514         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49515         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49516         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49517         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49518         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49519         lib/xstrtoumax.c, lib/yesno.c:
49520         Standardize inclusion of config.h.
49521         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49522         lib/inttostr.h:  Removed inclusion of config.h from header files.
49523         * lib/inttostr.c:  Adjusted in-tree users.
49524         * lib/timespec.h: Remove superfluous warning to include config.h.
49525         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49526         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49527         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49528         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49529         config.h with HAVE_CONFIG_H.
49530
49531 2005-09-19  Jim Meyering  <jim@meyering.net>
49532
49533         * modules/pathmax (License): Change to LGPL.
49534
49535 2005-09-19  Derek Price  <derek@ximbiot.com>
49536
49537         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49538
49539 2005-09-19  Bruno Haible  <bruno@clisp.org>
49540
49541         * gnulib-tool (import): Provide default for --tests-base.
49542
49543 2005-09-19  Bruno Haible  <bruno@clisp.org>
49544
49545         * doc/quote.texi: New file, extracted from gnulib.texi.
49546         * doc/ctime.texi: New file, extracted from gnulib.texi.
49547         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49548         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49549         * doc/gnulib.texi: Include them.
49550
49551 2005-09-18  Bruno Haible  <bruno@clisp.org>
49552
49553         Portability fix.
49554         * gnulib-tool (func_readlink): New function.
49555         (func_ln_if_changed): Use it.
49556
49557 2005-09-18  Bruno Haible  <bruno@clisp.org>
49558
49559         * gnulib-tool: Support --with-tests also with --import.
49560         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49561         (func_import): Use variables $testsbase and $inctests. Emit a
49562         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49563         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49564         SUBDIRS += $testsdir.
49565         (func_create_testdir): Update.
49566
49567 2005-09-18  Bruno Haible  <bruno@clisp.org>
49568
49569         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49570         instead of $dry_run.
49571         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49572         (func_ln_if_changed): Don't handle dry-run here.
49573         (func_import): In dry-run mode, detect more precisely which actions
49574         would be performed, and don't use "...ing" verbs.
49575
49576 2005-09-18  Bruno Haible  <bruno@clisp.org>
49577
49578         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49579         (func_import): Use join on two temporary files instead of three nested
49580         loops, in order to determine which files are new or old.
49581
49582 2005-09-18  Bruno Haible  <bruno@clisp.org>
49583
49584         * gnulib-tool (func_import): Comment out code that spits out the
49585         new files with --dry-run.
49586
49587 2005-09-18  Bruno Haible  <bruno@clisp.org>
49588
49589         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49590
49591 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * lib/stat-time.h: New file.
49594         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49595         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49596         in a different way.
49597         (timespec_cmp): New function.
49598         * lib/utimecmp.c: Include stat-time.h.
49599         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49600         members exist, not on the obsolescent ST_MTIM_NSEC.
49601         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49602
49603 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49604
49605         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49606
49607 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49608
49609         * MODULES.html.sh (File system functions): Add stat-time.
49610         * modules/stat-time: New file.
49611         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49612         is now done in a different way, by the stat-time module.
49613         * modules/utimecmp (Depends-on): Add stat-time.
49614
49615 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         * m4/st_mtim.m4: Remove.  Superseded by...
49618         * m4/stat-time.m4: New file.
49619         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49620         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49621
49622 2005-09-15  Derek Price  <derek@ximbiot.com>
49623
49624         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49625
49626 2005-09-15  Derek Price  <derek@ximbiot.com>
49627
49628         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49629         * lib/regex_internal.c: Ditto, using this...
49630         (__GNUC_PREREQ): ...new macro.
49631         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49632         using...
49633         (__GNUC_PREREQ): ...this new macro.
49634
49635         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49636
49637 2005-09-15  Derek Price  <derek@ximbiot.com>
49638             Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49641         changes, consolidating in...
49642         * lib/regex_internal.h: ...this file.
49643
49644 2005-09-13  Jim Meyering  <jim@meyering.net>
49645
49646         * lib/canon-host.c: Filter through gnu indent and reword comments
49647         slightly.
49648         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49649
49650 2005-09-13  Derek Price  <derek@ximbiot.com>
49651
49652         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49653         failure.
49654         Reported by Jim Meyering  <jim@meyering.net>.
49655
49656 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49657
49658         * lib/base64.c: Typo.
49659         (base64_encode): Put b64str in initialized data section.
49660
49661 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49662
49663         Merge glibc and coreutils changes into gnulib, plus a few
49664         extra fixes.
49665         * lib/md5.c: Use #error rather than a string.
49666         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49667         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49668         (__attribute__): Define to empty for non recent-GCC.
49669         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49670         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49671         Renamed from their non-__ counterparts, with new macros replacing
49672         them if not _LIBC.  Add __THROW attribute.
49673         (rol): Remove.
49674         (struct md5_ctx): Align buffer if using GCC.
49675         * lib/sha1.h (struct sha1_ctx): Likewise.
49676         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49677         The old name was backwards.
49678         (NOTSWAP): Remove; not used.
49679         (rol): New macro, moved here from md5.h.
49680         (sha1_process_block): Remove a FIXME that doesn't make sense.
49681
49682 2005-09-12  Derek Price  <derek@ximbiot.com>
49683
49684         Return usable errors from canon-host.
49685         * lib/canon-host.h: New file.
49686         * lib/canon-host.c (canon_host): Wrap...
49687         (canon_host_r): ...this new function, which now relies exclusively on
49688         getaddrinfo.
49689         (ch_strerror): New function.
49690         (last_cherror): New global.
49691         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49692         interface.
49693         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49694         void *.
49695         (freeaddrinfo): Free ai->ai_canonname when set.
49696
49697 2005-09-12  Derek Price  <derek@ximbiot.com>
49698
49699         Make canon-host require getaddrinfo.
49700         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49701         AC_LIBSOURCE canon-host.h.  Call...
49702         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49703         gl_GETADDRINFO.
49704         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49705
49706 2005-09-12  Derek Price  <derek@ximbiot.com>
49707
49708         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49709         LGPL.
49710         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49711
49712 2005-09-12  Derek Price  <derek@ximbiot.com>
49713
49714         * lib/gai_strerror.c: Include config.h when available.  Include
49715         getaddrinfo.h before other headers to test interface.
49716         Reported by Larry Jones <lawrence.jones@ugs.com>.
49717
49718 2005-09-12  Derek Price  <derek@ximbiot.com>
49719             Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * modules/glob (Files): Add glob-libc.h.
49722
49723 2005-09-12  Derek Price  <derek@ximbiot.com>
49724             Paul Eggert  <eggert@cs.ucla.edu>
49725
49726         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49727         glob_.h, glob-libc.h.
49728         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49729
49730 2005-09-12  Derek Price  <derek@ximbiot.com>
49731             Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49734         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49735         protecting things that should be done only in gnulib contexts.
49736         * lib/glob_.h: New file, containing only the glob things needed for
49737         gnulib.
49738         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49739         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49740         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49741         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49742         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49743         and to respect the namespace rules better.
49744
49745 2005-09-08  Simon Josefsson  <jas@extundo.com>
49746
49747         * modules/socklen: New file.
49748
49749 2005-09-08  Simon Josefsson  <jas@extundo.com>
49750
49751         * m4/socklen.m4: New file.
49752
49753 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49754
49755         * modules/utimens (Files): Add m4/utimbuf.m4, since
49756         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49757         Reported by Sergey Poznyakoff.
49758
49759 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49760
49761         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49762         definitions, since that's the preferred style in glibc.
49763         Fix a minor spacing issue, and update copyright notice to match
49764         glibc's.
49765
49766 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49767
49768         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49769
49770 2005-09-06  Simon Josefsson  <jas@extundo.com>
49771
49772         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49773         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49774
49775 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49776
49777         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49778         warning.
49779
49780 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49781
49782         * config/srclist.txt: Add glibc bug 1302.
49783
49784 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49785
49786         Change bitset word type from unsigned int to unsigned long int,
49787         as this has better performance on typical 64-bit hosts.
49788         Port bitset code to hosts with unusual word sizes.
49789         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49790         (build_collating_symbol):
49791         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49792         argument is a bitset.  This is merely a style issue, but it makes
49793         it clearer that an entire array is expected.
49794         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49795         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49796         Port to the case where bitset_word is not the same as unsigned int.
49797         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49798         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49799         Likewise.
49800         * lib/regexec.c (check_dst_limits_calc_pos_1,
49801         check_subexp_matching_top):
49802         (build_trtable, group_nodes_into_DFAstates):
49803         Likewise.
49804         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49805         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49806         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49807         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49808         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49809         * lib/regcomp.c (optimize_subexps, lower_subexp):
49810         Work even if bitset_word has holes in its bitwise representation.
49811         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49812         * lib/regexec.c (check_dst_limits_calc_pos_1,
49813         check_subexp_matching_top):
49814         Likewise.
49815         * lib/regex_internal.c (re_string_reconstruct):
49816         Don't assume UCHAR_MAX == 255.
49817         * lib/regex_internal.h (bitset_set_all): Likewise.
49818         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49819         All uses changed.
49820         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49821         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49822         All uses changed.
49823         (BITSET_WORD_MAX): New macro.
49824         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49825         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49826         (bitset_empty, bitset_copy):
49827         Prefer sizeof (bitset) to multiplying it out ourselves.
49828         (bitset_not_merge): Remove; unused.
49829         (bitset_contain): Return bool, not unsigned int with one bit on.
49830         All callers changed.
49831         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49832         alignment than re_node_set; do this by defining a new internal
49833         type struct dests_alloc and using it to allocate memory.
49834
49835 2005-09-05  Bruno Haible  <bruno@clisp.org>
49836
49837         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49838         links.
49839
49840 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49841
49842         * modules/size_max (Makefile.am): Add size_max.h
49843
49844 2005-09-04  Derek Price  <derek@ximbiot.com>
49845
49846         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49847
49848 2005-09-03  Simon Josefsson  <jas@extundo.com>
49849
49850         * gnulib-tool: Fix typo.
49851
49852 2005-09-03  Simon Josefsson  <jas@extundo.com>
49853
49854         * config/srclist.txt: Add glibc bug 1293.
49855
49856 2005-09-03  Derek Price  <derek@ximbiot.com>
49857
49858         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49859         From Larry Jones <lawrence.jones@ugs.com>.
49860
49861 2005-09-02  Simon Josefsson  <jas@extundo.com>
49862
49863         * modules/socklen: New file.
49864
49865 2005-09-02  Simon Josefsson  <jas@extundo.com>
49866
49867         * modules/havelib: New module.
49868
49869         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49870         Use havelib.
49871
49872 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49873
49874         Check for arithmetic overflow when calculating sizes, to prevent
49875         some buffer-overflow issues.  These patches are conservative, in the
49876         sense that when I couldn't determine whether an overflow was possible,
49877         I inserted a run-time check.
49878         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49879         macros.
49880         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49881         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49882         (re_xnrealloc, re_x2nrealloc): New inline functions.
49883         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49884         parse_bracket_exp):
49885         (build_equiv_class, build_charclass): Check for arithmetic overflow
49886         in size expression calculations.
49887         * lib/regex_internal.c (re_string_realloc_buffers):
49888         (build_wcs_upper_buffer, re_node_set_add_intersect):
49889         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49890         (re_dfa_add_node, register_state): Likewise.
49891         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49892         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49893         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49894         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49895
49896 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49897
49898         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49899         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49900
49901 2005-09-02  Bruno Haible  <bruno@clisp.org>
49902
49903         Support for lib vs. lib64 distinction on biarch platforms.
49904         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49905         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49906         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49907
49908 2005-09-02  Bruno Haible  <bruno@clisp.org>
49909
49910         * gnulib-tool (import): In the other first-use case, provide defaults
49911         as well.
49912
49913 2005-09-02  Bruno Haible  <bruno@clisp.org>
49914
49915         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49916         patches not yet found in the latest gettext release.
49917
49918 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49919
49920         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49921         to avoid a collision with bits/local_lim.h in glibc.
49922         All uses changed.  Problem reported by Dmitry V. Levin in
49923         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49924
49925         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49926         bugs in int versus size_t comparisons.
49927         (re_string_context_at): Fix bug where the code assumed that
49928         Idx is signed.
49929
49930         Use bool where appropriate.
49931         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49932         All callers changed.
49933         (calc_eclosure_iter): Likewise, for ROOT arg.
49934         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49935         (build_charclass_op): Likewise, for NON_MATCH arg.
49936         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49937         (re_string_construct_common): Likewise, for ICASE arg.
49938         * lib/regexec.c (re_search_2_stub, re_search_stub):
49939         Likewise, for RET_LEN arg.
49940         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49941         (set_regs): Likewise, for FL_BACKTRACK arg.
49942         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49943         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49944         (calc_eclosure_iter, parse_bracket_exp):
49945         Use bool for internal variables that are booleans.
49946         * lib/regexec.c (re_search_internal, check_matching,
49947         proceed_next_node):
49948         (set_regs, build_sifted_states, sift_states_bkref):
49949         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49950         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49951         (find_collation_sequence_value):
49952         Likewise.
49953         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49954         (re_node_set_compare):
49955         Return bool, not int. All callers changed.
49956         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49957         (build_trtable, check_node_accept): Likewise.
49958         * lib/regex_internal.h: Include stdbool.h.
49959
49960         Fix bugs uncovered when converting to bool.
49961         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49962         failure instead of charging ahead blindly.
49963         * lib/regex_internal.c (register_state): Likewise.
49964         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49965         for freeing internal storage.
49966         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49967         bitset pieces used as boolean, to avoid undefined behavior
49968         on hosts that do int overflow checking.
49969
49970 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         * config/srclist.txt: Add glibc bugs 1285-1287.
49973
49974 2005-09-01  Jim Meyering  <jim@meyering.net>
49975
49976         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49977         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49978         Require gl_STAT_MACROS, too.
49979
49980 2005-09-01  Bruno Haible  <bruno@clisp.org>
49981
49982         * gnulib-tool (import): In the first-use case, provide defaults.
49983
49984 2005-09-01  Bruno Haible  <bruno@clisp.org>
49985
49986         * gnulib-tool (func_import): Remove the .tmp files.
49987
49988 2005-09-01  Bruno Haible  <bruno@clisp.org>
49989
49990         * gnulib-tool (func_import): Fix handling of symbolic links.
49991
49992 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49993
49994         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49995         old glibc regex code mishandles strings longer than 2**31 bytes.
49996         This patch fixes this when the regex code is used in gnulib
49997         (i.e., outside glibc).
49998
49999         This patch should not affect the use of the regex code inside
50000         glibc.  No doubt this problem also needs to be handled for glibc
50001         as well, but the result will be an incompatible change to the
50002         glibc ABI, and the old ABI will have to be supported too.  That
50003         can be the the subject for another patch.
50004
50005         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50006         governing whether the rest of this patch is active.  By default,
50007         the macro is disabled and the patch has no effect.
50008         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50009         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50010         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50011         (re_match_2, re_set_registers): Use the new types.
50012         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50013         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50014         New macros.
50015         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50016         (re_string_context_at, bin_tree_t, re_dfastate_t):
50017         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50018         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50019         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50020         (re_string_char_size_at, re_string_wchar_at):
50021         (re_string_elem_size_at):
50022         Use the new types and macros to port to 64-bit hosts.
50023         Use unsigned types for internal values, so that the code
50024         mostly works even for arrays larger than SSIZE_MAX.
50025         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50026         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50027         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50028         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50029         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50030         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50031         (calc_inveclosure, parse_dup_op, build_range_exp):
50032         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50033         (fetch_number, create_token_tree, mark_opt_subexp):
50034         Likewise.
50035         * lib/regex_internal.c (re_string_construct_common,
50036         create_ci_newstate):
50037         (create_cd_newstate, re_string_allocate, re_string_construct):
50038         (re_string_realloc_buffers, build_wcs_upper_buffer):
50039         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50040         (re_string_reconstruct, re_string_peek_byte_case):
50041         (re_string_fetch_byte_case, re_string_context_at):
50042         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50043         (re_node_set_init_copy, re_node_set_add_intersect):
50044         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50045         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50046         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50047         (re_acquire_state, re_acquire_state_context, register_state):
50048         Likewise.
50049         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50050         search_cur_bkref_entry):
50051         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50052         (re_search_internal, re_search_2_stub, re_search_stub)
50053         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50054         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50055         (update_cur_sifted_state, check_dst_limits):
50056         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50057         (check_subexp_limits, sift_states_bkref, merge_state_array):
50058         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50059         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50060         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50061         (expand_bkref_cache, check_node_accept_bytes):
50062         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50063         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50064         (acquire_init_state_context, check_halt_node_context):
50065         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50066         (sift_states_backward, clean_state_log_if_needed):
50067         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50068         (find_recover_state, transit_state_sb, transit_state_mb):
50069         (transit_state_bkref, build_trtable, match_ctx_clean):
50070         Likewise.
50071         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50072         to work around an assumption that REG_MISSING is negative.
50073
50074         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50075         (seek_collating_symbol_entry) [defined _LIBC]:
50076         (lookup_collation_sequence_value) [defined _LIBC]:
50077         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50078         Use prototypes rather than old-style function definitions.
50079         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50080         (transit_state_sb) [0]:
50081         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50082
50083         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50084         rm_eo.
50085
50086         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50087         (optimize_subexps, lower_subexp):
50088         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50089         since the signed shift might overflow.  Use 1u<<31 instead.
50090         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50091         Likewise.
50092         * lib/regexec.c (check_dst_limits_calc_pos_1,
50093         check_subexp_matching_top): Likewise.
50094
50095         * lib/regcomp.c (optimize_subexps, lower_subexp):
50096         Use CHAR_BIT rather than 8, for clarity.
50097         * lib/regexec.c (check_dst_limits_calc_pos_1):
50098         (check_subexp_matching_top): Likewise.
50099         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50100         have to worry about portability issues when shifting it left.
50101         Remove no-longer-needed test for table_size > 0.
50102         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50103         in a word, as the resulting behavior is undefined.
50104         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50105         in one case, a <= should have been an <, and in another case the
50106         whole test was missing.
50107         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50108         the standard name CHAR_BIT.
50109         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50110         this is not true on one's complement and signed-magnitude hosts.
50111
50112         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50113         next_last_offset.
50114         (struct re_dfa_t): Remove unused member states_alloc.
50115         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50116
50117 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50118
50119         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50120         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50121         and large-file glibc and in 32-bit large-file Solaris.
50122
50123 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50124
50125         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50126         lengths fit in regoff_t; this isn't true if regoff_t is the same
50127         width as size_t.
50128         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50129         (= START + RANGE) instead of RANGE.  This avoids overflow
50130         problems when regoff_t is the same width as size_t.
50131         All callers changed.
50132         (re_search_2_stub): Check for overflow when adding the
50133         sizes of the two strings.
50134         (re_search_stub): Check for overflow when adding START
50135         to RANGE; if it occurs, substitute the extreme value.
50136
50137 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50138
50139         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50140
50141 2005-08-31  Jim Meyering  <jim@meyering.net>
50142
50143         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50144         a pointer-to-const.
50145         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50146         (register_state): Likewise.
50147         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50148         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50149         (group_nodes_into_DFAstates): Likewise.
50150
50151 2005-08-31  Jim Meyering  <jim@meyering.net>
50152
50153         * check-module: Add a FIXME comment.
50154
50155 2005-08-31  Eric Blake  <ebb9@byu.net>
50156
50157         * modules/unistd-safer (Files): Add unistd--.h.
50158         * modules/stdio-safer (Files): Add stdio--.h.
50159
50160 2005-08-31  Derek Price  <derek@ximbiot.com>
50161
50162         * lib/getdelim.c (getdelim): Return EOF on EOF.
50163         Reported by Larry Jones <lawrence.jones@ugs.com>.
50164
50165 2005-08-31  Bruno Haible  <bruno@clisp.org>
50166
50167         Avoid unnecessary diffs in the generated lib/Makefile.am.
50168         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50169         the generated files.
50170         (func_import): Don't set cmd.
50171
50172 2005-08-31  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/strstr.c: Include <stddef.h>, for NULL.
50175         * lib/strcasestr.c: Likewise.
50176         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50177
50178 2005-08-31  Bruno Haible  <bruno@clisp.org>
50179
50180         * gnulib-tool: New option --macro-prefix.
50181         (func_import): Use macro_prefix.
50182         (import): Handle option --macro-prefix.
50183
50184 2005-08-31  Bruno Haible  <bruno@clisp.org>
50185
50186         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50187         Also use new variables cached_lgpl, cached_libtool.
50188
50189 2005-08-31  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50192         always instantiating them.
50193
50194 2005-08-31  Bruno Haible  <bruno@clisp.org>
50195
50196         * gnulib-tool (func_import): Read the previous cached settings
50197         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50198         earlier added by gnulib but are now dropped. Warn when a gnulib file
50199         overwrites a non-gnulib file.
50200
50201 2005-08-31  Bruno Haible  <bruno@clisp.org>
50202
50203         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50204         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50205         projects that don't keep autogenerated files in CVS. Put into
50206         actioncmd only the specified modules, not the transitive closure.
50207
50208 2005-08-31  Bruno Haible  <bruno@clisp.org>
50209
50210         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50211         Create directories that shall be filled.
50212         (import): Don't look for gl_* macros in configure.ac. Recurse across
50213         all directories containing a gnulib-cache.m4 files, if meaningful.
50214
50215 2005-08-31  Bruno Haible  <bruno@clisp.org>
50216
50217         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50218         (import): Set seen_libtool when we see gl_LIBTOOL.
50219
50220 2005-08-31  Bruno Haible  <bruno@clisp.org>
50221
50222         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50223         declaration macro definitions from generated gnulib.m4.
50224
50225 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50226
50227         * lib/iconvme.h: Add prototype for iconv_alloc.
50228
50229 2005-08-29  Simon Josefsson  <jas@extundo.com>
50230
50231         * lib/iconvme.c: Fix errno.
50232
50233 2005-08-29  Bruno Haible  <bruno@clisp.org>
50234
50235         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50236         that it works when the directory contains spaces.
50237
50238 2005-08-29  Bruno Haible  <bruno@clisp.org>
50239
50240         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50241
50242 2005-08-29  Bruno Haible  <bruno@clisp.org>
50243
50244         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50245         Emit more advice.
50246
50247 2005-08-29  Bruno Haible  <bruno@clisp.org>
50248         and Stepan Kasal  <kasal@ucw.cz>
50249
50250         * check-module: If more parameters are given, check each of them
50251         separately; add more exceptions, as noted by Jim Meyering.
50252         (check_module): New procedure.
50253         (%exempt_header): Now contains all exceptions.
50254
50255 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50256
50257         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50258
50259 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50260
50261         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50262
50263 2005-08-28  Bruno Haible  <bruno@clisp.org>
50264
50265         * m4/gnulib-tool.m4: New file.
50266
50267 2005-08-27  Jim Meyering  <jim@meyering.net>
50268
50269         * modules/unistd-safer (Files): Add pipe-safer.c.
50270         * modules/fcntl-safer (Files): Add creat-safer.c.
50271
50272 2005-08-27  Jim Meyering  <jim@meyering.net>
50273
50274         * m4/stdlib-safer.m4: New file.  From coreutils.
50275         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50276         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50277         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50279         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50280
50281 2005-08-27  Jim Meyering  <jim@meyering.net>
50282
50283         * lib/fopen-safer.c: Merge minor changes from coreutils.
50284         * lib/dup-safer.c: Likewise.
50285         * lib/fd-safer.c: Likewise.
50286
50287         Merge from coreutils.
50288         * lib/stdio--.h: New file.
50289         * lib/stdlib--.h: New file.
50290         * lib/mkstemp-safer.c: New file.
50291
50292         GNU tar needs these.
50293         * lib/pipe-safer.c: New file.
50294         * lib/creat-safer.c: New file.
50295         * lib/fcntl--.h (creat): Define to creat_safer.
50296         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50297         * lib/unistd--.h (pipe): Define to pipe_safer.
50298         * lib/unistd-safer.h: Declare pipe_safer.
50299
50300 2005-08-26  Simon Josefsson  <jas@extundo.com>
50301
50302         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50303         Haible <bruno@clisp.org>.
50304
50305 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50306
50307         * lib/regex_internal.h: Remove all references to
50308         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50309         or better.
50310         (bitset_not, bitset_merge, bitset_not_merge):
50311         (bitset_mask, re_string_allocate, re_string_construct):
50312         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50313         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50314         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50315         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50316         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50317         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50318         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50319         (re_acquire_state_context):
50320         Remove unnecessary forward decls.
50321         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50322         Put __attribute at function definition,
50323         now that the function decl has been removed.
50324         * lib/regex_internal.c (re_string_peek_byte_case):
50325         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50326         Likewise.
50327
50328 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50329
50330         * m4/regex.m4: Add AC_PREREQ(2.50).
50331         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50332
50333 2005-08-25  Simon Josefsson  <jas@extundo.com>
50334
50335         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50336         __fsetlocking.
50337
50338 2005-08-25  Simon Josefsson  <jas@extundo.com>
50339
50340         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50341         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50342         GLIBC specific code.
50343
50344 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         Make regex safe for g++.  This fixes one real bug (an "err"
50347         that should have been "*err").  g++ problem reported by
50348         Sam Steingold.
50349         * lib/regex_internal.h (re_calloc): New macro, consistent with
50350         re_malloc etc.  All callers of calloc changed to use re_calloc.
50351         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50352         not int.  All callers changed.
50353         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50354         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50355         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50356         (find_recover_state): Change "err" to "*err"; this fixes what
50357         appears to be a real bug.
50358         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50359         versus int.
50360
50361 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         * modules/regex (Depends-on): Add malloc, since the code
50364         assumes that !malloc(0) means failure.
50365
50366 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50367
50368         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50369
50370         alloca modernization/simplification for regex.
50371         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50372         needs to be at the start of the file, and can be moved into
50373         regex_internal.h and simplified.
50374         * lib/regex_internal.h: Include <alloca.h>.
50375         (__libc_use_alloca) [!defined _LIBC]: New macro.
50376         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50377         now works outside glibc.
50378
50379 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * config/srclist.txt: Add glibc bugs 1241, 1245.
50382
50383 2005-08-25  Jim Meyering  <jim@meyering.net>
50384
50385         * lib/open-safer.c: Include <config.h>.
50386         Otherwise, we'd lose LARGEFILE support in any file using
50387         e.g. "fcntl--.h"
50388
50389 2005-08-25  Bruno Haible  <bruno@clisp.org>
50390
50391         * m4/minmax.m4: Require autoconf 2.52.
50392         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50393         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50394         alternatives of translit over the alphabet.
50395         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50396
50397 2005-08-24  Simon Josefsson  <jas@extundo.com>
50398
50399         * tests/test-getpass.c: New file.
50400
50401 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50402
50403         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50404         for GNU regex features.
50405
50406 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50407
50408         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50409         * lib/regex.h (regerror): Likewise.
50410
50411         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50412         requires this.  (The code never needed it.)
50413
50414         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50415         All uses of recently-renamed identifiers changed to use the new,
50416         POSIX-compliant names.  The code will build and run just fine
50417         without these changes, but it's better to eat our own dog food
50418         and use the standard-conforming names.
50419
50420         * lib/regex.h: Fix a multitude of POSIX name space violations.
50421         These changes have an effect only for programs that define
50422         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50423         do not change anything for programs compiled in the normal way.
50424         Also, there is no effect on the ABI.
50425
50426         (_REGEX_SOURCE): New macro.
50427         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50428         defined and _GNU_SOURCE is not; this fixes a name space violation.
50429
50430         Rename the following macros to obey POSIX requirements.
50431         The old names are still visible as macros if _REGEX_SOURCE is defined.
50432         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50433         RE_BACKSLASH_ESCAPE_IN_LISTS.
50434         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50435         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50436         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50437         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50438         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50439         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50440         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50441         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50442         (REG_INTERVALS): renamed from RE_INTERVALS.
50443         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50444         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50445         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50446         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50447         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50448         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50449         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50450         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50451         RE_UNMATCHED_RIGHT_PAREN_ORD.
50452         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50453         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50454         (REG_DEBUG): renamed from RE_DEBUG.
50455         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50456         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50457         unusual, since we can't clash with the POSIX REG_ICASE.
50458         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50459         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50460         (REG_NO_SUB): renamed from RE_NO_SUB.
50461         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50462         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50463         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50464         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50465         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50466         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50467         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50468         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50469         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50470         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50471         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50472         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50473         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50474         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50475         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50476         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50477         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50478         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50479         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50480         (REG_FIXED): Renamed from REGS_FIXED.
50481         (REG_NREGS): Renamed from RE_NREGS.
50482
50483         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50484         of other REG_* macros, since POSIX says the user is allowed to
50485         #undef these macros selectively.
50486
50487         (reg_errcode_t): Update comment stating what other tables need
50488         to be consistent.
50489
50490         Rename the following enum values to obey POSIX requirements.
50491         The old names are still visible as macros.
50492         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50493         is not defined, since GNU is supposed to be a superset of POSIX as
50494         much as possible, and since we want reg_errcode_t to be a signed
50495         type for implementation consistency.
50496         (_REG_NOERROR): Renamed from REG_NOERROR.
50497         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50498         (_REG_BADPAT): Renamed from REG_BADPAT.
50499         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50500         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50501         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50502         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50503         (_REG_EBRACK): Renamed from REG_EBRACK.
50504         (_REG_EPAREN): Renamed from REG_EPAREN.
50505         (_REG_EBRACE): Renamed from REG_EBRACE.
50506         (_REG_BADBR): Renamed from REG_BADBR.
50507         (_REG_ERANGE): Renamed from REG_ERANGE.
50508         (_REG_ESPACE): Renamed from REG_ESPACE.
50509         (_REG_BADRPT): Renamed from REG_BADRPT.
50510         (_REG_EEND): Renamed from REG_EEND.
50511         (_REG_ESIZE): Renamed from REG_ESIZE.
50512         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50513         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50514         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50515         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50516         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50517
50518         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50519         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50520         changed.  But support the old name if the new one is not defined
50521         and if _REGEX_SOURCE.
50522
50523         Change the following member names in struct re_pattern_buffer.
50524         The old names are still supported if !_REGEX_SOURCE.
50525         The new names are always supported, regardless of _REGEX_SOURCE.
50526         (re_buffer): Renamed from buffer.
50527         (re_allocated): Renamed from allocated.
50528         (re_used): Renamed from used.
50529         (re_syntax): Renamed from syntax.
50530         (re_fastmap): Renamed from fastmap.
50531         (re_translate): Renamed from translate.
50532         (re_can_be_null): Renamed from can_be_null.
50533         (re_regs_allocated): Renamed from regs_allocated.
50534         (re_fastmap_accurate): Renamed from fastmap_accurate.
50535         (re_no_sub): Renamed from no_sub.
50536         (re_not_bol): Renamed from not_bol.
50537         (re_not_eol): Renamed from not_eol.
50538         (re_newline_anchor): Renamed from newline_anchor.
50539
50540         Change the following member names in struct re_registers.
50541         The old names are still supported if !_REGEX_SOURCE.
50542         The new names are always supported, regardless of _REGEX_SOURCE.
50543         (rm_num_regs): Renamed from num_regs.
50544         (rm_start): Renamed from start.
50545         (rm_end): Renamed from end.
50546
50547         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50548         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50549         Prepend __ to parameter names.
50550
50551         Undo yesterday's changes.
50552
50553 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50554
50555         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50556         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50557         lib/regex.c.
50558
50559 2005-08-24  Jim Meyering  <jim@meyering.net>
50560
50561         Sync from coreutils.
50562         * m4/fcntl-safer.m4: New file.
50563
50564         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50565         and object files for this module.
50566
50567 2005-08-24  Jim Meyering  <jim@meyering.net>
50568
50569         Sync from coreutils.
50570         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50571
50572 2005-08-24  Jim Meyering  <jim@meyering.net>
50573
50574         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50575         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50576
50577 2005-08-24  Jim Meyering  <jim@meyering.net>
50578
50579         * modules/fcntl-safer: New module.
50580         * modules/fts (Depends-on): Add fcntl-safer.
50581         * MODULES.html.sh (File descriptor based Input/Output):
50582         Add fcntl-safer.
50583
50584 2005-08-24  Bruno Haible  <bruno@clisp.org>
50585
50586         Support for unit test modules.
50587         * modules/README: Mention tests modules.
50588         * modules/TEMPLATE-TESTS: New file.
50589         * gnulib-tool: New options --extract-tests-module, --with-tests and
50590         --tests-base (unused for the moment).
50591         (testsbase, inctests): New variables.
50592         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50593         (func_verify_module): Exclude TEMPLATE-TESTS.
50594         (func_verify_nontests_module, func_verify_tests_module): New functions.
50595         (func_get_dependencies): Add implicit dependency for tests modules.
50596         (func_get_tests_module): New function.
50597         (func_modules_transitive_closure): When --with-tests was specified,
50598         include the unit tests as well, unless explicitly avoided.
50599         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50600         (func_emit_tests_Makefile_am): New function.
50601         (func_create_testdir): When --with-tests was specified, emit a
50602         tests/ directory.
50603         * MODULES.html.sh (Future developments): Update.
50604
50605 2005-08-24  Bruno Haible  <bruno@clisp.org>
50606
50607         * modules/tls-tests: New file.
50608         * tests/test-tls.c: New file, from GNU gettext.
50609
50610 2005-08-24  Bruno Haible  <bruno@clisp.org>
50611
50612         * modules/lock-tests: New file.
50613         * tests/test-lock.c: New file, from GNU gettext.
50614
50615 2005-08-24  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/lock.h: Add multiple inclusion guard.
50618         * lib/tls.h: Add multiple inclusion guard.
50619
50620 2005-08-24  Bruno Haible  <bruno@clisp.org>
50621
50622         * gnulib-tool: Add support for the --aux-dir option to
50623         --create-testdir, --create-megatestdir, --test, --megatest.
50624         (func_create_testdir, func_create_megatestdir): Optionally emit a
50625         AC_CONFIG_AUX_DIR directive.
50626         (create-testdir, create-megatestdir, test, megatest): Provide a
50627         default value for $auxdir.
50628
50629 2005-08-24  Bruno Haible  <bruno@clisp.org>
50630
50631         * gnulib-tool (import): Use compound statement instead of subshell
50632         where possible.
50633
50634 2005-08-24  Bruno Haible  <bruno@clisp.org>
50635
50636         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50637
50638 2005-08-24  Bruno Haible  <bruno@clisp.org>
50639
50640         * gnulib-tool (func_version): Update.
50641
50642 2005-08-24  Bruno Haible  <bruno@clisp.org>
50643
50644         * gnulib-tool (func_import, func_create_testdir,
50645         func_create_megatestdir): Quote all autoconf macro arguments.
50646
50647 2005-08-24  Bruno Haible  <bruno@clisp.org>
50648
50649         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50650         option --force, because --force causes the aclocal.m4 of each
50651         subdirectory to be newer than the corresponding config.h.in.
50652
50653 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50654
50655         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50656         All contents moved to gl_REGEX.
50657         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50658         assume that it does.
50659
50660 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50661
50662         * lib/regex.h (REG_NOSYS)
50663         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50664         Define, since POSIX requires it as of 2001.
50665         (_REG_ENOSYS)
50666         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50667         New private symbol, used to keep the enum signed in all cases.
50668         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50669         Youngman in
50670         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50671
50672         * lib/regex_internal.c (re_string_skip_chars, register_state):
50673         (calc_state_hash):
50674         Remove forward decls; no longer needed now that we use prototypes.
50675         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50676         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50677         (clean_state_log_if_needed): Likewise.
50678
50679 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50680
50681         * config/srclist.txt: Add glibc bugs 1231-1233.
50682
50683 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50684
50685         Fix problems reported by Sam Steingold in
50686         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50687         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50688         assumed that reg_errcode_t is a signed type, which is not
50689         necessarily true if _XOPEN_SOURCE is not defined.
50690         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50691         since some compilers warn about it otherwise.
50692
50693 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50694
50695         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50696         (init_word_char, create_initial_state, duplicate_node_closure):
50697         (fetch_token, peek_token_bracket, build_range_exp):
50698         (build_collating_symbol): Remove forward decls; no longer needed
50699         now that we use prototypes.
50700
50701         * lib/regcomp.c:
50702         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50703         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50704         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50705         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50706         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50707         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50708         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50709         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50710         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50711         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50712         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50713         (build_charclass, build_charclass_op, fetch_number, create_tree):
50714         (create_token_tree, mark_opt_subexp, duplicate_tree):
50715         Use prototypes rather than old-style definitions.
50716
50717         * lib/regex_internal.c:
50718         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50719         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50720         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50721         (re_string_reconstruct, re_string_peek_byte_case):
50722         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50723         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50724         (re_node_set_init_copy, re_node_set_add_intersect):
50725         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50726         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50727         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50728         (re_acquire_state, re_acquire_state_context, register_state):
50729         (create_ci_newstate, create_cd_newstate, free_state):
50730         Likewise.
50731         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50732         re_search_2):
50733         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50734         (re_search_internal, prune_impossible_nodes):
50735         (acquire_init_state_context, check_matching, static):
50736         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50737         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50738         (update_regs, sift_states_backward, build_sifted_states):
50739         (clean_state_log_if_needed, merge_state_array):
50740         (update_cur_sifted_state, add_epsilon_src_nodes):
50741         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50742         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50743         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50744         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50745         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50746         (check_arrival, check_arrival_add_next_nodes):
50747         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50748         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50749         (check_node_accept_bytes, check_node_accept, extend_buffers):
50750         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50751         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50752         (sift_ctx_init):
50753         Likewise.
50754
50755         * lib/regex_internal.h:
50756         (re_string_allocate, re_string_construct, re_string_reconstruct):
50757         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50758         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50759         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50760         (re_string_context_at, re_string_peek_byte_case):
50761         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50762         is defined, since we now use prototypes always.
50763
50764         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50765         C89 or better.  All uses removed.
50766
50767 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50768
50769         * config/srclist.txt: Add glibc bugs 1220-1227.
50770
50771 2005-08-20  Jim Meyering  <jim@meyering.net>
50772
50773         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50774         of unused local, dfa.
50775
50776 2005-08-20  Bruno Haible  <bruno@clisp.org>
50777
50778         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50779
50780 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50783         (re_node_set_insert_last, re_dfa_add_node):
50784         Rename local variables to avoid GCC shadowing warnings.
50785
50786 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50789         [defined lint]: Suppress bogus uninitialized-variable warnings.
50790
50791         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50792         and let the caller return REG_ESPACE if out of space.  This
50793         removes an uninitialied-variable warning with GCC 4.0.1, and also
50794         avoids taking the address of a local variable.  All callers
50795         changed.
50796
50797 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50798
50799         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50800         $LIBCSRC/posix/regexec.c.
50801         Add glibc bug 1217 for regcomp.c.
50802
50803 2005-08-19  Jim Meyering  <jim@meyering.net>
50804
50805         * lib/regexec.c (proceed_next_node): Redo local variables to
50806         avoid GCC shadowing warnings.
50807
50808 2005-08-18  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/strstr.c (strstr): Fix return value in multibyte case.
50811         * lib/strcasestr.c (strcasestr): Likewise.
50812
50813 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50816
50817 2005-08-17  Jim Meyering  <jim@meyering.net>
50818
50819         Make the %s format (seconds since the epoch) work for a negative
50820         number and when used with a zero-padded field width, e.g. %015s.
50821
50822         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50823         label so that it precedes the code to set `digits'.  Otherwise,
50824         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50825         print `00-22'.  Now, it prints `-0022', as it should.
50826
50827 2005-08-17  Bruno Haible  <bruno@clisp.org>
50828
50829         * modules/strstr (Files): Add m4/mbrtowc.m4.
50830         (Depends-on): Add mbuiter.
50831
50832 2005-08-17  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/strcasestr: New file.
50835         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50836         strcasestr.
50837
50838 2005-08-17  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50841
50842 2005-08-17  Bruno Haible  <bruno@clisp.org>
50843
50844         * modules/mbuiter: New file.
50845         * MODULES.html.sh (Extended multibyte and wide character utilities):
50846         Add mbuiter.
50847
50848 2005-08-17  Bruno Haible  <bruno@clisp.org>
50849
50850         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50851         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50852
50853 2005-08-17  Bruno Haible  <bruno@clisp.org>
50854
50855         * m4/strcasestr.m4: New file.
50856
50857 2005-08-17  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50860         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50861
50862 2005-08-17  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/strcasestr.h: New file.
50865         * lib/strcasestr.c: New file.
50866
50867 2005-08-17  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/strcasecmp.c: Use mbuiter.h.
50870
50871 2005-08-17  Bruno Haible  <bruno@clisp.org>
50872
50873         * lib/mbuiter.h: New file.
50874
50875 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50876
50877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50878         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50879         and gl_GETOPT are both invoked via different paths (as happens
50880         with GNU tar CVS because it uses both argp and getopt), the former
50881         wins.
50882
50883 2005-08-16  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/tls: New file.
50886         * MODULES.html.sh (Multithreading): Add tls.
50887
50888 2005-08-16  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/strnlen1: New file.
50891         * MODULES.html.sh (String handling): Add strnlen1.
50892
50893 2005-08-16  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/strcase (Files): Add m4/mbrtowc.m4.
50896         (Depends-on): Add strnlen1, mbchar.
50897
50898 2005-08-16  Bruno Haible  <bruno@clisp.org>
50899
50900         * modules/mbiter: New file.
50901         * MODULES.html.sh (Extended multibyte and wide character utilities):
50902         Add mbiter.
50903
50904 2005-08-16  Bruno Haible  <bruno@clisp.org>
50905
50906         * modules/mbfile: New file.
50907         * MODULES.html.sh (Extended multibyte and wide character utilities):
50908         Add mbfile.
50909
50910 2005-08-16  Bruno Haible  <bruno@clisp.org>
50911
50912         * modules/mbchar: New file.
50913         * MODULES.html.sh (Extended multibyte and wide character utilities):
50914         New section.
50915
50916 2005-08-16  Bruno Haible  <bruno@clisp.org>
50917
50918         * m4/tls.m4: New file, from GNU gettext.
50919
50920 2005-08-16  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50923         always.
50924         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50925
50926 2005-08-16  Bruno Haible  <bruno@clisp.org>
50927
50928         * m4/mbiter.m4: New file.
50929
50930 2005-08-16  Bruno Haible  <bruno@clisp.org>
50931
50932         * m4/mbfile.m4: New file.
50933
50934 2005-08-16  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/mbchar.m4: New file.
50937
50938 2005-08-16  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/tls.h: New file, from GNU gettext.
50941         * lib/tls.c: New file, from GNU gettext.
50942
50943 2005-08-16  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/strnlen1.h: New file.
50946         * lib/strnlen1.c: New file.
50947
50948 2005-08-16  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50951         (mbi_init): Update.
50952         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50953         NUL byte, not after it.
50954
50955 2005-08-16  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/strcase.h (strcasecmp): Add note in comments.
50958         * lib/strncasecmp.c: Use code from strcasecmp.c.
50959         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50960         (strcasecmp): Work correctly in multibyte locales.
50961
50962 2005-08-16  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/mbiter.h: New file.
50965
50966 2005-08-16  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/mbfile.h: New file.
50969
50970 2005-08-16  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/mbchar.h: New file.
50973         * lib/mbchar.c: New file.
50974
50975 2005-08-16  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50978         the valid ones. Makes the comparison operations transitive:
50979         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50980         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50981
50982 2005-08-15  Simon Josefsson  <jas@extundo.com>
50983
50984         * modules/ssize_t (License): Change to 'unlimited'.
50985
50986         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50987
50988 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50991         Add comments for each pending glibc patch.
50992
50993 2005-08-15  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50996         __cplusplus is defined.
50997
50998 2005-08-14  Jim Meyering  <jim@meyering.net>
50999
51000         Sync from coreutils.
51001
51002         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51003         Use the hash-table-based cycle-detection code not just when
51004         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51005         Reported by James Youngman in
51006         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51007         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51008         FTS_TIGHT_CYCLE_CHECK.
51009         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51010         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51011         once again.
51012         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51013         * lib/fts.c (fd_safer): Remove decl.
51014         Include fcntl--.h rather than unistd-safer.h
51015         (fts_safe_changedir): Don't call fd_safer; no longer needed
51016         now that we include fcntl--.h.
51017
51018 2005-08-12  Simon Josefsson  <jas@extundo.com>
51019
51020         * modules/getndelim2: Use ssize_t module.
51021         * modules/getnline: Likewise.
51022         * modules/safe-read: Likewise.
51023         * modules/xreadlink: Likewise.
51024
51025         * modules/ssize_t: New file.
51026
51027 2005-08-12  Simon Josefsson  <jas@extundo.com>
51028
51029         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51030
51031 2005-08-12  Simon Josefsson  <jas@extundo.com>
51032
51033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51034         ssize_t.
51035
51036 2005-08-12  Simon Josefsson  <jas@extundo.com>
51037
51038         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51039         readline, getdelim and check_version.
51040         (Support for systems lacking ISO C 99: Sizes of integer types):
51041         Add size_max.
51042
51043 2005-08-12  Bruno Haible  <bruno@clisp.org>
51044
51045         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51046
51047 2005-08-11  Simon Josefsson  <jas@extundo.com>
51048
51049         * modules/readline: New file.
51050
51051         * modules/strnlen (Files): Add strnlen.h.
51052
51053 2005-08-11  Simon Josefsson  <jas@extundo.com>
51054
51055         * m4/readline.m4: New file.
51056
51057 2005-08-11  Simon Josefsson  <jas@extundo.com>
51058
51059         * lib/readline.h, readline.c: New file.
51060
51061 2005-08-11  Simon Josefsson  <jas@extundo.com>
51062
51063         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51064         gl_AVOID.
51065
51066 2005-08-11  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51069
51070 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51071
51072         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51073
51074 2005-08-10  Simon Josefsson  <jas@extundo.com>
51075
51076         * tests/test-iconvme.c: New file.
51077
51078 2005-08-10  Simon Josefsson  <jas@extundo.com>
51079
51080         * m4/strnlen.m4: New file.
51081
51082         * m4/strndup.m4: Don't check for strnlen declaration, done in
51083         strnlen.m4.
51084
51085 2005-08-10  Simon Josefsson  <jas@extundo.com>
51086
51087         * lib/strndup.c: Use strnlen.h.
51088
51089         * lib/strnlen.h: New file.
51090
51091 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51092
51093         * README: Typos.
51094
51095 2005-08-02  Simon Josefsson  <jas@extundo.com>
51096
51097         * modules/readline: New file.
51098
51099 2005-08-02  Simon Josefsson  <jas@extundo.com>
51100
51101         * modules/getdelim: New file.
51102
51103         * modules/getline: Rewrite, don't use getndelim2.
51104
51105 2005-08-02  Simon Josefsson  <jas@extundo.com>
51106
51107         * m4/getline.m4: Separate out getdelim stuff into separate module.
51108
51109         * m4/getdelim.m4: New file.
51110
51111 2005-08-02  Simon Josefsson  <jas@extundo.com>
51112
51113         * lib/getline.h, getline.c: Rewrite.
51114
51115         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51116
51117 2005-07-31  Bruno Haible  <bruno@clisp.org>
51118
51119         * lib/lock.h (gl_lock_initializer): New macro.
51120         (gl_lock_define_initialized): Use it.
51121         (gl_rwlock_initializer): New macro.
51122         (gl_rwlock_define_initialized): Use it.
51123         (gl_recursive_lock_initializer): New macro.
51124         (gl_recursive_lock_define_initialized): Use it.
51125
51126 2005-07-30  Karl Berry  <karl@gnu.org>
51127
51128         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51129         Report from Ben Pfaff, regarding getopt.
51130
51131 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51134         normal way.
51135         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51136         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51137         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51138         (gl_GETOPT): Use the new macros.  Most of the implementation
51139         is moved to the new macros.  This is for programs like Emacs
51140         that don't want all the functionality of gl_GETOPT.
51141
51142 2005-07-26  Bruno Haible  <bruno@clisp.org>
51143
51144         * m4/lock.m4: Update from GNU gettext.
51145
51146 2005-07-26  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/lock.h: Update from GNU gettext.
51149         * lib/lock.c: Update from GNU gettext.
51150
51151 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51152
51153         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51154         obsolescent AC_TRY_RUN.  Include the default includes files, for
51155         'exit'.
51156
51157 2005-07-24  Bruno Haible  <bruno@clisp.org>
51158
51159         * modules/visibility: New file.
51160         * MODULES.html.sh (Misc): Add visibility.
51161
51162 2005-07-24  Bruno Haible  <bruno@clisp.org>
51163
51164         * m4/visibility.m4: New file.
51165
51166 2005-07-24  Bruno Haible  <bruno@clisp.org>
51167
51168         * doc/visibility.texi: New file.
51169
51170 2005-07-22  Bruno Haible  <bruno@clisp.org>
51171
51172         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51173         $(ALLOCA_H), redundant through BUILT_SOURCES.
51174         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51175         redundant through BUILT_SOURCES.
51176         * modules/byteswap (Makefile.am): Remove explicit dependency on
51177         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51178         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51179         $(FNMATCH_H), redundant through BUILT_SOURCES.
51180         * modules/getopt (Makefile.am): Remove explicit dependency on
51181         $(GETOPT_H), redundant through BUILT_SOURCES.
51182         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51183         redundant through BUILT_SOURCES.
51184         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51185         redundant through BUILT_SOURCES.
51186         * modules/stdbool (Makefile.am): Remove explicit dependency on
51187         $(STDBOOL_H), redundant through BUILT_SOURCES.
51188         * modules/stdint (Makefile.am): Remove explicit dependency on
51189         $(STDINT_H), redundant through BUILT_SOURCES.
51190         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51191         Remove explicit dependency on $(SYSEXITS_H).
51192         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51193
51194 2005-07-18  Simon Josefsson  <jas@extundo.com>
51195
51196         * lib/check-version.c (check_version): Accept identical versions too.
51197
51198 2005-07-18  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/lock: New file.
51201         * MODULES.html.sh (Multithreading): New section.
51202
51203 2005-07-18  Bruno Haible  <bruno@clisp.org>
51204
51205         * m4/lock.m4: New file, from GNU gettext.
51206
51207 2005-07-18  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/lock.h: New file, from GNU gettext.
51210         * lib/lock.c: New file, from GNU gettext.
51211
51212 2005-07-18  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/lock.h (gl_once_t): New type.
51215         (gl_once_define, gl_once): New macros.
51216         * lib/lock.c (fresh_once): New variable.
51217         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51218         functions.
51219
51220 2005-07-16  Simon Josefsson  <jas@extundo.com>
51221
51222         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51223         workaround, suggested by Bruno.
51224
51225 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51226
51227         * modules/xalloc (Depends-on): Add xalloc-die.
51228         * modules/xvasprintf (Depends-on): Add xalloc-die.
51229
51230 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51233         with a minor change.
51234
51235 2005-07-15  Bruno Haible  <bruno@clisp.org>
51236
51237         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51238         When using lib/poll.c, define poll as rpl_poll.
51239
51240 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51241
51242         * modules/argp (Depends-on): Remove unlocked-io.
51243
51244 2005-07-14  Derek Price  <derek@ximbiot.com>
51245
51246         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51247         for glob symlink bug.
51248
51249 2005-07-14  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51252         Instead, test for *_unlocked function declarations directly.
51253
51254 2005-07-11  Simon Josefsson  <jas@extundo.com>
51255
51256         * modules/size_max: New file.
51257
51258         * modules/xsize: Depend on size_max module for size_max.m4.
51259
51260 2005-07-11  Simon Josefsson  <jas@extundo.com>
51261
51262         * lib/size_max.h: New file.
51263
51264 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51267         copyright symbol and the year.
51268         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51269         (version_etc_va): Use parameterized copyright notice.
51270         Reword to conform to the current GNU coding standards.
51271
51272 2005-07-11  Karl Berry  <karl@gnu.org>
51273
51274         * doc/gnulib.texi (Quoting): new node.
51275         (Initial import): more info, from Patrice.
51276
51277 2005-07-11  Bruno Haible  <bruno@clisp.org>
51278
51279         * gnulib-tool (func_usage): Document option --avoid.
51280         (Command line options): Handle --avoid.
51281         (func_acceptable): New function.
51282         (func_modules_transitive_closure): Use it.
51283
51284 2005-07-11  Bruno Haible  <bruno@clisp.org>
51285
51286         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51287         Reported by Jim Meyering.
51288
51289 2005-07-10  Bruno Haible  <bruno@clisp.org>
51290
51291         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51292         Needed when size_t is smaller than 'unsigned int'.
51293         Reported by Paul Eggert.
51294
51295 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51296
51297         * modules/argp (Depends-on): Add unlocked-io
51298
51299 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51300
51301         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51302         block of defines.
51303
51304 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51307         fix now.
51308
51309 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51310         and Paul Eggert  <eggert@cs.ucla.edu>
51311
51312         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51313         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51314
51315 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         * modules/regex (Files): Add lib/regex_internal.c,
51318         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51319         (Depends-on): Add extensions.
51320         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51321
51322 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51323
51324         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51325         pathconf.
51326         * m4/same.m4 (gl_SAME): Likewise.
51327         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51328
51329         * m4/regex.m4: Adjust to new libc regex implementation.
51330         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51331         all the .c and .h parts of (the new) regex.
51332         Quote the m4 stuff better.
51333         Check for RE_ICASE bug of old gnulib.
51334         Check for REG_STARTEND of recent libc.
51335         Rename local variables from jm_* to gl_*.
51336         Quote operand of "test -f".
51337         Say "recent enough" version of libc, not "version 2".
51338         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51339         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51340         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51341         Remove check for btowc, isascii.
51342         Require AM_LANGINFO_CODESET.
51343
51344 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         * lib/regex.c, regex.h: Sync from libc.
51347         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51348         * lib/regexec.c:
51349         New files, synced from libc, except that regex_internal.h
51350         currently has a small porting fix.
51351
51352 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51355         regex_internal.c, regexec.c.
51356         Add regex_internal.h too, but as a comment, since the libc version
51357         is currently broken in gnulib mode.
51358
51359 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51360
51361         Support programs like Emacs that use gnulib but not gettext.
51362         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51363         * modules/gettext-h: New file.
51364         * modules/gettext (Files): Remove lib/gettext.h.
51365         (Depends-on): Add gettext-h.
51366         (Makefile.am): Remove lib_SOURCES.
51367         * modules/argmatch, modules/c-stack, modules/closeout:
51368         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51369         * modules/execute, modules/file-type, modules/getaddrinfo:
51370         * modules/getopt, modules/human, modules/javacomp:
51371         * modules/javaexec, modules/mkdir-p, modules/obstack:
51372         * modules/openat, modules/pagealign_alloc, modules/pipe:
51373         * modules/quotearg, modules/regex, modules/rpmatch:
51374         * modules/unicodeio, modules/userspec, modules/version-etc:
51375         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51376         * modules/xsetenv:
51377         Depend on gettext-h, not gettext.
51378
51379 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51380
51381         * gnulib-tool (func_import): Add support for 'public domain' license.
51382         * modules/alloca, modules/atexit, modules/memmove:
51383         Now public domain, not GPL.
51384         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51385         * modules/realloc, modules/strerror, modules/strtod:
51386         Now LGPL, not GPL.
51387
51388 2005-07-05  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51391         autoconf CVS. Needed for mingw.
51392
51393 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51394
51395         Remove the dependency of the strftime module on the tzset module.
51396         * modules/strftime (Depends-on): Remove dependency on tzset.
51397
51398 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         Remove the dependency of the strftime module on the tzset module.
51401         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51402         gl_FUNC_TZSET_CLOBBER.
51403
51404 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         Remove the dependency of the strftime module on the tzset module.
51407         * lib/strftime.c (my_strftime)
51408         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51409         Copy the input structure, to work around some of the bug with
51410         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51411         Solaris releases, you should also use the tzset module, but we won't
51412         require it as a dependency any more since we don't want LGPLed code
51413         to depend on GPLed code.
51414
51415 2005-07-02  Jim Meyering  <jim@meyering.net>
51416
51417         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51418         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51419         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51420         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51421
51422 2005-07-02  Jim Meyering  <jim@meyering.net>
51423
51424         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51425
51426 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51427
51428         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51429         declares only 'struct timespec;' (!).
51430
51431 2005-07-01  Jim Meyering  <jim@meyering.net>
51432
51433         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51434         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51435         * lib/save-cwd.c, tempname.c:
51436         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51437         and don't include <sys/file.h>).
51438
51439 2005-06-29  Jim Meyering  <jim@meyering.net>
51440
51441         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51442         type name.  Use the variable name instead.
51443         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51444         Likewise.
51445
51446 2005-06-28  Simon Josefsson  <jas@extundo.com>
51447
51448         * modules/check-version (Files): Add check-version.m4.
51449
51450 2005-06-28  Simon Josefsson  <jas@extundo.com>
51451
51452         * m4/check-version.m4: New file, suggested by Jim Meyering
51453         <jim@meyering.net>.
51454
51455 2005-06-28  Simon Josefsson  <jas@extundo.com>
51456
51457         * lib/check-version.h, lib/check-version.c: New files.
51458
51459 2005-06-28  Simon Josefsson  <jas@extundo.com>
51460
51461         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51462         collision with global variable.  Better indentation.  Don't
51463         increment buffer pointer beyond buffer end.  Based on comments
51464         from Paul Eggert <eggert@cs.ucla.edu>.
51465
51466         * lib/base64.h: Indent.
51467
51468 2005-06-28  Simon Josefsson  <jas@extundo.com>
51469
51470         * doc/gnulib.texi (Library version handling): New section.
51471
51472 2005-06-28  Jim Meyering  <jim@meyering.net>
51473
51474         * check-module (find_included_lib_files): Hard-code another
51475         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51476         but modules/fts-lgpl (correctly) does not list those files.
51477
51478         * modules/canonicalize (Files): Add lib/pathmax.h.
51479
51480 2005-06-25  Simon Josefsson  <jas@extundo.com>
51481
51482         * modules/check-version: New file.
51483
51484 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51487         initializer of struct addrinfo, as an indication that we don't
51488         care how many members the structure has.
51489
51490 2005-06-24  Derek Price  <derek@ximbiot.com>
51491         and Bruno Haible  <bruno@clisp.org>
51492
51493         Remove stat module & update lstat.
51494         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51495         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51496         * m4/stat.m4: Remove this file.
51497
51498 2005-06-24  Derek Price  <derek@ximbiot.com>
51499         and Bruno Haible  <bruno@clisp.org>
51500
51501         Remove stat module & update lstat.
51502         * lib/stat.c: Remove this file...
51503         (slash_aware_lstat): ...moving this content and its support...
51504         * lib/lstat.c (rpl_lstat): ...into here.
51505         * lib/lstat.h: New file.
51506
51507 2005-06-24  Derek Price  <derek@ximbiot.com>
51508         and Bruno Haible  <bruno@clisp.org>
51509
51510         Remove stat module & update lstat.
51511         * config/srclist.txt (libc sources): Remove stat.
51512
51513 2005-06-24  Derek Price  <derek@ximbiot.com>
51514         and Bruno Haible  <bruno@clisp.org>
51515
51516         Remove stat module & update lstat.
51517         * MODULES.html.sh (stat): Remove.
51518         * MODULES.html: Regenerated.
51519         * modules/lstat (Description): Correct function name.
51520         (Files): Add "lstat.h".
51521         (Depends-on): Remove stat, add xalloc, stat-macros.
51522         * modules/stat: Remove this file.
51523         (Include): Add "lstat.h", remove <sys/stat.h>.
51524
51525 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51526
51527         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51528         (ranged_convert): Don't save conversion in a temporary struct.
51529         This causes a warning with GCC 4.0.0, and anyway in the typical
51530         case it's not worth the extra 100 bytes or so of code.
51531         (ranged_convert, __mktime_internal): When calling a function via a
51532         pointer P, use P () rather than (*P) (), as we now assume C89 or
51533         better.
51534
51535 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51538         "who -r" failed to give output.  Problem reported by Tim Waugh.
51539
51540         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51541         (xcalloc): Use it to avoid needless tests.
51542         Problem reported by Jim Meyering.
51543
51544 2005-06-20  Derek Price  <derek@ximbiot.com>
51545
51546         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51547         unnecessary for Autoconfs > 2.59c.
51548
51549 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51550
51551         * lib/argp.h (__option_is_short): Check upper limit of
51552         __key. Isprint() requires its argument to have the value
51553         of an unsigned char or EOF.
51554
51555 2005-06-16  Jim Meyering  <jim@meyering.net>
51556
51557         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51558         when either N or S is zero.
51559
51560 2005-06-16  Derek Price  <derek@ximbiot.com>
51561
51562         * m4/bison.m4: Declare YACC & YFLAGS precious.
51563
51564 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51565
51566         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51567         multibyte string or pattern, fall back on unibyte matching.
51568         Problem reported by James Youngman.
51569
51570 2005-06-08  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/csharpcomp: New file.
51573         * MODULES.html.sh (C#): Add csharpcomp.
51574
51575 2005-06-08  Bruno Haible  <bruno@clisp.org>
51576
51577         * m4/csharpcomp.m4: New file, from GNU gettext.
51578
51579 2005-06-08  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/csharpcomp.h: New file, from GNU gettext.
51582         * lib/csharpcomp.c: New file, from GNU gettext.
51583         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51584
51585 2005-06-08  Bruno Haible  <bruno@clisp.org>
51586
51587         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51588         warning on mingw.
51589
51590 2005-06-07  Derek Price  <derek@ximbiot.com>
51591
51592         Sync from CVS.
51593         * lib/glob_.h: Indent nested #ifdef.
51594
51595 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51596
51597         Sync from coreutils.
51598         Use "file name" when talking about file names, instead of "filename"
51599         or "path", as per the GNU coding standards.
51600         * lib/mkdir-p.c: Renamed from makepath.c.
51601         (make_dir_parents): Renamed from make_path.  All callers changed.
51602         * lib/mkdir-p.h: Likewise.  All includers changed.
51603         * lib/filenamecat.c: Renamed from path-concat.c.
51604         (file_name_concat): Renamed from path_concat.  All callers changed.
51605         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51606         * lib/filenamecat.h: Likewise.  All includers changed.
51607         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51608         in comments or local variable names.
51609         * lib/basename.c: Likewise.
51610         * lib/canonicalize.c, canonicalize.h: Likewise.
51611         * lib/dirname.c, dirname.h: Likewise.
51612         * lib/euidaccess.c: Likewise.
51613         * lib/exclude.c: Likewise
51614         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51615         * lib/fsusage.c, fsuage.h: Likewise.
51616         * lib/fts.c, fts_.h: Likewise.
51617         * lib/getcwd.c: Likewise.
51618         * lib/getloadavg.c: Likewise.
51619         * lib/mkstemp.c: Likewise.
51620         * lib/mountlist.c, mountlist.h: Likewise.
51621         * lib/openat.c, openat.h: Likewise.
51622         * lib/readlink-stub.c: Likewise.
51623         * lib/readutmp.c, readutmp.h: Likewise.
51624         * lib/rename.c: Likewise.
51625         * lib/rmdir.c: Likewise.
51626         * lib/same.c: Likewise.
51627         * lib/savedir.c: Likewise.
51628         * lib/stripslash.c: Likewise.
51629         * lib/tempname.c: Likewise.
51630         * lib/xreadlink.c: Likewise.
51631         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51632         All uses changed.
51633         * lib/exclude.h: Likewise.
51634
51635         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51636         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51637         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51638         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51639         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51640         files have been getting away with it for years (MORE/BSD 4.3
51641         is extinct now).
51642         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51643         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51644
51645         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51646         Define to 256, not 255, as per modern POSIX.
51647
51648 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         Sync from coreutils.
51651         Use "file name" when talking about file names, instead of "filename"
51652         or "path", as per the GNU coding standards.
51653         * MODULES.html.sh: mkdir-p renamed from makepath.
51654         filenamecat renamed from path-concat.
51655         * modules/filenamecat: Renamed from modules/path-concat.
51656         (Files): filenamecat.h and filenamecat.c renamed from
51657         path-concat.h and path-concat.c.
51658         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51659         (Include): filenamecat.h, not path-concat.h.
51660         * modules/mkdir-p: Renamed from modules/makepath.
51661         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51662         makepath.c.
51663         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51664         (Include): mkdir-p.h, not makepath.h.
51665
51666 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51667
51668         Sync from coreutils.
51669         * m4/mkdir-p.m4: Renamed from makepath.m4.
51670         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51671         Rename files from makepath.c to mkdir-p.c, and from
51672         makepath.h to mkdir-p.h.
51673         * m4/filenamecat.m4: Renamed from path-concat.m4.
51674         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51675         Rename files from path-concat.c to filenamecat.c,
51676         and from path-concat.h to filenamecat.h.
51677         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51678         "file name" in local variables or comments.
51679         * m4/rename.m4: Likewise.
51680
51681 2005-06-01  Bruno Haible  <bruno@clisp.org>
51682
51683         * modules/csharpexec: New file.
51684         * MODULES.html.sh (C#): New section.
51685
51686 2005-06-01  Bruno Haible  <bruno@clisp.org>
51687
51688         * m4/csharp.m4: New file, from GNU gettext.
51689         * m4/csharpexec.m4: New file, from GNU gettext.
51690
51691 2005-06-01  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/csharpexec.h: New file, from GNU gettext.
51694         * lib/csharpexec.c: New file, from GNU gettext.
51695         * lib/csharpexec.sh.in: New file, from GNU gettext.
51696
51697 2005-05-31  Derek Price  <derek@ximbiot.com>
51698             Paul Eggert  <eggert@cs.ucla.edu>
51699
51700         Sync from cvs.
51701         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51702
51703 2005-05-31  Derek Price  <derek@ximbiot.com>
51704             Paul Eggert  <eggert@cs.ucla.edu>
51705
51706         Sync from cvs.
51707         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51708
51709 2005-05-29  Derek Price  <derek@ximbiot.com>
51710
51711         * config/srclist.txt (glob_.h, glob.c): Add these files.
51712
51713 2005-05-29  Derek Price  <derek@ximbiot.com>
51714
51715         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51716         * modules/glob: New file.
51717         * modules/getlogin_r: Add link to POSIX spec in description.
51718
51719 2005-05-29  Derek Price  <derek@ximbiot.com>
51720             Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         * m4/glob.m4: New file.
51723
51724 2005-05-29  Derek Price  <derek@ximbiot.com>
51725             Paul Eggert  <eggert@cs.ucla.edu>
51726
51727         * lib/glob_.h, lib/glob.c: New files.
51728
51729 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51730
51731         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51732         * modules/fts-lgpl (Depends-on): Remove gettext.
51733
51734 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51735
51736         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51737         and don't require gt_INTTYPES_PRI.
51738
51739 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51740
51741         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51742
51743         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51744         the configuration hassle isn't worth it.
51745         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51746         (LONGEST_MODIFIER, PRIuMAX): Remove.
51747
51748 2005-05-27  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51751
51752 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51755         _POSIX_PTHREAD_SEMANTICS for Solaris.
51756
51757 2005-05-25  Derek Price  <derek@ximbiot.com>
51758
51759         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51760
51761 2005-05-25  Derek Price  <derek@ximbiot.com>
51762             Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51765         * lib/getlogin_r.c, getlogin_r.h: New files.
51766
51767 2005-05-25  Bruno Haible  <bruno@clisp.org>
51768             Derek Price  <derek@ximbiot.com>
51769
51770         * lib/getlogin_r.h: Simplify API documentation.
51771
51772 2005-05-23  Derek Price  <derek@ximbiot.com>
51773
51774         * modules/minmax (Files): Add m4/minmax.m4.
51775         (configure.ac): Add gl_MINMAX.
51776
51777 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51780         so that unistd-safer.h (GPL'ed code) need not be included.
51781
51782 2005-05-22  Bruno Haible  <bruno@clisp.org>
51783
51784         * m4/minmax.m4: New file.
51785         Based on a patch by Derek Price <derek@ximbiot.com>.
51786
51787 2005-05-22  Bruno Haible  <bruno@clisp.org>
51788
51789         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51790         (INT64_MIN): Fix definition.
51791         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51792
51793         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51794         NEED_SIGNED_INT_TYPES.
51795
51796         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51797         HAVE_SYSTEM_INTTYPES.
51798
51799 2005-05-22  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51802         Also include <sys/param.h> if it defines MIN, MAX.
51803         Based on a patch by Derek Price <derek@ximbiot.com>.
51804
51805 2005-05-21  Jim Meyering  <jim@meyering.net>
51806
51807         * modules/fts (Files): Add m4/inttypes-pri.m4.
51808         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51809
51810 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         New fts module.
51813         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51814         (setup_dir, free_dir): New functions.
51815         (enter_dir, leave_dir): Define trivial
51816         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51817         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51818         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51819         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51820         Move to fts-cycle.c.
51821         (fts_open): Use setup_dir.
51822         (fts_close): Use free_dir.
51823         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51824         This adds a label and some gotos, but the alternatives were messier.
51825         Check for memory allocation failure when entering a dir.
51826         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51827         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51828         (FTS): New member fts_cycle, that is a union that contains the
51829         old active_dir_ht and cycle_state.  All uses changed to mention
51830         fts_cycle.ht and fts_cycle.state.
51831         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51832         fts.c, with the following changes:
51833         (setup_dir, free_dir): New functions.
51834         (enter_dir): Now returns bool.  Return true if successful, false
51835         if memory exhausted.  All callers changed.
51836         Do not bother partly cleaning up on
51837         memory allocation failure; that is free_dir's job.
51838         However, free ad if hash_insert fails, to avoid memory leak.
51839         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51840         fts->fts_options to see which union member to use.
51841
51842 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51843
51844         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51845         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51846
51847 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51850
51851 2005-05-20  Jim Meyering  <jim@meyering.net>
51852
51853         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51854         Now a macro, to pacify GCC.
51855
51856 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51857
51858         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51859         of -1.
51860
51861 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51862
51863         * lib/chown.c (rpl_chown): Return -1 on failure.
51864
51865 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51866
51867         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51868         Don't check for stddef.h.
51869         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51870         don't use its results.
51871         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51872         since we include them unconditionally.  Don't require
51873         AM_STDBOOL_H, since stdbool is a prerequisite.
51874         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51875         since we assume C89 or better.
51876         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51877         as we don't use their results.
51878         Don't check for fchdir, memmove, memset, strrchr, as we use
51879         them unconditionally.
51880         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51881         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51882
51883 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51884
51885         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51886         Include <stddef.h> unconditionally, since we assume C89 now.
51887         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51888         * lib/fts.c: Include fts_.h first, to check interface.
51889         Do not include intprops.h; no longer needed.
51890         Include cycle-check.h and hash.h, since fts_.h no longer does.
51891         Remove unnecessary casts of closedir to void.
51892         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51893         decide whether to decrement nlinks.
51894         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51895         (FTS): Use struct hash_table * instead of Hash_table, so that
51896         we no longer need to include hash.h here.
51897
51898 2005-05-18  Jim Meyering  <jim@meyering.net>
51899
51900         * modules/dirfd (License): Change to LGPL.  Most of the code
51901         is already in the public domain.
51902
51903 2005-05-18  Jim Meyering  <jim@meyering.net>
51904
51905         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51906         Reported by Yoann Vandoorselaere.
51907
51908 2005-05-17  Jim Meyering  <jim@meyering.net>
51909
51910         * m4/fts.m4: New file, from coreutils.
51911
51912 2005-05-17  Jim Meyering  <jim@meyering.net>
51913
51914         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51915
51916 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         Sync from coreutils.
51919         * m4/unlinkdir.m4: New file.
51920
51921 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51922
51923         Sync from coreutils.
51924         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51925         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51926         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51927         White space changes only.
51928         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51929         special.
51930         * lib/yesno.c: Include getline.h, not ctype.h.
51931         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51932         Use getline to remove arbitrary restriction on response length.
51933
51934 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51935
51936         * config/srclist-update: Spell out "Street" in FSF postal
51937         mail address; this is the style the FSF seems to prefer.
51938
51939         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51940         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51941         this updates FSF postal mail address.
51942
51943         Sync from coreutils.
51944         * modules/unlinkdir: New file.
51945         * modules/yesno (Depends-on): Add getline.
51946         * MODULES.html.sh (File system functions): Add unlinkdir.
51947
51948 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51949
51950         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51951         lib/strsep.h:
51952         Change the initial comment to refer to GPL, not LGPL.
51953         gnulib-tool will change it to LGPL as needed.
51954
51955         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51956         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51957         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51958         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51959         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51960         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51961         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51962         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51963         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51964         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51965         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51966         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51967         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51968         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51969         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51970         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51971         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51972         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51973         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51974         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51975         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51976         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51977         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51978         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51979         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51980         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51981         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51982         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51983         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51984         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51985         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51986         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51987         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51988         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51989         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51990         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51991         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51992         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51993         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51994         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51995         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51996         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51997         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51998         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51999         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52000         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52001         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52002         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52003         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52004         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52005         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52006         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52007         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52008         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52009         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52010         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52011         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52012         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52013         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52014         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52015         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52016         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52017         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52018         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52019         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52020         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52021         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52022         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52023         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52024         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52025         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52026         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52027         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52028         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52029         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52030         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52031         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52032         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52033         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52034         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52035         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52036         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52037         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52038         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52039         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52040         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52041         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52042         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52043         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52044         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52045         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52046         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52047         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52048         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52049         lib/yesno.c, lib/yesno.h:
52050         Update FSF postal mail address.
52051
52052 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52055         tests/test-memmem.c, tests/test-stpncpy.c:
52056         Update FSF postal mail address.
52057
52058 2005-05-13  Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52061         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52062         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52063         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52064         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52065         Add support for 64-bit integers in the MSVC compiler.
52066
52067 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52068
52069         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52070
52071 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52072
52073         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52074
52075 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52076
52077         * doc/getdate.texi (General date syntax): Don't say that date
52078         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52079         Problem reported by Nic Ferrier.
52080
52081 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52082
52083         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52084         specified in ai_socktype. Fix invalid ai_protocol
52085         check. ai_protocol is usually set to 0 or depending on
52086         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52087         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52088         ai_socktype / ai_protocol in the returned addrinfo structure.
52089
52090 2005-05-10  Simon Josefsson  <jas@extundo.com>
52091
52092         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52093         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52094
52095 2005-05-10  Karl Berry  <karl@gnu.org>
52096
52097         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52098         (from http://www.gnu.org/licenses).
52099         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52100         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52101         fdl.texi suffices.
52102
52103 2005-05-10  Karl Berry  <karl@gnu.org>
52104
52105         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52106         (COPYING.DOC): remove.
52107
52108         * config/srclist-update: new FSF address.
52109
52110 2005-05-10  Derek Price  <derek@ximbiot.com>
52111
52112         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52113         possible.
52114
52115 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52116             Bruno Haible  <bruno@clisp.org>
52117
52118         * modules/inet_ntop: New file.
52119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52120         inet_ntop.
52121
52122 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52123             Bruno Haible  <bruno@clisp.org>
52124
52125         * m4/inet_ntop.m4: New file.
52126
52127 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52128             Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/inet_ntop.h: New file.
52131         * lib/inet_ntop.c: New file, from glibc with modifications.
52132
52133 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         * modules/time_r (License): Change to LGPL.
52136         * modules/extensions (License): Change to LGPL.  Actually,
52137         the license is more permissive than that, but currently gnulib-tool
52138         doesn't know how to handle more-permissive licenses.
52139
52140         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52141         Problem reported by Dave Love.
52142
52143 2005-05-08  Jim Meyering  <jim@meyering.net>
52144
52145         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52146         blank.
52147
52148 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * modules/argmatch (Depends-on): Add stdbool.
52151         * modules/backupfile (Depends-on): Likewise.
52152         * modules/chdir-long (Depends-on): Likewise.
52153         * modules/closeout (Depends-on): Likewise.
52154         * modules/cycle-check (Depends-on): Likewise.
52155         * modules/dirname (Depends-on): Likewise.
52156         * modules/fnmatch (Depends-on): Likewise.
52157         * modules/fsusage (Depends-on): Likewise.
52158         * modules/fwriteerror (Depends-on): Likewise.
52159         * modules/getcwd (Depends-on): Likewise.
52160         * modules/getloadavg (Depends-on): Likewise.
52161         * modules/hard-locale (Depends-on): Likewise.
52162         * modules/makepath (Depends-on): Likewise.
52163         * modules/mountlist (Depends-on): Likewise.
52164         * modules/nanosleep (Depends-on): Likewise.
52165         * modules/posixtm (Depends-on): Likewise.
52166         * modules/quotearg (Depends-on): Likewise.
52167         * modules/readtokens (Depends-on): Likewise.
52168         * modules/readtokens0 (Depends-on): Likewise.
52169         * modules/readutmp (Depends-on): Likewise.
52170         * modules/save-cwd (Depends-on): Likewise.
52171         * modules/strftime (Depends-on): Likewise.
52172         * modules/userspec (Depends-on): Likewise.
52173         * modules/utimecmp (Depends-on): Likewise.
52174         * modules/xgetcwd (Depends-on): Likewise.
52175         * modules/xnanosleep (Depends-on): Likewise.
52176         * modules/xstrtod (Depends-on): Likewise.
52177         * modules/yesno (Depends-on): Likewise.
52178
52179 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52180
52181         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52182         needless checks.
52183
52184 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52185
52186         Merge from coreutils.  Among other things,
52187         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52188         * lib/fd-safer.c: New file.
52189         * lib/fcntl-safer.h, open-safer.c: Remove.
52190         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52191         * lib/dup-safer.c: Include unistd-safer.h first.
52192         Don't include errno.h.
52193         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52194         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52195         * lib/file-type.c: Rely on file-type.h change.
52196         * lib/getloadavg.c: Include unistd-safer.h.
52197         (getloadavg): Use safer open.
52198         * lib/getusershell.c: Include "stdio-safer.h".
52199         (getusershell): Use safer fopen.
52200         * lib/long-options.c (long_options): Use NULL rather than 0.
52201         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52202         'free'.
52203         * lib/modechange.c: Likewise.
52204         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52205         (MODE_DONE): New constant.
52206         (struct mode_change): Remove 'next' member.
52207         (make_node_op_equals): New function; like the old one of the
52208         same name, except it allocates an array.
52209         (mode_compile, mode_create_from_ref): Use it.
52210         (mode_compile): Allocate result as an array, not a linked list.
52211         Parse octal string ourself, so that we catch mistakes like "+0".
52212         (mode_adjust): Arg is an array, not a linked list.
52213         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52214         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52215         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52216         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52217         Remove.  This is now stat-macros.h's job.
52218         (talloc): Remove.  All callers replaced by xalloc, so that
52219         our invokers don't have to worry about reporting memory failures.
52220         (make_node_op_equals): Remove.
52221         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52222         New constants.
52223         (struct mode_change): Moved here from modechange.h.
52224         (mode_append_entry): Remove.
52225         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52226         apps to have incorrect behavior.  Use simpler algorithm for head
52227         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52228         Detect more invalid usages rather than having somewhat-random behavior.
52229         Don't insert an "a=" action, as that leads to incorrect behavior.
52230         (mode_compile, mode_create_from_ref): Return NULL on error instead
52231         of an enum, since now there's only one way to have an error.  All
52232         callers changed.
52233         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52234         at the correct time.  Simplify calculation of "+u" and its ilk.
52235         Don't mishandle "+X".
52236         (mode_free): Remove "register" and localize decls.
52237         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52238         (struct mode_change): Move to modechange.c; callers don't
52239         need to see this stuff.
52240         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52241         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52242         (mode_change, mode_adjust): Reflect the new signatures noted above.
52243         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52244         that might redefine system include files.
52245         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52246         (my_usleep): Use NULL rather than (void *) 0.
52247         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52248         Use siginterrupt to specify that system calls should be interrupted.
52249         (rpl_nanosleep): Move initialization of suspended closer to call of
52250         my_usleep.
52251         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52252         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52253         (desirable_utmp_entry): New function.
52254         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52255         using x2nrealloc, to simplify logic.
52256         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52257         size calculation.  Do not assume utmp file is a regular file.
52258         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52259         (READ_UTMP_CHECK_PIDS): New constant.
52260         * lib/save-cwd.c: Include unistd-safer.h.
52261         (save_cwd): Use fd_safer.
52262         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52263         [!_LIBC] Include "stat-macros.h" instead.
52264         * lib/unistd-safer.h (fd_safer): New decl.
52265
52266 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * modules/getloadavg (Depends-on): Add unistd-safer.
52269         * modules/getusershell (Depends-on): Add stdio-safer.
52270         * modules/lstat (Depends-on): Remove xalloc.
52271         * modules/mkstemp (Depends-on): Add stat-macros.
52272         * modules/modechange (Depends-on): Remove xstrtol.
52273         Add stat-macros, xalloc.
52274         * modules/save-cwd (Depends-on): Add unistd-safer.
52275         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52276         * modules/unistd-safer (Files): Add lib/fd-safer.c
52277         (Makefile.am): Remove lib_SOURCES.
52278
52279         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52280         Remove fcntl-safer; unistd-safer supersedes it.
52281
52282 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52285         AC_HEADER_STAT.
52286         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52287         (gl_PREREQ_CHOWN): Remove.
52288         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52289         it.  Don't require AC_HEADER_STAT.
52290         (gl_PREREQ_LSTAT): Remove.
52291         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52292         Don't require AC_HEADER_STAT.
52293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52294         (gl_PREREQ_RMDIR): Remove.
52295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52296         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52297         the stat-macros module a prerequisite.
52298         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52299         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52300         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52301         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52302         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52303         variable names.
52304         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52305         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52306         variable prefixes.
52307         * m4/fcntl-safer.m4: Remove.
52308         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52309         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52310         Invoke gl_PREREQ_FD_SAFER.
52311         (gl_PREREQ_FD_SAFER): New macro.
52312         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52313         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52314         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52315         Remove duplicate call to AC_LIBOBJ(readutmp).
52316         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52317
52318         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52319         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52320
52321 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * MODULES.html.sh (Misc): Add byteswap.
52324
52325 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52326
52327         * modules/getcwd (Depends-on): Add extensions.
52328         * modules/openat (Depends-on): Likewise.
52329
52330 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52331
52332         * modules/byteswap: New file.
52333
52334 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52335
52336         * m4/byteswap.m4: New file.
52337
52338 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52339
52340         * lib/byteswap_.h: New file.
52341
52342 2005-04-25  Karl Berry  <karl@gnu.org>
52343
52344         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52345
52346 2005-04-25  Albert Chin  <china@thewrittenword.com>
52347
52348         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52349         Toolkit C bug.
52350
52351 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52352
52353         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52354         (func_ln_if_changed) Remove forcibly for no error message
52355         in case file does not exist.
52356
52357 2005-04-19  Simon Josefsson  <jas@extundo.com>
52358
52359         * gnulib-tool (Options): Make --symlink mean --symbolic.
52360
52361 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52362
52363         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52364
52365 2005-04-16  Simon Josefsson  <jas@extundo.com>
52366
52367         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52368
52369 2005-04-15  Simon Josefsson  <jas@extundo.com>
52370
52371         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52372
52373 2005-04-15  Simon Josefsson  <jas@extundo.com>
52374
52375         * gnulib-tool: Rename --symlink to --symbolic.
52376
52377 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52378
52379         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52380         symbolic links to files instead of copying/moving.  Add --aux-dir,
52381         specifying directory relative --dir where auxiliary build tools
52382         are placed.
52383
52384 2005-04-14  Bruno Haible  <bruno@clisp.org>
52385
52386         * modules/allocsa (License): Change to LGPL.
52387         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52388
52389 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52392         that "UTC +1 second" continues to work.  Problem reported
52393         by Dmitry V. Levin.
52394         (relunit_snumber): New rule.
52395         (relunit): Use it.
52396
52397 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52398
52399         * lib/getdate.y (universal_time_zone_table): New constant.
52400         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52401         universal_time_zone_table.
52402         (lookup_zone): Prefer universal_time_zone_table to
52403         local_time_zone_table, so that "GMT" time stamps are allowed in
52404         London during the summer.  Problem reported by Ian Abbott.
52405
52406 2005-04-12  Jim Meyering  <jim@meyering.net>
52407
52408         * lib/human.c (humblock): Set *options even when returning due to
52409         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52410         warning from gcc-4.
52411
52412 2005-04-09  Jim Meyering  <jim@meyering.net>
52413
52414         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52415         -Wuninitialized: initialize tm0.tm_year.
52416
52417 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52418
52419         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52420         count, since there's no maximum.  All uses changed.
52421         Add member dsts_seen.
52422         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52423         not being INT_MAX.
52424         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52425         Use pc_rels_seen to decide whther a date is absolute.
52426
52427         * lib/getdate.y (number): Don't overwrite year.
52428         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52429         check.
52430
52431 2005-04-02  Simon Josefsson  <jas@extundo.com>
52432
52433         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52434         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52435
52436 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52437
52438         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52439         where no absolute path name can be longer than PATH_MAX.
52440
52441 2005-03-27  Jim Meyering  <jim@meyering.net>
52442
52443         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52444
52445 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52446
52447         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52448         "one's complement" -> "ones' complement" in comment, as per Knuth.
52449         "value of type" -> "type or expression" in comment.
52450         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52451
52452 2005-03-26  Jim Meyering  <jim@meyering.net>
52453
52454         Comment nits.
52455         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52456         Correct typos: s/or/of/.
52457
52458 2005-03-26  Jim Meyering  <jim@meyering.net>
52459
52460         * modules/check-include-files: Move to ../ and rename to...
52461         * check-module: ...this.
52462
52463 2005-03-25  Jim Meyering  <jim@meyering.net>
52464
52465         * modules/xvasprintf (Files): Add xalloc.h.
52466
52467 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52468
52469         * modules/gettext (Files): config/config.rpath ->
52470         build-aux/config.rpath
52471         * modules/iconv (Files): Likewise.
52472         Problem reported by Oskar Liljeblad.
52473
52474 2005-03-23  Jim Meyering  <jim@meyering.net>
52475
52476         * modules/check-include-files: New script to check for
52477         missing dependencies, multiple includes, etc.
52478
52479         * modules/c-strtold (Depends-on): Add xalloc.
52480         * modules/c-strtod (Depends-on): Add xalloc.
52481         * modules/hash (Depends-on): Add xalloc.
52482         (Files): Remove lib/xalloc.h.
52483
52484         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52485         * modules/userspec (Files): Add lib/inttostr.h.
52486
52487 2005-03-23  Jim Meyering  <jim@meyering.net>
52488
52489         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52490
52491 2005-03-22  Jim Meyering  <jim@meyering.net>
52492
52493         * modules/stat-macros: New module.
52494         * modules/canonicalize, modules/euidaccess, modules/file-type,
52495         * modules/filemode, modules/lchown, modules/makepath,
52496         * modules/rmdir, modules/stat: Depend on new stat-macros module
52497         rather than listing lib/stat-macros.h manually.
52498         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52499
52500 2005-03-22  Jim Meyering  <jim@meyering.net>
52501
52502         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52503
52504 2005-03-22  Bruno Haible  <bruno@clisp.org>
52505
52506         * config/srclist.txt: Replace target directory 'config' with
52507         'build-aux'.
52508         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52509         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52510         ../build-aux/.
52511
52512 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         * modules/chdir-long (Depends-on): Add mempcpy.
52515
52516         * modules/acl, modules/backupfile, modules/c-strtod,
52517         modules/c-strtold, modules/canon-host, modules/canonicalize,
52518         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52519         modules/exclude, modules/exitfail, modules/file-type,
52520         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52521         modules/getdate, modules/getline, modules/getpagesize,
52522         modules/getpass, modules/getugroups, modules/group-member,
52523         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52524         modules/inttostr, modules/long-options, modules/makepath,
52525         modules/md5, modules/memcasecmp, modules/memcoll,
52526         modules/modechange, modules/mountlist, modules/path-concat,
52527         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52528         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52529         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52530         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52531         modules/strftime, modules/strndup, modules/strverscmp,
52532         modules/timespec, modules/unlocked-io, modules/userspec,
52533         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52534         modules/yesno:
52535         Remove lib_SOURCES line from Makefile.am section, as this is now
52536         done automatically by the corresponding Autoconf macro.
52537
52538 2005-03-21  Jim Meyering  <jim@meyering.net>
52539
52540         Changes imported from coreutils.
52541
52542         * lib/cycle-check.c: Don't include xalloc.h.
52543
52544         * lib/path-concat.c: Don't include assert.h.
52545         (path_concat): Remove assertion that would have triggered
52546         for ABASE starting with more than one slash.
52547         Reported by Andreas Schwab.
52548
52549         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52550         properly when ABASE is an absolute file name.
52551         Correct the description of this function.
52552         Include <assert.h>.
52553         Add an assertion and a test driver.
52554         This fixes a bug introduced on 2004-07-02.
52555         Andreas Schwab reported the resulting failure of cp --parents:
52556         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52557
52558 2005-03-21  Jim Meyering  <jim@meyering.net>
52559
52560         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52561         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52562
52563 2005-03-21  Jim Meyering  <jim@meyering.net>
52564         and  Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52567         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52568         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52569         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52570         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52571         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52572         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52573         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52574         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52575         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52576         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52577         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52578         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52579         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52580         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52581         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52582         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52583         for these modules.
52584
52585 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52586
52587         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52588         (which shouldn't happen), generate nothing instead of returning 0
52589         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52590
52591 2005-03-16  Bruno Haible  <bruno@clisp.org>
52592
52593         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52594         HAVE_LONGLONG_64BIT.
52595
52596 2005-03-16  Bruno Haible  <bruno@clisp.org>
52597
52598         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52599         HAVE_LONGLONG_64BIT.
52600
52601 2005-03-16  Bruno Haible  <bruno@clisp.org>
52602
52603         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52604         HAVE_LONGLONG_64BIT.
52605
52606 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52607
52608         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52609         reliably distinguish strftime failure from empty output on POSIX
52610         hosts.
52611
52612 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52613
52614         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52615         (iconv_string): Don't guess a size-zero buffer, as that might cause
52616         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52617         result would be 'too large', where 'too large' is (heuristically)
52618         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52619         overflow concerns.  This will prevent some unwanted malloc failures
52620         when the inputs are very large.
52621
52622 2005-03-15  Karl Berry  <karl@gnu.org>
52623
52624         * config/srclist.txt (config.rpath): from gettext.
52625         * config/config.rpath: update.
52626
52627 2005-03-15  Bruno Haible  <bruno@clisp.org>
52628
52629         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52630         to 'negate'.
52631
52632         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52633         variable.
52634
52635         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52636         results.
52637
52638 2005-03-14  Simon Josefsson  <jas@extundo.com>
52639
52640         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52641         <fx@gnu.org>.
52642
52643 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52644
52645         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52646         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52647         intprops.h.
52648         * lib/strtol.c: Likewise.
52649
52650 2005-03-14  Jim Meyering  <jim@meyering.net>
52651
52652         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52653         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52654         to be nonzero so that we (and caller) can detect the difference
52655         between a valid zero-length expansion and an error return, even
52656         when the underlying strftime fails before writing anything into
52657         that location.
52658
52659 2005-03-14  Bruno Haible  <bruno@clisp.org>
52660
52661         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52662         Update from GNU gettext 0.14.3.
52663
52664 2005-03-10  Jim Meyering  <jim@meyering.net>
52665
52666         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52667
52668 2005-03-10  Jim Meyering  <jim@meyering.net>
52669
52670         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52671         so that this module works on systems without fchdir.
52672
52673 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         Factor int-properties macros into a single file, except for
52676         glibc-related files.
52677         * lib/intprops.h: New file.
52678         * lib/getloadavg.c: Include it instead of limits.h.
52679         (INT_STRLEN_BOUND): Remove.
52680         * lib/human.c: Include intprops.h.
52681         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52682         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52683         302/1000.
52684         * lib/inttostr.h: Include intprops.h instead of limits.h.
52685         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52686         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52687         for consistency with intprops.h.
52688         (time_t_is_integer, twos_complement_arithmetic): Use them.
52689         * lib/sig2str.h: Include <signal.h>, intprops.h.
52690         (INT_STRLEN_BOUND): Remove.
52691         * lib/strftime.c (TYPE_SIGNED): Remove.
52692         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52693         * lib/strtol.c: Adjust comments to match intprops.h.
52694         * lib/userspec.c: Include intprops.h.
52695         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52696         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52697         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52698         instead of rolling our own expressions.
52699         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52700
52701         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52702         instead of int.
52703         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52704         the right thing even if adding 1900 would overflow.  Similarly
52705         for tm_mon + 1 and tm_yday + 1.
52706         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52707         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52708         (DO_SIGNED_NUMBER): New macro.
52709         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52710
52711 2005-03-07  Bruno Haible  <bruno@clisp.org>
52712
52713         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52714
52715 2005-03-07  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52718
52719 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52720
52721         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52722         (func_import): Only replace files via --import when they have actually
52723         changed.
52724
52725 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52726
52727         * m4/mmap-anon.m4: New file.
52728         * m4/pagealign_alloc.m4: New file.
52729
52730 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52731             Bruno Haible  <bruno@clisp.org>
52732
52733         * modules/pagealign_alloc: New file.
52734         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52735
52736 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52737             Bruno Haible  <bruno@clisp.org>
52738
52739         * lib/pagealign_alloc.h: New file.
52740         * lib/pagealign_alloc.c: New file.
52741
52742 2005-03-03  Bruno Haible  <bruno@clisp.org>
52743
52744         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52745         Use an all-permissive copyright notice, recommended by RMS.
52746
52747 2005-03-02  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52750         of AIX, the replacement has to be done only after <string.h> is
52751         included, therefore not in config.h. stpncpy.h does the replacement,
52752         and stpncpy.c uses it.
52753
52754 2005-03-02  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52757         stpncpy.c uses it.
52758
52759 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52762         The workaround isn't strictly needed for POSIX conformance, and
52763         it's too much of a pain to configure and maintain.  We'll ask
52764         people to fix their kernels instead.
52765         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52766         (NANOSLEEP_BUG_WORKAROUND): Remove.
52767         (xnanosleep): Remove the workaround.
52768
52769 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52772         Reported by Derek Price.
52773         (Include): Add "timespec.h".
52774
52775         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52776
52777 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52778
52779         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52780         to detect nanosleep bug.
52781
52782 2005-03-01  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52785
52786 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * modules/gethrxtime: New file.
52789         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52790         (Depends-on): Add gethrxtime.
52791         (configure.ac): Add gl_XNANOSLEEP.
52792         (Makefile.am): Remove lib_SOURCES line.
52793
52794 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52797         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52798
52799 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52802         * lib/timespec.h (gettime): Return void, since it always
52803         succeeds now.  All uses changed.
52804         * lib/gettime.c (gettime) Likewise.
52805         [HAVE_NANOTIME]: Prefer nanotime.
52806         Assume gettimeofday succeeds, as POSIX requires.
52807         Assime time () succeeds, since other code already does.
52808         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52809         (timespec_subtract): Remove.
52810         (NANOSLEEP_BUG_WORKAROUND): New constant.
52811         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52812         things considerably.  Use it only on GNU/Linux hosts, since the
52813         workaround shouldn't be needed elsewhere.
52814
52815 2005-02-24  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/gettext (Files): Add m4/glibc2.m4.
52818
52819 2005-02-24  Bruno Haible  <bruno@clisp.org>
52820
52821         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52822         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52823         * m4/progtest.m4:
52824         Update from GNU gettext 0.14.2.
52825         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52826
52827 2005-02-24  Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52830         * lib/config.charset: Update from GNU gettext 0.14.2.
52831
52832 2005-02-24  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/gettext.h: Update from GNU gettext 0.14.2.
52835
52836 2005-02-23  Simon Josefsson  <jas@extundo.com>
52837
52838         * m4/iconvme.m4: New file.
52839
52840 2005-02-23  Jim Meyering  <jim@meyering.net>
52841
52842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52843         change.
52844         Thanks to Bruno Haible for catching it.
52845
52846 2005-02-22  Simon Josefsson  <jas@extundo.com>
52847
52848         * modules/iconvme: New file.
52849
52850         * MODULES.html.sh: Add iconvme.
52851
52852 2005-02-22  Simon Josefsson  <jas@extundo.com>
52853
52854         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52855
52856 2005-02-22  Simon Josefsson  <jas@extundo.com>
52857
52858         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52859
52860 2005-02-22  Jim Meyering  <jim@meyering.net>
52861
52862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52863         s/ifndef/ifdef/.
52864
52865 2005-02-20  Neil Conway  <neilc@samurai.com>
52866
52867         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52868         returned by OSX/Darwin if the specified buffer is not large
52869         enough for the hostname.
52870
52871 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52872
52873         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52874         pass it to _help, otherwise the latter coredumps trying to
52875         dereference state.root_argp.
52876
52877 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52878
52879         * modules/chdir-long (Depends-on): Add memrchr.
52880         * modules/memrchr (Files): Add lib/memrchr.h.
52881         (Include): "memrchr.h".
52882
52883 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52886
52887 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52888
52889         * lib/memrchr.h: New file.
52890         * lib/chdir-long.c: Include it.
52891         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52892         Don't bother including stddef.h.
52893
52894 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52895
52896         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52897         inclusion.
52898         Include <sys/types.h>, for dev_t.
52899         (ME_DUMMY, ME_REMOTE): Move from here....
52900         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52901         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52902         Dmitry V. Levin.
52903         Include mountlist.h first, to test the interface.
52904
52905 2005-01-29  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/progname.c (program_name): Initialize.
52908         Needed when linking statically on MacOS X.
52909
52910 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         Sync from coreutils.
52913         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52914         (Depends-on): Add c-strtod.
52915         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52916
52917 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52918
52919         Sync from coreutils.
52920         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52921
52922         Remove files that are specific to coreutils.
52923         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52924
52925 2005-01-28  Bruno Haible  <bruno@clisp.org>
52926
52927         * modules/javacomp: New file.
52928         * MODULES.html.sh (Java): Add javacomp.
52929
52930 2005-01-28  Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/javacomp.m4: New file, from GNU gettext.
52933
52934 2005-01-28  Bruno Haible  <bruno@clisp.org>
52935
52936         * lib/javacomp.sh.in: New file, from GNU gettext.
52937         * lib/javacomp.h: New file, from GNU gettext.
52938         * lib/javacomp.c: New file, from GNU gettext.
52939
52940 2005-01-26  Simon Josefsson  <jas@extundo.com>
52941
52942         * lib/gai_strerror.c: Use GPL in header.
52943
52944 2005-01-26  Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/javaexec: New file.
52947         * MODULES.html.sh (Java): Add javaexec.
52948
52949 2005-01-26  Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/javaexec.m4: New file, from GNU gettext.
52952
52953 2005-01-26  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/javaexec.sh.in: New file, from GNU gettext.
52956         * lib/javaexec.h: New file, from GNU gettext.
52957         * lib/javaexec.c: New file, from GNU gettext.
52958
52959 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52960
52961         * modules/lchown (Depends-on): Remove lchown.h
52962
52963 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52964
52965         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52966         must be defined if the header file was not found, in order
52967         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52968
52969 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52970
52971         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52972         initializers for struct pentry_state.
52973         (__argp_error): Check return value of __asprintf
52974         (__argp_failure): Translate error message
52975
52976         * lib/argp-parse.c: Removed braces around the expansion of N_()
52977
52978 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52981         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52982         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52983         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52984         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52985         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52986         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52987         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52988         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52989         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52990         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52991         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52992         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52993         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52994         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52995         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52996         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52997         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52998         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52999         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53000         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53001         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53002         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53003         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53004         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53005         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53006         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53007         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53008         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53009         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53010         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53011         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53012         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53013         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53014         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53015         Use an all-permissive copyright notice, recommended by RMS.
53016
53017 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53018
53019         * modules/chdir-long (Depends-on): Remove mempcpy.
53020
53021 2005-01-21  Jim Meyering  <jim@meyering.net>
53022
53023         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53024         same value as for Solaris 9.
53025
53026         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53027         component length.  This included changing the parameter to be
53028         of type `char *' rather than `char const *'.
53029         * lib/chdir-long.h (chdir_long): Update prototype.
53030
53031         * lib/openat.c (fdopendir, fstatat): New functions.
53032         * lib/openat.h: Include headers required for use of DIR and struct
53033         stat.
53034         [AT_SYMLINK_NOFOLLOW]: Define.
53035         (fdopendir, fstatat): Add prototypes.
53036
53037 2005-01-21  Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/classpath: New file.
53040         * MODULES.html.sh (Java): Add classpath.
53041
53042 2005-01-21  Bruno Haible  <bruno@clisp.org>
53043
53044         * lib/classpath.h: New file, from GNU gettext.
53045         * lib/classpath.c: New file, from GNU gettext.
53046
53047 2005-01-20  Simon Josefsson  <jas@extundo.com>
53048
53049         * modules/version-etc-fsf: New file.
53050
53051 2005-01-20  Simon Josefsson  <jas@extundo.com>
53052
53053         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53054         * lib/version-etc.c: Remove version_etc_copyright.
53055         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53056         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53057
53058 2005-01-20  Simon Josefsson  <jas@extundo.com>
53059
53060         * lib/base64.h (isbase64): Add.
53061
53062         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53063         using a unsigned prototype, don't inline.
53064         (base64_decode): Use it.
53065
53066 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53069         it.
53070
53071 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * lib/save-cwd.c (save_cwd): Remove code to support the case
53074         where fchdir is missing or flaky.
53075
53076 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53079
53080 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53081
53082         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53083         AC_LIBSOURCES now does this.
53084         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53085         with new ullong_max module.
53086
53087 2005-01-19  Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/sh-quote: New file.
53090         * MODULES.html.sh (Executing programs): Add sh-quote.
53091
53092 2005-01-19  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/sh-quote.h: New file, from GNU gettext.
53095         * lib/sh-quote.c: New file, from GNU gettext.
53096
53097 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53098
53099         Merge from coreutils.
53100         * m4/ullong_max.m4: New file.
53101         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53102         (gl_MACROS): Assume localeconv exists.
53103
53104 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53105
53106         Merge changes from coreutils, as described below in several
53107         changelogs dated today.
53108
53109         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53110         (O_DIRECTORY): Remove; not needed here, since "." must be
53111         a directory.  All uses removed.
53112         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53113         universal on Suns, and we also need to test for IRIX.
53114         Revamp code to use 'if' rather than '#if'.
53115         Avoid unnecessary comparison of cwd->desc to 0.
53116
53117         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53118         for known valid error numbers rather than observed invalid ones.
53119
53120 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * modules/ullong_max: New file.
53123
53124         * modules/chdir-long, modules/openat: New files.
53125         * modules/save-cwd (Depends-on): Depend on chdir-long.
53126         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53127
53128 2005-01-18  Jim Meyering  <jim@meyering.net>
53129
53130         Merge from coreutils.
53131         * m4/chdir-long.m4, m4/openat.m4: New files.
53132         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53133         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53134         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53135         is sane and DOES follow symlinks.  Besides, testing 20 different
53136         systems found no broken chown implementations.
53137         Prompted by a change in rsync's copy of this macro.
53138         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53139
53140         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53141
53142         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53143         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53144         NULL-means-set-to-current-time semantics.
53145         Remove temporary file immediately, rather than waiting
53146         for configure's at-exit trap code to do it.
53147
53148 2005-01-18  Jim Meyering  <jim@meyering.net>
53149
53150         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53151
53152         * lib/utimens.c (futimens): Account for the fact that futimes
53153         can also fail with errno == ENOSYS or errno == ENOENT.
53154         Patch from Dmitry V. Levin.
53155
53156         Change the name of the robust chdir function from chdir to chdir_long.
53157         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53158         (restore_cwd): Use chdir_long, not chdir.
53159         * lib/chdir-long.c: Renamed from chdir.c.
53160         * lib/chdir-long.h: Renamed from chdir.h.
53161         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53162         Hurd.
53163
53164 2005-01-18  Bruno Haible  <bruno@clisp.org>
53165
53166         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53167         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53168         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53169         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53170         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53171         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53172         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53173         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53174         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53175         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53176         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53177         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53178         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53179         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53180         Use an all-permissive copyright notice, recommended by RMS.
53181
53182 2005-01-18  Bob Proulx  <bob@proulx.com>
53183
53184         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53185         simplify offsetof() macro construct to avoid compile failure with
53186         native HP-UX 11.0 ANSI C compiler.
53187
53188 2005-01-17  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53191         redundant because stpncpy.m4 takes care of it.
53192
53193 2005-01-17  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53196
53197 2005-01-17  Bruno Haible  <bruno@clisp.org>
53198
53199         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53200         used.
53201
53202 2005-01-17  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/fwriteerror.h (fwriteerror): Change specification to include
53205         fclose.
53206         * lib/fwriteerror.c: Include <stdbool.h>.
53207         (fwriteerror): At the end, close the file stream. Record whether
53208         stdout was already closed.
53209
53210 2005-01-17  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/execute.c (environ): Declare if needed.
53213         * lib/pipe.c (environ): Likewise.
53214         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53215
53216 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53217
53218         * modules/argp: Depend on vsnprintf
53219
53220 2005-01-10  Jim Meyering  <jim@meyering.net>
53221
53222         * modules/closeout (Depends-on): Add atexit.
53223
53224 2005-01-06  Bruno Haible  <bruno@clisp.org>
53225
53226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53227
53228 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53231         definitions to be after all include files, to avoid collisions.
53232         Problem reported by Bob Proulx.
53233
53234 2005-01-04  Jim Meyering  <jim@meyering.net>
53235
53236         Changes imported from coreutils.
53237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53238         as the mkstemp template, use a temporary directory and an
53239         8.3-friendly template to avoid trouble on systems like DJGPP.
53240         Reported by Juan M. Guerrero via Stepan Kasal.
53241         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53242         close. Remove the temporary directory right away, rather than waiting
53243         for configure's at-exit trap code to do it.
53244         Suggestion from Stepan Kasal.
53245
53246 2005-01-01  Simon Josefsson  <jas@extundo.com>
53247
53248         * gnulib-tool: Print #include directives when --import'ing.
53249
53250 2004-12-28  Simon Josefsson  <jas@extundo.com>
53251
53252         * tests/test-base64.c: Include required header files.  Remove
53253         unused variables.
53254
53255 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * modules/error (Depends-on): Remove gettext.
53258
53259 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53262         not needed.  This removes a dependency on the gettext module.
53263         [defined _LIBC]: Do not include <libintl.h>; not needed.
53264
53265 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53266
53267         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53268         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53269
53270 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53273         HAVE_DECL_STRTOLD.
53274
53275 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         * modules/getdate (Depends-on): Remove alloca-opt.
53278
53279 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53280
53281         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53282
53283 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * lib/argp-parse.c: Include <stddef.h>.
53286         (alignof, alignto): New macros.
53287         (parser_init): Don't assume that void * is aligned sufficiently
53288         for struct option.
53289
53290         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53291         need to extend the stack.
53292         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53293         large.
53294
53295 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53296
53297         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53298
53299 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53300
53301         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53302         (2004-10-24) change.  Apparently this was a false alarm.
53303
53304         * modules/getdate: Depend on alloca-opt, not alloca.
53305
53306 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53307
53308         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53309         Remove now-obsolete comment about AIX.
53310         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53311         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53312         (YYMAXDEPTH): New macro.
53313
53314 2004-12-18  Simon Josefsson  <jas@extundo.com>
53315
53316         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53317
53318 2004-12-18  Bruno Haible  <bruno@clisp.org>
53319
53320         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53321
53322 2004-12-18  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/fatal-signal.c (fatal_signals): Make non-const.
53325         (init_fatal_signals): New function.
53326         (uninstall_handlers, install_handlers): Ignore signals that were set to
53327         SIG_IGN.
53328         (at_fatal_signal): Call init_fatal_signals.
53329         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53330         SIG_IGN.
53331         Reported by Paul Eggert.
53332
53333 2004-12-18  Bruno Haible  <bruno@clisp.org>
53334
53335         * doc/alloca.texi: New file.
53336         * doc/alloca-opt.texi: New file.
53337
53338 2004-12-17  Jim Meyering  <jim@meyering.net>
53339
53340         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53341         Otherwise, install-sh could exit with improper exit status when
53342         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53343
53344 2004-12-16  Simon Josefsson  <jas@extundo.com>
53345
53346         * tests/test-base64.c: Add license.
53347
53348 2004-12-15  Stepan Kasal  <address@hidden>
53349
53350         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53351
53352 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53353
53354         * modules/getcwd (Files): Add m4/d-ino.m4.
53355         Suggested by Mark D. Baushke.
53356
53357 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53358
53359         * lib/getdate.y (textint): New member "negative".
53360         (time_zone_hhmm): New function.
53361         Expect 14 shift-reduce conflicts, not 13.
53362         (o_colon_minutes): New rule.
53363         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53364         (yylex): Set the "negative" member of signed numbers.
53365
53366 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * doc/getdate.texi (Time of day items, Time zone items):
53369         Describe new formats +00:00, UTC+00:00.
53370
53371 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53374         spurious "-l"s.  Problem reported by Stepan Kasal.
53375
53376 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53379         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53380
53381 2004-12-04  Simon Josefsson  <jas@extundo.com>
53382
53383         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53384         Vandoorselaere <yoann@prelude-ids.org>.
53385
53386 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53387
53388         Changes imported from coreutils.
53389         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53390         exist.
53391         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53392
53393 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         Changes imported from coreutils.
53396         * lib/hard-locale.c: Assume <locale.h> exists.
53397         Include "strdup.h".
53398         (GLIBC_VERSION): New macro.
53399         (hard_locale): Assume setlocale exists.
53400         Rewrite to avoid #ifdef.
53401         Use strdup rather than malloc + strcpy.
53402         * lib/human.c: Assume <locale.h> exists.
53403         (human_readable): Assume localeconv exists.
53404
53405 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53406
53407         * modules/hard-locale (Depends-on): Add strdup.
53408
53409 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53410
53411         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53412         convert T2, not T.  (Imported from libc.)
53413
53414 2004-11-30  Simon Josefsson  <jas@extundo.com>
53415
53416         * modules/restrict (License): Change to LGPL.
53417
53418 2004-11-30  Simon Josefsson  <jas@extundo.com>
53419
53420         * m4/restrict.m4: Add copyright and copying conditions.
53421
53422 2004-11-30  Simon Josefsson  <jas@extundo.com>
53423
53424         * m4/base64.m4: New file.
53425
53426 2004-11-30  Simon Josefsson  <jas@extundo.com>
53427
53428         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53429         base64.
53430
53431         * tests/test-base64.c: New file.
53432
53433         * modules/base64: New file.
53434
53435 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53438         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53439
53440         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53441
53442 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53445         (__getcwd.c): Don't restore errno; glibc doesn't.
53446         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53447         first, falling back to our code only if its results look suspicious.
53448         Ensure that the resulting buffer is only as large as necessary.
53449
53450         * lib/readutmp.c: Include readutmp.h first.
53451         Include <errno.h>, since readutmp.h no longer does that.
53452         * lib/readutmp.h: Don't include <errno.h>,
53453         <sys/param.h>, <time.h>; not needed to establish interface.
53454         (errno): Remove decl.
53455         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53456         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53457         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53458
53459 2004-11-28  Simon Josefsson  <jas@extundo.com>
53460
53461         * lib/base64.h, base64.c: New file.
53462
53463 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53466
53467 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53470         (Depends-on): Remove pathmax, same.  Add mempcpy.
53471         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53472         (Makefile.am): Append getcwd.h to lib_SOURCES.
53473         (Include): Add getcwd.h.
53474         (Maintainer): Change from Jim Meyering to "all, glibc",
53475         since getdate now uses intended-for-glibc code.
53476         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53477         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53478
53479 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53482         HP's ANSI C compiler.
53483         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53484         Declaring int functions causes warnings on some modern systems and
53485         shouldn't be needed to compile on ancient ones.
53486         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53487         defined.
53488
53489         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53490         with the following changes.
53491         (__set_errno): Parenthesize properly.
53492         Include <stdbool.h>.
53493         (MIN, MAX, MATCHING_INO): New macros.
53494         (__getcwd): Define with prototype, not K&R form.
53495         Use heuristics to allocate default buffer on stack if possible.
53496         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53497         behavior, and to avoid the PATH_MAX limit when computing
53498         ../../../../...
53499         Use MATCHING_INO to compare inode number to file.
53500         Check for arithmetic overflow in size calculations.
53501         Fix bug in reallocation of dot array that caused getcwd to fail
53502         on directories nested deeper than 75.
53503         Be more careful about saving errno on error.
53504         Do not use realloc; use only free+malloc, as this is a bit
53505         more flexible and avoids a needless copy operation.
53506         Do not inspect st_dev and st_ino for symbolic links; POSIX
53507         doesn't specify the latter.
53508         Check for closedir errors.
53509         Avoid needless casts.
53510         Use "#ifdef weak_alias" around weak_alias, to be like other
53511         glibc code.
53512         The following changes to getcwd.c have effect only when used in
53513         gnulib; they have no effect inside glibc proper.
53514         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53515         as alloca isn't used.
53516         (alloca, __alloca): Likewise.
53517         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53518         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53519         unconditionally, as gnulib assumes C89 or better.
53520         Do not include <sys/param.h>.
53521         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53522         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53523         better.
53524         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53525         Include <dirent.h> in a way that is compatible with modern Autoconf.
53526         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53527         New macros, if not already defined.
53528         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53529         Use "_LIBC", not "defined _LIBC", for consistency.
53530         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53531         a mempcpy module.
53532         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53533         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53534         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53535         credit only to Jim Meyering and adjust the copyright dates.
53536         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53537         <stdlib.h>, <unistd.h>, "pathmax.h".
53538         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53539         (INITIAL_BUFFER_SIZE): Remove.
53540         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53541
53542 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53543
53544         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53545         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53546         Use the _ONCE methods, for efficiency.
53547         Check for fcntl.h.  In test program, include <errno.h>
53548         and <fcntl.h> if available.  Remove old K&R cruft from
53549         test program.  Check for common errors in GNU/Linux,
53550         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53551         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53552         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53553         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53554         name accordingly.
53555         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53556         accommodate new getcwd.c.
53557         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53558         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53559         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53560         that's all we need now.
53561
53562 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53563
53564         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53565         argp-parse.c depends on getopt internals, that means we should
53566         always use our getopt, to be on the safe side.
53567         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53568         order not to spoil the result of an eventual previous invocation
53569         of gl_GETOPT_SUBSTITUTE.
53570
53571 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53572
53573         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53574         redefinition warnings. To avoid them, include the defines
53575         in `#if !defined __need_getopt ... #endif'. The only place
53576         where __getopt_argv_const is used is in definitions
53577         of getopt_long and getopt_long_only below, which are as well
53578         protected by `#ifndef __need_getopt'.
53579         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53580         __need_getopt after including <stdio.h> and <unistd.h> These
53581         headers might have defined it.
53582
53583 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53586
53587 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53590         (futimens): New function, which uses futimes if available.
53591         (futimens, utimens): Support timespec==NULL, with same semantics
53592         as utime and utimens.
53593         * lib/utimens.h (futimens): New decl.
53594
53595 2004-11-23  Jim Meyering  <jim@meyering.net>
53596
53597         * lib/getopt_.h: Remove trailing blanks.
53598
53599 2004-11-23  Jim Meyering  <jim@meyering.net>
53600
53601         * lib/__fpending.c: Add comment.
53602
53603 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * modules/canonicalize (Depends-on): Add xreadlink.
53606         Problem reported by James Youngman.
53607
53608 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53611         New macros.
53612         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53613         optopt): Use them instead of invoking ## directly; otherwise, the
53614         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53615
53616 2004-11-19  Bruno Haible  <bruno@clisp.org>
53617
53618         * lib/strtok_r.c: Move comments from here...
53619         * lib/strtok_r.h: ... to here.
53620
53621 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53624         implementations that mishandle size_t overflow.
53625
53626 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53627
53628         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53629         might fail.  Problem reported by Yoann Vandoorselaere.
53630         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53631         implementations that mishandle size_t overflow.
53632
53633 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         * modules/canon-host (Depends-on): Add strdup.
53636
53637 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53640
53641 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         * lib/canon-host.c: Include "strdup.h".
53644         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53645         Use strdup instead of malloc/strcpy to duplicate strings.
53646
53647         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53648         (human_space_before_unit): New constant.
53649         * lib/human.c (human_readable): Support it.
53650
53651         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53652         (xgetcwd): Set errno correctly when failing.
53653         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53654         the failure is actually due to a PATH_MAX problem.
53655
53656         Further getopt changes to make it more likely that glibc will
53657         buy the changes back.
53658         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53659         (getopt): Use it, so to preserve glibc semantic
53660         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53661         when compiling for libc.
53662         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53663         (getopt_long, getopt_long_only): Use it.
53664
53665         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53666         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53667         (getopt): Argv is now char * const *, as per standard.
53668         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53669         not char *__getopt_argv_const *.
53670         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53671         _getopt_long_only_r): Likewise.
53672         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53673         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53674         _getopt_long_r, _getopt_long_only_r): Likewise.
53675         * lib/getopt_.h (__getopt_argv_const): Remove.
53676         (getopt): Argv is now char * const *, as per standard.
53677
53678         * lib/getdate.y (tORDINAL): New token.
53679         (day, relunit): Allow it for relative times.
53680         (relative_time_table): Use tORDINAL for ordinals.
53681
53682 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53683
53684         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53685         Document that "second" isn't allowed as an ordinal number.
53686
53687 2004-11-16  Jim Meyering  <jim@meyering.net>
53688
53689         * modules/closeout (Depends-on): Add fpending.
53690
53691 2004-11-15  Jim Meyering  <jim@meyering.net>
53692
53693         * lib/closeout.c: Include "__fpending.h" once again.
53694         Include <stdbool.h>.
53695         (close_stdout): Don't fail just because stdout was closed initially,
53696         since some programs don't write to stdout in the normal course of
53697         operation (other than --version and --help), and we don't want this
53698         function to make e.g. `touch file >&-' fail.
53699         But do fail if it was closed and someone has tried to write to it.
53700         E.g., `printf foo >&-' must fail.
53701
53702 2004-11-13  Jim Meyering  <jim@meyering.net>
53703
53704         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53705
53706 2004-11-12  Simon Josefsson  <jas@extundo.com>
53707
53708         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53709         small doc fix is still pending.
53710
53711 2004-11-11  Simon Josefsson  <jas@extundo.com>
53712
53713         * modules/strtok_r: New file.
53714
53715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53716         strtok_r.
53717
53718 2004-11-11  Simon Josefsson  <jas@extundo.com>
53719
53720         * m4/strtok_r.m4: New file.
53721
53722         * m4/getopt.m4: Replace opterr.
53723
53724 2004-11-11  Simon Josefsson  <jas@extundo.com>
53725
53726         * lib/strtok_r.h, strtok_r.c: New file.
53727
53728 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53731         of replacing opterr, getopt, etc.  This should handle the
53732         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53733
53734 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53737         we can stop lying to compilers about the constness of argv when we
53738         are compiled outside glibc.
53739         (getopt, getopt_long, getopt_long_only): Use it.
53740         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53741         _getopt_internal, getopt): Likewise.
53742         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53743         _getopt_long_only_r): Likewise.
53744         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53745         _getopt_long_r, _getopt_long_only_r): Likewise.
53746
53747         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53748         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53749         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53750         the other external symbols.
53751         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53752         declaration, since the above renaming now works around collisions.
53753
53754 2004-11-11  Jim Meyering  <jim@meyering.net>
53755
53756         * lib/linebreak.c: Remove trailing blanks.
53757         * lib/alloca_.h: Likewise.
53758         * lib/acosl.c: Likewise.
53759         * lib/euidaccess.c: Likewise.
53760         * lib/allocsa.h: Likewise.
53761
53762 2004-11-10  Simon Josefsson  <jas@extundo.com>
53763
53764         * m4/getaddrinfo.m4: New file.
53765
53766 2004-11-10  Simon Josefsson  <jas@extundo.com>
53767
53768         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53769
53770 2004-11-10  Simon Josefsson  <jas@extundo.com>
53771
53772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53773         getaddrinfo.
53774
53775         * modules/getaddrinfo: New file.
53776
53777 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53780
53781 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * lib/mktime.c (SHR): New macro, which is a portable
53784         substitute for >> that should work even on Crays.
53785         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53786         Problem reported by Mark D. Baushke in
53787         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53788         * lib/getdate.y (SHR): Likewise.
53789         (tm_diff): Use it.
53790         * lib/strftime.c (SHR): Likewise.
53791         (tm_diff): Use it.
53792         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53793         quote_these_too, so that right shifts are well defined.  All uses
53794         changed.
53795
53796 2004-11-10  Jim Meyering  <jim@meyering.net>
53797
53798         Ensure that no close failure goes unreported.
53799         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53800         return early when it seems there's nothing to flush.
53801         Don't include __fpending.h.
53802
53803 2004-11-10  Jim Meyering  <jim@meyering.net>
53804
53805         * modules/closeout (Depends-on): Remove fpending.
53806
53807 2004-11-10  Jim Meyering  <jim@meyering.net>
53808
53809         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53810
53811 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53812
53813         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53814         gl_FUNC_STRFTIME.
53815         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53816         and AC_REQUIRE when possible, to avoid duplicate checks.
53817         Check for <wchar.h>.
53818
53819 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53820
53821         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53822
53823 2004-11-09  Bruno Haible  <bruno@clisp.org>
53824
53825         * m4/sockpfaf.m4: New file.
53826
53827 2004-11-05  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53830         Reported by Mark D. Baushke <mdb@cvshome.org>.
53831
53832 2004-11-04  Bruno Haible  <bruno@clisp.org>
53833
53834         2004-09-11  Bruno Haible  <bruno@clisp.org>
53835                 * allocsa.valgrind: New file.
53836         2004-02-06  Bruno Haible  <bruno@clisp.org>
53837                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53838                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53839                 Reported by Christopher Seip <chris.seip@hp.com>.
53840
53841 2004-11-04  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53844         (Makefile.am): Distribute it.
53845
53846 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53849         with errno == ERANGE if the buffer is too small.
53850         Problem reported by Mark D. Baushke.
53851
53852 2004-11-03  Albert Chin  <china@thewrittenword.com>
53853             Paul Eggert  <eggert@cs.ucla.edu>
53854
53855         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53856         equivalent, substitute $ac_type for equivalent type rather than
53857         blindly using uint32_t *always* which won't work if uint32_t is not
53858         available.  Define _UINT32_T to work around typedef of uint32_t if
53859         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53860         2.5.1.
53861
53862 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53863
53864         * m4/jm-macros.m4: Sync from coreutils.
53865         (gl_MACROS): Check for mbrlen, for pathchk.
53866         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53867
53868 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * lib/xreadlink.c (MAXSIZE): New macro.
53871         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53872         size does not exceed MAXSIZE.  Avoid cast.
53873         As suggested by Mark D. Baushke in
53874         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53875         if readlink fails with buffer size just under MAXSIZE, try again
53876         with MAXSIZE.
53877
53878 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53879
53880         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53881
53882 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53883         and  Paul Eggert  <eggert@cs.ucla.edu>
53884
53885         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53886         (get_date): Overparenthesize to avoid GCC warning.
53887
53888 2004-11-02  Bruno Haible  <bruno@clisp.org>
53889
53890         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53891         returns void.
53892
53893 2004-11-02  Bruno Haible  <bruno@clisp.org>
53894
53895         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53896         function returns void.
53897
53898 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53901         fflush_unlocked, flockfile, funlockfile, funlockfile,
53902         fputs_unlocked, putc_unlocked.
53903
53904 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53905
53906         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53907         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53908         already declared.
53909
53910 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         * modules/getdate (Files): Add doc/getdate.texi.
53913         (Depends-on): Add setenv, xalloc.
53914
53915 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53916
53917         * lib/getdate.y: Add support for TZ="foo" within a date string.
53918         Fix some bugs near time_t boundaries.  Reject dates with
53919         out-of-range components, e.g., "Sept 31".
53920         Include <stdlib.h>, "setenv.h", "xalloc.h".
53921         (ISDIGIT_LOCALE): Remove; unused.
53922         Note that the TZ and time functions used here are not reentrant.
53923         (mktime_ok, get_tz): New functions.
53924         (TZBUFSIZE): New constant.
53925         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53926         This requires that we sometimes generate our own TZ="XXX..." setting.
53927
53928 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53929
53930         * doc/getdate.texi: New file, from coreutils with modifications for
53931         the new TZ parsing.
53932
53933 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53934
53935         * lib/mktime.c (not_equal_tm): Remove redundant check.
53936
53937 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * modules/regex (lib_SOURCES): Add regex.c.
53940         Reported by James Youngman in
53941         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53942
53943 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * lib/getdate.y: Use Bison 1.875 features, and some minor
53946         code cleanups.  This change does not affect semantics.
53947         Don't include <stdlib.h>; no longer needed.
53948         Don't include unlocked-io.h; only the "#if TEST" code uses
53949         stdio, and performance isn't crucial there.
53950         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53951         Bison 1.875 features as described below.
53952         All uses of "PC." replaced by "pc->".
53953         (YYSTYPE): Add a forward declaration.
53954         (yylex, yyerror): Use full prototypes in forward decls.
53955         Use "%pure-parser" rather than obsolescent "%pure_parser".
53956         Use %parse-param and %lex-param instead of obsolescent
53957         YYPARSE_PARAM and YYLEX_PARAM.
53958         (meridian_table, month_and_day_table, time_units_table,
53959         relative_time_table, time_zone_table, military_table,
53960         lookup_zone, lookup_word, get_date):
53961         Use NULL instead of 0 where appropriate.
53962         (to_hour): Avoid abort (), to avoid a dependency on
53963         stdlib.h.
53964         (yyerror, yylex): Now accepts parser_control * arg.
53965         (main) [TEST]: Use '\0' rather than 0 for char.
53966
53967 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53968
53969         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53970
53971 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53974         It's now the caller's responsibility to handle the case where
53975         !HAVE_GETPAGESIZE && !defined getpagesize.
53976
53977         * lib/mktime.c (leapyear): Arg is long int, not int.
53978
53979 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53980
53981         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53982
53983 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53986         missing.  Problem reported by James Youngman.
53987
53988 2004-10-16  Simon Josefsson  <jas@extundo.com>
53989
53990         * gnulib-tool: Fix comments.  Fix parse problem.
53991         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53992
53993 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53996         implementation of getopt_long.  Problem reported by Alexander Taler in:
53997         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53998
53999 2004-10-15  Bruno Haible  <bruno@clisp.org>
54000
54001         * gnulib-tool: Untabify. Initialize supplied_libname.
54002         (func_usage): More homogenous output.
54003         (func_modules_transitive_closure, func_modules_to_filelist,
54004         func_emit_lib_Makefile_am): New functions.
54005         (func_import): New function, extracted from big case statement. Use
54006         func_get_license, func_modules_transitive_closure,
54007         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54008         opt_lgpl. Don't use test -a, as it's not portable.
54009         (func_create_testdir): Use func_modules_transitive_closure,
54010         func_modules_to_filelist, func_emit_lib_Makefile_am.
54011
54012 2004-10-15  Bruno Haible  <bruno@clisp.org>
54013
54014         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54015
54016 2004-10-15  Bruno Haible  <bruno@clisp.org>
54017
54018         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54019         the portions belonging to each module.
54020         Suggested by Derek Robert Price <derek@ximbiot.com>.
54021
54022 2004-10-12  Simon Josefsson  <jas@extundo.com>
54023
54024         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54025         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54026         to real functions.
54027
54028 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54029
54030         * modules/vsnprintf: New file.
54031
54032 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54033
54034         * m4/vsnprintf.m4: New file.
54035
54036 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54037
54038         * lib/vsnprintf.h: New file.
54039         * lib/vsnprintf.c: New file.
54040
54041 2004-10-11  Bruno Haible  <bruno@clisp.org>
54042
54043         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54044         vsnprintf.
54045
54046 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54049
54050 2004-10-07  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54053         fits into the provided buffer.
54054
54055 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54056
54057         * lib/diacrit.c, diacrit.h: Add GPL notice.
54058
54059         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54060         notice.
54061         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54062         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54063         This avoids a potential constant-folding bug.
54064
54065 2004-10-05  Bruno Haible  <bruno@clisp.org>
54066
54067         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54068         for the declaration of strsep.
54069
54070 2004-10-05  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54073
54074 2004-10-04  Simon Josefsson  <jas@extundo.com>
54075
54076         * modules/memmem: New file.
54077         * tests/test-memmem.c: New file.
54078         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54079
54080 2004-10-04  Simon Josefsson  <jas@extundo.com>
54081
54082         * m4/memmem.m4: New file.
54083
54084 2004-10-04  Simon Josefsson  <jas@extundo.com>
54085
54086         * lib/memmem.h: New file.
54087         * lib/memmem.c: New file, taken from glibc.
54088
54089 2004-10-04  Simon Josefsson  <jas@extundo.com>
54090
54091         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54092         '#ifdef USE_UNLOCKED_IO'.
54093
54094 2004-10-04  Simon Josefsson  <jas@extundo.com>
54095
54096         * config/srclist.txt: Add memmem from glibc.
54097
54098 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54099
54100         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54101
54102         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54103         modules/exclude, modules/getdate, modules/getline,
54104         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54105         modules/getusershell, modules/linebuffer, modules/md5,
54106         modules/mountlist, modules/posixtm, modules/readtokens,
54107         modules/readutmp, modules/regex, modules/sha1,
54108         modules/version-etc, modules/yesno:
54109         Remove dependency on unlocked-io.
54110
54111 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54114
54115         * m4/unlocked-io.m4: Add copyright notice.
54116         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54117
54118 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54121         * lib/xmalloc.c (xmemdup): Likewise.
54122         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54123         XFREE): Remove these long-obsolescent macros.
54124         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54125         * lib/xstrdup.c: Remove.
54126
54127         * lib/regex.c (re_comp): Cast gettext return value to char *,
54128         Problem reported by Martin Neitzel via Mark D. Baushke.
54129
54130 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54131
54132         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54133         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54134         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54135         regex.c, sha1.c, version-etc.c, yesno.c:
54136         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54137         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54138         the includer's responsibility.
54139
54140         Sync from coreutils.
54141
54142         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54143         points to the start of a string, as the C Standard says the
54144         resulting behavior is undefined.
54145
54146         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54147         simple -> simple_backups, numbered_existing ->
54148         numbered_existing_backups, numbered -> numbered_backups
54149         to avoid shadowing problems.  All uses changed.
54150         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54151         * lib/backupfile.c (check_extension, numbered_backup):
54152         Rename locals to avoid shadowing 'basename'.
54153         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54154         once.
54155
54156         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54157         * lib/.cvsignore: Add getopt.h.
54158
54159 2004-10-04  Bruno Haible  <bruno@clisp.org>
54160
54161         * modules/README: New file.
54162         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54163         not a module.
54164
54165 2004-10-02  Jim Meyering  <jim@meyering.net>
54166
54167         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54168
54169 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54170
54171         * modules/strsep: New file.
54172
54173 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54174
54175         * m4/strsep.m4: New file.
54176
54177 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54178
54179         * lib/strsep.h: New file.
54180         * lib/strsep.c: New file.
54181
54182 2004-10-01  Simon Josefsson  <jas@extundo.com>
54183
54184         * lib/snprintf.c (snprintf): Handle size==0.
54185
54186 2004-10-01  Simon Josefsson  <jas@extundo.com>
54187             Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54190         (snprintf): Declare 'args'.
54191
54192 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54193
54194         * lib/snprintf.c: Remove comments as to why each header is needed.
54195
54196 2004-10-01  Bruno Haible  <bruno@clisp.org>
54197
54198         * MODULES.html.sh: Add strsep.
54199
54200 2004-09-30  Simon Josefsson  <jas@extundo.com>
54201
54202         * modules/snprintf: New file.
54203
54204 2004-09-30  Simon Josefsson  <jas@extundo.com>
54205
54206         * m4/snprintf.m4: New file.
54207
54208 2004-09-30  Simon Josefsson  <jas@extundo.com>
54209
54210         * lib/snprintf.h, lib/snprintf.c: New files.
54211
54212 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54213
54214         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54215         (hol_entry_help): Never translate an empty string.
54216         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54217         * lib/argp.h (OPTION_NO_TRANS): New option.
54218
54219 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * modules/argp (Maintainer): Replace Simon Josefsson
54222         by Sergey Poznyakoff.
54223
54224 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54225
54226         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54227         changes merged back into glibc.
54228
54229 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54232
54233 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54234
54235         * lib/xvasprintf.c: Include xalloc.h.
54236         (xvasprintf): Use xalloc_die, not xmalloc_die.
54237
54238 2004-09-29  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/alloca-opt: New file, derived from modules/alloca.
54241         * modules/allocsa: Depend on alloca-opt instead of alloca.
54242         * modules/setenv: Likewise.
54243         * modules/vasnprintf: Likewise.
54244         * MODULES.html.sh: Add alloca-opt.
54245
54246 2004-09-28  Simon Josefsson  <jas@extundo.com>
54247
54248         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54249         LGPL, and to replace license template from GPL to LGPL.
54250
54251 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * modules/dummy: Change license to LGPL.
54254
54255 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54258
54259 2004-09-24  Simon Josefsson  <jas@extundo.com>
54260
54261         * modules/minmax (License): Change from GPL to LGPL.
54262
54263 2004-09-23  Simon Josefsson  <jas@extundo.com>
54264
54265         * gnulib-tool (--import): Typo.
54266
54267 2004-09-23  Simon Josefsson  <jas@extundo.com>
54268
54269         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54270
54271 2004-09-22  Bruno Haible  <bruno@clisp.org>
54272
54273         * modules/*: Add 'License' field.
54274         * gnulib-tool: Accept --extract-license option.
54275         (func_get_license): New function.
54276
54277 2004-09-21  Bruno Haible  <bruno@clisp.org>
54278
54279         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54280         Reported by Simon Josefsson.
54281
54282 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54283
54284         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54285         gl_AC_TYPE_LONG_LONG.
54286
54287 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54290
54291 2004-09-18  Simon Josefsson  <jas@extundo.com>
54292         and  Paul Eggert  <eggert@cs.ucla.edu>
54293
54294         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54295         calls with autoreconf.  Define GL_LIB.
54296
54297 2004-09-14  Karl Berry  <karl@gnu.org>
54298
54299         * config/srclist.txt: unsync setenv.c, sigh.
54300
54301 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54302
54303         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54304         Problem reported by Bruno Haible in:
54305         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54306
54307 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54308
54309         * config/srclist.txt: Comment out argp-pvh.c.
54310
54311 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54312
54313         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54314         in case some system header has #define'd it.  Problem reported by
54315         Soeren D. Schulze in
54316         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54317
54318 2004-09-09  Karl Berry  <karl@gnu.org>
54319
54320         * regex.[ch]: delete from the root.  These were supposed to be
54321                 synced with emacs cvs, but this has not happened for about
54322                 a year, and anyway nothing else uses emacs regex.[ch].
54323                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54324                 lib/regex[.ch] is untouched.
54325
54326 2004-09-09  Bruno Haible  <bruno@clisp.org>
54327
54328         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54329
54330 2004-09-09  Bruno Haible  <bruno@clisp.org>
54331
54332         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54333         modifications.
54334         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54335
54336 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54337
54338         * modules/xvasprintf: New file.
54339         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54340
54341 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54342
54343         * lib/xvasprintf.h: New file.
54344         * lib/xvasprintf.c: New file.
54345         * lib/xasprintf.c: New file.
54346
54347 2004-09-08  Bruno Haible  <bruno@clisp.org>
54348
54349         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54350
54351 2004-09-08  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54354         length is > INT_MAX.
54355         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54356         more.
54357
54358 2004-09-08  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/stdint_.h: New file, taken from GNU clisp.
54361
54362 2004-09-08  Bruno Haible  <bruno@clisp.org>
54363             Oskar Liljeblad  <oskar@osk.mine.nu>
54364
54365         * modules/stdint: New file.
54366         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54367
54368 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54369
54370         Import from coreutils.
54371         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54372         strings on unbounded length.  alloca's performance benefits aren't
54373         that important here.
54374         (V_STRDUP): Remove.
54375         (parse_with_separator): New function, with most of the internals
54376         of the old parse_user_spec.  Allow user to omit both user and group,
54377         for compatibility with FreeBSD.
54378         Clone only the user name, not the entire spec.
54379         Do not set *uid, *gid unless entirely successful.
54380         Avoid memory leak in some failing cases.
54381         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54382         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54383         (parse_user_spec): Rewrite to use parse_with_separator.
54384
54385 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54386
54387         * modules/userspec: Don't depend on alloca.
54388
54389 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54390
54391         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54392
54393 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54396         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54397         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54398
54399 2004-08-16  Simon Josefsson  <jas@extundo.com>
54400
54401         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54402         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54403         Add --dry-run for --import.
54404         Let user provided command line parameters override configure.ac
54405         settings.
54406
54407 2004-08-12  Simon Josefsson  <jas@extundo.com>
54408
54409         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54410         as discussed with Paul Eggert in threads rooted at
54411         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54412         and
54413         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54414         Before, the test was empty, and relied on ELIDE_CODE in source
54415         code.)
54416         (gl_PREREQ_GETOPT): New macro.
54417         (gl_GETOPT): Use them.
54418
54419 2004-08-12  Simon Josefsson  <jas@extundo.com>
54420
54421         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54422         * lib/getopt_.h: Renamed from getopt.h.
54423
54424 2004-08-12  Simon Josefsson  <jas@extundo.com>
54425
54426         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54427         Change default library name from libfoo to libgnu.
54428         Now, if you have a configure.ac that says:
54429                 gl_SOURCE_BASE(gl)
54430                 gl_M4_BASE(gl/m4)
54431                 gl_MODULES(error getopt etcetera)
54432                 gl_INIT
54433         you can import all you need by running:
54434                 ../gnulib/gnulib-tool --import
54435
54436         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54437         (Makefile.am): Rewrite, use logic from argz.
54438         (Include): Use <getopt.h> instead of "getopt.h".
54439
54440 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         * modules/argp (Files): Add m4/unlocked-io.m4.
54443         (Depends-on): Add extensions.
54444
54445 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54448         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54449         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54450         Check for program_invocation_name, program_invocation_short_name,
54451         flockfile, funlockfile, features.h, _getopt_long_only_r.
54452
54453 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54454
54455         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54456         its complicated substitute.
54457         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54458         and program_invocation_name.
54459         (__argp_basename) [!_LIBC]: Remove; the only use was
54460         replaced by its body.
54461         (__argp_short_program_name): Change condition from
54462         !defined __argp_short_program_name to
54463         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54464         to match argp-namefrob.h.
54465         (__argp_failure): Don't assume strerror_r returns char *.
54466         * lib/argp-parse.c (N_): Define unconditionally.
54467         (argp_default_options): Fill out initializers with 0 to avoid
54468         gcc warnings.
54469
54470 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54473         getopt1.c.
54474
54475 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54476
54477         Merge from coreutils.
54478
54479         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54480
54481         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54482         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54483
54484 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         Merge from coreutils.
54487
54488         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54489         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54490         for Reliant Unix 5.43.
54491
54492         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54493         (union fooround): Use uintmax_t, not long int.
54494         The rest is a merge from libc:
54495         [defined _LIBC]: Include <shlib-compat.h>.
54496         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54497
54498         * lib/settime.c (settime): Recode to avoid warning with
54499         Sun Forte C 6U2.
54500
54501         * lib/strverscmp.c: Convert to UTF-8.
54502
54503 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54506         m4/uintmax_t.m4.
54507
54508 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         * modules/xalloc-die: New file.
54511         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54512
54513         * modules/md5 (Files): Add m4/uint32_t.m4.
54514         * modules/sha1: Renamed from modules/sha.
54515         (Files):
54516         Rename lib/sha.h to lib/sha1.h.
54517         Rename lib/sha.c to lib/sha1.c.
54518         Rename m4/sha.m4 to m4/sha1.m4.
54519         (lib_SOURCES): Likewise.
54520         (configure.ac): Rename gl_SHA to gl_SHA1.
54521         (Include): sha.h -> sha1.h.
54522
54523 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54526         * m4/sha1.m4: Renamed from sha.m4.
54527         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54528
54529 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         * lib/obstack.h (obstack_empty_p):
54532         Don't assume that chunk->contents is suitably aligned.
54533         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54534         Likewise. Problem reported by Benno in
54535         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54536
54537         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54538         readable.  This could be improved further but it'd take some work.
54539
54540 2004-08-08  Simon Josefsson  <jas@extundo.com>
54541
54542         * modules/xgethostname (Depends-on): Remove exit and error (not
54543         used).
54544
54545         * modules/getpass-gnu: Add getpass.h.
54546         (Depends-on): Add stdbool.
54547         * modules/getpass: Add getpass.h.
54548
54549 2004-08-08  Simon Josefsson  <jas@extundo.com>
54550
54551         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54552         Check getpass declaration.
54553
54554 2004-08-08  Simon Josefsson  <jas@extundo.com>
54555
54556         * lib/xgethostname.c: Don't include error.h (not used).
54557
54558         * lib/getpass.h: Add.
54559         * lib/getpass.c: Include getpass.h first.
54560
54561 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54562
54563         * lib/xalloc-die.c: New file.
54564         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54565         All uses removed.
54566         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54567         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54568         xalloc-die.c.
54569         (_, N_, xalloc_die): Move to xalloc-die.c.
54570         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54571         so that we needn't mess with xalloc_msg_memory_exhausted.
54572
54573         * lib/sha1.h: Renamed from sha.h.
54574         (SHA1_H): Renamed from _SHA_H.
54575         (sha1_ctx): Renamed from sha_ctx.
54576         (sha1_init_ctx): Renamed from sha_init_ctx.
54577         (sha1_process_block): Renamed from sha_process_block.
54578         (sha1_process_bytes): Renamed from sha_process_bytes.
54579         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54580         (sha1_read_ctx): Renamed from sha_read_ctx.
54581         (sha1_stream): Renamed from sha_stream.
54582         (sha1_buffer): Renamed from sha_buffer.
54583         * lib/sha1.c: Likewise; renamed from sha.c.
54584         Do not include <sys/types.h>.
54585         Include <stddef.h> rather than <stdlib.h>.
54586
54587 2004-08-08  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54590         FILESYSTEM_PREFIX_LEN.
54591         * lib/progreloc.c: Likewise.
54592         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54593
54594 2004-08-06  Simon Josefsson  <jas@extundo.com>
54595
54596         * modules/progname (Depends-on): Don't depend on stdbool.
54597
54598 2004-08-06  Simon Josefsson  <jas@extundo.com>
54599
54600         * modules/getsubopt: New file.
54601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54602         getsubopt.
54603
54604 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         More merge from coreutils.
54607
54608         * m4/utimens.m4, m4/utimecmp.m4: New files.
54609         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54610         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54611         prereq.m4, sha.m4: Import changes from coreutils.
54612
54613 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         More merge from coreutils.
54616         * modules/raise, modules/readtokens0, modules/utimens:
54617         * modules/utimecmp, module/xnanosleep: New files.
54618         * modules/strftime: Add lib/strftime.h.
54619         Change include from <time.h> to "strftime.h".
54620         * modules/yesno: Add lib/yesno.h.
54621         * modules/backupfile: Remove lib/addext.c.
54622         * modules/euidaccess: Add stat-macros.h.
54623         * modules/canonicalize, modules/euidaccess,
54624         modules/filemode, modules/lchown, modules/makepath,
54625         modules/rmdir, modules/stat: Likewise.
54626
54627 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         Merge from tar.
54630         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54631         SIZE_MAX is a valid preprocessor constant.
54632         (__argp_basename): Change from "#ifndef _LIBC"
54633         to "#ifndef __argp_short_program_name", so that
54634         we don't compile these functions for tar.
54635
54636         More merges from coreutils.
54637         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54638         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54639         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54640         * lib/addext.c: Remove; no longer needed.
54641         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54642         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54643         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54644         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54645         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54646         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54647         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54648         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54649         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54650         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54651         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54652         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54653         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54654         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54655         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54656         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54657         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54658         Import changes from coreutils.
54659
54660 2004-08-05  Simon Josefsson  <jas@extundo.com>
54661
54662         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54663
54664 2004-08-05  Simon Josefsson  <jas@extundo.com>
54665
54666         * m4/getsubopt.m4: New file.
54667
54668 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         Merge from coreutils.
54671
54672         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54673         * m4/getcwd-path-max.m4: New files.
54674
54675         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54676         FILESYSTEM_PREFIX_LEN ->
54677         FILE_SYSTEM_PREFIX_LEN.
54678         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54679         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54680         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54681         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54682
54683         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54684         prerequisite modules now handle the DOS stuff.
54685         Don't check for unistd.h.
54686
54687 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         Merge from coreutils.
54690
54691         * lib/.gdb-history: Remove; this doesn't belong here.
54692
54693         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54694         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54695         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54696         * lib/getcwd.c: New files.
54697
54698         * lib/dirname.h: Include <stdbool.h>.
54699         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54700         for consistency with POSIX terminology.  All uses changed.
54701         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54702         (strip_trailing_slashes): Use bool for booleans.
54703         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54704
54705         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54706         sometimes returns a positive errno value even when it succeeds.
54707         (print_errno_message) [!LIBC]: Fall back on strerror if
54708         __strerror_r fails.
54709
54710         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54711         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54712         (longest_relative_suffix): New function.
54713         (path_concat): Use it.  Assume first argument is not NULL.
54714         Port to DOS.  Omit redundant separators.
54715         Report an error instead of returning NULL.
54716         Use mempcpy instead of memcpy.
54717         (xpath_concat): Remove: not declared or used.
54718
54719         * lib/same.h: Include <stdbool.h>
54720         (same_name): Return bool, not int.
54721         * lib/same.c (same_name): Likewise.
54722         (errno): Don't declare; we assume C89 or better now.
54723
54724         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54725         if not already defined.
54726
54727         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54728         * lib/dup-safer.c (errno): Likewise.
54729
54730 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54731
54732         Merge from coreutils.
54733         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54734         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54735         * modules/path-concat: Don't depend on strdup.
54736
54737 2004-08-03  Simon Josefsson  <jas@extundo.com>
54738
54739         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54740         * lib/progname.h: Don't include stdbool.h.
54741
54742 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54743
54744         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54745         * MODULES.html.sh (func_all_modules): Remove fatal.
54746
54747 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54750
54751 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54754         working.
54755
54756 2004-08-02  Simon Josefsson  <jas@extundo.com>
54757
54758         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54759         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54760         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54761
54762 2004-08-01  Simon Josefsson  <jas@extundo.com>
54763
54764         * lib/xgetdomainname.c: Include stdlib.h, for free().
54765
54766 2004-07-19  Bruno Haible  <bruno@clisp.org>
54767
54768         * MODULES.html.sh (func_all_modules): Add dummy.
54769
54770 2004-07-16  Simon Josefsson  <jas@extundo.com>
54771
54772         * modules/dummy: New file.
54773
54774 2004-07-16  Simon Josefsson  <jas@extundo.com>
54775
54776         * lib/dummy.c: New file.
54777
54778 2004-07-16  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/backupfile.h: Add extern "C" for C++.
54781         * lib/closeout.h: Likewise.
54782         * lib/copy-file.h: Likewise.
54783         * lib/findprog.h: Likewise.
54784         * lib/full-write.h: Likewise.
54785         * lib/pathname.h: Likewise.
54786         * lib/progname.h: Likewise.
54787         * lib/stpcpy.h: Likewise.
54788         * lib/stpncpy.h: Likewise.
54789         * lib/strcase.h: Likewise.
54790         * lib/strstr.h: Likewise.
54791         * lib/xalloc.h: Likewise.
54792
54793         * lib/mbswidth.h: Add extern "C" for C++.
54794         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54795
54796 2004-07-13  Robert Millan  <robertmh@gnu.org>
54797
54798         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54799
54800 2004-07-09  Simon Josefsson  <jas@extundo.com>
54801
54802         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54803         failed without this.)
54804
54805 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * modules/chown (Files): Add lib/fchown-stub.c, since
54808         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54809
54810 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54811
54812         * lib/fchown-stub.c: New file.
54813
54814 2004-06-24  Jim Meyering  <jim@meyering.net>
54815
54816         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54817
54818 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * modules/argz: Omit "#include".
54821
54822         * MODULES.html.sh (func_all_modules): Add calloc, to match
54823         2004-06-01 addition of calloc module.
54824
54825 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54826
54827         * m4/argz.m4: New file, which is autoupdated from libtool.
54828
54829 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54830
54831         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54832         libtool.
54833
54834 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         * config/srclist-update: Don't insist on "USA." before the
54837         close-comment, as libtool omits the period and puts the */ on a
54838         separate line.
54839         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54840         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54841
54842 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54843
54844         * modules/argz: New file.
54845         * MODULES.html.sh (func_all_modules): Add argz.
54846
54847 2004-06-12  Jim Meyering  <jim@meyering.net>
54848         and  Paul Eggert  <eggert@cs.ucla.edu>
54849
54850         * modules/hash (Files): Add lib/xalloc.h.
54851         * modules/pipe (Depends-on): Add wait-process.
54852         * modules/stat (Depends-on): Add xalloc.
54853         * modules/userspec (Files): Add lib/userspec.h.
54854         * modules/xstrto
54855
54856         Upgrade from gettext-0.13.
54857         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54858         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54859         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54860
54861 2004-06-10  Jim Meyering  <jim@meyering.net>
54862
54863         * lib/calloc.c: New file.
54864
54865 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         * lib/getdate.y (yylex): Allow space between sign and number.
54868         Problem reported by Dan Jacobson.
54869
54870 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54871
54872         Merge from coreutils CVS.
54873
54874         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54875         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54876         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54877         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54878         xstrtol.m4: Fix copyright date and/or serial number.
54879
54880         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54881         See if we need an fchown replacement.
54882         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54883         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54884         and use the replacement function if we detect either defect.
54885
54886         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54887         gl_UTIMECMP.
54888
54889 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54890         and  Jim Meyering  <jim@meyering.net>
54891
54892         Merge from coreutils CVS.
54893
54894         * lib/stat-macros.h: New file, with contents from file-type.h
54895         and coreutils' system.h.
54896         * lib/file-type.c: Include "stat-macros.h".
54897         * lib/file-type.h (file_type): Move all macro definitions to new file,
54898         stat-macros.h.
54899
54900         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54901         Wrap old code with this conditional.
54902         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54903         function that does not dereference symlinks.
54904         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54905
54906         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54907         dependency problems.
54908         (xreadlink): Accept new arg SIZE, for efficiency.
54909         All decls and uses changed.
54910         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54911
54912         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54913         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54914
54915         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54916         sysexits.h.
54917
54918 2004-06-01  Jim Meyering  <jim@meyering.net>
54919
54920         * m4/calloc.m4: New file.
54921
54922 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54925         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54926         Also, fix a typo in a diagnostic.
54927
54928 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54931         or AC_FUNC_REALLOC.
54932
54933 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54936         macros to be defined.
54937         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54938         the allocator returns NULL because the requested size is zero.
54939
54940 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54943         var.  Add comment explaining why libc still defines it.  This
54944         merges the following patch from glibc:
54945         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54946
54947 2004-05-20  Andreas Schwab  <schwab@suse.de>
54948
54949         * m4/free.m4: Replace free if it not known to work, not the other
54950         way round.
54951
54952 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54953
54954         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54955         present in glibc since revision 1.1 of this file.
54956         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54957         obstack_alignment_mask, obstack_alloc, obstack_base,
54958         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54959         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54960         obstack_grow0, obstack_init, obstack_int_grow,
54961         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54962         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54963         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54964         nonexistent functions.
54965
54966 2004-05-18  Karl Berry  <karl@gnu.org>
54967
54968         * config/srclist.txt: break link for vasnprintf.c.
54969
54970 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54971
54972         Port obstack to the AS/400, where pointers are 16 bytes wide and
54973         you cannot cast an integer to a valid pointer.  This patch is
54974         currently waiting to be integrated into glibc; see
54975         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54976
54977         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54978         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54979         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54980         (struct obstack): temp member is now a union of a pointer and
54981         an integer, instead of an integer.  All integer uses changed.
54982         This does not affect the physical layout of struct obstack,
54983         except on hosts (like the AS/400) where the size or alignment of
54984         void * is greater than that of ptrdiff_t.
54985         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54986         __STDC__)]: Store temporary in pointer member of union, not
54987         integer member.
54988         * lib/obstack.c: Include <stddef.h>, for offsetof.
54989         (struct fooalign): Remove; it doesn't need a name.
54990         (union fooround): Change double to long double, and add void *.
54991         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54992         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54993         not a macro.  Hence the values are always int; so remove all
54994         casts-to-int in uses.
54995
54996 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54997
54998         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54999         we can get this patch merged into glibc.
55000
55001 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55002             Paul Eggert  <eggert@cs.ucla.edu>
55003
55004         * m4/argp: Depend on alloca.
55005
55006 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55007             Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55010         freecoding.
55011
55012 2004-05-17  Bruno Haible  <bruno@clisp.org>
55013
55014         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55015         precision that consists of a '.' followed by an empty digit string.
55016         Patch by Tor Lillqvist <tml@iki.fi>.
55017
55018 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55021         for backward compatibility with older code.  We need our own
55022         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55023         it under some other name, and our alloca.h will define it.
55024
55025 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55026             Derek Price  <derek@ximbiot.com>
55027
55028         * lib/alloca.c: Include <alloca.h>, to get our interface.
55029         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55030         include <alloca.h> first.  Use C89 prototype for alloca; this
55031         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55032         Use #elif for simplicity, since we can assume C89 now.
55033         Don't try to source the system alloca.h since it will not be found
55034         and to prevent recursively including its replacement.
55035         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55036         * lib/regex.c: Likewise.
55037
55038 2004-05-16  Derek Price  <derek@ximbiot.com>
55039             Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         getline cleanup.  This changes the getndelim2 API: both order of
55042         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55043         no delimiter).
55044
55045         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55046         interface does that.
55047         (getline): Always use getdelim, so that we don't have two
55048         copies of this code.
55049         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55050         if available.
55051         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55052         (GETNDELIM2_MAXIMUM): New macro.
55053         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55054         instead of the old practice of delim2==0.  All callers changed.
55055         Return -1 on overflow, instead of returning junk.
55056         Do not set *linesize unless allocation succeeds.
55057         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55058         that we include sys/types.h.
55059         * lib/getnline.h: Likewise.
55060         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55061         (getndelim2): Reorder arguments.
55062         * lib/getnline.c (getnline, getndelim):
55063         Don't discard the NMAX argument.
55064         (getnline): Invoke getndelim, to avoid code duplication.
55065         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55066         of (size_t) -1 by callers of the getnline family.
55067
55068 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55071         Check for gettimeofday.
55072         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55073         Check for settimeofday, stime.
55074
55075 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55076
55077         * lib/nanosleep.c (suspended): Change its type from int to
55078         sig_atomic_t volatile.
55079         (first_call): Make it private to rpl_nanosleep, and have it
55080         be zero initially as that's a bit faster.
55081         (my_usleep): Round up fractional times instead of truncating them,
55082         as this is the usual meaning for 'sleep'.
55083
55084         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55085         doesn't work.
55086         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55087         (ENOSYS): Define if not defined.
55088         (settime): Fall back on stime if it exists and settimeofday fails.
55089         But don't bother with fallbacks if a method fails with errno == EPERM.
55090
55091 2004-05-11  Jim Meyering  <jim@meyering.net>
55092
55093         Prior to this change, the save_cwd caller required read access to the
55094         current directory on most systems (ones with the fchdir function).
55095
55096         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55097         fails, try write-only, and finally, resort to using xgetcwd.
55098
55099 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * lib/obstack.c, obstack.h: Import changes from libc.
55102
55103 2004-04-28  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55106         also implicitly appends .exe to executables.
55107         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55108         accepts Windows pathnames.
55109         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55110         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55111         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55112         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55113         Reported by Derek Robert Price <derek@ximbiot.com>.
55114
55115 2004-04-21  Karl Berry  <karl@gnu.org>
55116
55117         * config/srclist.txt (localcharset.c): break sync.
55118
55119 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55120
55121         * m4/host-os.m4: Add a copyright notice.
55122
55123 2004-04-20  Jim Meyering  <jim@meyering.net>
55124
55125         Change UTILS_ to gl_ in AC_DEFINE'd names.
55126         Change utils_- and jm_-prefixed variables, too.
55127         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55128         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55130
55131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55132         Don't emit trailing blanks.
55133         Also rename jm_-prefixed variables to have gl_ prefix.
55134
55135         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55136         Also rename jm_-prefixed variables to have gl_ prefix.
55137
55138         * m4/jm-macros.m4: Reflect the renamings.
55139         * m4/prereq.m4: Likewise.
55140
55141 2004-04-20  Jim Meyering  <jim@meyering.net>
55142
55143         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55144         memory.
55145
55146 2004-04-20  Jim Meyering  <jim@meyering.net>
55147             Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55150         memory when realloc fails.
55151
55152 2004-04-19  Jim Meyering  <jim@meyering.net>
55153
55154         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55155         now that readutmp.c may call `free (0)'.
55156
55157 2004-04-19  Bruno Haible  <bruno@clisp.org>
55158
55159         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55160         * m4/inttypes_h.m4: Likewise.
55161         * m4/stdint_h.m4: Likewise.
55162         * m4/intmax_t.m4: Likewise.
55163         * m4/uintmax_t.m4: Likewise.
55164
55165 2004-04-18  Jim Meyering  <jim@meyering.net>
55166
55167         * m4/prereq.m4: Don't forbid jm_ prefix.
55168
55169         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55170         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55171         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55172         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55173         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55174         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55175         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55176         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55177         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55178         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55179         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55180         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55181         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55182         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55183         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55184         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55185         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55186         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55187         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55188
55189 2004-04-18  Jim Meyering  <jim@meyering.net>
55190
55191         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55192         failure, don't leak memory and do call END_UTMP_ENT.
55193
55194 2004-04-16  Jim Meyering  <jim@meyering.net>
55195
55196         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55197         coreutils' stat program.
55198         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55199
55200 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55201
55202         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55203         C89.
55204         (CHAR_BIT): Remove, since we assume C89.
55205         Include <stdint.h> if available, as per current Autoconf CVS advice.
55206
55207 2004-03-31  Jim Meyering  <jim@meyering.net>
55208
55209         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55210         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55211         * m4/xalloc.m4: Likewise.
55212
55213 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55214
55215         Merge from coreutils.
55216
55217         * m4/inttostr.m4: New file.
55218         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55219         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55220         Require gl_CLOCK_TIME.
55221         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55222
55223 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55224
55225         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55226         not bool, to be more consistent with Unix conventions.
55227         Suggested by Bruno Haible.
55228
55229         Merge from coreutils.
55230
55231         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55232         * lib/umaxtostr.c: New files.
55233
55234         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55235         the usual <time.h> dance.
55236         (get_date): Change signature to support fractional time stamps.
55237         All callers changed.
55238         * lib/getdate.y: Include "getdate.h" first, as we can now
55239         assume C89 and don't need to worry about 'const'.
55240         Similarly, include "unlocked-io.h" near start, not in middle.
55241         Include <limits.h>.
55242         (textint.value): Use long int rather than int.
55243         (textint.digits): Use size_t rather than int.
55244         (BILLION, LOG10_BILLION): New constants.
55245         (parser_control): New member rel_ns.  Members day_ordinal,
55246         time_zone, month, day, hour, minutes, rel_year, rel_month,
55247         rel_day, rel_hour, rel_minutes, rel_seconds
55248         are now long int, not int.  Member seconds is now struct timespec,
55249         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55250         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55251         not int.
55252         (%union.intval): Now long int, not int.
55253         New member timespec.
55254         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55255         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55256         (spec): Now is a timespec or an item list.
55257         (timespec, items): New nonterminals.
55258         (time, rel, relunit, number, get_date):
55259         Add support for fractional seconds.
55260         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55261         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55262         (to_hour): First arg is now long int, not int.
55263         (to_year): Returns long int, not int.
55264         Don't treat year -70 like 70.
55265         (tm_diff): Returns long int, not int.
55266         (lookup_word): Use bool instead of int when appropriate.
55267         (yylex): Use size_t for count, not int.
55268         Detect overflow when parsing large integer constants.
55269         Add support for fractions.
55270         (get_date): Make pointers 'const' if possible.
55271         Use more-portable code to detect integer overflow.
55272         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55273         Don't use ctime; it's not reliable if the year has >4 digits.
55274
55275         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55276         This is for compatibility with BSD.
55277
55278         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55279         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55280         From coreutils' system.h.
55281
55282         * lib/userspec.c: Don't include "posixver.h".
55283         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55284         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55285         compatible extension.  Simplify code by removing a boolean int
55286         that was always nonzero if a string was nonnull.
55287
55288 2004-03-30  Jim Meyering  <jim@meyering.net>
55289
55290         Merge from coreutils.
55291
55292         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55293         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55294         on some systems one must include <grp.h> before it.
55295         Reported by Christian Krackowizer.
55296
55297 2004-03-30  Jim Meyering  <jim@meyering.net>
55298
55299         Merge from coreutils.
55300
55301         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55302
55303         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55304         an empty input stream.
55305
55306         * lib/readtokens.c: Include <stdbool.h>.
55307         (readtoken): Use `size_t' rather than int/long.
55308         All callers adjusted.
55309         Use `bool' rather than `int' where appropriate.
55310         Use memset rather than an explicit loop.
55311         Use x2nrealloc rather than xrealloc.
55312         Allow the use of `\0' as a delimiter.
55313         (readtokens): Likewise.
55314         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55315
55316 2004-03-30  Jim Meyering  <jim@meyering.net>
55317
55318         * m4/realloc.m4: Remove file, since now it does no more than
55319         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55320         the `configure.ac' section of module/realloc.
55321         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55322
55323 2004-03-30  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55326         nonnull.
55327
55328 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55329
55330         Merge changes to getloadavg.c from coreutils and Emacs.
55331
55332         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55333         Define to an expression, not to the empty string.
55334         Include cloexec.h and xalloc.h.
55335         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55336         Use set_cloexec_flag rather than rolling our own.
55337         * lib/cloexec.c, lib/cloexec.h: New files.
55338
55339 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55340
55341         * m4/cloexec.m4: New file.
55342
55343 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55344
55345         * lib/getopt.h: Sync with libc CVS.
55346
55347 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55348             Bruno Haible  <bruno@clisp.org>
55349
55350         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55351         mbswidth.
55352
55353 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55354             Bruno Haible  <bruno@clisp.org>
55355
55356         * lib/mbswidth.h: Include <wchar.h> only if
55357         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55358         <wchar.h>.
55359         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55360
55361 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55362
55363         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55364         Sync with libc CVS.
55365         * lib/getopt_int.h: New file, also synced from libc.
55366
55367 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55368
55369         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55370         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55371         Bring back getopt.c, getopt.h, getopt1.c.
55372
55373 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55374
55375         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55376         All uses changed.  Check for sa_sigaction member; this fixes
55377         a bug first reported by Jason Andrade in
55378         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55379
55380 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55381
55382         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55383         '#if' expressions.  Unlike the code it replaces, it does not
55384         depend on (defined _SC_PAGESIZE).  However, it does depend on
55385         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55386         first reported by Jason Andrade in
55387         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55388
55389 2004-02-25  Simon Josefsson  <jas@extundo.com>
55390
55391         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55392
55393 2004-02-25  Simon Josefsson  <jas@extundo.com>
55394
55395         * lib/strdup.h: New file.
55396         * lib/strdup.c: Include it.
55397         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55398         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55399
55400 2004-02-23  Karl Berry  <karl@gnu.org>
55401
55402         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55403         (from fencepost.gnu.org:/gd/gnuorg).
55404
55405 2004-02-23  Karl Berry  <karl@gnu.org>
55406
55407         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55408         * config/srclist.txt: add maintain/standards documents.
55409
55410 2004-02-18  Bruno Haible  <bruno@clisp.org>
55411
55412         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55413         Reported by Derek Robert Price <derek@ximbiot.com>.
55414
55415 2004-02-16  Karl Berry  <karl@gnu.org>
55416
55417         * config/mkinstalldirs, install-sh: update from automake.
55418
55419 2004-02-06  Karl Berry  <karl@gnu.org>
55420
55421         * m4/po.m4: update from gettext 0.14.1.
55422
55423 2004-02-06  Karl Berry  <karl@gnu.org>
55424
55425         * lib/config.charset: update from gettext 0.14.1.
55426
55427 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55428
55429         Add comments and code, prompted by suggestions from Bruno Haible
55430         for sh-quote.
55431         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55432         describing the enum quoting_style values.
55433         * lib/quotearg.c (quotearg_alloc): New function.
55434         (quotearg_buffer_restyled): Treat lone { and } as special.
55435         Treat = as special.  Work around bug with older shells
55436         that "see" a '\' that is really the 2nd byte of a multibyte char.
55437         Quote empty string with shell_quoting_style.
55438
55439 2004-02-03  Bruno Haible  <bruno@clisp.org>
55440
55441         * m4/pipe.m4: New file, from GNU gettext.
55442
55443 2004-02-03  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/pipe.h: New file, from GNU gettext.
55446         * lib/pipe.c: New file, from GNU gettext.
55447
55448 2004-01-27  Bruno Haible  <bruno@clisp.org>
55449
55450         * m4/execute.m4: New file, from GNU gettext.
55451
55452 2004-01-27  Bruno Haible  <bruno@clisp.org>
55453
55454         * lib/execute.h: New file, from GNU gettext.
55455         * lib/execute.c: New file, from GNU gettext.
55456         * lib/w32spawn.h: New file, from GNU gettext.
55457
55458 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55459
55460         Merge from diffutils.
55461
55462         * lib/file-type.c (file_type): Add typed memory objects.
55463         * lib/file-type.h (S_TYPEISTMO): New macro.
55464
55465         * lib/c-stack.h (c_stack_action): Remove argv argument.
55466         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55467         (die): Don't calculate message unless segv_action returns.
55468         (get_stack_location, min_address_from_argv, max_address_from_argv,
55469         volatile stack_base, volatile_stack_size): Remove.
55470         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55471         that every segmentation violation is a stack overflow.  (Ouch!)
55472         See Debian bug 136249 (still outstanding) for more info about why
55473         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55474
55475 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55476
55477         Exit-status fix from coreutils.
55478
55479         Use exit_failure consistently in place of EXIT_FAILURE,
55480         so that program exit statuses are consistent on failure.
55481
55482         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55483         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55484         * lib/argmatch.h: Comment fix to match the above.
55485         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55486         Now a macro referring to exit_failure, instead of a separate
55487         variable.  Include "exitfail.h" to get it.
55488         * lib/xstrtol.h: Include "exitfail.h".
55489         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55490
55491         * lib/long-options.c (parse_long_options): Use prototype
55492         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55493         for clarity.
55494
55495 2004-01-21  Jim Meyering  <jim@meyering.net>
55496
55497         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55498         so as not to conflict with a different-sized __mktime_internal
55499         function in GNU libc.
55500         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55501         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55502
55503 2004-01-20  Karl Berry  <karl@gnu.org>
55504
55505         * config/config.guess: update from config.
55506
55507         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55508
55509 2004-01-20  Bruno Haible  <bruno@clisp.org>
55510
55511         Safer stack allocation.
55512         * lib/setenv.c: Include allocsa.h.
55513         (alloca): Remove fallback definition.
55514         (freea): Remove macro.
55515         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55516         instead of freea.
55517
55518 2004-01-20  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/eealloc.m4: New file, from GNU gettext.
55521
55522 2004-01-20  Bruno Haible  <bruno@clisp.org>
55523
55524         * m4/allocsa.m4: New file, from GNU gettext.
55525
55526 2004-01-20  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/xallocsa.h: New file, from GNU gettext.
55529         * lib/xallocsa.c: New file, from GNU gettext.
55530
55531 2004-01-20  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55534
55535 2004-01-20  Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55538         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55539         specially.
55540
55541 2004-01-20  Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55544         patch.
55545
55546 2004-01-20  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55549
55550 2004-01-20  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/eealloc.h: New file.
55553
55554 2004-01-20  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/binary-io.h: Avoid warnings on Cygwin.
55557
55558 2004-01-20  Bruno Haible  <bruno@clisp.org>
55559
55560         * lib/allocsa.h: New file, from GNU gettext.
55561         * lib/allocsa.c: New file, from GNU gettext.
55562
55563 2004-01-18  Karl Berry  <karl@gnu.org>
55564
55565         * doc/gpl.texi, doc/lgpl.texi: new files.
55566
55567 2004-01-18  Karl Berry  <karl@gnu.org>
55568
55569         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55570         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55571
55572 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55573
55574         Merge from coreutils.
55575
55576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55577         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55578         (gl_DEFAULT_POSIX2_VERSION): Move
55579         the documentation from 'configure' into 'config.hin',
55580         so that 'configure --help' isn't burdened by it and
55581         we don't have to worry about its formatting there.
55582         Reword the documentation so that it's more succinct
55583         and can be run together into a single paragraph.
55584         * m4/same.m4 (gl_SAME): Check for pathconf.
55585
55586 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55587
55588         Merge from coreutils.
55589
55590         * lib/posixver.c: Include posixver.h.
55591
55592         * lib/same.c: Include <stdbool.h>, <limits.h>.
55593         (_POSIX_NAME_MAX): Define if not defined.
55594         (MIN): New macro.
55595         (same_name): If file names are silently truncated, report
55596         that the file names are the same if they are the same after
55597         the silent truncation.
55598
55599         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55600         conversion function.
55601         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55602         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55603         longer needed.
55604
55605 2004-01-15  Jim Meyering  <jim@meyering.net>
55606
55607         Merge from coreutils.
55608
55609         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55610         if no library is required.
55611         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55612         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55613         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55614         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55615         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55616         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55617         value, $ac_cv_search_crypt, if it's "none required".
55618         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55619         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55620         not gl_FUNC_GETLOADAVG.
55621         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55622         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55623
55624 2004-01-15  Jim Meyering  <jim@meyering.net>
55625
55626         Merge from coreutils.
55627
55628         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55629         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55630         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55631
55632         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55633         optional configure-time default.
55634
55635         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55636
55637         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55638
55639 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55640
55641         Merge from coreutils.
55642
55643         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55644         value, $ac_cv_search_nanosleep, if it's "none required".
55645
55646 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55647
55648         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55649         with like-named macro in fnmatch.c.
55650         (EXT): Use an internal constant instead.
55651
55652         Merge fnmatch patches from glibc.
55653         * lib/fnmatch.c (mbsinit): Remove define.
55654         Add libc_hidden_ver (__fnmatch, fnmatch).
55655         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55656         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55657
55658 2004-01-14  Karl Berry  <karl@gnu.org>
55659
55660         * config/install-sh: update from automake.
55661
55662 2004-01-13  Karl Berry  <karl@gnu.org>
55663
55664         * config/install-sh: update from automake.
55665
55666 2004-01-09  Karl Berry  <karl@gnu.org>
55667
55668         * config/install-sh: update from automake.
55669
55670 2004-01-05  Karl Berry  <karl@gnu.org>
55671
55672         * config/config.{sub,guess}: update from config.
55673
55674 2003-12-31  Karl Berry  <karl@gnu.org>
55675
55676         * config/depcomp: update from automake.
55677
55678 2003-12-14  Karl Berry  <karl@gnu.org>
55679
55680         * lib/config.charset: update from gettext-runtime.
55681
55682 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55683
55684         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55685         Bug reported by Alfred M. Szmidt.
55686
55687 2003-12-03  Bruno Haible  <bruno@clisp.org>
55688
55689         * m4/gettext.m4: Upgrade from gettext-0.13.
55690         * m4/po.m4: Upgrade from gettext-0.13.
55691         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55692         * m4/intmax.m4: New file, from gettext-0.13.
55693         * m4/printf-posix.m4: New file, from gettext-0.13.
55694
55695 2003-11-29  Karl Berry  <karl@gnu.org>
55696
55697         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55698
55699 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55700             Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/printf-parse.h: Don't include sys/types.h.
55703         (ARG_NONE): New macro.
55704         (char_directive): Change type of *arg_index fields to size_t.
55705         * lib/printf-parse.c: Don't include sys/types.h.
55706         (SSIZE_MAX): Remove macro.
55707         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55708         Remove unnecessary overflow check.
55709         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55710         fields.
55711
55712 2003-11-25  Bruno Haible  <bruno@clisp.org>
55713
55714         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55715
55716 2003-11-25  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55719         gt_TYPE_SSIZE_T.
55720
55721 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55722
55723         * modules/alloca: Remove dependency on xalloc.
55724
55725 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55726
55727         * lib/alloca.c: Remove dependency on xalloc module.
55728         (xalloc_die): Remove.
55729         (memory_full) [!defined emacs]: New macro.
55730         [!defined emacs]: Don't include xalloc.h.
55731         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55732         address arithmetic overflows.  Change datatypes a bit to avoid
55733         unnecessary casts.
55734
55735 2003-11-22  Jim Meyering  <jim@meyering.net>
55736
55737         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55738         s/size/size_t/.
55739
55740 2003-11-21  Karl Berry  <karl@gnu.org>
55741
55742         * config/config.{sub,guess}: update from config.
55743
55744 2003-11-18  Karl Berry  <karl@gnu.org>
55745
55746         * config/config.{sub,guess}: update from config.
55747
55748         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55749
55750 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55751
55752         * README: Mention that S+T cannot overflow if S is the size of
55753         an existing object and T is sufficiently small.
55754
55755 2003-11-17  Jim Meyering  <jim@meyering.net>
55756
55757         On systems without utime and without a utimes function capable of
55758         dealing with a NULL struct utimbuf* argument, this utime replacement
55759         could -- in unusual circumstances -- leak a file descriptor.
55760         * lib/utime.c: Include <unistd.h> and <errno.h>.
55761         (utime_null): Be sure to close `fd' and to preserve errno.
55762         Reported by Geoff Collyer via Arnold Robbins.
55763
55764 2003-11-17  Bruno Haible  <bruno@clisp.org>
55765
55766         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55767         (Depends-on): Add xsize.
55768
55769 2003-11-17  Bruno Haible  <bruno@clisp.org>
55770
55771         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55772
55773 2003-11-17  Bruno Haible  <bruno@clisp.org>
55774
55775         * lib/vasnprintf.c (alloca): Remove fallback definition.
55776         (freea): Remove definition.
55777         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55778         Reported by Paul Eggert.
55779
55780 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55781             Bruno Haible  <bruno@clisp.org>
55782
55783         Protect against address arithmetic overflow.
55784         * lib/printf-args.h: Include stddef.h.
55785         (arguments): Change type of field 'count' to size_t.
55786         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55787         'unsigned int' where appropriate.
55788         * lib/printf-parse.h: Include sys/types.h.
55789         (char_directive): Change type of *arg_index fields to ssize_t.
55790         (char_directives): Change type of fields 'count', max_*_length to
55791         size_t.
55792         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55793         (SSIZE_MAX): Define fallback value.
55794         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55795         instead of 'int' where appropriate. Check a_allocated, d_allocated
55796         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55797         * lib/vasnprintf.c: Include xsize.h.
55798         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55799         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55800         overflow. Avoid wraparound when converting a width or precision from
55801         decimal to binary.
55802
55803 2003-11-16  Bruno Haible  <bruno@clisp.org>
55804
55805         Update from GNU gettext.
55806         * lib/printf-parse.c: Generalize to it can be compiled for wide
55807         strings.
55808         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55809         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55810         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55811         SNPRINTF): New macros.
55812         Don't include <alloca.h> if the file is used inside libintl.
55813         (local_wcslen): New function, for Solaris 2.5.1.
55814         (VASNPRINTF): Use it instead of wcslen.
55815
55816 2003-11-16  Bruno Haible  <bruno@clisp.org>
55817
55818         * lib/xsize.h (xmax): New function.
55819         (xsum, xsum3, xsum4): Declare as "pure" functions.
55820
55821 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55822
55823         * modules/xalloc (Files): Undo latest change, since xalloc.h
55824         no longer needs SIZE_MAX or PTRDIFF_MAX.
55825
55826 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55827
55828         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55829         gl_PTRDIFF_MAX.
55830
55831 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55832
55833         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55834         "return", to pacify some unknown compiler.  Problem reported
55835         by Joerg Schilling.
55836
55837 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55838
55839         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55840         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55841         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55842         heuristic is just as accurate as far as we know, and it removes a
55843         dependency on size_max.m4 and ptrdiff_max.m4.
55844
55845 2003-11-11  Bruno Haible  <bruno@clisp.org>
55846
55847         * modules/xsize (Files): Add m4/size_max.m4.
55848         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55849
55850 2003-11-11  Bruno Haible  <bruno@clisp.org>
55851
55852         * m4/size_max.m4: New file.
55853         * m4/ptrdiff_max.m4: New file.
55854         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55855         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55856         (gl_XALLOC): Invoke it.
55857
55858 2003-11-11  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55861         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55862         defined.
55863
55864 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55865
55866         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55867         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55868         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55869         From Bruno Haible.
55870         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55871         not (size_t) -1, since it's defined here.
55872
55873 2003-11-09  Karl Berry  <karl@gnu.org>
55874
55875         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55876
55877 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55878
55879         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55880         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55881         Reject sizes of exactly SIZE_MAX bytes.
55882         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55883         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55884
55885 2003-11-05  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55888         SIZE_MAX defined in <limits.h> on Solaris.
55889
55890 2003-11-04  Jim Meyering  <jim@meyering.net>
55891
55892         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55893         variable names, rather than @VAR@.
55894         * modules/poll: Likewise.
55895
55896 2003-11-04  Bruno Haible  <bruno@clisp.org>
55897
55898         * modules/xsize: New file.
55899         * modules/linebreak: Depend on xsize.
55900         * MODULES.html.sh (func_all_modules): Add xsize.
55901
55902 2003-11-04  Bruno Haible  <bruno@clisp.org>
55903
55904         * m4/xsize.m4: New file.
55905
55906 2003-11-04  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/xsize.h: New file.
55909         * lib/linebreak.c: Include xsize.h.
55910         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55911         argument for overflow.
55912         Suggested by Paul Eggert.
55913
55914 2003-11-03  Karl Berry  <karl@gnu.org>
55915
55916         * config/config.{guess,sub}: update from config.
55917
55918 2003-11-03  Jim Meyering  <jim@meyering.net>
55919
55920         * modules/userspec (lib_SOURCES): Add userspec.h.
55921         (Include): Add "userspec.h".
55922         Improve description.
55923
55924 2003-11-03  Jim Meyering  <jim@meyering.net>
55925
55926         * lib/userspec.c: Include "userspec.h".
55927         * lib/userspec.h: New file.
55928
55929 2003-11-03  Bruno Haible  <bruno@clisp.org>
55930
55931         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55932
55933 2003-11-03  Bruno Haible  <bruno@clisp.org>
55934
55935         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55936         available, to avoid (extremely rare) race condition.
55937         Suggested by Paul Eggert.
55938
55939 2003-11-02  Karl Berry  <karl@gnu.org>
55940
55941         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55942
55943 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55944
55945         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55946         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55947         (read_filesystem_list): Set and use me_type_malloced.
55948         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55949         whatever the type happens to be), for brevity and consistency.
55950         Check for size calculation overflow on Alphas running OSF/1.
55951
55952 2003-10-31  Jim Meyering  <jim@meyering.net>
55953
55954         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55955
55956         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55957
55958 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55959             Bruno Haible  <bruno@clisp.org>
55960
55961         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55962         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55963
55964 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55965
55966         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55967         netbsd*-gnu*.  Suggested by Robert Millan.
55968
55969 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55970
55971         * modules/group-member: Depend on stdbool.
55972
55973 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55974
55975         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55976
55977 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55978
55979         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55980         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55981         after the 'gnu' in these cases.  This fixes some bugs in the
55982         previous change, and is based on suggestions by Robert Millan.
55983
55984 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55985
55986         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55987         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55988         no longer needed.
55989         * lib/quotearg.c (quotearg_n_options): Use it.
55990         * lib/group-member.c: Include <stdbool.h>.
55991         (free_group_info): Arg is now const *; don't free arg.
55992         (get_group_info): Now returns bool and accepts struct group_info *,
55993         rather than returning a malloc'ed struct group_info *.
55994         All uses changed.  Check for overflow in internal size calculation.
55995
55996         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55997         rather than xmalloc/xrealloc.
55998         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55999         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56000         conformance bug: the old code used a pointer after freeing the
56001         storage that it addressed.
56002         * lib/hash.c (hash_initialize): Simplify the code by using
56003         xalloc_oversized rather than doing it by hand.
56004         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56005         the buffer preserved.  Use free and xmalloc instead.
56006         * lib/quotearg.c (quotearg_n_options): Likewise.
56007         Use a simpler test for size overflow.  Don't use xalloc_oversized
56008         because unsigned int might be wider than size_t (!); this suggests
56009         that we should switch from unsigned int to size_t for slot numbers.
56010
56011 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56012
56013         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56014         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56015         NetBSD kernels.  Requested by Richard Stallman.
56016
56017 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56018
56019         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56020         to allocate the returned structure.  Do not allocate a subarray,
56021         as x2nrealloc will do that.
56022         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56023         instead of xnrealloc.
56024         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56025
56026 2003-10-27  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/stdbool_.h: Better support for BeOS.
56029
56030 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56031
56032         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56033         now uses inline.
56034
56035 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56036
56037         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56038         callers that want to do their own size-overflow checking.  Include
56039         <stdbool.h>, since xalloc_oversized returns bool.
56040         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56041         to use xalloc_oversized.
56042
56043         Add two functions x2realloc, x2nrealloc, for programs that grow
56044         arrays dynamically by doubling their sizes.
56045         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56046         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56047         New functions.
56048
56049         Port to C99 semantics for 'inline' of external functions.
56050         Bug reported by Bruno Haible.
56051         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56052         with the old contents of xnmalloc.
56053         (xnmalloc, xmalloc): Use it.
56054         (xnrealloc_inline): New static inline function,
56055         with the old contents of xnrealloc.
56056         (xnrealloc, xrealloc): Use it.
56057
56058         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56059         that.
56060
56061 2003-10-26  Karl Berry  <karl@gnu.org>
56062
56063         * config/srclist.txt (COPYING.DOC): no longer available from
56064         /gd/gnuorg; don't know where the ultimate source is.
56065
56066 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56067
56068         Fix several address-calculation bugs in the hash modules,
56069         plus some minor code cleanup.
56070
56071         * lib/hash.h: Include <stdbool.h>, for bool.
56072         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56073         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56074         hash_get_n_entries, hash_get_max_bucket_length,
56075         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56076         hash_rehash): Use size_t rather than unsigned.
56077         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56078         hash_get_n_buckets_used, hash_get_n_entries,
56079         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56080         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56081         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56082         Likewise.
56083         (SIZE_MAX): Define if not defined.
56084         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56085         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56086         hash_print):
56087         Use const * when possible.
56088         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56089         (check_tuning): Fix bug: if tuning parameters were very close to
56090         0 or 1, rounding errors could have caused subscript violations.
56091         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56092         (hash_initialize): Add 'fail:' label
56093         to free table and return NULL, and use it to simplify code.
56094         Use calloc rather than clearing the storage ourself.
56095         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56096         buffer size calculations.
56097         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56098         Include <stddef.h>, for size_t.
56099         * lib/hash-pjw.c (hash_pjw): Likewise.
56100         Switch to method described by Bruno Haible.
56101         Include <limits.h>, for CHAR_BIT.
56102         (SIZE_BITS): New macro.
56103
56104 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56105
56106         * m4/getline.m4 (AM_FUNC_GETLINE):
56107         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56108         hosts.  Problem reported by Derek Robert Price in
56109         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56110         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56111         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56112
56113 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56114
56115         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56116         ceiling the allocation at NMAX bytes rather than silently
56117         discarding input bytes before NMAX is reached.  This makes
56118         a difference only if NMAX exceeds SIZE_MAX / 2.
56119
56120         * lib/obstack.c: Merge from glibc.
56121         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56122         Add libc_hidden_def (_obstack_newchunk).
56123         (_obstack_free) [! defined _LIBC]: Remove.
56124         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56125         a clone of the function body.
56126         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56127         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56128
56129         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56130         glibc.
56131         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56132         arg to memcpy.
56133
56134         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56135         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56136         Don't use lvalue casts, as GCC plans to remove support for them
56137         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56138         was also present in the non-GCC version, indicating that this
56139         code had always been buggy and had never been widely used.
56140         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56141         Use the fast variant of each macro, rather than copying the
56142         definiens of the fast variant; that way, we'll be more likely to
56143         catch future bugs in the fast variants.
56144
56145 2003-10-20  Bruno Haible  <bruno@clisp.org>
56146
56147         * modules/wait-process: New file.
56148         * MODULES.html.sh (func_all_modules): Add wait-process.
56149
56150 2003-10-20  Bruno Haible  <bruno@clisp.org>
56151
56152         * m4/wait-process.m4: New file.
56153
56154 2003-10-20  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/wait-process.h: New file, from GNU gettext.
56157         * lib/wait-process.c: New file, from GNU gettext.
56158
56159 2003-10-19  Jim Meyering  <jim@meyering.net>
56160
56161         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56162         HPUX 10.20.
56163
56164 2003-10-18  Karl Berry  <karl@gnu.org>
56165
56166         * config/config.guess: update from config.
56167
56168 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56169
56170         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56171         (getgroups): First arg is int, not size_t.
56172         Don't let 'free' mangle errno.
56173
56174 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56175
56176         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56177
56178 2003-10-16  Karl Berry  <karl@gnu.org>
56179
56180         * config/config.{guess,sub}: update from config.
56181
56182 2003-10-16  Jim Meyering  <jim@meyering.net>
56183
56184         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56185         memcpy.
56186
56187 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56188
56189         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56190         (SIZE_MAX): Remove.
56191         (new_exclude, add_exclude_file): Initial size no longer needs to
56192         be a power of 2.
56193         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56194         our own address arithmetic overflow checking.
56195
56196         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56197         (fnmatch): Do not alloca more than 2000 wide characters;
56198         instead, use malloc for large buffers.
56199         Check for address arithmetic overflow, and return -1
56200         with errno set to ENOMEM in that case.
56201         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56202         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56203         instead, return -1.  Check for address arithmetic overflow.
56204
56205 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56206
56207         Handle invalid suffixes and overflow independently, so that
56208         callers can treat them independently as needed.  Fix some bugs in
56209         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56210         suffix for a human-readable blocksize.  The major caller-visible
56211         change is the addition of a new
56212         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56213         that both overflow and suffix chars were found.
56214
56215         * lib/human.c (humblock): Don't check separately for invalid suffix
56216         char; that is xstrtoumax's job (now that its bug is fixed).
56217         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56218         INTMAX_MAX]: New macros.
56219         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56220         TYPE_MAXIMUM): New macros.
56221         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56222         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56223         if overflow occurs, as it's what __strtol does and it's more useful
56224         in practice.
56225         (__xstrtol): If __strtol reports some error other than ERANGE,
56226         reflect it to the caller as LONGINT_INVALID.  If it reports
56227         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56228         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56229         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56230         value.
56231         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56232         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56233         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56234         [defined UINTMAX_MAX]: New macros.
56235
56236 2003-10-14  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56239
56240 2003-10-14  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/sig_atomic_t: New file, from GNU gettext.
56243         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56244
56245 2003-10-14  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56248         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56249         Also use volatile where needed.
56250
56251 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56252
56253         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56254         Change maintainer from Bruno Haible to 'all'.
56255
56256 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56257
56258         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56259
56260 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56261
56262         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56263         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56264         and define in terms of the other primitives.
56265         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56266         (SIZE_MAX): Define if not already defined.
56267         (array_size_overflow): New function.
56268         (xalloc_die): Abort instead of exiting if 'error' returns.
56269         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56270         (xmalloc, xrealloc): Use them.
56271         (xcalloc): Check for address arithmetic overflow.
56272         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56273         a bit faster than strcpy.
56274
56275 2003-10-10  Simon Josefsson  <jas@extundo.com>
56276
56277         * modules/argp (Depends-on): Add restrict and strcase.
56278
56279 2003-10-10  Simon Josefsson  <jas@extundo.com>
56280
56281         * m4/argp.m4: Add AC_C_INLINE.
56282
56283 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56284
56285         Merge getpass from libc, plus a few fixes.
56286
56287         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56288         Include <stdbool.h>.
56289         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56290         __fsetlocking to empty.
56291         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56292         do include <bits/libc-lock.h>.
56293         Do not include <fcntl.h>; not needed.
56294         [_LIBC]: Include <wchar.h>.
56295         (NOTCANCEL_MODE): New macro.
56296         (flockfile, funlockfile) [_LIBC]: New macros.
56297         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56298         [!_LIBC]: New macros.
56299         (call_fclose): New function.
56300         (getpass): Use it.  Save tty stream separately; this simplifies the
56301         code and makes it more reliable if stdin happens to equal stdout.
56302         Invoke __fsetlocking on tty.
56303         Handle thread cancellation if needed.
56304         Namespace cleanup (use __tcgetattr, __getline).
56305         Use bool for Booleans.
56306         [USE_IN_LIBIO]: Handle wide streams.
56307         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56308         stream might go where.
56309
56310         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56311         doesn't have to include <stdio.h> before us.
56312         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56313         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56314         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56315         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56316         if not declared, so that we can use getpass.c code from libc without
56317         rewriting it.
56318         (flockfile, ftrylockfile, funlockfile): New macros.
56319
56320 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56321
56322         * modules/getpass: Depend on stdbool.
56323
56324 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56325
56326         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56327
56328 2003-10-07  Karl Berry  <karl@gnu.org>
56329
56330         * config/config.{guess,sub}: update from config.
56331
56332 2003-10-06  Jim Meyering  <jim@meyering.net>
56333             Bruno Haible  <bruno@clisp.org>
56334
56335         This lets translators provide better translations for the
56336         "Written by ..." part of --version output.
56337         * lib/version-etc.h: Include stdarg.h.
56338         (version_etc_copyright): Declare as readonly.
56339         (version_etc): Make this function variadic with a NULL-terminated list
56340         of author name strings.
56341         (version_etc_va): New declaration.
56342         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56343         (version_etc_copyright): Declare as readonly.
56344         (version_etc_va): New function. Provide a different translatable string
56345         for each possible number of authors < 10. Abbreviate when there are 10
56346         authors or more.
56347         (version_etc): Make this function variadic. Call version_etc_va.
56348         Suggestion from Gary V. Vaughan.
56349
56350         * lib/long-options.h (parse_long_options): Change prototype: the
56351         authors string is moved to the end and becomes variadic.
56352         * lib/long-options.c: Include stdarg.h.
56353         (parse_long_options): Make this function variadic, too.
56354         Call version_etc_va, not version_etc.
56355
56356 2003-10-06  Bruno Haible  <bruno@clisp.org>
56357
56358         * modules/version-etc-2: Remove file.
56359         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56360
56361 2003-10-06  Bruno Haible  <bruno@clisp.org>
56362
56363         * modules/fatal-signal: New file.
56364         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56365
56366 2003-10-06  Bruno Haible  <bruno@clisp.org>
56367
56368         * m4/fatal-signal.m4: New file.
56369         * m4/signalblocking.m4: New file, from GNU gettext.
56370
56371 2003-10-06  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/version-etc-2.h: Remove file.
56374         * lib/version-etc-2.c: Remove file.
56375
56376 2003-10-06  Bruno Haible  <bruno@clisp.org>
56377
56378         * lib/fatal-signal.h: New file, from GNU gettext.
56379         * lib/fatal-signal.c: New file, from GNU gettext.
56380
56381 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56382
56383         * README: Rework advice for preventing empty .o files.
56384         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56385         not <sys/types.h>.
56386
56387 2003-10-04  Karl Berry  <karl@gnu.org>
56388
56389         * lib/argp*: update from libc.
56390
56391 2003-10-04  Karl Berry  <karl@gnu.org>
56392
56393         * config/config.{guess,sub}: update from config.
56394
56395 2003-10-02  Bruno Haible  <bruno@clisp.org>
56396
56397         * modules/lchown (Include): Add lchown.h.
56398         * modules/time_r (Include): Use "..." syntax.
56399         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56400
56401 2003-10-01  Simon Josefsson  <jas@extundo.com>
56402
56403         * MODULES.html.sh (func_all_modules): Move gethostname from section
56404         'based on' to section 'lacking' POSIX:2001.
56405
56406 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56407
56408         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56409         to output mode on the same stream.
56410
56411 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56412
56413         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56414         Fix arg typo in previous patch.
56415
56416 2003-09-28  Jim Meyering  <jim@meyering.net>
56417
56418         * lib/error.c: Correct cpp indentation.
56419
56420 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56421
56422         * modules/free: New file.
56423
56424 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56425
56426         * m4/free.m4: New file.
56427
56428 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56429
56430         * lib/minmax.h (MIN, MAX)
56431         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56432         Omit the special code that used __typeof__, since we worry that
56433         it could be more trouble than it's worth.  See:
56434         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56435         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56436
56437         * lib/free.c: New file.
56438
56439 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56440
56441         Trivial fixes to Makefile.am parts of module listings.
56442         * modules/strstr: Append strstr.h to lib_SOURCES.
56443         * modules/strcase: Likewise, for strcase.h.
56444
56445 2003-09-27  Karl Berry  <karl@gnu.org>
56446
56447         * config/mkinstalldirs: update from automake.
56448
56449 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56450
56451         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56452         (error_tail): Do not loop, reallocating temporary buffer, since
56453         the output cannot contain more wide characters than the input
56454         contains bytes, the size must be big enough already.  This avoids
56455         one potential size overflow calculation.  Check for size overflow
56456         when calculating temporary buffer size.  Free temporary buffer
56457         when done, if it was allocated with malloc; this plugs a memory
56458         leak.  Remove casts from void * to pointers, that are no longer
56459         needed now that we're assuming C89 or better.
56460
56461         Merge error changes from glibc.
56462
56463         * lib/error.c, error.h: Update copyright notice header to match glibc.
56464         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56465         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56466         Disable cancellation while printing error.
56467         * lib/error.h: Prepend __ to parameter names.
56468
56469 2003-09-26  Jim Meyering  <jim@meyering.net>
56470
56471         * lib/error.c (error_tail): Move some declarations
56472         into inner scope where the local variables are used.
56473
56474 2003-09-26  Bruno Haible  <bruno@clisp.org>
56475
56476         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56477         stpncpy().
56478         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56479
56480 2003-09-26  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56483         (stpncpy): Define as alias for gnu_stpncpy.
56484         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56485
56486 2003-09-25  Simon Josefsson  <jas@extundo.com>
56487
56488         * lib/xgetdomainname.h: New file.
56489         * lib/xgetdomainname.c: New file.
56490
56491 2003-09-25  Simon Josefsson  <jas@extundo.com>
56492             Bruno Haible  <bruno@clisp.org>
56493
56494         * modules/getdomainname: New file.
56495         * modules/xgetdomainname: New file.
56496         * MODULES.html.sh (func_all_modules): Add getdomainname,
56497         xgetdomainname.
56498
56499 2003-09-25  Simon Josefsson  <jas@extundo.com>
56500             Bruno Haible  <bruno@clisp.org>
56501
56502         * m4/getdomainname.m4: New file.
56503
56504 2003-09-25  Simon Josefsson  <jas@extundo.com>
56505             Bruno Haible  <bruno@clisp.org>
56506
56507         * lib/getdomainname.h: New file.
56508         * lib/getdomainname.c: New file.
56509
56510 2003-09-25  Karl Berry  <karl@gnu.org>
56511
56512         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56513
56514 2003-09-25  Karl Berry  <karl@gnu.org>
56515
56516         * config/install-sh: update from automake.
56517
56518 2003-09-25  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/version-etc-2: New file, from modules/version-etc with
56521         modifications.
56522         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56523
56524 2003-09-25  Bruno Haible  <bruno@clisp.org>
56525
56526         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56527         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56528
56529 2003-09-24  Simon Josefsson  <jas@extundo.com>
56530
56531         * modules/xgethostname: Add xgethostname.h.
56532
56533 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56534
56535         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56536         the buffer associated with the argument.  Bug reported by
56537         Simon Josefsson.
56538
56539 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56540
56541         * README: Document assumptions that 'int' is at least 32 bits
56542         wide, that integer arithmetic is 2's complement without overflow,
56543         that there are no holes in integer values, that adding sizes of
56544         two nonoverlapping objects can't overflow, and that all-bits-zero
56545         yields scalar zero.  Fix spelling and capitalization typos.
56546
56547 2003-09-19  Karl Berry  <karl@gnu.org>
56548
56549         * lib/argp.h: update from libc.
56550
56551 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56552
56553         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56554         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56555         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56556
56557 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56558
56559         * gnulib-tool: Use "test -h", not "test -L", for portability
56560         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56561         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56562         (sed_extract_prog): Issue s commands one-by-one, rather than
56563         using \| in one s command.
56564
56565 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56566
56567         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56568         input error, instead of returning NULL the next time we are called
56569         (and therefore losing track of errno).
56570
56571 2003-09-16  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool (func_create_testdir): Warn about duplicated
56574         dependencies.
56575
56576 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56577
56578         * modules/argmatch, modules/fatal, modules/obstack,
56579         modules/xalloc, modules/xgethostname: Sort dependencies by
56580         importance, not alphabetically.
56581
56582 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56583
56584         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56585         fails, so that the caller gets the proper errno.
56586
56587         * lib/readutmp.c (read_utmp): Likewise.
56588         Check for fstat error.  Close stream and free storage
56589         when failing.
56590
56591 2003-09-14  Karl Berry  <karl@gnu.org>
56592
56593         * config/srclist.txt (strdup.c): disable for c89 changes.
56594
56595 2003-09-14  Jim Meyering  <jim@meyering.net>
56596
56597         * lib/getloadavg.c: Correct cpp indentation.
56598         * lib/strdup.c: Likewise.
56599         * lib/vasnprintf.c: Likewise.
56600
56601 2003-09-14  Bruno Haible  <bruno@clisp.org>
56602
56603         * modules/fwriteerror: New file.
56604         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56605
56606 2003-09-14  Bruno Haible  <bruno@clisp.org>
56607
56608         * lib/fwriteerror.h: New file.
56609         * lib/fwriteerror.c: New file.
56610
56611 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56612
56613         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56614         modules/xgethostname, modules/xalloc: Depend on exit.
56615
56616 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56617
56618         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56619
56620         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56621         and AC_MINIX, too, so that their extensions are available.
56622
56623         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56624         This macro has been superseded by gl_BACKUPFILE.
56625
56626         More patches to assume C89 or better.
56627
56628         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56629
56630         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56631         unconditionally.
56632         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56633         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56634         Include <string.h>, <stdlib.h> unconditionally.
56635         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56636         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56637         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56638         headers or for string.h.
56639         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56640         or strtoul.
56641
56642         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56643         headers.
56644         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56645         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56646         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56647         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56649         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56650         memcpy, memset.
56651         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56652         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56653         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56654         strtol.
56655         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56656         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56658         strtoul.
56659
56660 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56661
56662         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56663         * lib/obstack.c [!defined _LIBC]: Likewise.
56664         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56665         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56666         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56667
56668         More changes to assume C89 or better.
56669
56670         * lib/error.c (error_tail): Assume vprintf.
56671
56672         * lib/argmatch.c (getenv): Remove decl.
56673         * lib/progreloc.c (get_full_program_name): Define via prototype.
56674         * lib/setenv.c (clearenv): Likewise.
56675         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56676         needed.
56677         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56678         (malloc, memcpy): Remove decls.
56679         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56680         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56681         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56682         (memcpy): Remove macro.
56683         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56684         (__P): Remove.  All uses removed.
56685         (PTR): Remove.  All uses changed to void *.
56686         (CHAR_BIT, NULL): Remove.
56687         (spaces, zeros, memset_space, memset_zero)
56688         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56689         Remove.
56690         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56691         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56692         Define with prototype.
56693         Remove now-unnecessary prototype decl.
56694         (extra_args_spec): Assume ANSI C.  All uses changed.
56695         (extra_args_spec_iso): Remove.
56696         (my_strftime, emacs_strftimeu): Define via prototype.
56697         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56698         unconditionally.
56699         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56700         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56701         (strtoul, strtol): Remove decls.
56702         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56703         LONG_MAX): Remove.
56704         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56705         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56706         (LOCALE_PARAM_PROTO): New macro.
56707         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56708         (INTERNAL (strtol), strtol): Define with a prototype.
56709         (PARAMS): Remove.  All uses removed.
56710         * lib/tempname.c: Include <string.h> unconditionally.
56711         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56712         * lib/xgethostname.c (main): Define with a prototype.
56713         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56714         Include <stdlib.h> unconditionally.
56715         (calloc, malloc, realloc, free): Remove decls.
56716         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56717         Include <stdlib.h> unconditionally.  Sort include file names.
56718         (strtod): Remove.
56719         (xstrtod): Define with a prototype.
56720         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56721         (strtol, strtoul): Remove decls.
56722
56723 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56724
56725         More patches to assume C89 or better.
56726         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56727         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56728         string.h, memchr, STDC_HEADERS.
56729
56730 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56731
56732         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56733         Include <stdlib.h>, <string.h> unconditionally.
56734         Remove now-unnecessary cast to char *.
56735         * lib/strnlen.c: Include <string.h> unconditionally.
56736         * lib/yesno.c (yesno): Define with a prototype.
56737
56738 2003-09-11  Bruno Haible  <bruno@clisp.org>
56739
56740         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56741
56742 2003-09-10  Jim Meyering  <jim@meyering.net>
56743
56744         * lib/error.c: Correct indentation of cpp directives.
56745
56746 2003-09-10  Bruno Haible  <bruno@clisp.org>
56747
56748         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56749         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56750         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56751         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56752         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56753         <stdlib.h> and <string.h> checks.
56754         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56755         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56756
56757 2003-09-10  Bruno Haible  <bruno@clisp.org>
56758
56759         * lib/strcspn.c: Include <string.h> unconditionally.
56760         * lib/strpbrk.c: Include <string.h> unconditionally.
56761         * lib/strstr.c: Include <string.h> unconditionally.
56762         * lib/unicodeio.c: Include <string.h> unconditionally.
56763         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56764         * lib/unsetenv.c: Likewise.
56765         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56766         * lib/yesno.c: Include <stdlib.h> unconditionally.
56767         (rpmatch): Add prototype.
56768
56769 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56770
56771         More patches to assume C89 or better.
56772         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56773         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56774         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56775         or for string.h.
56776         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56777         stdlib.h.
56778         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56779         C headers.
56780         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56781         string.h.
56782         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56783         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56784         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56785         or for string.h.
56786         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56787         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56788         C headers.
56789         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56790         memcpy.
56791         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56792         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56793         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56794         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56795         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56796         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56797         string.h, free.
56798         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56799         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56800         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56801         C headers, or for string.h.
56802         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56803         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56804         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56805         headers, memory.h, stdlib.h, string.h, strings.h.
56806         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56807         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56808         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56809         strchr.
56810         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56811         headers, memory.h, string.h.
56812         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56813         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56814         free.
56815         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56816         headers.
56817         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56818         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56819         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56820         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56821         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56822
56823 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56824
56825         More K&R removal.
56826
56827         * lib/acosl.c (main): Use a prototype.
56828         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56829         tanl.c: Likewise.
56830
56831         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56832
56833         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56834         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56835         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56836         with a prototype.
56837         * lib/getopt.c (const): Remove macro.
56838         Include <string.h> unconditionally.
56839         (my_index): Remove; all uses changed to strchr.
56840         (strlen): Remove decl.
56841         (exchange): Remove forward decl; no longer needed.
56842         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56843         Define with prototype.
56844         * lib/getopt1.c (const): Remove macro.
56845         (getopt_long, getopt_long_only, main): Define with prototype.
56846
56847         * lib/getugroups.c: Include <string.h> unconditionally.
56848
56849         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56850         (getusershell, setusershell, endusershell, readname, main):
56851         Define with prototypes.
56852
56853         * lib/group-member.c: Include group-member.h first.
56854         Include <stdlib.h> unconditionally.
56855
56856         * lib/hard-locale.c: Include hard-locale.h first.
56857         Include <stdlib.h>, <string.h> unconditionally.
56858
56859         * lib/hash.c (free, malloc): Remove decls.
56860         Include <stdlib.h> unconditionally.
56861
56862         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56863         (getenv): Do not declare.
56864
56865         * lib/idcache.c: Include <string.h> unconditionally.
56866
56867         * lib/long-options.c: Include long-options.h first, to test interface.
56868         Include <stdlib.h> unconditionally.
56869
56870         * lib/makepath.c: Include makepath.h first, to test interface.
56871         Include <stdlib.h> and <string.h> unconditionally.
56872
56873         * lib/linebuffer.c: Include <stdlib.h>.
56874         (free): Remove decl.
56875
56876         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56877         stddef.h. rpl_malloc returns void *, not char *.
56878         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56879         prototype.
56880
56881         * lib/md5.h: Include <limits.h> unconditionally.
56882         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56883         (__P): Remove; all uses removed.
56884         * lib/md5.c: Include "md5.h" first.
56885         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56886         md5_buffer, md5_process_bytes, md5_process_block):
56887         Define with prototypes.
56888         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56889         * lib/sha.c: Include "sha.h" first.
56890         Include <stdlib.h>, <string.h> unconditionally.
56891
56892         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56893         * lib/memcmp.c (__ptr_t): Likewise.
56894         * lib/memrchr.c (__ptr_t): Likewise.
56895         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56896         Include <string.h> unconditionally.
56897         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56898         * lib/memchr.c: Include <stdlib.h> unconditionally.
56899         * lib/memchr.c (LONG_MAX): Remove.
56900         * lib/memrchr.c (LONG_MAX): Likewise.
56901         * lib/memchr.c (__memchr): Define via a prototype.
56902         * lib/memrchr.c (__memrchr): Likewise.
56903         * lib/memcmp.c (__P): Remove, and remove all uses.
56904         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56905         Remove forward decls; no longer needed.
56906         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56907         Use types required by C89 in prototype.
56908
56909         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56910         * lib/savedir.c: Likewise.
56911         * lib/mkdir.c (free): Remove decl.
56912         * lib/rmdir.c (rmdir): Define with a prototype.
56913         * lib/savedir.c: Include savedir.h first, to test interface.
56914
56915         * lib/mktime.c (STDC_HEADERS): Remove.
56916         Include <stdlib.h>, <string.h> unconditionally.
56917
56918         * lib/modechange.c: Include <stdlib.h> unconditionally.
56919         (malloc): Remove decl.
56920
56921         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56922         (free): Remove decl.
56923
56924         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56925         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56926         (This type really should be intptr_t, but that's a C99ism.)
56927         (_obstack_memcpy): Remove: all uses changed to memcpy.
56928         Include <string.h> unconditionally.
56929         (struct obstack): Assume __STDC__ for types of members
56930         chunkfun, freefun, extra_arg.
56931         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56932         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56933         obstack_begin, obstack_specify_allocation,
56934         obstack_specify_allocation_with_arg, obstack_chunkfun,
56935         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56936         Remove unprototyped decls and the macros that use them.
56937         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56938         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56939         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56940         (defined __STDC__ && __STDC__)]:
56941         Remove nonprototyped code.
56942         Include <stdlib.h> unconditionally.
56943         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56944         _obstack_allocated_p, _obstack_free, obstack_free,
56945         _obstack_memory_used, print_and_abort):
56946         Define using prototypes.
56947         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56948         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56949         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56950         obstack_next_free, obstack_object_size, obstack_room) [0]:
56951         Remove unused, unprototyped code.
56952
56953         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56954
56955         * lib/physmem.c (physmem_total, physmem_available, main): Define
56956         with prototypes.
56957
56958         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56959         (main): Define with a prototype.
56960
56961         * lib/posixver.c (getenv): Remove decl.
56962
56963         * lib/putenv.c (malloc): Returns void *, not char *.
56964         Include <string.h> unconditionally.
56965         (strchr, memcpy, NULL): Do not define.
56966
56967         * lib/readtokens.c: Include readtokens.h first, to test interface.
56968         Include <stdlib.h>, <string.h> unconditionally.
56969         (init_tokenbuffer): Define with a prototype.
56970
56971         * lib/regex.c (PARAMS): Remove.  All uses removed.
56972         All uses of _RE_ARGS removed, too.
56973         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56974         unconditionally.
56975         (bzero): Assume memset exists.
56976         (memcmp, memcpy, NULL): Remove.
56977         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56978         char, or assignments to local vars of type signed char.
56979         (init_syntax_once, PREFIX(extract_number_and_incr),
56980         PREFIX(print_partial_compiled_pattern),
56981         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56982         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56983         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56984         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56985         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56986         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56987         wcs_compile_range, byte_compile_range, truncate_wchar,
56988         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56989         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56990         count_mbs_length, wcs_re_match_2_internal,
56991         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56992         PREFIX(alt_match_null_string_p),
56993         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56994         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56995         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56996         now-unnecessary declaration, if any.
56997         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56998         regcomp, regexec):
56999         Remove now-unnecessary casts among pointer types.
57000         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57001
57002         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57003         (free): Remove decl.
57004
57005         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57006
57007         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57008         (free): Remove decl.
57009
57010         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57011         * lib/xgetcwd.c: Likewise.
57012
57013         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57014         (free): Remove decl.
57015
57016         * lib/strchrnul.c (strchrnul): Define with a prototype.
57017         Fix bug: c_in was not converted to char before searching.
57018
57019         The following changes are not K&R related:
57020
57021         * lib/group-member.h: Include <sys/types.h>, so that this file is
57022         self-contained.
57023         * lib/makepath.h: Likewise.
57024
57025         * lib/getusershell.c (readname, default_index, line_size, readname):
57026         Use size_t, not int, for sizes.
57027         (readname): If the size overflows, report an error instead of
57028         looping forever.
57029
57030 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57031
57032         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57033         libc.
57034
57035 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57036
57037         * README: New section: portability guidelines.
57038
57039 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57040
57041         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57042         C89 spec.
57043
57044 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57045
57046         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57047
57048 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57049
57050         Assume C89 or better; remove K&R cruft.
57051         A few of these changes were first proposed by Derek Robert Price
57052         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57053
57054         * lib/addext.c: Include <string.h> unconditionally.
57055         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57056         Don't declare getenv or malloc.
57057
57058         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57059         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57060         (NULL): Remove.
57061         (find_stack_direction, alloca): Use prototypes.
57062
57063         * lib/atexit.c (atexit): Define using a prototype.
57064
57065         * lib/basename.c, dirname.c, stripslash.c:
57066         Include <string.h> unconditionally.
57067
57068         * lib/bcopy.c: Include <stddef.h>.
57069         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57070
57071         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57072
57073         * lib/error.h (error, error_at_line, error_print_progname)
57074         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57075         * lib/error.c: Include error.h first, to check interface.
57076         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57077         (VA_START): Remove; all uses changeed to va_start.
57078         (exit, strerror): Remove decls.
57079         (error_print_progname): Prototype uncondionally.
57080         Don't include <errno.h>; no longer needed.
57081         (private_strerror): Remove.
57082         (error_tail): Always define.
57083         (error, error_at_line): Assume C89 or better; always use prototypes.
57084         * lib/fatal.c: Include "fatal.h" first, to test interface.
57085         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57086         (VA_START): Remove; all uses changed to va_start.
57087         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57088         this case.
57089         (exit): Remove decl.
57090         (fatal): Prototype unconditionally.  Assume va_start works.
57091         Abort at end, to pacify gcc.
57092
57093         * lib/euidaccess.c (main): Define with a prototype.
57094
57095         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57096
57097         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57098
57099         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57100         prototypes.
57101         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57102         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57103         (getenv): Remove decl.
57104         (fnmatch): Define using a prototype.
57105         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57106         (FCT): Define using a prototype.
57107
57108         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57109
57110         * lib/gethostname.c: Include <stddef.h>.
57111         (gethostname): Define with prototype.  Length is size_t, not int.
57112
57113 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57114
57115         Assume C89 or better; remove K&R cruft.
57116         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57117         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57118         string.h, getenv, malloc.
57119         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57120         headers.
57121         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57122         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57123         do not check for strerror.
57124         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57125         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57126         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57127         do not check for doprnt or vprintf.
57128         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57129         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57130
57131 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57132
57133         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57134         getversion.c should have been removed then, but was accidentally
57135         preserved.
57136
57137         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57138         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57139
57140 2003-09-08  Karl Berry  <karl@gnu.org>
57141
57142         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57143                 config, forget about prep.
57144
57145         * config/depcomp, missing: update from automake.
57146
57147 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57148
57149         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57150         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57151
57152 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57153
57154         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57155         copy_tm_result.  Bug reported by Simon Josefsson in
57156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57157
57158 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57159
57160         * m4/time_r.m4: New file.
57161         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57162         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57163         is. Check for timegm declaration.
57164         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57165         Do not check for gmtime_r.
57166         Replace mktime if __mktime_internal does not exist and if mktime
57167         hasn't been replaced already.
57168
57169 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57170
57171         * lib/time_r.c, lib/time_r.h: New files.
57172
57173         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57174         __localtime_r.
57175         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57176         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57177
57178         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57179         __gmtime_r.
57180         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57181         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57182         Include <time_r.h>.
57183
57184         * lib/timegm.c: Switch to glibc implementation, with the following
57185         changes:
57186         [defined HAVE_CONFIG_H]: Include <config.h>.
57187         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57188         (__mktime_internal) [!defined _LIBC]: New decl.
57189         (__gmtime_r) [!defined _LIBC]: New macro and function.
57190         (timegm): Use a prototype, since gnulib assumes C89.
57191         Do not bother declaring tmp to be const, as it's not really usefu.
57192         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57193         (timegm): Declare only if HAVE_DECL_TIMEGM.
57194
57195 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57196
57197         * MODULES.html.sh (func_all_modules): Add time_r.
57198         * modules/time_r: New file.
57199         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57200         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57201
57202 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57203
57204         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57205         Bug reported by Lute Kamstra in
57206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57207
57208         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57209         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57210         course with correspondingly smaller numbers for tomorrow and
57211         yesterday.  From Tadayoshi Funaba.  Originally installed into
57212         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57213         coreutils merge?).
57214
57215 2003-08-31  Simon Josefsson  <jas@extundo.com>
57216
57217         * modules/timegm: New file.
57218         * MODULES.html.sh (func_all_modules): Add timegm.
57219
57220 2003-08-31  Simon Josefsson  <jas@extundo.com>
57221
57222         * m4/timegm.m4: New file.
57223
57224 2003-08-31  Simon Josefsson  <jas@extundo.com>
57225
57226         * lib/timegm.h: New file.
57227         * lib/timegm.c: New file.  Based on
57228         wget-1.8.2/src/http.c:mktime_from_utc.
57229
57230 2003-08-31  Karl Berry  <karl@gnu.org>
57231
57232         * lib/argp.h: update from libc.
57233
57234 2003-08-28  Bruno Haible  <bruno@clisp.org>
57235
57236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57237         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57238         followed by '#define fnmatch fnmatch_posix' gives an error.
57239
57240 2003-08-28  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57243         warning on QNX, which defines O_BINARY to 000000.
57244
57245 2003-08-27  Jim Meyering  <jim@meyering.net>
57246
57247         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57248         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57249         would fail after 32.  Reported by Danny Levinson.  Details here:
57250         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57251
57252 2003-08-24  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57255         MSVC7 <stdio.h> is included later.
57256
57257 2003-08-22  Simon Josefsson  <jas@extundo.com>
57258
57259         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57260
57261 2003-08-20  Karl Berry  <karl@gnu.org>
57262
57263         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57264
57265 2003-08-20  Bruno Haible  <bruno@clisp.org>
57266
57267         * modules/progname: New file.
57268         * MODULES.html.sh (func_all_modules): Add progname.
57269
57270 2003-08-20  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/progname.h: New file, from GNU gettext.
57273         * lib/progname.c: New file, from GNU gettext.
57274         * lib/progreloc.c: New file, from GNU gettext.
57275
57276 2003-08-19  Jim Meyering  <jim@meyering.net>
57277
57278         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57279         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57280
57281 2003-08-19  Bruno Haible  <bruno@clisp.org>
57282
57283         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57284         more.
57285
57286 2003-08-19  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/xstrdup.c: Assume <string.h> exists.
57289
57290 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57291
57292         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57293         in makefile rules.
57294
57295 2003-08-18  Jim Meyering  <jim@meyering.net>
57296
57297         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57298         * m4/lib-ld.m4: Likewise.
57299
57300 2003-08-18  Jim Meyering  <jim@meyering.net>
57301
57302         * lib/setenv.h: Indent nested cpp directive.
57303         * lib/vasnprintf.c: Remove trailing blanks.
57304
57305 2003-08-17  Simon Josefsson  <jas@extundo.com>
57306
57307         * modules/xstrndup: New file.
57308         * MODULES.html.sh (func_all_modules): Add xstrndup.
57309
57310 2003-08-17  Simon Josefsson  <jas@extundo.com>
57311
57312         * modules/argp: Fix autoconf macro name. Add more dependencies.
57313
57314 2003-08-17  Simon Josefsson  <jas@extundo.com>
57315
57316         * m4/xstrndup.m4: New file.
57317
57318 2003-08-17  Simon Josefsson  <jas@extundo.com>
57319
57320         * m4/argp.m4: New file.
57321
57322 2003-08-17  Simon Josefsson  <jas@extundo.com>
57323             Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/xstrndup.h: New file.
57326         * lib/xstrndup.c: New file.
57327
57328 2003-08-17  Bruno Haible  <bruno@clisp.org>
57329
57330         * modules/strndup (Files, Include): Add lib/strndup.h.
57331
57332 2003-08-17  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/euidaccess (Files): Add lib/euidaccess.h.
57335
57336 2003-08-17  Bruno Haible  <bruno@clisp.org>
57337
57338         * lib/strndup.h: New file.
57339
57340 2003-08-17  Bruno Haible  <bruno@clisp.org>
57341
57342         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57343         like AC_GNU_SOURCE.
57344         * modules/extensions (configure.ac): Comment out the invocation of
57345         gl_USE_SYSTEM_EXTENSIONS.
57346
57347 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57348
57349         Merges from coreutils, etc.
57350         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57351         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57352         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57353         fixing a typo.
57354         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57355         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57356
57357 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57358
57359         Document merge from coreutils.
57360         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57361         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57362         * modules/utime: Add m4/utimes-null.m4.
57363
57364 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57365
57366         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57367         space, undoing this 2003-08-12 change:
57368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57369
57370 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57371
57372         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57373         strtoul.c from libc, undoing this 2003-08-12 change:
57374         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57375
57376 2003-08-16  Jim Meyering  <jim@meyering.net>
57377
57378         Merges from coreutils.
57379         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57380         prefix.  Adjust cache variables similarly.  Create 500 rather than
57381         just 300 files, to exercise bug on Darwin6.5, too.
57382         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57383         $missing_dir.
57384         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57385         AM_SYS_POSIX_TERMIOS.
57386         Reported by mkc@mathdogs.com.
57387         Also change use of $am_cv_sys_posix_termios
57388         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57389         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57390         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57391         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57392         in /proc/mounts until it finds one with matching device number.  This
57393         is unnecessary when the FILE argument *is* a mount point.  No stat call
57394         is necessary in that case.  So, disable the statvfs-testing code on
57395         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57396         as RedHat bug# 84846.
57397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57398         to 1MB, so as not to render systems with no stack size limit (e.g.,
57399         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57400         Include <unistd.h>.  On some systems,
57401         it is required for the definition of _SC_PAGESIZE.
57402
57403 2003-08-16  Jim Meyering  <jim@meyering.net>
57404
57405         Merge from coreutils.
57406         * lib/xstrtoimax.c: #else #if -> #elif.
57407         * lib/xstrtoumax.c: Likewise.
57408
57409 2003-08-16  Jim Meyering  <jim@meyering.net>
57410
57411         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57412         * m4/utimes.m4: Removed.
57413         * m4/utimes-null.m4: Renamed from utimes.m4.
57414
57415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57416         to 1MB, so as not to render systems with no stack size limit (e.g.,
57417         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57418         Include <unistd.h>.  On some systems,
57419         it is required for the definition of _SC_PAGESIZE.
57420
57421 2003-08-16  Jim Meyering  <jim@meyering.net>
57422         and Paul Eggert  <eggert@cs.ucla.edu>
57423
57424         Merges from coreutils, etc.
57425
57426         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57427         using the latest version from cvs.  This avoids problems with #line
57428         directives using a vendor (Sun) compiler.
57429         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57430         Don't set GETGROUPS_LIB here; now it's
57431         done via getgroups.m4's wrapper function.
57432         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57433         rather than just in sh-util/configure.in, so that the
57434         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57435         same.
57436         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57437         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57438         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57439         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57440         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57441         Remove code that is now done by the newly-required macros.
57442         Append $(EXEEXT) to DF_PROG.
57443         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57444         Do not invoke or require the following here,
57445         since prereq.m4 or some gnulib .m4 now does this for us:
57446         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57447         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57448         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57449         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57450         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57451         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57452         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57453         AC_FUNC_OBSTACK.
57454         Do not replace the following functions, as this is now the job
57455         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57456         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57457         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57458         atexit getpass, strdup, getpagesize.
57459         Replace 'raise'.
57460         Do not check for the following functions, as this is now the job
57461         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57462         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57463         setregid.
57464         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57465         Check for sys/sysctl.h.
57466         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57467         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57468         of checking for ssize_t ourselves.
57469
57470         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57471         Require every macro that gnulib/modules/* suggests for us.
57472         (jm_PREREQ_ADDEXT): New macro.
57473         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57474         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57475
57476         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57477         (gl_PHYSMEM): Use it.
57478         Also check for `table' function.
57479         Check for new headers and functions.
57480         Add check for sys/sysmp.h.
57481         With suggestions from Kaveh Ghazi.
57482         Ignore headers that are present but cannot be compiled.  This
57483         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57484         C 5.4.
57485
57486 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57487
57488         Document merge from coreutils.
57489         * modules/userspec: Depend on posixver.
57490         * modules/strftime: Depend on tzset.
57491
57492 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57493
57494         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57495         rather than tab, after '#' in shell-script copyright notices.
57496         Suggested by Bruno Haible.
57497
57498 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57499
57500         * config/srclist-update: Use three spaces, rather than tab, after '#'
57501         in shell-script copyright notices.  Suggested by Bruno Haible.
57502         Remove unnecessary parenthesization in regular expression.
57503
57504 2003-08-15  Jim Meyering  <jim@meyering.net>
57505
57506         Merge from coreutils.
57507         * lib/xgethostname.c: Include <stdlib.h>.
57508         (xghostname): Don't exit for anything other than memory-related
57509         failure; just return NULL.
57510         * lib/userspec.c: Include "posixver.h".
57511         (parse_user_spec): Accept `.' as a separator only
57512         in pre-POSIX-200112 mode.
57513         * lib/strtoimax.c: Use #elif rather than #else #if.
57514         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57515         Remove function, now that we can rely on a working tzset function.
57516         [!_LIBC]: Ensure that the required autoconf test has been run.
57517         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57518         Use underlying_strftime for %r.
57519         * lib/sha.c: Merge in some clean-up and optimization changes from
57520         glibc.
57521         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57522         Ensure that it is a multiple of 64.
57523         Rearrange loop exit tests so as to avoid performing an
57524         additional fread after encountering an error or EOF.
57525         * lib/realloc.c: Update copyright date.
57526
57527 2003-08-15  Jim Meyering  <jim@meyering.net>
57528         and Paul Eggert  <eggert@twinsun.com>
57529
57530         Merge from coreutils.
57531         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57532         member but strut utmpx does not.  Needed for AIX 4.3.3.
57533         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57534
57535 2003-08-15  Jim Meyering  <jim@meyering.net>
57536         and Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         Merges from coreutils, etc.
57539         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57540         Require gl_FUNC_TZSET_CLOBBER.
57541         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57542         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57543         members.
57544
57545 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57546
57547         Help the merge from coreutils.
57548         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57549         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57550         * m4/tzset.m4: Use it too.
57551
57552 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57553
57554         * modules/tzset: New file.
57555
57556 2003-08-14  Jim Meyering  <jim@meyering.net>
57557
57558         Merges from coreutils.
57559         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57560         variable names, rather than @FNMATCH_H@.
57561         * modules/alloca: Likewise for $(ALLOCA_H).
57562
57563         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57564         the three copies of the literal target, `fnmatch.h'.
57565         * modules/alloca (alloca.h): Likewise.
57566
57567 2003-08-14  Jim Meyering  <jim@meyering.net>
57568
57569         Merge from coreutils.
57570         * m4/tzset.m4: New file.
57571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57572         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57573         otherwise, AIX 5.1 systems would end up using the latter.
57574         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57575         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57576         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57577         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57578
57579 2003-08-14  Jim Meyering  <jim@meyering.net>
57580
57581         Merge from coreutils.
57582         * lib/obstack.h: Whitespace changes.
57583         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57584         and xcalloc return values.
57585         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57586         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57587         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57588         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57589         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57590         error from mntctl.
57591         Use mntctl's return value to drive the entry-processing loop, since
57592         we can't rely on the value of the vmt_length member in the last
57593         entry.  On some systems doing so could result in exhausting
57594         virtual memory.  Based in part on a patch from Mike Jetzer.
57595
57596 2003-08-14  Jim Meyering  <jim@meyering.net>
57597         and Paul Eggert  <eggert@twinsun.com>
57598
57599         Merges from coreutils, plus other fixes.
57600         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57601         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57602         for credits and details.  Thanks to Kaveh Ghazi for helping
57603         to keep these files in sync.
57604         (ARRAY_SIZE): Define it.
57605         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57606         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57607         (memcasecmp): Don't assume size_t fits in unsigned int.
57608         Remove casts and duplicate code.
57609         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57610         (memcpy): Remove definition.
57611         Merge in some clean-up and optimization changes from glibc.
57612         [BLOCKSIZE]: Move definition to top of file.
57613         Ensure that it is a multiple of 64.
57614         Rearrange loop exit tests so as to avoid performing an
57615         additional fread after encountering an error or EOF.
57616         * lib/md5.h (md5_uintptr): Define.
57617         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57618         return to the initial working directory.  Preserve errno
57619         for caller.
57620         * lib/idcache.c: Include "xalloc.h".
57621         (xmalloc, xrealloc): Remove decls.
57622         (getuser): Remove casts no longer required in C89.
57623         * lib/human.c: Include stdio.h, for sprintf.
57624         * lib/group-member.c: Include "xalloc.h".
57625         (xmalloc, xrealloc): Remove decls.
57626         (get_group_info): Remove casts no longer required in C89.
57627         * lib/getusershell.c (readname): Remove casts no longer required in
57628         C89.
57629         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57630         * lib/getline.c: Whitespace fix, from coreutils.
57631
57632 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57633
57634         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57635         Check for isascii.
57636
57637         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57638         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57639         Undo previous (whitespace-only) change.
57640
57641 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57642
57643         * lib/exclude.c: Include <ctype.h>
57644         (IN_CTYPE_DOMAIN): New macro.
57645         (is_space): New fn.
57646         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57647         and empty lines.
57648
57649         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57650         Undo previous (whitespace-only) change.
57651
57652 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57653
57654         * config/srclist-update: Change update back to the old behavior,
57655         leaving whitespace alone.  Use one 'sed' command rather than a
57656         pipeline.
57657         (fixlicense): Now a variable, not a function.
57658         (remove_trailing_blanks): Remove.
57659         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57660         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57661         Undo previous (whitespace-only) change.
57662
57663 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57664
57665         Merge from coreutils.
57666         * modules/euidaccess: Add lib_SOURCES, include for new
57667         file euidaccess.h
57668
57669 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57670
57671         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57672         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57673         Normalize leading white space and remove trailing white space.
57674
57675         Merge from coreutils
57676         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57677
57678         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57679         0.12.1.  These files are now being upgraded automatically by
57680         ../config/srclist-update.
57681
57682 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57683
57684         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57685         Normalize leading white space and remove trailing white space.
57686         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57687         notice, as per ../config/srclist-update.
57688
57689         Merge from coreutils.
57690         * lib/euidaccess.h: New file.
57691         * lib/euidaccess.c: Include it.
57692         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57693         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57694         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57695
57696 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57697
57698         * config/srclist-update: Add copyright notice.
57699         (remove_id_lines, remove_trailing_blanks): New constants.
57700         (fixfile): Use them to normalize spacing a bit in copied files.
57701         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57702         Normalize leading white space and remove trailing white space.
57703
57704         * config/texinfo.tex: Sync with texinfo.
57705
57706         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57707         strtoul.c from libc, to merge coreutils whitespace changes.
57708
57709         * config/srclist.txt: Get the following m4 files from gettext:
57710         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57711         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57712         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57713         wint_t.m4.
57714
57715 2003-08-12  Karl Berry  <karl@gnu.org>
57716
57717         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57718         been made.
57719
57720 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57721
57722         * modules/gnu-source, m4/gnu-source.m4:
57723         Remove; we're assuming Autoconf 2.54 or later now.
57724         Suggested by Bruno Haible.
57725         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57726
57727 2003-08-11  Bruno Haible  <bruno@clisp.org>
57728
57729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57730
57731 2003-08-11  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57734         (vasnprintf): Use it instead of wcslen.
57735
57736 2003-08-11  Bruno Haible  <bruno@clisp.org>
57737
57738         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57739         value to ensure that _Bool promotes to int. Use #define for _Bool when
57740         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57741
57742 2003-08-10  Karl Berry  <karl@gnu.org>
57743
57744         * lib/regex.h: update from libc (whitespace fix).
57745
57746 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57747
57748         Merge some files from coreutils.  These changes were
57749         originally made by Jim Meyering.
57750         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57751         many older Unixes require this.
57752         * lib/alloca.c (alloca): Remove cast to argument of free;
57753         no longer needed in C89.
57754         * lib/alloca_.h, regex.h: Fix white space to match
57755         what GNU indent does.
57756
57757 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57758
57759         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57760         apparently Emacs's Unicode mode got confused before my 2003-08-05
57761         checkin.
57762
57763 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57764
57765         * m4/extensions.m4: New file.
57766         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57767         Require gl_USE_SYSTEM_EXTENSIONS.
57768         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57769         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57770
57771 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57772
57773         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57774         * modules/extensions, modules/gnu-source: New files.
57775         * modules/timespec, modules/unlocked-io: Depend on extensions.
57776
57777 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57778
57779         * modules/restrict: New file.
57780         * MODULES.html.sh (func_all_modules): Add restrict.
57781         * modules/regex: Depend on restrict.
57782
57783 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57784
57785         * m4/restrict.m4: New file.
57786         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57787
57788 2003-08-07  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57791         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57792
57793 2003-08-07  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57796         makes the module 'getndelim2' compatible with the module 'getline'.
57797
57798 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57799
57800         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57801         byte with "\201" to avoid glitches when editing that source file
57802         with multi-gnome-terminal.
57803
57804 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57805
57806         * lib/bumpalloc.h: Remove.
57807
57808 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57809
57810         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57811         * modules/bumpalloc: Remove.
57812
57813 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57814
57815         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57816         GNU coding style.
57817
57818         Merge from coreutils.
57819         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57820         1. From glibc.
57821         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57822         from Karl Berry, implemented by Jim Meyering.
57823         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57824         from Dmitry V. Levin.
57825         Remove anachronistic cast of xrealloc.
57826         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57827         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57828         type. Otherwise, it wouldn't compile with at least /bin/cc on
57829         ymp-cray-unicos9.0.2.X.
57830         Combine two mostly-identical uses of alloca into one.
57831         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57832
57833 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57834
57835         [From Emacs.]
57836
57837         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57838         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57839         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57840         obsolete NLIST_NAME_UNION.
57841         [__GNU__]: Undef BSD and FSCALE.
57842         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57843
57844 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57845
57846         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57847         an enum type, so that it's guaranteed to promote to int.  See:
57848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57849
57850 2003-08-03  Karl Berry  <karl@gnu.org>
57851
57852         * config/depcomp: update from automake.
57853
57854 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57855
57856         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57857         (strerror): Don't assume that a printable int fits in 14 bytes.
57858
57859 2003-07-31  Bruno Haible  <bruno@clisp.org>
57860
57861         * modules/getpass-gnu: New file.
57862         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57863
57864 2003-07-31  Bruno Haible  <bruno@clisp.org>
57865
57866         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57867
57868 2003-07-24  Karl Berry  <karl@gnu.org>
57869
57870         * config/missing: update from automake.
57871
57872 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57873             Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57876         * lib/getline.c (getline, getdelim): Likewise.
57877         Remove _GNU_SOURCE define; now it's defined in config.h through
57878         m4/getline.m4.
57879
57880 2003-07-23  Karl Berry  <karl@gnu.org>
57881
57882         * config/config.sub: update from prep.
57883
57884 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57885
57886         * modules/xalloc (Depends-on): Add exitfail.
57887         * modules/xmemcoll: Likewise.
57888
57889 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57890
57891         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57892         over-parenthesization in macros.
57893
57894         Sync with coreutils.
57895
57896         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57897         required by C99.
57898
57899         Use `exit_failure' for xalloc and xmemcoll instead of their own
57900         private exit-failure variables.
57901         * lib/xalloc.h (xalloc_exit_failure): Remove.
57902         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57903         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57904         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57905         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57906         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57907
57908 2003-07-20  Jim Meyering  <jim@meyering.net>
57909
57910         * modules/closeout (Depends-on): Add exitfail.
57911         Suggestion from Bruno Haible.
57912
57913 2003-07-19  Karl Berry  <karl@gnu.org>
57914
57915         * config/config.sub: update from prep.
57916
57917 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57918
57919         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57920         Remove.
57921         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57922         to test that it can stand by itself.  Include "exitfail.h".
57923         Clients should set exit_failure instead.
57924         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57925
57926 2003-07-18  Bruno Haible  <bruno@clisp.org>
57927
57928         * modules/getndelim2: New file.
57929         * modules/getline: Share files with module getndelim2.
57930         * modules/getnline: Depend on getndelim2 instead of sharing files with
57931         it. Add getnline.c to lib_SOURCES.
57932         * MODULES.html.sh (func_all_modules): Add getndelim2.
57933
57934 2003-07-18  Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/getndelim2.m4: New file.
57937         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57938         invoke gl_PREREQ_GETNDELIM2.
57939         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57940         gl_PREREQ_GETNDELIM2.
57941         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57942         gl_GETNDELIM2.
57943
57944 2003-07-18  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/getndelim2.h: New file.
57947         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57948         getndelim2.h.
57949         (getndelim2): Make non-static. Change return type to ssize_t.
57950         * lib/getline.h: Change argument names.
57951         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57952         * lib/getnline.c: Include getndelim2.h.
57953
57954 2003-07-18  Andreas Schwab  <schwab@suse.de>
57955
57956         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57957
57958 2003-07-17  Karl Berry  <karl@gnu.org>
57959
57960         * config/config.sub: update from prep.
57961
57962 2003-07-17  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/getnline: New file.
57965         * modules/getline: Add lib/getndelim2.c to source file list.
57966         * MODULES.html.sh (func_all_modules): Add getnline.
57967
57968 2003-07-17  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/getnline.m4: New file.
57971
57972 2003-07-17  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/Makefile.am.in: Remove file.
57975         * m4/Makefile.am: Remove file.
57976         * m4/Makefile.in: Remove file.
57977
57978 2003-07-17  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/getnline.h: New file.
57981         * lib/getnline.c: New file.
57982         * lib/getndelim2.c: New file, extracted from getline.c.
57983         (getndelim2): Renamed from getdelim2, with added nmax argument.
57984         * lib/getline.c: Include getndelim2.c.
57985         (getdelim2): Moved out to getndelim2.c.
57986         (getline, getdelim): Update.
57987
57988 2003-07-17  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/Makefile.am: Remove file.
57991         * lib/Makefile.in: Remove file.
57992
57993 2003-07-17  Bruno Haible  <bruno@clisp.org>
57994
57995         * configure.in: Remove file.
57996         * Makefile.in: Remove file.
57997
57998 2003-07-17  Bruno Haible  <bruno@clisp.org>
57999
58000         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58001
58002 2003-07-16  Karl Berry  <karl@gnu.org>
58003
58004         * config/srclist-update: was running fixlicense twice, which caused
58005                 texinfo.tex to be nullified for some reason.  Simplify,
58006                 $gplsrc is no longer needed as far as I can see?
58007
58008 2003-07-16  Jim Meyering  <jim@meyering.net>
58009
58010         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58011
58012 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58013
58014         * config/srclist.txt: Get the following files from gettext-runtime/intl
58015         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58016         ref-del.sin.  From Bruno Haible.
58017         * config/srclist-update (fixfile): Change grep pattern again, since the
58018         previous fix didn't work (there was another trailing $).  Use
58019         '[$]' to escape the $s.
58020
58021 2003-07-15  Karl Berry  <karl@gnu.org>
58022
58023         * lib/vasnprintf.c: update from gettext.
58024
58025 2003-07-15  Karl Berry  <karl@gnu.org>
58026
58027         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58028         gets expanded when surrounded by '$'.
58029
58030 2003-07-15  Jim Meyering  <jim@meyering.net>
58031
58032         * modules/save-cwd: Don't depend on error.  From Derek Price.
58033
58034 2003-07-15  Jim Meyering  <jim@meyering.net>
58035
58036         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58037
58038 2003-07-14  Simon Josefsson  <jas@extundo.com>
58039
58040         * modules/mempcpy: New file.
58041         * MODULES.html.sh (func_all_modules): Add mempcpy.
58042
58043 2003-07-14  Simon Josefsson  <jas@extundo.com>
58044
58045         * m4/mempcpy.m4: New file.
58046
58047 2003-07-14  Simon Josefsson  <jas@extundo.com>
58048
58049         * lib/mempcpy.h: New file.
58050         * lib/mempcpy.c: New file.
58051
58052 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58053
58054         * modules/getdate, modules/posixtm: Depend on mktime.
58055
58056 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58057
58058         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58059         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58060         unicodeio.c, unicodeio.h, unlocked-io.h:
58061         Switch from LGPL to GPL.
58062
58063 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58064
58065         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58066         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58067         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58068         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58069         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58070         updated automatically by ../config/srclist-update.  This changes
58071         their license from LPGL to GPL.
58072
58073 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58074
58075         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58076         assumed to refer to the root of the most recent stable gettext version.
58077         * config/srclistvars.sh: Add defaults for eggert.
58078         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58079         Match "This program" as well as "The program".  This is needed
58080         for gettext.
58081
58082 2003-07-14  Jim Meyering  <jim@meyering.net>
58083
58084         Don't emit diagnostics.  Let callers do that.
58085         * lib/save-cwd.c: Don't include "error.h".
58086         (save_cwd): Don't call error.  Ensure that errno is valid
58087         when returning nonzero.
58088
58089         * lib/save-cwd.h (restore_cwd): Update prototype.
58090         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58091         Simplify.  Don't call error upon failure.  Let callers do that.
58092         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58093         when auditing is enabled.  But don't bother updating the #if.
58094
58095 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58096
58097         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58098         it breaks C++ compilation.
58099         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58100
58101 2003-07-10  Simon Josefsson  <jas@extundo.com>
58102
58103         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58104
58105 2003-07-10  Jim Meyering  <jim@meyering.net>
58106
58107         * m4/clock_time.m4: Remove trailing blank.
58108         * m4/intmax_t.m4: Likewise.
58109
58110 2003-07-10  Jim Meyering  <jim@meyering.net>
58111
58112         * lib/vasnprintf.c: Remove trailing blanks.
58113         Make cpp indentation consistent.
58114
58115 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58116
58117         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58118         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58119         Switch from LGPL to GPL.
58120
58121 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58122
58123         * config/srclist.txt: Sort sublists.  Add
58124         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58125         that differ from gnulib for one reason or another; we'd like this list
58126         to be smaller but for now let's document what we have.
58127
58128 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58129
58130         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58131         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58132         and sweeter "eval x=$x".
58133         * config/srclist.txt: Get lib/argp* from glibc.
58134
58135 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58136
58137         * lib/mktime.c: Fix some boundary cases and remove need for floating
58138         point.
58139
58140         Issue a compile-time diagnostic if time_t is floating point, or if
58141         two's complement arithmetic is not in effect, or if arithmetic
58142         right shift does not propagate the sign.  These assumptions were
58143         all in the original code but they weren't checked.
58144
58145         (TIME_T_MIDPOINT, verify): New macros.
58146         (__isleap): Remove; it has integer overflow problems.
58147         (leapyear): New function, without those problems.
58148         (ydhms_tm_diff): Remove; splitting into two parts.
58149         (ydhms_diff): New function, containing the arithmetic part of
58150         the old ydhms_tm_diff function.  Issue a compile-time
58151         diagnostic if we are not using C99 integer division.
58152         Avoid casts when possible.
58153         (guess_time_tm): New function, containing the checking part of
58154         the old ydhms_tm_diff function.  Return the new value, rather than
58155         the difference between it and the old.  Accept a new argument T
58156         so that *T specifies the old value.  Check for overflow in the result.
58157
58158         (__mktime_internal): Use a time_t offset, not a long int offset.
58159         This undoes the 2003-06-04 change, which is no longer needed now
58160         that we have better overflow checking.
58161         (localtime_offset): Likewise.
58162
58163         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58164         and long are 64-bit but int is only 32-bit.
58165         (ydhms_diff): Use long int to store year1 and yday1.
58166         Issue a compile-time diagnostic if long int is not wide enough.
58167
58168         (__mktime_internal): Use long int to store adjusted year and yday.
58169         Use plain C rather than preprocessor commands, if that doesn't
58170         affect efficiency.
58171         Check for overflow (and try to repair) after each probe
58172         rather than checking only at the very end.  This avoids some bugs
58173         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58174         does not equal GMT offset at maximum time).
58175         Use integer to check for overflow rather than floating point; this
58176         is more portable to non-IEEE hosts, and is a tad faster.
58177         When we detect that we are oscillating between two values,
58178         don't check whether tm_isdst has the requested value, since
58179         we already know the answer.  When tm_isdst has the wrong value,
58180         use a different heuristic to find the right one, based on the
58181         extreme values actually observed in practice in tz2003a,
58182         rather than the (overly optimistic) "previous 3 calendar quarters".
58183
58184         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58185         "T const" to accommodate glibc style.
58186         (check_result): Use less-confusing report format.  "long" -> "long int.
58187         (main): Likewise.
58188         Don't loop if the iteration overflows time_t.
58189         Allow a negative step in the iteration.
58190
58191 2003-07-06  Karl Berry  <karl@gnu.org>
58192
58193         * config/depcomp: update from automake.
58194         * config/config.sub: update from prep.
58195
58196 2003-07-03  Karl Berry  <karl@gnu.org>
58197
58198         * config/config.guess: update from prep.
58199
58200 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58201
58202         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58203         xreadlink.c now includes it unconditionally.
58204
58205 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58206
58207         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58208         having it depend on HAVE_SYS_TYPES_H.
58209
58210 2003-07-01  Bruno Haible  <bruno@clisp.org>
58211
58212         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58213         <sys/types.h> should be sufficient.
58214         Reported by Paul Eggert.
58215
58216 2003-06-26  Karl Berry  <karl@gnu.org>
58217
58218         * config/depcomp: update from automake.
58219
58220 2003-06-26  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/human: Depend on module stdbool.
58223
58224 2003-06-25  Bruno Haible  <bruno@clisp.org>
58225
58226         * modules/readlink: New file.
58227         * modules/xreadlink: Depend on it.
58228         * MODULES.html.sh (func_all_modules): Add readlink.
58229
58230 2003-06-25  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/readlink.m4: New file.
58233
58234 2003-06-25  Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/readlink.c: New file.
58237
58238 2003-06-22  Karl Berry  <karl@gnu.org>
58239
58240         * config/srclist.txt: update mkinstalldirs from automake.
58241         * config/mkinstalldirs: update.
58242
58243 2003-06-22  Bruno Haible  <bruno@clisp.org>
58244
58245         Portability to mingw32.
58246         * m4/ssize_t.m4: New file, from GNU gettext.
58247         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58248         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58249
58250 2003-06-22  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/safe-read: Add m4/ssize_t.m4.
58253         * modules/xreadlink: Add m4/ssize_t.m4.
58254
58255 2003-06-20  Bruno Haible  <bruno@clisp.org>
58256
58257         Assume C89, so PARAMS isn't needed.
58258         * lib/unicodeio.h (PARAMS): Remove.
58259         * lib/unicodeio.c: Don't use PARAMS.
58260
58261 2003-06-18  Karl Berry  <karl@gnu.org>
58262
58263         * config/config.{guess,sub}: update from prep.
58264
58265 2003-06-18  Jim Meyering  <jim@meyering.net>
58266
58267         Merge changes from coreutils.
58268         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58269         Remove explicit declarations of xmalloc and realloc.
58270         Include xalloc.h.
58271         (read_utmp): Remove anachronistic cast of xmalloc.
58272
58273 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58274
58275         Assume C89, so PARAMS isn't needed.
58276         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58277         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58278         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58279         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58280         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58281         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58282         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58283         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58284         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58285         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58286         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58287         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58288         no longer needed. Anyway, config.h should always be included before any
58289         other file.
58290
58291 2003-06-11  Simon Josefsson  <jas@extundo.com>
58292
58293         * modules/sysexits: New file.
58294         * MODULES.html.sh (func_all_modules): Add sysexits.
58295
58296 2003-06-11  Simon Josefsson  <jas@extundo.com>
58297
58298         * lib/sysexit_.h: New file.
58299
58300 2003-06-11  Derek Price  <derek@ximbiot.com>
58301
58302         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58303         necessary.
58304
58305 2003-06-11  Bruno Haible  <bruno@clisp.org>
58306
58307         * m4/sysexits.m4: New file.
58308
58309 2003-06-10  Simon Josefsson  <jas@extundo.com>
58310
58311         * lib/argp.h: New file, from glibc.
58312         * lib/argp-ba.c: New file, from glibc.
58313         * lib/argp-eexst.c: New file, from glibc.
58314         * lib/argp-fmtstream.c: New file, from glibc.
58315         * lib/argp-fmtstream.h: New file, from glibc.
58316         * lib/argp-fs-xinl.c: New file, from glibc.
58317         * lib/argp-help.c: New file, from glibc.
58318         * lib/argp-namefrob.h: New file, from glibc.
58319         * lib/argp-parse.c: New file, from glibc.
58320         * lib/argp-pv.c: New file, from glibc.
58321         * lib/argp-pvh.c: New file, from glibc.
58322         * lib/argp-xinl.c: New file, from glibc.
58323
58324 2003-06-10  Simon Josefsson  <jas@extundo.com>
58325
58326         * modules/strchrnul: New file.
58327
58328 2003-06-10  Simon Josefsson  <jas@extundo.com>
58329
58330         * modules/argp: New file.
58331
58332 2003-06-10  Simon Josefsson  <jas@extundo.com>
58333
58334         * m4/strchrnul.m4: New file.
58335
58336 2003-06-10  Simon Josefsson  <jas@extundo.com>
58337
58338         * lib/strchrnul.h: New file.
58339         * lib/strchrnul.c: New file.
58340
58341 2003-06-10  Bruno Haible  <bruno@clisp.org>
58342
58343         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58344
58345 2003-06-07  Karl Berry  <karl@gnu.org>
58346
58347         * config/config.{guess,sub}: update from prep.
58348
58349 2003-06-07  Jim Meyering  <jim@meyering.net>
58350
58351         * modules/strtod: Use $(...) notation, not @...@ for
58352         AC_REPLACE'd variables.
58353         * modules/localcharset: Likewise.
58354
58355 2003-06-07  Jim Meyering  <jim@meyering.net>
58356
58357         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58358         in place of my name in the copyright comment.
58359         Remove definition and uses of __P.
58360
58361         From coreutils.
58362         * lib/stat.c: Don't declare xmalloc explicitly.
58363         Instead, include "xalloc.h".
58364         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58365         xrealloc, and xcalloc return values.
58366         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58367         Improve comment.
58368         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58369
58370 2003-06-07  Bruno Haible  <bruno@clisp.org>
58371
58372         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58373         avoid AC_CONFIG_LINKS.
58374         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58375         fnmatch.h, to avoid AC_CONFIG_LINKS.
58376         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58377
58378 2003-06-07  Bruno Haible  <bruno@clisp.org>
58379
58380         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58381         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58382         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58383         directory.
58384         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58385         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58386         directory.
58387
58388 2003-06-06  Jim Meyering  <jim@meyering.net>
58389
58390         Merge from coreutils.
58391         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58392         Consolidate declarations and initializations of *_base* locals.
58393
58394         Merge from coreutils.
58395         This avoids a core dump on systems without GNU putenv,
58396         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58397         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58398         (unsetenv): New static function, from GNU libc.
58399         (rpl_putenv): Use it.
58400
58401         * lib/modechange.c: Remove trailing blanks.
58402
58403         Merge from coreutils.
58404         * lib/fsusage.c: Remove declaration of statfs.
58405         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58406
58407         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58408
58409 2003-06-06  Jim Meyering  <jim@meyering.net>
58410
58411         * lib/stdbool_.h: Renamed from stdbool.h.in.
58412
58413 2003-06-06  Jim Meyering  <jim@meyering.net>
58414             Bruno Haible  <bruno@clisp.org>
58415
58416         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58417         Adjust Makefile.am snippet not to redirect directly to target.
58418         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58419
58420 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58421
58422         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58423         mismatch, look in future quarters as well as past.  This fixes a
58424         bug when processing fall-backwards gaps immediately after a long
58425         period of daylight-saving time.
58426
58427         * lib/mktime.c: Assume freestanding C89 or better.
58428         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58429         (__P): Remove; not used.
58430         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58431         (mktime, not_equal_tm, print_tm, check_result,
58432         main): Use prototypes.  Use const * where appropriate.
58433         (main): Fix typo in testing code that uncovered by above changes.
58434         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58435
58436 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58437
58438         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58439         locale.h, localeconv.  This merges changes from coreutils.
58440
58441         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58442         It can be removed after the next Autoconf is released.
58443         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58444         needed.
58445
58446 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58447
58448         * lib/mktime.c: Fix Debian bug 177940
58449         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58450         (localtime_offset): Now long int, not time_t, because we want it
58451         to be guaranteed to be signed.  All uses changed.
58452         (__mktime_internal): If overflow would occur when adding offset,
58453         don't add it.
58454
58455         Merge 'human' changes from coreutils.  Rewrite to support
58456         locale-specific notations like thousands separators.
58457         * lib/human.c: Simplify authorship notice.
58458         Include human.h immediately after config.h.
58459         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58460         <limits.h>: Do not include, since human.h does.
58461         (SIZE_MAX, UINTMAX_MAX): New macros.
58462         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58463         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58464         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58465         (power_letter): Renamed from suffixes.
58466         (generate_suffix_backwards): Remove.
58467         (adjust_value): Now takes int style (because of human.h changes)
58468         and long double value (for greater precision on some platforms).
58469         (group_number): New function.
58470         (human_readable): Use it.  Use integer options, not enum.
58471         Put the options before the sizes in the arg list.
58472         Support all the new options.
58473         The old human_readable function has been removed;
58474         use inttostr.h instead.
58475         (human_readable, default_block_size, humblock):
58476         Use uintmax_t, not int, for block sizes.
58477         (human_readable_inexact, block_size_types): Remove.
58478         (block_size_opts): New constant.
58479         (human_options): Renamed from human_block_size, with new signature
58480         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58481         * lib/human.h: Add copyright and authorship notice.
58482         Include <limits.h> and <stdbool.h> unconditionally.
58483         (PARAMS): Remove.  All uses removed.
58484         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58485         (enum human_inexact_style): Remove tag; now a nameless enum.
58486         (human_floor, human_ceiling, human_round_to_even): Now have
58487         values 2, 0, 1 rather than -1, 1, 0.
58488         (human_group_digits, human_suppress_point_zero, human_autoscale,
58489         human_base_1024, human_SI, human_B): New constants.
58490         (human_readable_inexact, human_block_size): Remove.
58491         (human_readable): Size args are now uintmax_t, not int.
58492         (human_options): New decl.
58493
58494         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58495         unnecessary now that we assume C89 or better.  This change
58496         imported from coreutils.
58497
58498         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58499         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58500         in the 2003-05-30 sync from glibc.
58501
58502         .h files should stand alone, but we shouldn't include <sys/types.h>
58503         if we can get away with just <stddef.h>.
58504
58505         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58506         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58507         rather than <sys/types.h>, as we merely need size_t.
58508         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58509         to get size_t.
58510         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58511         Include <stdio.h>, to get FILE.
58512         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58513         memcasecmp.h has included <stddef.h> and all we need is size_t.
58514         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58515         our interface, instead of including <sys/types.h>
58516
58517 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58518
58519         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58520         now, as glibc mktime is buggy on non-glibc systems.
58521
58522 2003-06-03  Karl Berry  <karl@gnu.org>
58523
58524         * config/config.sub: update from prep.
58525
58526 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58527
58528         [from coreutils]
58529         Fix some minor time-related bugs with POSIX time arguments.
58530         Some valid time stamps were being rejected (notably -1, and
58531         time stamps before 1900 on 64-bit hosts).  And some invalid
58532         time stamps were being accepted, e.g. September 31.
58533
58534         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58535         that we can return (time_t) -1 successfully.
58536         * lib/posixtm.c: Likewise.
58537         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58538         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58539         (t): Remove static var.
58540         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58541         of static var.  All uses changed.
58542         (year): Do not reject years before 1900; they can occur with
58543         64-bit time_t.
58544         (posix_time_parse): Do not check for out-of-range components;
58545         that is now the caller's responsibility, since our checks were
58546         only approximations.
58547         (posixtime): Use mktime to check for out-of-range components,
58548         since it knows them exactly.
58549         If mktime returns (time_t) -1, check whether an error actually occurred
58550         by invoking localtime on -1.
58551         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58552         posixtime failures better.
58553         Improve the test data (in comments only).
58554
58555 2003-06-02  Karl Berry  <karl@gnu.org>
58556
58557         * config/mkinstalldirs (version): new variable.
58558         (--version): new option.
58559         (usage): improve message.
58560
58561 2003-05-30  Karl Berry  <karl@gnu.org>
58562
58563         * lib/mktime.c: update from libc.
58564
58565 2003-05-30  Bruno Haible  <bruno@clisp.org>
58566
58567         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58568         * config/config.rpath: Upgrade to gettext-0.12.1.
58569
58570 2003-05-30  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58573         * m4/nls.m4: New file, from gettext-0.12.1.
58574         * m4/po.m4: New file, from gettext-0.12.1.
58575         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58576
58577 2003-05-30  Bruno Haible  <bruno@clisp.org>
58578
58579         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58580         * lib/localcharset.h: Likewise.
58581         * lib/localcharset.c: Likewise.
58582
58583 2003-05-29  Karl Berry  <karl@gnu.org>
58584
58585         * config/config.rpath: update from gettext.
58586
58587 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58588
58589         Assume the headers required for C89 freestanding compilers.
58590         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58591         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58592         * m4/human.m4 (gl_HUMAN): Likewise.
58593         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58594         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58595         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58596         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58597         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58598         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58599
58600 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58601
58602         Assume the headers required for C89 freestanding compilers.
58603         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58604         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58605         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58606         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58607         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58608         define, since <limits.h> is guaranteed to do that.
58609         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58610         * lib/exclude.c: Include <stdbool.h> unconditionally.
58611         * lib/tempname.c: Include <stddef.h> unconditionally.
58612         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58613         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58614         <stddef.h> does that.
58615         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58616         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58617         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58618         needed.
58619         * lib/xstrtol.c: Likewise.
58620         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58621         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58622
58623         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58624         warnings on some platforms.
58625
58626         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58627         arbitrarily.
58628
58629 2003-05-26  Jim Meyering  <jim@meyering.net>
58630
58631         Merge in a change from coreutils:
58632         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58633         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58634         that condition, rather than `-1' which is slightly misleading.
58635         Change the name of the cache variable to have the gl_ prefix.
58636         Prompted by a patch from Richard Dawe for DJGPP.
58637
58638 2003-05-24  Karl Berry  <karl@gnu.org>
58639
58640         * config/config.guess: update from prep.
58641
58642 2003-05-22  Karl Berry  <karl@gnu.org>
58643
58644         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58645
58646 2003-05-20  Karl Berry  <karl@gnu.org>
58647
58648         * config/config.guess: update from prep.
58649
58650 2003-05-18  Karl Berry  <karl@gnu.org>
58651
58652         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58653         might actually be set by the user.
58654
58655         * config/depcomp, install-sh, mdate-sh: update from automake.
58656
58657 2003-05-17  Bruno Haible  <bruno@clisp.org>
58658
58659         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58660         invalid expansion for AC_EGREP_CPP.
58661         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58662         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58663         Suggested by Akim Demaille <akim@epita.fr> in
58664         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58665
58666 2003-05-12  Jim Meyering  <jim@meyering.net>
58667
58668         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58669         the space-padded-by-default conversion specifiers, %e, %k, %l.
58670
58671 2003-05-12  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58674         the string is longer than 4 KB.
58675
58676 2003-05-11  Karl Berry  <karl@gnu.org>
58677
58678         * config/config.{guess,sub}: update from prep.
58679
58680 2003-05-09  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/error: Add m4/strerror_r.m4 to file list.
58683
58684 2003-05-03  Bruno Haible  <bruno@clisp.org>
58685
58686         Upgrade to Unicode-4.0.
58687         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58688         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58689         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58690         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58691         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58692         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58693         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58694         Change width of U+E0100..U+E01EF from 1 to 0.
58695
58696 2003-04-25  Jim Meyering  <jim@meyering.net>
58697
58698         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58699         of type size_t, not int.
58700
58701 2003-04-25  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/copy-file.c: Include <stddef.h>, for size_t.
58704
58705 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58706
58707         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58708         code which expansion is under static control.  Patch imported from
58709         Akim Demaille's patch to Bison; see
58710         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58711
58712 2003-04-14  Bruno Haible  <bruno@clisp.org>
58713
58714         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58715
58716 2003-04-11  Jim Meyering  <jim@meyering.net>
58717
58718         Merge changes from Coreutils.
58719
58720         2003-03-22  Jim Meyering  <jim@meyering.net>
58721
58722         * lib/strftime.c (widen): Cast alloca return value to proper type.
58723
58724         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58725
58726         From GNU libc.
58727         * lib/strftime.c (my_strftime): Handle very large width
58728         specifications for numeric values correctly.  Improve checks for
58729         overflow.
58730
58731         2003-01-19  Jim Meyering  <jim@meyering.net>
58732
58733         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58734         definitions.
58735         (nl_get_alt_digit) [! defined my_strftime]: Define.
58736         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58737         _nl_get_alt_digit and _nl_get_walt_digit.
58738
58739         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58740         libc. These changes have no effect outside of _LIBC.
58741
58742 2003-04-10  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/findprog: New file.
58745         * MODULES.html.sh (func_all_modules): Add it.
58746
58747 2003-04-10  Bruno Haible  <bruno@clisp.org>
58748
58749         * m4/findprog.m4: New file.
58750         * m4/eaccess.m4: New file.
58751
58752 2003-04-10  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/findprog.h: New file, from GNU gettext.
58755         * lib/findprog.c: New file, from GNU gettext.
58756
58757 2003-04-05  Jim Meyering  <jim@meyering.net>
58758
58759         Merge changes from Coreutils.
58760
58761         * lib/exclude.h (PARAMS): Remove definition and uses.
58762         * lib/exclude.c: Remove uses of `PARAMS'.
58763
58764         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58765         Add test-cases for DOS filenames. Declare program_name.
58766         (main): Set up program_name.  Patch by Rich Dawe.
58767
58768         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58769         error from mntctl.
58770         Use mntctl's return value to drive the entry-processing loop, since
58771         we can't rely on the value of the vmt_length member in the last
58772         entry.  On some systems doing so could result in exhausting
58773         virtual memory.  Based in part on a patch from Mike Jetzer.
58774
58775 2003-04-04  Bruno Haible  <bruno@clisp.org>
58776
58777         * modules/linebreak: New file.
58778         * MODULES.html.sh (func_all_modules): Add it.
58779
58780 2003-04-04  Bruno Haible  <bruno@clisp.org>
58781
58782         * m4/linebreak.m4: New file.
58783
58784 2003-04-04  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/linebreak.h: New file, from GNU gettext.
58787         * lib/linebreak.c: New file, from GNU gettext with slight
58788         modifications.
58789         * lib/lbrkprop.h: New file, from GNU gettext.
58790
58791 2003-04-03  Bruno Haible  <bruno@clisp.org>
58792
58793         * modules/utf8-ucs4: New file.
58794         * modules/utf16-ucs4: New file.
58795         * modules/ucs4-utf8: New file.
58796         * modules/ucs4-utf16: New file.
58797         * MODULES.html.sh (func_all_modules): Add them.
58798
58799 2003-04-03  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/utf-ucs4.m4: New file.
58802         * m4/ucs4-utf.m4: New file.
58803
58804 2003-04-03  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/utf8-ucs4.h: New file, from GNU gettext.
58807         * lib/utf16-ucs4.h: New file, from GNU gettext.
58808         * lib/ucs4-utf8.h: New file, from GNU gettext.
58809         * lib/ucs4-utf16.h: New file, from GNU gettext.
58810
58811 2003-04-02  Bruno Haible  <bruno@clisp.org>
58812
58813         * modules/binary-io: New file.
58814         * MODULES.html.sh (func_all_modules): Add it.
58815
58816 2003-04-02  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/binary-io.h: New file, from GNU gettext.
58819
58820 2003-04-01  Bruno Haible  <bruno@clisp.org>
58821
58822         * modules/pathname: New file.
58823         * MODULES.html.sh (func_all_modules): Add it.
58824
58825 2003-04-01  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/pathname.h: New file, from GNU gettext.
58828         * lib/concatpath.c: New file, from GNU gettext.
58829
58830 2003-03-30  Bruno Haible  <bruno@clisp.org>
58831
58832         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58833
58834 2003-03-30  Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58837         function chown() doesn't exist.
58838
58839 2003-03-28  Bruno Haible  <bruno@clisp.org>
58840
58841         * modules/copy-file: New file.
58842         * MODULES.html.sh (func_all_modules): Add it.
58843
58844 2003-03-28  Bruno Haible  <bruno@clisp.org>
58845
58846         * m4/copy-file.m4: New file.
58847
58848 2003-03-28  Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/copy-file.h: New file, from GNU gettext.
58851         * lib/copy-file.c: New file, from GNU gettext.
58852
58853 2003-03-18  Jim Meyering  <jim@meyering.net>
58854
58855         * lib/quote.c (quote_n): Fix typo in comment.
58856
58857 2003-03-18  Bruno Haible  <bruno@clisp.org>
58858
58859         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58860         checking.
58861         * m4/onceonly_2_57.m4: Likewise.
58862
58863 2003-03-17  Bruno Haible  <bruno@clisp.org>
58864
58865         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58866         (m4_quote): Remove macro.
58867         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58868
58869 2003-03-14  Jim Meyering  <jim@meyering.net>
58870
58871         Merge changes from Coreutils.
58872         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58873         to be const, in order to avoid warnings.
58874         (obstack_room): Likewise.
58875         (obstack_empty_p): Likewise.
58876
58877 2003-03-14  Bruno Haible  <bruno@clisp.org>
58878
58879         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58880         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58881
58882 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58883
58884         Merge changes from Bison.
58885         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58886         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58887         when compiling Bison 1.875's `bitset bset = obstack_alloc
58888         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58889         * lib/hash.c: Include <stdbool.h> unconditionally.
58890
58891 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58892
58893         * m4/onceonly.m4 (m4_quote): New macro.
58894         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58895         Quote AC_FOREACH variable-expansions properly.
58896
58897 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58898
58899         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58900
58901 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58902
58903         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58904         Reported by Bruce Becker; see:
58905         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58906
58907 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58908             Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58911         Reported by John Hughes, see
58912         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58913
58914 2003-02-20  Bruno Haible  <bruno@clisp.org>
58915
58916         * MODULES.html.sh (func_all_modules): Add poll.
58917
58918 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58919
58920         * modules/poll: New file.
58921
58922 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58923
58924         * lib/poll_.h: New file.
58925         * lib/poll.c: New file.
58926
58927 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58928
58929         * m4/poll.m4: New file.
58930
58931 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58932
58933         * modules/mathl: New file.
58934
58935 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58936
58937         * lib/mathl.h: New file.
58938         * lib/acosl.c: New file.
58939         * lib/asinl.c: New file.
58940         * lib/atanl.c: New file.
58941         * lib/ceill.c: New file.
58942         * lib/cosl.c: New file.
58943         * lib/expl.c: New file.
58944         * lib/floorl.c: New file.
58945         * lib/frexpl.c: New file.
58946         * lib/ldexpl.c: New file.
58947         * lib/logl.c: New file.
58948         * lib/sincosl.c: New file.
58949         * lib/sinl.c: New file.
58950         * lib/sqrtl.c: New file.
58951         * lib/tanl.c: New file.
58952         * lib/trigl.c: New file.
58953         * lib/trigl.h: New file.
58954
58955 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58956
58957         * m4/mathl.m4: New file.
58958
58959 2003-02-18  Bruno Haible  <bruno@clisp.org>
58960
58961         * MODULES.html.sh (func_all_modules): Add mathl.
58962
58963 2003-02-17  Bruno Haible  <bruno@clisp.org>
58964
58965         * modules/mkdtemp: New module.
58966         * MODULES.html.sh (func_all_modules): Add it.
58967
58968 2003-02-17  Bruno Haible  <bruno@clisp.org>
58969
58970         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58971
58972 2003-02-17  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/mkdtemp.h: New file, from GNU gettext.
58975         * lib/mkdtemp.c: New file, from GNU gettext.
58976
58977 2003-02-02  Jim Meyering  <jim@meyering.net>
58978
58979         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58980         e.g. glibc-2.2.93.
58981
58982 2003-01-31  Bruno Haible  <bruno@clisp.org>
58983
58984         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58985         'rpl_rename'.
58986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58987         'rpl_strnlen'.
58988         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58989         'rpl_strtod'.
58990         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58991         'rpl_utime'.
58992
58993 2003-01-31  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/rename.c: #undef rename before defining rpl_rename.
58996         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58997
58998 2003-01-30  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/vasnprintf, modules/vasprintf: New modules.
59001         * MODULES.html.sh (func_all_modules): Add them.
59002
59003 2003-01-30  Bruno Haible  <bruno@clisp.org>
59004
59005         * m4/signed.m4: New file, from GNU gettext.
59006         * m4/longdouble.m4: New file, from GNU gettext.
59007         * m4/wchar_t.m4: New file, from GNU gettext.
59008         * m4/wint_t.m4: New file, from GNU gettext.
59009         * m4/vasnprintf.m4: New file.
59010         * m4/vasprintf.m4: New file.
59011
59012 2003-01-30  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/printf-args.h: New file, from GNU gettext.
59015         * lib/printf-args.c: New file, from GNU gettext.
59016         * lib/printf-parse.h: New file, from GNU gettext.
59017         * lib/printf-parse.c: New file, from GNU gettext.
59018         * lib/vasnprintf.h: New file, from GNU gettext.
59019         * lib/vasnprintf.c: New file, from GNU gettext.
59020         * lib/asnprintf.c: New file, from GNU gettext.
59021         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59022         * lib/vasprintf.c: New file, from GNU gettext.
59023         * lib/asprintf.c: New file, from GNU gettext.
59024
59025 2003-01-29  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/stpncpy: New module.
59028         * MODULES.html.sh (func_all_modules): Add it.
59029
59030 2003-01-29  Bruno Haible  <bruno@clisp.org>
59031
59032         * m4/stpncpy.m4: New file.
59033
59034 2003-01-29  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59037         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59038
59039 2003-01-28  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/c-ctype: New module.
59042         * MODULES.html.sh (func_all_modules): Add it.
59043
59044 2003-01-28  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59047         Paul Eggert.
59048         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59049         Paul Eggert.
59050
59051 2003-01-27  Bruno Haible  <bruno@clisp.org>
59052
59053         * modules/xsetenv: New module.
59054         * MODULES.html.sh (func_all_modules): Add it.
59055
59056 2003-01-27  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/xsetenv.h: New file, from GNU gettext.
59059         * lib/xsetenv.c: New file, from GNU gettext.
59060
59061 2003-01-23  Jim Meyering  <jim@meyering.net>
59062
59063         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59064         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59065
59066 2003-01-23  Bruno Haible  <bruno@clisp.org>
59067
59068         * modules/minmax: New module.
59069         * MODULES.html.sh (func_all_modules): Add it.
59070
59071 2003-01-23  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59074         Eggert.
59075
59076 2003-01-22  Bruno Haible  <bruno@clisp.org>
59077
59078         * modules/exit: New module.
59079         * MODULES.html.sh (func_all_modules): Add it.
59080
59081 2003-01-22  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/exit.h: New file, from GNU gettext.
59084
59085 2003-01-19  Bruno Haible  <bruno@clisp.org>
59086
59087         * gnulib-tool: Recognize option --extract-maintainer.
59088         (func_get_maintainer): New function.
59089         * modules/*: Add Maintainer entry.
59090
59091 2003-01-16  Jim Meyering  <jim@meyering.net>
59092
59093         * m4/regex.m4: The `regex' struct is both input and output.
59094         Initialize it before each use.  Patch by Tim Waugh.
59095
59096 2003-01-16  Bruno Haible  <bruno@clisp.org>
59097
59098         * MODULES.html.sh: Add a table of contents. Add the module name as
59099         leftmost column. Add hyperlinks.
59100
59101 2003-01-15  Bruno Haible  <bruno@clisp.org>
59102
59103         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59104
59105 2003-01-15  Bruno Haible  <bruno@clisp.org>
59106
59107         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59108         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59109         suffix.
59110
59111 2003-01-15  Bruno Haible  <bruno@clisp.org>
59112
59113         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59114
59115 2003-01-15  Bruno Haible  <bruno@clisp.org>
59116
59117         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59118         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59119
59120 2003-01-14  Jim Meyering  <jim@meyering.net>
59121
59122         * lib/same.c (same_name): Tweak a comment.
59123
59124 2003-01-14  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59127         when a string comparison is sufficient.
59128
59129 2003-01-14  Bruno Haible  <bruno@clisp.org>
59130
59131         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59132         'unsigned int'.
59133
59134 2003-01-14  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/hash-pjw.c: Add comment about low quality of this function.
59137
59138 2003-01-13  Bruno Haible  <bruno@clisp.org>
59139
59140         * modules/stpcpy: Distribute lib/stpcpy.h.
59141         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59142
59143 2003-01-13  Bruno Haible  <bruno@clisp.org>
59144
59145         * modules/*: Add a description.
59146         * modules/strpbrk: Fix Makefile.am snippet.
59147         * modules/strtoimax: Fix dependencies.
59148         * modules/strtoumax: Likewise.
59149
59150 2003-01-13  Bruno Haible  <bruno@clisp.org>
59151
59152         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59153         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59154         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59155
59156 2003-01-13  Bruno Haible  <bruno@clisp.org>
59157
59158         * gnulib-tool (func_create_testdir): Store config/* files in the main
59159         directory.
59160         * config.rpath: Move to ...
59161         * config/config.rpath: ... here.
59162         * modules/gettext: Contains config/config.rpath, not config.rpath.
59163         * modules/iconv: Likewise.
59164
59165 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59166
59167         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59168         to avoid collisions with libcurses and libreadline.
59169
59170         * m4/getstr.m4: Remove.
59171         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59172
59173 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59174
59175         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59176         to avoid collisions with libcurses and libreadline.
59177
59178         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59179         * lib/getstr.h, getstr.c: Remove.
59180         * lib/getline.c: Include "getline.h", to check interface.
59181         Move body of old getstr.c here: this defines MIN_CHUNK and
59182         declares getdelim2, which is renamed from getstr.
59183         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59184
59185         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59186         All uses changed.
59187         * lib/linebuffer.h: Likewise.
59188         (readline): Remove backward-compatibility macro.
59189
59190 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59191
59192         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59193         to avoid collisions with libcurses and libreadline.
59194         * getstr: Remove.
59195         * MODULES.html.sh: Remove getstr.
59196         * modules/getline: Depend on unlocked-io, not getstr.
59197
59198 2003-01-12  Jim Meyering  <jim@meyering.net>
59199
59200         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59201
59202 2003-01-10  Bruno Haible  <bruno@clisp.org>
59203
59204         * modules/alloca: Change Makefile.am requirements. Simplify Include
59205         requirements. Add lib/alloca_.h to file list.
59206
59207 2003-01-10  Bruno Haible  <bruno@clisp.org>
59208
59209         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59210
59211 2003-01-10  Bruno Haible  <bruno@clisp.org>
59212
59213         * lib/alloca_.h: New file.
59214         * lib/getdate.y: Unconditionally include alloca.h.
59215         * lib/makepath.c: Likewise.
59216         * lib/setenv.c: Likewise.
59217         * lib/userspec.c: Likewise.
59218
59219 2003-01-09  Karl Berry  <karl@gnu.org>
59220
59221         * MODULES.html.sh: include `dirname $0` in PATH, to find
59222         gnulib-tool.
59223
59224 2003-01-09  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59227         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59228
59229 2003-01-09  Bruno Haible  <bruno@clisp.org>
59230
59231         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59232
59233 2003-01-09  Bruno Haible  <bruno@clisp.org>
59234
59235         * lib/stdbool.h.in: New file.
59236
59237 2003-01-09  Bruno Haible  <bruno@clisp.org>
59238
59239         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59240         * MODULES.html.sh: Likewise.
59241
59242 2003-01-08  Jim Meyering  <jim@meyering.net>
59243
59244         * lib/full-write.c: Undefine and define-away `const' after inclusion
59245         of errno.h, not before.  Suggestion from Bruno Haible.
59246
59247 2003-01-08  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/full-read: Depend on full-write.
59250
59251 2003-01-08  Bruno Haible  <bruno@clisp.org>
59252
59253         * lib/safe-read.c: Include specification header first, to ensure its
59254         selfcontainedness.
59255         * lib/full-write.c: Likewise.
59256
59257 2003-01-07  Jim Meyering  <jim@meyering.net>
59258
59259         * lib/full-write.c: Rework so that it may serve to define full_read,
59260         too.
59261         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59262
59263 2003-01-07  Bruno Haible  <bruno@clisp.org>
59264
59265         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59266         <inttypes.h>.
59267         * lib/xstrtol.h: Likewise.
59268         * lib/xstrtoimax.c: Likewise.
59269         * lib/xstrtoumax.c: Likewise.
59270         * lib/human.h: Likewise.
59271
59272         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59273         on systems that have <inttypes.h> but not <stdint.h>.
59274
59275 2003-01-07  Bruno Haible  <bruno@clisp.org>
59276
59277         * MODULES.html.sh: Add copyright notice.
59278         (missed_files): Omit CVS directory entries.
59279         (func_module): Make it work with sed-3.02.
59280         * MODULES.txt: Remove file.
59281
59282 2003-01-06  Jim Meyering  <jim@meyering.net>
59283
59284         * lib/version-etc.c: Update year in translatable copyright string.
59285
59286 2003-01-03  Karl Berry  <karl@gnu.org>
59287
59288         * config/config.{guess,sub}: update from prep.
59289
59290 2003-01-02  Karl Berry  <karl@gnu.org>
59291
59292         * doc/COPYING.DOC: belatedly updated to 1.2.
59293
59294 2003-01-01  Karl Berry  <karl@gnu.org>
59295
59296         * gnulib-tool (func_verify_module): report module name $module in
59297         error message, not $1.
59298         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59299         be created, only if it doesn't exist.
59300         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59301
59302 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59303
59304         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59305
59306 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59307
59308         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59309         memcmp if strcoll doesn't work.
59310
59311 2002-12-31  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59314         nonempty.
59315
59316 2002-12-31  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/memcoll.c (STRCOLL): New macro.
59319         (memcoll): Use it.
59320
59321 2002-12-31  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/localcharset.h: New file.
59324         * lib/localcharset.c: Include it.
59325         * lib/unicodeio.c: Likewise.
59326
59327 2002-12-31  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59330         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59331
59332 2002-12-31  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/getline.h: Include <stddef.h>, for size_t.
59335
59336         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59337         * lib/unicodeio.c: Don't include <stddef.h>.
59338
59339 2002-12-31  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59342         HAVE_TM_ZONE.
59343
59344 2002-12-24  Karl Berry  <karl@gnu.org>
59345
59346         * config/config.guess: update from prep.
59347
59348 2002-12-24  Bruno Haible  <bruno@clisp.org>
59349
59350         General infrasructure.
59351         * m4/README: Rewritten.
59352         * m4/onceonly.m4: New file.
59353         * m4/onceonly_2_57.m4: New file.
59354
59355         Module atexit.
59356         * m4/atexit.m4: New file.
59357
59358         Module strtod.
59359         * m4/strtod.m4: New file.
59360
59361         Module strtol.
59362         * m4/strtol.m4: New file.
59363
59364         Module strtoul.
59365         * m4/strtoul.m4: New file.
59366
59367         Module memchr.
59368         * m4/memchr.m4: New file.
59369
59370         Module memcmp.
59371         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59372         (jm_FUNC_MEMCMP): Invoke it.
59373
59374         Module memcpy.
59375         * m4/memcpy.m4: New file.
59376
59377         Module memmove.
59378         * m4/memmove.m4: New file.
59379
59380         Module memset.
59381         * m4/memset.m4: New file.
59382
59383         Module strcspn.
59384         * m4/strcspn.m4: New file.
59385
59386         Module strpbrk.
59387         * m4/strpbrk.m4: New file.
59388
59389         Module strstr.
59390         * m4/strstr.m4: New file.
59391
59392         Module strerror.
59393         * m4/strerror.m4: New file.
59394
59395         Module mktime.
59396         * m4/mktime.m4: Renamed from jm-mktime.m4.
59397         (gl_PREREQ_MKTIME): New macro.
59398         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59399
59400         Module malloc.
59401         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59402         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59403         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59404
59405         Module realloc.
59406         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59407         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59408         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59409
59410         Module strftime.
59411         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59412         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59413         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59414         gl_TM_GMTOFF.
59415         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59416
59417         Module xalloc.
59418         * m4/xalloc.m4: New file.
59419
59420         Module alloca.
59421         * m4/alloca.m4: New file.
59422
59423         Module putenv.
59424         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59425         (jm_FUNC_PUTENV): Invoke it.
59426
59427         Module setenv.
59428         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59429         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59430         when invoked twice.
59431         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59432         gt_FUNC_SETENV.
59433
59434         Module memrchr.
59435         * m4/memrchr.m4: New file.
59436
59437         Module stpcpy.
59438         * m4/stpcpy.m4: New file.
59439
59440         Module strcase.
59441         * m4/strcase.m4: New file.
59442
59443         Module strdup.
59444         * m4/strdup.m4: New file.
59445
59446         Module strnlen.
59447         * m4/strnlen.m4: New file.
59448
59449         Module strndup.
59450         * m4/strndup.m4: New file.
59451
59452         Module xstrtod.
59453         * m4/xstrtod.m4: New file.
59454
59455         Module xstrtol.
59456         * m4/xstrtol.m4: New file.
59457
59458         Module getdate.
59459         * m4/getdate.m4: New file.
59460
59461         Module unlocked-io.
59462         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59463         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59464         * m4/jm-glibc-io.m4n: Remove file.
59465
59466         Module long-options.
59467         * m4/long-options.m4: New file.
59468
59469         Module md5.
59470         * m4/md5.m4: New file.
59471
59472         Module sha.
59473         * m4/sha.m4: New file.
59474
59475         Module getstr.
59476         * m4/getstr.m4: New file.
59477
59478         Module getline.
59479         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59480         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59481         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59482         simply getline. Infoke gl_PREREQ_GETLINE.
59483
59484         Module obstack.
59485         * m4/obstack.m4: New file.
59486
59487         Module hash.
59488         * m4/hash.m4: New file.
59489
59490         Module readtokens.
59491         * m4/readtokens.m4: New file.
59492
59493         Module strverscmp.
59494         * m4/strverscmp.m4: New file.
59495
59496         Module stdbool.
59497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59498         OSF/1.
59499
59500         Module strtoll.
59501         * m4/strtoll.m4: New file.
59502
59503         Module strtoull.
59504         * m4/strtoull.m4: New file.
59505
59506         Module strtoimax.
59507         * m4/strtoimax.m4: New file.
59508
59509         Module strtoumax.
59510         * m4/strtoumax.m4: New file.
59511
59512         Module xstrtoimax.
59513         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59514         jm_AC_PREREQ_XSTRTOIMAX.
59515         Moved the strtol prerequisites to strtol.m4.
59516         Moved the strtoll prerequisites to strtoll.m4.
59517         Moved the strtoimax prerequisites to strtoimax.m4.
59518
59519         Module xstrtoumax.
59520         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59521         jm_AC_PREREQ_XSTRTOUMAX.
59522         Moved the strtoul prerequisites to strtoul.m4.
59523         Moved the strtoull prerequisites to strtoull.m4.
59524         Moved the strtoumax prerequisites to strtoumax.m4.
59525
59526         Module chown.
59527         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59528         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59529
59530         Module dup2.
59531         * m4/dup2.m4: New file.
59532
59533         Module ftruncate.
59534         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59535         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59536
59537         Module getgroups.
59538         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59539         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59540
59541         Module gettimeofday.
59542         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59543         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59544         gl_PREREQ_GETTIMEOFDAY.
59545
59546         Module mkdir.
59547         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59548         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59549
59550         Module mkstemp.
59551         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59552         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59553         jm_AC_TYPE_UINTMAX_T.
59554         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59555
59556         Module stat.
59557         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59558         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59559
59560         Module lstat.
59561         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59562         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59563
59564         Module timespec.
59565         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59566         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59567         * m4/st_mtim.m4: Indentation.
59568
59569         Module nanosleep.
59570         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59571         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59572         gl_PREREQ_NANOSLEEP.
59573
59574         Module regex.
59575         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59576         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59577         (gl_REGEX): New macro.
59578
59579         Module rename.
59580         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59581         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59582
59583         Module rmdir.
59584         * m4/rmdir.m4: New file.
59585
59586         Module utime.
59587         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59588         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59589         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59590
59591         Module dirname.
59592         * m4/dirname.m4: New file.
59593
59594         Module getopt.
59595         * m4/getopt.m4: New file.
59596
59597         Module unistd-safer.
59598         * m4/unistd-safer.m4: New file.
59599
59600         Module fnmatch.
59601         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59602         declaration.
59603         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59604         (gl_FUNC_FNMATCH_POSIX): New macro.
59605         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59606         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59607         simply fnmatch.
59608
59609         Module exclude.
59610         * m4/exclude.m4: New file.
59611
59612         Module human.
59613         * m4/human.m4: New file.
59614
59615         Module acl.
59616         * m4/acl.m4: Nop.
59617
59618         Module backupfile.
59619         * m4/backupfile.m4: New file.
59620         * m4/d-ino.m4: Indentation.
59621
59622         Module fsusage.
59623         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59624         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59625         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59626
59627         Module dirfd.
59628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59629         requirements.
59630
59631         Module euidaccess.
59632         * m4/euidaccess.m4: New file.
59633
59634         Module file-type.
59635         * m4/file-type.m4: New file.
59636
59637         Module fileblocks.
59638         * m4/fileblocks.m4: New file.
59639
59640         Module filemode.
59641         * m4/filemode.m4: New file.
59642
59643         Module isdir.
59644         * m4/isdir.m4: New file.
59645
59646         Module lchown.
59647         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59648         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59649
59650         Module makepath.
59651         * m4/makepath.m4: New file.
59652
59653         Module modechange.
59654         * m4/modechange.m4: New file.
59655
59656         Module mountlist.
59657         * m4/mountlist.m4: New file.
59658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59659         Indentation.
59660
59661         Module path-concat.
59662         * m4/path-concat.m4: New file.
59663
59664         Module pathmax.
59665         * m4/pathmax.m4: New file.
59666
59667         Module same.
59668         * m4/same.m4: New file.
59669
59670         Module save-cwd.
59671         * m4/save-cwd.m4: New file.
59672
59673         Module savedir.
59674         * m4/savedir.m4: New file.
59675
59676         Module xgetcwd.
59677         * m4/xgetcwd.m4: New file.
59678         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59679
59680         Module xreadlink.
59681         * m4/xreadlink.m4: New file.
59682
59683         Module safe-read.
59684         * m4/safe-read.m4: New file.
59685
59686         Module safe-write.
59687         * m4/safe-write.m4: New file.
59688
59689         Module closeout.
59690         * m4/closeout.m4: New file.
59691
59692         Module stdio-safer.
59693         * m4/stdio-safer.m4: New file.
59694
59695         Module getpass.
59696         * m4/getpass.m4: New file.
59697
59698         Module getugroups.
59699         * m4/getugroups.m4: New file.
59700
59701         Module group-member.
59702         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59703         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59704
59705         Module idcache.
59706         * m4/idcache.m4: New file.
59707
59708         Module userspec.
59709         * m4/userspec.m4: New file.
59710
59711         Module gettime.
59712         * m4/clock_time.m4: New file.
59713         * m4/gettime.m4: New file.
59714
59715         Module settime.
59716         * m4/settime.m4: New file.
59717
59718         Module posixtm.
59719         * m4/posixtm.m4: New file.
59720
59721         Module gethostname.
59722         * m4/gethostname.m4: New file.
59723
59724         Module canon-host.
59725         * m4/canon-host.m4: New file.
59726
59727         Module gettext.
59728         * m4/codeset.m4: New file, from gettext-0.11.5.
59729         * m4/gettext.m4: New file, from gettext-0.11.5.
59730         * m4/glibc21.m4: New file, from gettext-0.11.5.
59731         * m4/iconv.m4: New file, from gettext-0.11.5.
59732         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59733         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59734         * m4/inttypes.m4: New file, from gettext-0.11.5.
59735         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59736         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59737         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59738         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59739         * m4/lib-link.m4: New file, from gettext-0.11.5.
59740         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59741         * m4/progtest.m4: New file, from gettext-0.11.5.
59742         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59743         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59744         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59745
59746         Module localcharset.
59747         * m4/localcharset.m4: New file.
59748
59749         Module hard-locale.
59750         * m4/hard-locale.m4: New file.
59751
59752         Module mbswidth.
59753         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59754         onceonly macros.
59755         * m4/mbrtowc.m4: Add comment.
59756
59757         Module memcasecmp.
59758         * m4/memcasecmp.m4: New file.
59759
59760         Module memcoll.
59761         * m4/memcoll.m4: New file.
59762
59763         Module unicodeio.
59764         * m4/unicodeio.m4: New file.
59765
59766         Module rpmatch.
59767         * m4/rpmatch.m4: New file.
59768
59769         Module yesno.
59770         * m4/yesno.m4: New file.
59771
59772         Module exitfail.
59773         * m4/exitfail.m4: New file.
59774
59775         Module c-stack.
59776         * m4/c-stack.m4 (gl_C_STACK): New macro.
59777         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59778
59779         Module error.
59780         * m4/error.m4 (gl_ERROR): New macro.
59781         (jm_PREREQ_ERROR): Use onceonly macros.
59782
59783         Module fatal.
59784         * m4/fatal.m4: New file.
59785
59786         Module getloadavg.
59787         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59788         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59789
59790         Module getpagesize.
59791         * m4/getpagesize.m4: New file.
59792
59793         Module getusershell.
59794         * m4/getusershell.m4: New file.
59795
59796         Module physmem.
59797         * m4/physmem.m4: New file.
59798
59799         Module posixver.
59800         * m4/posixver.m4: New file.
59801
59802         Module quotearg.
59803         * m4/quotearg.m4: New file.
59804
59805         Module quote.
59806         * m4/quote.m4: New file.
59807
59808         Module readutmp.
59809         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59810
59811         Module sig2str.
59812         * m4/sig2str.m4: New file.
59813
59814         Other.
59815         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59816         ulonglong.m4.
59817         * m4/intmax_t.m4: New file.
59818         * m4/d-type.m4: Indentation.
59819         * m4/jm-macros.m4: Update.
59820         * m4/prereq.m4 (jm_PREREQ): Update.
59821         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59822         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59823         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59824         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59825         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59826         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59827         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59828         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59829         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59830         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59831         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59832         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59833         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59834         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59835         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59836         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59837         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59838         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59839         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59840
59841 2002-12-24  Bruno Haible  <bruno@clisp.org>
59842
59843         * MODULES.txt: Update according to m4/ changes.
59844
59845         Module gettext.
59846         * config.rpath: New file, from gettext-0.11.5.
59847
59848         * modules/*: New module descriptions.
59849         * gnulib-tool: New file.
59850         * MODULES.html.sh: New file.
59851
59852 2002-12-21  Karl Berry  <karl@gnu.org>
59853
59854         * doc/fdl.texi: update to version 1.2.
59855
59856 2002-12-19  Karl Berry  <karl@gnu.org>
59857
59858         * config/config.guess: update from prep.
59859
59860 2002-12-18  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59863         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59864
59865 2002-12-17  Bruno Haible  <bruno@clisp.org>
59866
59867         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59868         stdlib.h, string.h.
59869
59870 2002-12-17  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/canon-host.c (strdup): Remove unused declaration.
59873
59874         * lib/fsusage.c: Include full_read.h.
59875         (get_fs_usage): Use full_read instead of safe_read.
59876
59877         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59878
59879 2002-12-12  Karl Berry  <karl@gnu.org>
59880
59881         * config/config.guess: update from prep.
59882
59883 2002-12-11  Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/setenv.m4: New file, from gettext-0.11.5.
59886
59887 2002-12-11  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59890         not unsetenv().
59891         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59892         modifications:
59893
59894         2002-12-11  Bruno Haible  <bruno@clisp.org>
59895
59896                 * setenv.c (alloca): Fall back to malloc.
59897                 (freea): New macro.
59898                 (setenv): Use freea() to free memory allocated with alloca().
59899
59900         2002-11-13  Bruno Haible  <bruno@clisp.org>
59901
59902                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59903                 function declarations.
59904                 * unsetenv.c (unsetenv): Likewise.
59905
59906         2002-03-04  Bruno Haible  <bruno@clisp.org>
59907
59908                 Portability to AIX 4.3.3.
59909                 * unsetenv.c: New file, extracted from setenv.c.
59910                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59911
59912         2001-12-20  Bruno Haible  <bruno@clisp.org>
59913
59914                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59915                 use malloc instead. For SunOS 4.
59916
59917         2001-12-11  Bruno Haible  <bruno@clisp.org>
59918
59919                 * setenv.c: Declare alloca.
59920                 (compar_fn_t): New typedef.
59921                 (KNOWN_VALUE, STORE_VALUE): Use it.
59922
59923         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59924         setenv.h.
59925
59926 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59927
59928         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59929         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59930         Choose values that are less likely to collide with system fnmatch
59931         options.
59932         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59933         defined (e.g., a pure POSIX system).
59934         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59935         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59936
59937 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59938
59939         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59940         a pain in practice to deal with generated m4 files.  This change
59941         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59942
59943         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59944         and jm-glibc-io.m4, as they are no longer a special case.
59945         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59946         kludge and the auto-generation stuff.  Check only whether the
59947         functions are declared, not whether they exist, since older hosts
59948         that don't declare the functions can't use the optimization anyway.
59949
59950 2002-12-06  Jim Meyering  <jim@meyering.net>
59951
59952         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59953
59954         Merge in changes from libc's misc/error.c, in preparation
59955         for the merge of gnulib's changes back into libc.
59956
59957         * lib/error.c (_): Define only if not already defined.
59958         Move definition to follow all #include directives.
59959         Include unlocked-io.h only if !_LIBC.
59960         [_LIBC]: Include <libio/libioP.h>.
59961         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59962         (fflush): Tweak definition to use INTUSE.
59963         (putc): Define.
59964
59965 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59966
59967         * lib/alloca.c [defined emacs]: Include "lisp.h".
59968         (xalloc_die) [defined emacs]: New macro.
59969         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59970         [! defined emacs]: Include <xalloc.h>.
59971         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59972         (pointer): Typedef to POINTER_TYPE *.
59973         (malloc): Remove decl; we now always use xmalloc.
59974         (alloca): Use old-style definition, since Emacs needs this.
59975         Check for arithmetic overflow when computing combined size.
59976
59977 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59978
59979         Do not generate unlocked-io.h automatically, since it's easier to
59980         maintain it by hand.
59981
59982         * lib/unlocked-io.h: New file, from GNU diffutils,
59983         but with proper copyright notice and attribution.
59984         * lib/gen-uio: Remove.
59985         * lib/Makefile.am: Add copyright notice.
59986         (libfetish_a_SOURCES): Add unlocked-io.h.
59987         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59988         (DISTCLEANFILES, io_functions): Remove macros.
59989         (EXTRA_DIST): Remove gen_uio.
59990         (unlocked-io.h): Remove rule.
59991
59992 2002-12-04  Jim Meyering  <jim@meyering.net>
59993
59994         Reflect the fact that stat.c and lstat.c are no longer generated.
59995         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59996         (DISTCLEANFILES): Likewise.
59997         (EXTRA_DIST): Likewise.
59998         (all_local): Don't depend on stat.c or lstat.c.
59999         (stat.c, lstat.c): Remove rules.
60000         (EXTRA_DIST): Remove xstat.in.
60001
60002         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60003         * lib/stat.c: New file.  Contents mostly from xstat.in.
60004         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60005         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60006
60007         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60008         too.
60009         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60010
60011 2002-12-03  Jim Meyering  <jim@meyering.net>
60012
60013         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60014         but not semantics, to minimize the differences between these two files.
60015         (safe_read): Change comment to mention SAFE_READ_ERROR.
60016
60017         * lib/safe-read.c (IS_EINTR): Define.
60018         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60019
60020 2002-12-02  Jim Meyering  <jim@meyering.net>
60021
60022         * lib/safe-read.c (EINTR): Define.
60023         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60024         (INT_MAX): Provide fallback.
60025         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60026
60027         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60028
60029 2002-12-02  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60032         Define, taken from safe-read.c.
60033         (INT_MAX): Provide fallback.
60034         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60035         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60036
60037         * lib/safe-read.c (EINTR): Remove definition.
60038         (safe_read): Don't use EINTR if it is absent.
60039
60040 2002-12-01  Jim Meyering  <jim@meyering.net>
60041
60042         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60043         zero.
60044         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60045
60046 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60047
60048         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60049         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60050         with `if (! (value < limit)) abort ();', for readability.
60051
60052 2002-11-26  Karl Berry  <karl@gnu.org>
60053
60054         * lib/strdup.c: copy from libc again, with jim's ok.
60055         * lib/.cppi-disable: re-add strdup.c
60056
60057 2002-11-25  Karl Berry  <karl@gnu.org>
60058
60059         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60060         instead of "strtol.c".
60061
60062 2002-11-25  Karl Berry  <karl@gnu.org>
60063
60064         * config/install-sh: update from automake for variable quoting, $0 in
60065         error msgs, etc.
60066
60067         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60068         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60069         entry.
60070
60071 2002-11-25  Jim Meyering  <jim@meyering.net>
60072
60073         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60074
60075 2002-11-24  Karl Berry  <karl@gnu.org>
60076
60077         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60078         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60079
60080 2002-11-24  Jim Meyering  <jim@meyering.net>
60081
60082         Update from coreutils:
60083
60084         * lib/mktime.c: Merge in changes from libc.
60085
60086         Avoid a link-time failure on some Linux systems.
60087         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60088         (otherwise).
60089         (__mon_yday): Declare with the STATIC attribute.
60090         (__mktime_internal): Likewise.
60091         Based on a report from Greg Schafer.
60092
60093 2002-11-23  Jim Meyering  <jim@meyering.net>
60094
60095         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60096         Use `unsigned', not `int', as type of index.
60097
60098         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60099
60100         * lib/fsusage.c: Remove unneeded parentheses around operands of
60101         `defined'.
60102
60103 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60104
60105         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60106         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60107         so that we can be included first.
60108         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60109         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60110         No need to include stddef.h or sys/types.h any more.
60111         Surround local include files with "", not "<>".
60112         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60113         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60114         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60115         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60116         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60117         (ISPRINT): Remove; no longer needed now that we assume C89.
60118
60119         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60120         Preserve errno.
60121
60122         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60123         quotearg_char): Use SIZE_MAX rather than
60124         (size_t) -1 when we are talking about "infinity".
60125
60126         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60127
60128 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60129
60130         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60131         hint that one should use `if (! x) abort ();' rather than `assert
60132         (x);', and anyway it's one less thing to worry about configuring.
60133         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60134         hash_rehash, hash_insert): Use abort rather than assert.
60135
60136 2002-11-22  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/safe-read.h: Assume C89. Add comments.
60139         (safe_read): Change return type to size_t.
60140         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60141         byte counts > SSIZE_MAX correctly.
60142         * lib/safe-write.h: New file.
60143         * lib/safe-write.c: New file.
60144         * lib/full-read.h: New file.
60145         * lib/full-read.c: New file.
60146         * lib/full-write.h: Assume C89. Add comments.
60147         * lib/full-write.c: Include safe-write.h.
60148         (full_write): Rewritten to use safe_write.
60149         Suggested by Jim Meyering and Paul Eggert.
60150
60151 2002-11-21  Jim Meyering  <jim@meyering.net>
60152
60153         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60154
60155         Merge in changes from the coreutils.
60156
60157         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60158         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60159         <stdint.h>.
60160         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60161         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60162         int.  Work more efficiently if X is the same width as uintmax_t.
60163         Do not compare X to -1, to avoid bogus compiler warning.
60164         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60165         Don't assume that f_frsize and f_bsize are the same type.
60166
60167         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60168         warning on FreeBSD.
60169
60170         * lib/makepath.c (make_path): Restore umask *before* creating the final
60171         component.
60172         (make_path): Minor reformatting.
60173
60174         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60175         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60176         HAVE_MALLOC/HAVE_REALLOC.
60177
60178         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60179         dummy ones.  At least on GNU/Linux systems, `auto' means something
60180         else.
60181         From Michael Stone.
60182
60183 2002-11-21  Bruno Haible  <bruno@clisp.org>
60184
60185         Remove case insensitive option matching.
60186         * lib/argmatch.h (argcasematch): Remove declaration.
60187         (ARGCASEMATCH): Remove macro.
60188         (__xargmatch_internal): Remove case_sensitive argument.
60189         (XARGMATCH): Update.
60190         (XARGCASEMATCH): Remove macro.
60191         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60192         case_sensitive argument.
60193         (argcasematch): Remove function.
60194         (__xargmatch_internal): Remove case_sensitive argument.
60195         (main): Use XARGMATCH instead of XARGCASEMATCH.
60196
60197         * lib/xmalloc.c: Change compile-time error message. Add comment about
60198         required autoconf version.
60199
60200 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60201
60202         Merge argmatch cleanups from Bison.  Assume C89.
60203
60204         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60205         Include stdlib.h, for EXIT_FAILURE.
60206         Always include <string.h>, since we assume C89.
60207         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60208         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60209         Include <stddef.h> instead, since it's all we need for size_t.
60210         (PARAMS): Remove.  All uses removed.
60211         (ARRAY_CARDINALITY): Do not bother to #undef.
60212         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60213         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60214         Remove unnecessary parentheses.
60215         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60216         Insert necessary parentheses.
60217         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60218         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60219
60220 2002-11-19  Bruno Haible  <bruno@clisp.org>
60221
60222         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60223         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60224
60225         * lib/mbswidth.h (PARAMS): Remove macro.
60226         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60227         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60228
60229         * lib/gcd.h (PARAMS): Remove macro.
60230         (gcd): Use ANSI C function declarations.
60231         * lib/gcd.c (gcd): Likewise.
60232
60233 2002-11-15  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/strcspn.c: Include <stddef.h>.
60236         (strcspn): Use ANSI C function declaration. Change return type to
60237         size_t. Use NULL.
60238         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60239         (strpbrk): Use NULL.
60240         * lib/strpbrk.h (PARAMS): Remove macro.
60241         (strpbrk): Use ANSI C function declaration.
60242         * lib/strstr.c: Don't include <sys/types.h>.
60243         * lib/strstr.h (PARAMS): Remove macro.
60244         (strstr): Use ANSI C function declarations.
60245
60246 2002-11-14  Karl Berry  <karl@gnu.org>
60247
60248         * config/mkinstalldirs: `do' on separate line, instead of
60249         `for var; do'.
60250
60251 2002-11-06  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60254         * lib/gcd.c (gcd): Likewise.
60255
60256 2002-11-05  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/gcd.h: New file, from gettext-0.11.5.
60259         * lib/gcd.c: New file, from gettext-0.11.5.
60260
60261 2002-11-05  Bruno Haible  <bruno@clisp.org>
60262
60263         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60264         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60265         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60266         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60267
60268         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60269         <libintl.h>.
60270         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60271         <libintl.h>.
60272
60273         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60274         * lib/human.c: Include gettext.h instead of <libintl.h>.
60275         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60276         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60277         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60278         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60279         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60280         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60281         (textdomain): Remove definition.
60282         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60283
60284         * lib/long-options.c: Remove include of <libintl.h> and definition of
60285         _.
60286         * lib/same.c: Remove include of <libintl.h> and definition of _.
60287
60288 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60289
60290         * lib/config.charset: A few additions for Solaris.
60291
60292 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60293
60294         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60295         * lib/localcharset.c (locale_charset): Declare as extern "C".
60296
60297 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60298
60299         * lib/config.charset: msdos in uk_UA uses CP1125.
60300
60301 2002-11-04  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60304         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60305         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60306         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60307         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60308
60309 2002-11-04  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/localcharset.c (locale_charset): Don't return an empty string.
60312
60313 2002-11-04  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60316         aliases.
60317
60318 2002-11-04  Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/config.charset: Update for newest glibc. Add canonical names
60321         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60322
60323 2002-11-04  Bruno Haible  <bruno@clisp.org>
60324
60325         * lib/config.charset: Add support for NetBSD.
60326
60327 2002-11-04  Bruno Haible  <bruno@clisp.org>
60328
60329         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60330
60331 2002-11-01  Bruno Haible  <bruno@clisp.org>
60332
60333         * configure.in: Add AC_CONFIG_AUX_DIR call.
60334         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60335         test/Makefile.
60336         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60337
60338 2002-09-28  Karl Berry  <karl@gnu.org>
60339
60340         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60341         installed automake until the next release, since changes have been
60342         made.
60343
60344 2002-09-25  Karl Berry  <karl@gnu.org>
60345
60346         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60347         * lib/getopt*: copy from libc/posix.
60348         * lib/gettext.h: copy from gettext.
60349         * lib/.cppi-disable: add strdup.c, gettext.h.
60350
60351 2002-09-25  Karl Berry  <karl@gnu.org>
60352
60353         * config/srclist.txt: enable gettext.h check.
60354         * config/config.{guess,sub}: update from prep.
60355         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60356                 from automake 1.6.3.
60357         See srclist*.
60358
60359 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60360
60361         * regex.c (PATFETCH): Remove the translating fetch.
60362         (PATFETCH_RAW): Rename to PATFETCH.
60363         (set_image_of_range): New fun.
60364         (SET_RANGE_TABLE_WORK_AREA): Use it.
60365         (regex_compile): Don't translate the pattern chars so eagerly.
60366         Only do it when inserting an `exactn' bytecode or when handling
60367         a char-range.
60368         (mutually_exclusive_p): Avoid empty statement.
60369
60370 2002-07-06  Jim Meyering  <meyering@lucent.com>
60371
60372         * m4/README: Don't mention Makefile.am.in.
60373         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60374
60375 2002-07-01  Jim Meyering  <meyering@lucent.com>
60376
60377         * lib/c-stack.c: Include sys/time.h.
60378         From Volker Borchert.
60379
60380 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60381
60382         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60383
60384 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60385
60386         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60387         New macro.  Use it uniformly instead of
60388         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60389         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60390         reported by Vin Shelton.
60391
60392 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60393
60394         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60395         Do not assume SA_SIGINFO behavior.
60396         Bug reported by Jim Meyering on NetBSD 1.5.2.
60397
60398 2002-06-22  Jim Meyering  <meyering@lucent.com>
60399
60400         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60402
60403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60404         now that configure.ac uses AC_GNU_SOURCE.
60405         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60406         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60407
60408         Update to latest tools.  Suggestions from Paul Eggert.
60409         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60410         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60411         * m4/fnmatch.m4: Likewise.
60412         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60413         to AC_HEADER_STDBOOL
60414
60415 2002-06-22  Jim Meyering  <meyering@lucent.com>
60416
60417         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60418         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60419
60420 2002-06-22  Jim Meyering  <meyering@lucent.com>
60421
60422         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60423
60424         * lib/exitfail.c, exitfail.h: Likewise.
60425         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60426
60427         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60428         of fnmatch.h.
60429         (EXTRA_DIST): Add fnmatch_loop.c.
60430         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60431
60432         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60433         * lib/fnmatch.c: Update from diffutils-2.8.2.
60434         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60435         * lib/fnmatch.h: Remove file.
60436
60437 2002-06-21  Jim Meyering  <meyering@lucent.com>
60438
60439         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60440         * m4/mbrtowc.m4: Likewise.
60441
60442         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60443         * m4/mbswidth.m4: Reflect name change:
60444         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60445         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60446
60447         * m4/lib-link.m4: Update from gettext-0.11.2.
60448         * m4/gettext.m4: Likewise.
60449
60450         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60451         From Alfred M. Szmidt.
60452
60453 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60454
60455         * lib/file-type.h: Report an error if neither S_ISREG nor
60456         S_IFREG is defined, instead of using a test specific to glibc
60457         2.2.  This should be safe, since POSIX requires S_ISREG and
60458         Unix Version 7 had S_IFREG.  We don't need to check for
60459         <sys/types.h> since we don't use any symbols that it defines.
60460
60461 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60462
60463         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60464         $@-t, so that each temporary file name is unique and valid in the first
60465         8 characters, for operation under DOS.
60466
60467 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60468
60469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60470
60471 2002-06-15  Jim Meyering  <meyering@lucent.com>
60472
60473         Work even with DJGPP 2.03, which lacks support for symlinks.
60474         From Richard Dawe.
60475         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60476         is defined.
60477         * lib/lchown.c (S_ISLNK): Likewise.
60478
60479 2002-06-15  Jim Meyering  <meyering@lucent.com>
60480
60481         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60482         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60483         have been included before this file.
60484
60485 2002-06-14  Jim Meyering  <meyering@lucent.com>
60486
60487         * lib/file-type.h: Use the version from diffutils-2.8.2.
60488         * lib/file-type.c: Likewise.
60489
60490 2002-06-07  Jim Meyering  <meyering@lucent.com>
60491
60492         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60493         They're needed at least for NetBSD 1.5.2.
60494         ($statxfs_includes): Include those same headers.
60495         ($statxfs_includes): Include sys/vfs.h if available.
60496         ($statxfs_includes): Likewise for sys/statvfs.h.
60497         Check for the following members in both structs statfs and statvfs:
60498         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60499
60500 2002-06-01  Jim Meyering  <meyering@lucent.com>
60501
60502         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60503         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60504
60505 2002-05-28  Jim Meyering  <meyering@lucent.com>
60506
60507         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60508         Reported by Volker Borchert.
60509
60510 2002-05-27  Jim Meyering  <meyering@lucent.com>
60511
60512         Fix a problem seen only on nonconforming systems whereby ls.c's
60513         use of localtime, and then of gettimeofday would cause trouble:
60514         the localtime call used to initialize rpl_gettimeofday's save
60515         mechanism would clobber ls's current local time information so
60516         that in any long listing the first file would always be listed
60517         with date 1970-01-01.  Analysis by Volker Borchert.
60518
60519         * lib/gettimeofday.c (localtime): Undefine.
60520         (rpl_localtime): New function.
60521
60522 2002-05-27  Jim Meyering  <meyering@lucent.com>
60523
60524         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60525         localtime.
60526
60527         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60528         use the replacement function; it wouldn't resolve at link time.
60529         Reported by Volker Borchert.
60530
60531 2002-05-22  Jim Meyering  <meyering@lucent.com>
60532
60533         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60534         file-type.h.
60535         * lib/file-type.h: New file.
60536         * lib/file-type.c (file_type): New file/function.  Extracted from
60537         diffutils.
60538
60539 2002-04-30  Jim Meyering  <meyering@lucent.com>
60540
60541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60542
60543 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60544
60545         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60546
60547 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60548
60549         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60550         Do not check for alloca.h (no longer used) or stdbool.h (was never
60551         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60552
60553 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60554
60555         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60556
60557 2002-04-29  Jim Meyering  <meyering@lucent.com>
60558
60559         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60560         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60561         Use AC_FUNC_STRNLEN here instead.
60562
60563         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60564         With autoconf-2.53a, it's part of AC_PROG_CC.
60565
60566 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60567
60568         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60570
60571 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60572
60573         * lib/sig2str.h, lib/sig2str.c: New files.
60574         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60575
60576 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60577
60578         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60579         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60580         of 127, since 64 is the largest conceivable number for ancient
60581         nonstandard hosts.
60582         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60583
60584 2002-04-28  Jim Meyering  <meyering@lucent.com>
60585
60586         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60587
60588 2002-04-24  Jim Meyering  <meyering@lucent.com>
60589
60590         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60591         (jm_PREREQ): Use it.
60592
60593         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60594         mach/mach.h fcntl.h.
60595         Check for this function: setlocale.
60596
60597 2002-04-24  Jim Meyering  <meyering@lucent.com>
60598
60599         * lib/gettext.h: New file, from Gettext.
60600         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60601         (libfetish_a_SOURCES): Add gettext.h.
60602
60603 2002-04-16  Jim Meyering  <meyering@lucent.com>
60604
60605         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60606         ut_pid, ut_id, ut_exit.
60607
60608 2002-04-16  Jim Meyering  <meyering@lucent.com>
60609
60610         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60611         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60612         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60613
60614 2002-04-12  Jim Meyering  <meyering@lucent.com>
60615
60616         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60617         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60618         existence of the getmntinfo function.  Needed for Darwin 5.3.
60619
60620         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60621         This is necessary at least on Darwin 5.3.
60622
60623         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60624         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60625         strnlen.o in the library, and that makes some versions of ranlib
60626         object.
60627
60628 2002-04-12  Jim Meyering  <meyering@lucent.com>
60629
60630         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60631
60632 2002-04-09  Jim Meyering  <meyering@lucent.com>
60633
60634         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60635         to be more precise.  Rather than saying we're checking whether the
60636         function `works', say what we're testing.
60637         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60638         Reported by Bruno Haible.
60639
60640 2002-03-10  Jim Meyering  <meyering@lucent.com>
60641
60642         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60643         Suggestion from Santiago Vila.
60644
60645 2002-03-08  Jim Meyering  <meyering@lucent.com>
60646
60647         * lib/rename.c: Mention that this wrapper is needed also on
60648         mips-dec-ultrix4.4 systems.
60649
60650 2002-03-02  Jim Meyering  <meyering@lucent.com>
60651
60652         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60653         not HAVE_CLOCK_SETTIME.
60654
60655 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60656
60657         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60658         Check for clock_settime.
60659
60660 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60661
60662         * lib/nanosleep.h: Rename to....
60663         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60664
60665         * lib/gettime.c: New file.
60666         * lib/settime.c: New file.
60667         * lib/stime.c: Remove.
60668
60669         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60670         timespec.h.  Remove nanosleep.h.
60671
60672 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60673
60674         * m4/acl.m4: New file.
60675         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60676         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60677
60678 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60679
60680         * lib/acl.c, lib/acl.h: New files.
60681         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60682
60683 2002-02-24  Jim Meyering  <meyering@lucent.com>
60684
60685         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60686         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60687         cause trouble.  Reported by Nelson Beebe.
60688
60689 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60690
60691         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60692         compilers that don't know that xalloc_die never returns.
60693
60694 2002-02-20  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/getdate.c: Regenerate using bison-1.33.
60697
60698 2002-02-17  Jim Meyering  <meyering@lucent.com>
60699
60700         * config/config.guess (main): Don't use `head -1'; it's no longer
60701         portable. Use `sed 1q' instead.
60702
60703 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60704
60705         * m4/codeset.m4: Upgrade to gettext-0.11.
60706         * m4/gettext.m4: Upgrade to gettext-0.11.
60707         * m4/glibc21.m4: Upgrade to gettext-0.11.
60708         * m4/iconv.m4: Upgrade to gettext-0.11.
60709         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60710         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60711         * m4/lib-ld.m4: New file, from gettext-0.11.
60712         * m4/lib-link.m4: New file, from gettext-0.11.
60713         * m4/lib-prefix.m4: New file, from gettext-0.11.
60714         * m4/progtest.m4: Upgrade to gettext-0.11.
60715
60716 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60717
60718         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60719         (jm_PREREQ): Use it.
60720
60721 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60722
60723         * lib/posixver.c, lib/posixver.h: New files.
60724         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60725
60726 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60727             Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60730         (fwrite_success_callback): New declaration.
60731         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60732         print_unicode_char. Call failure callback instead of error.
60733         (fwrite_success_callback): New function.
60734         (exit_failure_callback): New function.
60735         (fallback_failure_callback): New function.
60736         (print_unicode_char): Call unicode_to_mb.
60737
60738 2002-01-26  Jim Meyering  <meyering@lucent.com>
60739
60740         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60741         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60742
60743 2002-01-26  Jim Meyering  <meyering@lucent.com>
60744
60745         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60746
60747 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60748
60749         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60750
60751 2002-01-22  Jim Meyering  <meyering@lucent.com>
60752
60753         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60754         Otherwise, some versions of automake would omit the rule that makes
60755         Makefile from Makefile.in.
60756
60757 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60758
60759         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60760         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60761         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60762         (memcoll): Set errno to zero if there is no error.
60763
60764         * lib/quotearg.c (quotearg_buffer_restyled):
60765         Fix bug with quoting buffers containing NUL when backslashing escapes.
60766         This bug was exposed by the other changes in this patch.
60767         (quotearg_n_options): New arg ARGSIZE.
60768         All callers changed.
60769         (quoting_options_from_style): New function.
60770         (quotearg_n_style): Use it.
60771         (quotearg_n_style_mem): New function.
60772
60773         * lib/quotearg.h (quotearg_n_style_mem): New function.
60774
60775 2002-01-19  Jim Meyering  <meyering@lucent.com>
60776
60777         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60778         Remove useless quotes: DF_PROG="df".
60779         * m4/strnlen.m4: New file.
60780
60781 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60782
60783         * lib/backupfile.c (ISDIGIT): Comment fix.
60784         * lib/getdate.y (ISDIGIT): Likewise.
60785         * lib/posixtm.c (ISDIGIT, year): Likewise.
60786         * lib/strverscmp.c (ISDIGIT): Likewise.
60787         * lib/userspec.c (ISDIGIT): Likewise.
60788
60789 2002-01-16  Jim Meyering  <meyering@lucent.com>
60790
60791         * lib/getdate.y: Add three semicolons, each just before a closing
60792         brace. Bison (as of version 1.31) no longer papers over that mistake.
60793
60794 2002-01-05  Jim Meyering  <meyering@lucent.com>
60795
60796         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60797
60798 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60799
60800         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60801         not silently exit merely because the output buffer happens to
60802         have nothing pending.
60803
60804 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60805
60806         See the big note in ../ChangeLog.
60807         * lib/human.c (suffixes): Prefer K to k for 1024.
60808         (generate_suffix_backwards): New function.
60809         (human_readable_inexact): Use it.
60810         * lib/xstrtol.c (__xstrtol): If there is no number but there
60811         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60812         Accept 'K' as well as 'k'.
60813
60814 2001-12-15  Jim Meyering  <meyering@lucent.com>
60815
60816         * lib/regex.h (__restrict_arr): Update from libc.
60817
60818         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60819         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60820         (STREQ): Define.
60821
60822 2001-12-14  Jim Meyering  <meyering@lucent.com>
60823
60824         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60825         Suggestion from Bruno Haible.
60826
60827 2001-12-10  Jim Meyering  <meyering@lucent.com>
60828
60829         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60830         xrealloc, Instead, include "xalloc.h".
60831         (initbuffer): Don't cast xmalloc return value to char*.
60832         (readline): Reword comment.
60833         Don't cast xrealloc return value to char*
60834         Return NULL, not 0.
60835
60836 2001-12-09  Jim Meyering  <meyering@lucent.com>
60837
60838         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60839         about `signed and unsigned type in conditional expression'.
60840         * lib/posixtm.c (posix_time_parse): Likewise.
60841
60842         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60843
60844         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60845         to avoid a pedantic warning.
60846
60847         * lib/getstr.c: Don't include assert.h.
60848         (getstr): Remove warning-evoking assertions.
60849         Return -1 if offset parameter is out of bounds.
60850         Change the type of a local from int to size_t.
60851
60852         * lib/strftime.c (my_strftime_localtime_r): Include this function
60853         definition in the `#if ! HAVE_TM_GMTOFF' block.
60854
60855         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60856         Include xalloc.h instead.
60857
60858 2001-12-02  Jim Meyering  <meyering@lucent.com>
60859
60860         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60861         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60862         included.
60863
60864         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60865         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60866
60867 2001-11-30  Akim Demaille  <akim@epita.fr>
60868
60869         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60870         before being defined.
60871
60872 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60873
60874         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60875         First arg is int, not unsigned.
60876         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60877         (SIZE_MAX, UINT_MAX): New macros.
60878         (quotearg_n_options): Abort if N is negative.
60879         Avoid overflow check on hosts where size_t is 64 bits and int
60880         is 32 bits, as overflow is impossible there.
60881         Fix off-by-one typo that caused unnecessary reallocation.
60882
60883 2001-11-27  Jim Meyering  <meyering@lucent.com>
60884
60885         * lib/tempname.c: Merge with version from libc.
60886         * lib/regex.c: Likewise.
60887
60888         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60889         systems for which STDC_HEADERS is 0, it was not included, resulting in
60890         a warning about an integer-to-pointer conversion problem with getenv.
60891         Reported by Volker Borchert.
60892
60893 2001-11-26  Jim Meyering  <meyering@lucent.com>
60894
60895         * lib/gtod.h: Remove file.
60896         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60897         * lib/gettimeofday.c: Don't include gtod.h.
60898         (GTOD_init): Remove function.
60899         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60900         Suggestion from Volker Borchert.
60901
60902 2001-11-23  Jim Meyering  <meyering@lucent.com>
60903
60904         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60905         it.
60906         * lib/hash.c (struct hash_table): Define it here instead.
60907
60908 2001-11-22  Jim Meyering  <meyering@lucent.com>
60909
60910         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60911
60912 2001-11-20  Jim Meyering  <meyering@lucent.com>
60913
60914         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60915         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60916
60917 2001-11-19  Jim Meyering  <meyering@lucent.com>
60918
60919         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60920         directory.  Use "conftestXXXXXX" as the template.
60921         Suggestion from Paul Eggert.
60922
60923         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60924         immediately, so the test doesn't mistakenly hit the max-open-files
60925         limit.
60926
60927 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60928
60929         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60930         (TEMPORARIES): New macro.
60931         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60932         removes an artificial limitation (e.g. HP-UX 10.20, where
60933         TMP_MAX is 17576).
60934
60935 2001-11-18  Jim Meyering  <meyering@lucent.com>
60936
60937         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60938
60939 2001-11-18  Jim Meyering  <meyering@lucent.com>
60940
60941         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60942         on SunOS 4.
60943
60944         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60945         files will be created before anything else.
60946
60947 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60948
60949         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60950         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60951
60952 2001-11-17  Jim Meyering  <meyering@lucent.com>
60953
60954         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60955         Prompted by a report from Bob Proulx.
60956
60957         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60958         Instead, require UTILS_FUNC_MKSTEMP.
60959
60960 2001-11-17  Jim Meyering  <meyering@lucent.com>
60961
60962         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60963         Now, that's done as part of AC_FUNC_STRTOD.
60964
60965 2001-11-17  Jim Meyering  <meyering@lucent.com>
60966
60967         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60968         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60969         rather than group writable.  Patch by Juan F. Codagnone.
60970
60971         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60972         xrealloc, Instead, include "xalloc.h".
60973
60974         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60975         Remove explicit declarations of xmalloc, xrealloc,
60976         and xstrdup.  Instead, include "xalloc.h".
60977
60978         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60979         unlocked-io.h.
60980         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60981         Likewise.
60982         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60983
60984         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60985         Reported by Padraig Brady.
60986
60987         * lib/mkstemp.c: #undef mkstemp.
60988         Include config.h.
60989         (rpl_mkstemp): Rename from mkstemp.
60990         Protoize.
60991
60992 2001-11-16  Jim Meyering  <meyering@lucent.com>
60993
60994         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60995         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60996         determine the amount of total physical memory, use pstat_getstatic.
60997         HPUX-11 doesn't define _SC_PHYS_PAGES.
60998         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60999         If sysconf couldn't be used to determine the amount of available
61000         physical memory, use both pstat_getstatic and pstat_getdynamic.
61001         Based on a patch from Bob Proulx.
61002
61003 2001-11-10  Jim Meyering  <meyering@lucent.com>
61004
61005         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61006         (jm_PREREQ): Use it.
61007
61008 2001-11-09  Jim Meyering  <meyering@lucent.com>
61009
61010         * m4/jm-macros.m4: Require autoconf-2.52f.
61011         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61012         Use these AC_-prefixed names, not the AM_-prefixed ones.
61013
61014         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61015
61016 2001-11-05  Jim Meyering  <meyering@lucent.com>
61017
61018         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61019
61020 2001-11-04  Jim Meyering  <meyering@lucent.com>
61021
61022         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61023         $DEFS.
61024
61025 2001-11-03  Jim Meyering  <meyering@lucent.com>
61026
61027         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61028         of AC_DEFUN.
61029
61030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61031         know the name of the variable in the macro definition.
61032
61033 2001-11-03  Jim Meyering  <meyering@lucent.com>
61034
61035         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61036         in argmatch_to_argument call.
61037
61038         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61039         argument.
61040
61041         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61042         e.g., a fault due to an attempt to free a NULL pointer.
61043
61044 2001-11-01  Jim Meyering  <meyering@lucent.com>
61045
61046         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61047         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61048
61049 2001-11-01  Jim Meyering  <meyering@lucent.com>
61050
61051         * lib/dirfd.c, lib/dirfd.h: New files.
61052         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61053
61054         * lib/hash.c (hash_print) [TESTING]: Clean up.
61055
61056 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61057
61058         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61059         to avoid a warning if -Wall.
61060
61061 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61062
61063         * README: New file
61064         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61065         (per RMS's instructions, this is now the canonical source)
61066         * lgpl/, gpl/: New directories.
61067
61068 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61069
61070         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61071
61072 2001-10-21  Jim Meyering  <meyering@lucent.com>
61073
61074         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61075         this code would end up calling gettext even in packages built
61076         with --disable-nls.
61077         * lib/getopt.c (_): Likewise.
61078         * lib/regex.c (_): Likewise.
61079
61080 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61081
61082         * m4/error.m4 (jm_PREREQ_ERROR):
61083         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61084         AC_FUNC_STRERROR_R does that.
61085         Check for strerror declaration.
61086
61087         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61088         are supposed to have them these days.
61089         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61090         Merge changes from latest Autoconf CVS.
61091         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61092         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61093         POSIX decided to standardize on the int flavor of strerror_r.
61094
61095 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61096
61097         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61098         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61099         Use strerror_r that is only a macro, even if it is not a function.
61100         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61101         (private_strerror): Use prototypes, not old-style function definition.
61102         (print_errno_message): New function.
61103         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61104         char*-flavored one.
61105         (error_tail, error, error_at_line): Use it.
61106
61107 2001-10-11  Jim Meyering  <meyering@lucent.com>
61108
61109         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61110         and quote_n (1, ... to avoid clobbering a buffer.
61111
61112 2001-10-05  Jim Meyering  <meyering@lucent.com>
61113
61114         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61115         hash-pjw.h.
61116         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61117         * lib/hash-pjw.h: New file.
61118
61119 2001-09-30  Jim Meyering  <meyering@lucent.com>
61120
61121         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61122         `struct fsstat' has the `f_fstypename' member.
61123         Use that to define FS_TYPE, which is now used to make
61124         the getfsstat link test tighter.
61125
61126 2001-09-30  Jim Meyering  <meyering@lucent.com>
61127
61128         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61129         Include <sys/ucred.h>, for Apple Darwin.
61130         Include sys/mount.h and sys/fs_types.h only if available.
61131         (FS_TYPE): Define.
61132         (read_filesystem_list): Use FS_TYPE.
61133
61134 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61135
61136         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61137         a boolean context.
61138
61139 2001-09-29  Jim Meyering  <meyering@lucent.com>
61140
61141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61142         [one-argument getmntent function]): Include stdio.h before mntent.h.
61143         SunOS 4.1.x needs it for the declaration of `FILE'.
61144         Patch by Volker Borchert.
61145
61146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61147         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61148         sys/fs_types.h, and make the link-test for getfsstat guard #include
61149         directives with appropriate #if HAVE_*_H tests so that we can
61150         detect getfsstat on Apple Darwin1.3.7 systems.
61151         Reported by Nelson Beebe.
61152         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61153
61154 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61155
61156         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61157         #defines strtoimax.  Also treat the other strto* functions
61158         like strtoimax.
61159
61160         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61161         Check for strtoul and strtoumax,
61162         as those declarations are made even in the signed case.
61163         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61164         Likewise, for strtol and strtoimax.
61165
61166 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61167
61168         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61169         #defines strtoimax.  Also treat the other strto* functions
61170         like strtoimax.
61171
61172         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61173         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61174         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61175
61176 2001-09-26  Jim Meyering  <meyering@lucent.com>
61177
61178         Most macros in unlocked-io.h had the wrong number of arguments.
61179         * lib/gen-uio: New script.
61180         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61181         * lib/unlocked-io.hin: Remove file.
61182         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61183         rather than trying to embed it here.
61184         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61185         Reported by Padraig Brady.
61186
61187 2001-09-25  Volker Borchert  <bt@teknon.de>
61188
61189         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61190         `result'.
61191
61192 2001-09-24  Jim Meyering  <meyering@lucent.com>
61193
61194         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61195
61196 2001-09-23  Jim Meyering  <meyering@lucent.com>
61197
61198         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61199         instead of the mere test for existence of mntent.h.  The latter
61200         would get a false-positive on AIX 3.4 systems.
61201         In the outer getmntent if-block, don't die if neither of the getmntent
61202         tests succeeds.  Instead, just fall through and continue with the
61203         remaining tests.
61204
61205 2001-09-23  Jim Meyering  <meyering@lucent.com>
61206
61207         * lib/mountlist.c: Remove useless parentheses in #if directives.
61208         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61209         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61210
61211 2001-09-22  Jim Meyering  <meyering@lucent.com>
61212
61213         * m4/gettext.m4: New file.  From gettext.
61214         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61215         * m4/progtest.m4: Likewise
61216         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61217         * m4/glibc21.m4: Likewise.
61218
61219         * m4/libintl.m4: Remove.  No longer used.
61220
61221 2001-09-22  Jim Meyering  <meyering@lucent.com>
61222
61223         * lib/localcharset.c: Update from latest gettext.
61224         * lib/config.charset: Likewise.
61225
61226 2001-09-20  Jim Meyering  <meyering@lucent.com>
61227
61228         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61229         strtoimax.
61230         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61231         strtoumax.
61232
61233 2001-09-20  Jim Meyering  <meyering@lucent.com>
61234
61235         * lib/xstrtol.c (strtoimax): Guard declaration with
61236         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61237         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61238         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61239         (strtoumax): Likewise, for completeness (it wasn't necessary).
61240
61241 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61242
61243         * lib/strtoimax.c (HAVE_LONG_LONG):
61244         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61245         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61246         to work around bug in IBM C compiler.
61247
61248 2001-09-17  Jim Meyering  <meyering@lucent.com>
61249
61250         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61251         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61252         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61253         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61254         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61255         whenever the right hand side need not be expanded by the shell.
61256
61257 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61258
61259         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61260         library.  It's not correct, as some older glibcs are buggy.
61261         fnmatch wasn't fixed until glibc 2.2.
61262
61263         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61264         special shell magic here.
61265
61266 2001-09-16  Jim Meyering  <meyering@lucent.com>
61267
61268         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61269         * m4/jm-macros.m4: Require it.
61270
61271 2001-09-16  Jim Meyering  <meyering@lucent.com>
61272
61273         * lib/mkdir.c: New file.
61274
61275 2001-09-15  Jim Meyering  <meyering@lucent.com>
61276
61277         * m4/jm-macros.m4: Check for help2man.
61278
61279 2001-09-11  Jim Meyering  <meyering@lucent.com>
61280
61281         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61282         The body, by Paul Eggert, was moved here from configure.in.
61283         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61284
61285 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61286
61287         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61288         (jm_PREREQ): Use it.
61289
61290 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61291
61292         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61293         Use ssize_t, not int, to store result of readlink.
61294         Check for ssize_t overflow as well as size_t overflow,
61295         as POSIX says the result of readlink is implementation-defined
61296         when ssize_t overflows.
61297         Remove unnecessary cast to char*.
61298         Use free+malloc instead of realloc, as the storage doesn't need
61299         to be preserved and it's clearer and can be more efficient that way.
61300         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61301         * lib/xreadlink.h (xreadlink): Update prototype.
61302
61303 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61304
61305         * lib/xgetcwd.c: Revert some of the previous change; intead,
61306         fix the HAVE_GETCWD_NULL code to behave more like the
61307         !HAVE_GETCWD_NULL code used to.
61308
61309         Include "xalloc.h".
61310         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61311         invoke xalloc_die.
61312
61313 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61314
61315         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61316         sys/param.h, as pathmax.h includes them.
61317
61318 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61319
61320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61321         (jm_PREREQ_XGETCWD): New macro.
61322
61323         * m4/getcwd.m4: New file.
61324
61325 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61326
61327         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61328         like the HAVE_GETCWD_NULL code.
61329         Include pathmax.h if not HAVE_GETCWD.
61330         Do not include xalloc.h.
61331         (INITIAL_BUFFER_SIZE): New symbol.
61332         Do not use xmalloc / xrealloc, since the caller is responsible for
61333         handling errors.  Preserve errno around `free' during failure.
61334         Do not overrun buffer when using getwd.
61335
61336 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61337
61338         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61339         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61340         getcwd (NULL, 0).
61341
61342 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61343
61344         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61345         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61346         spotted by Jim Meyering.
61347
61348 2001-09-03  Jim Meyering  <meyering@lucent.com>
61349
61350         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61351         failure.
61352
61353 2001-09-02  Jim Meyering  <meyering@lucent.com>
61354
61355         * lib/error.c: Update from GNU libc.
61356
61357 2001-09-01  Jim Meyering  <meyering@lucent.com>
61358
61359         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61360         Used by df.
61361
61362 2001-09-01  Jim Meyering  <meyering@lucent.com>
61363
61364         * lib/xreadlink.c: New file.
61365         * lib/xreadlink.h: New file.
61366         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61367         xreadlink.h.
61368
61369         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61370         doesn't conflict with sparc Solaris 7's definition in
61371         /usr/include/sys/int_types.h.
61372
61373         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61374         files.
61375         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61376         and strncasecmp as r-values.  Unixware didn't have declarations.
61377
61378 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61379
61380         * lib/xstrtol.h: Add copyright notice.
61381         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61382         LONGINT_INVALID_SUFFIX_CHAR.
61383
61384 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61385
61386         * lib/xstrtol.c (strtoimax): New decl.
61387
61388 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61389
61390         * lib/xgetcwd.c: Don't include pathmax.h.
61391         Include stdlib.h and unistd.h if available.
61392         Include xalloc.h.
61393         (xmalloc, xstrdup, free): Remove decls.
61394         (xgetcwd): Don't assume sizes fit in unsigned.
61395         Check for overflow when computing sizes.
61396         Simplify reallocation code.
61397
61398 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61399
61400         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61401         a directory's st_size can have an arbitrary value, so the old
61402         usage could waste an arbitrary amount of memory.  All uses
61403         changed.
61404         * lib/savedir.h: Update prototype.
61405
61406 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61407
61408         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61409
61410         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61411         old strtoimax.c.
61412
61413         Also, make the following further changes to make this file's
61414         configuration more similar to that of strtol.c:
61415         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61416         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61417         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61418         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61419         changed to signed values.
61420
61421         And make the following changes as well:
61422         Fix copyright notice, as 1999 was missing.
61423         (verify): New macro.
61424         (strtoimax): Check sizes at compile-time, not run-time.
61425         Prefer strtol to strtoll if both work.
61426         (main): Remove; it was not that useful and was a pain to maintain.
61427
61428         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61429
61430 2001-08-31  Jim Meyering  <meyering@lucent.com>
61431
61432         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61433         Use an initial, malloc'd, buffer of length 128 rather than
61434         a statically allocated one of length 1024.
61435
61436 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61437
61438         Simplify code, partly by assuming autoconf 2.52 semantics.
61439
61440         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61441
61442         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61443         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61444         All uses removed.
61445         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61446         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61447         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61448         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61449         jm_AC_HEADER_INTTYPES_H.
61450         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61451
61452         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61453
61454         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61455         Quote first arg of AC_DEFUN.
61456         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61457         since they are needed to parse the include file even if we need
61458         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61459         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61460         but with opposite signedness.
61461
61462 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61463
61464         Merge 'exclude' changes from tar 1.13.22.
61465         This fixes one or two unlikely storage allocation overflow bugs,
61466         but doesn't change user-visible behavior otherwise.
61467
61468 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61469
61470         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61471         (jm_PREREQ_EXCLUDE): New macro.
61472
61473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61474
61475         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61476         tm to be declared.
61477
61478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61479
61480         * lib/hash.c: Remove '2001' from copyright notice.
61481
61482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61483
61484         * lib/full-write.h: New file.
61485         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61486         * lib/full-write.c: Correct credits, as cccp.c no longer
61487         exists and anyway it was so heavily changed from the old cccp
61488         code as to be unrecognizable.  Include full-write.h.
61489         (full_write) Return size_t, with short writes meaning failure.
61490         All callers changed.  This fixes a bug with large buffers
61491         on 64-bit hosts.
61492         * lib/utime.c: Include full-write.h.
61493
61494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61495
61496         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61497         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61498         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61499         Include if available.
61500         (<xalloc.h>): Include
61501         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61502         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61503         collide with FNM macros.
61504         (struct patopts): New struct.
61505         (struct exclude): Use it, as exclude patterns now come with options.
61506         (new_exclude): Support above changes.
61507         (new_exclude, add_exclude_file):
61508         Initial size must now be a power of two to simplify overflow checking.
61509         (free_exclude, fnmatch_no_wildcards): New function.
61510         (excluded_filename): No longer requires options arg, as the options
61511         are determined by add_exclude.  Now returns bool, not int.
61512         (excluded_filename, add_exclude):
61513         Add support for the fancy new exclusion options.
61514         (add_exclude, add_exclude_file): Now takes int options arg.
61515         Check for arithmetic overflow when computing sizes.
61516         (add_exclude_file): xrealloc might modify errno, so don't
61517         realloc until after errno might be used.
61518
61519         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61520         New macros.
61521         (free_exclude): New decl.
61522         (add_exclude, add_exclude_file): Now takes int options arg.
61523         (excluded_filename): No longer requires options arg, as the options
61524         are determined by add_exclude.  Now returns bool, not int.
61525
61526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61527
61528         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61529
61530 2001-08-27  Jim Meyering  <meyering@lucent.com>
61531
61532         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61533
61534         * lib/version-etc.c (N_): Remove definition.
61535         Revert most of last change.
61536         Instead, simply don't mark the `Copyright...' string for translation.
61537         Based on advice from Paul Eggert.
61538
61539         * lib/strtoxmax.c: Tweak comment.
61540
61541 2001-08-26  Jim Meyering  <meyering@lucent.com>
61542
61543         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61544
61545         * m4/xstrtoimax.m4: New file.
61546         * m4/xstrtoumax.m4: Add comments explaining why we
61547         AC_REPLACE_FUNCS(strtol).
61548
61549 2001-08-26  Jim Meyering  <meyering@lucent.com>
61550
61551         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61552         of copyright with `%s' so translators don't get an untranslated
61553         message in 2002.
61554         (COPYRIGHT_YEAR): Define.
61555         (version_etc): Use fprintf rather than fputs.
61556         Suggestion from Ulrich Drepper.
61557
61558         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61559
61560         * lib/strtoll.c: New file, from GNU libc.
61561         * lib/xstrtoimax.c: New file.
61562
61563         * lib/xstrtol.h: Add xstrtoimax.
61564         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61565         * lib/strtoimax.c: New file.  Likewise, but first define
61566         STRTOUXMAX_SIGNED.
61567
61568         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61569         ...
61570         * lib/strtoxmax.c: ... then renamed to this.
61571
61572 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61573
61574         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61575         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61576         (jm_AC_TYPE_INTMAX_T): New macro.
61577         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61578
61579         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61580
61581         * m4/longlong.m4: Renamed from ulonglong.m4.
61582         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61583         * m4/uintmax_t.m4: Removed.
61584
61585 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61586
61587         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61588         Port to Solaris 8, where 'sed' requires a space after the 'r'
61589         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61590         Redirect output to $tmp just once.
61591
61592 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61593
61594         * lib/addext.c (<errno.h>): Include.
61595         (errno): Declare if not defined.
61596         (addext): Work correctly when pathconf returns -1 and leaves
61597         errno alone because there is no limit.  Also, work even if
61598         pathconf returns a value greater than SIZE_MAX.
61599
61600 2001-08-12  Jim Meyering  <meyering@lucent.com>
61601
61602         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61603         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61604         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61605         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61606         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61607         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61608         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61609         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61610         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61611         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61612         utime.m4, utimes.m4, xstrtoumax.m4:
61613         Quote the first argument in each use of AC_DEFUN.
61614
61615 2001-08-12  Jim Meyering  <meyering@lucent.com>
61616
61617         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61618         Simply `return getcwd (NULL, 0);'.
61619         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61620         Use 1300 as initial value for length, not PATH_MAX.
61621
61622         * lib/pathmax.h: Clean up cpp syntax.
61623
61624 2001-08-12  Jim Meyering  <meyering@lucent.com>
61625
61626         * lib/gettimeofday.c: New file.
61627         * lib/gtod.h: New file.
61628         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61629
61630 2001-08-05  Jim Meyering  <meyering@lucent.com>
61631
61632         * m4/jm-macros.m4: Require autoconf-2.52.
61633
61634 2001-08-04  Jim Meyering  <meyering@lucent.com>
61635
61636         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61637         stmt, to get in sync with glibc.
61638
61639 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61640
61641         The following changes are from gettext 0.10.39 as maintained by
61642         Bruno Haible.
61643
61644         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61645         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61646         with inverted sense.  All uses changed.
61647
61648         * lib/mbswidth.c: Don't include <limits.h>.
61649         Include <stdlib.h> and <string.h> unconditionally.
61650         (iswcntrl, mbsinit, ISCNTRL): New macros.
61651         (mbsnwidth): Use K&R style function declarations.
61652         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61653         can optimize it when MB_CUR_MAX == 1.
61654         The width of control characters is zero, not 1.
61655
61656 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61657
61658         The following changes are from gettext 0.10.39 as maintained by
61659         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61660
61661         * m4/codeset.m4: Upgrade to serial AM1.
61662         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61663         all uses changed.  Quote first arg of AC_DEFUN.
61664         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61665
61666         * m4/iconv.m4: Upgrade to serial AM2.
61667         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61668         Add --with-libconv-prefix.
61669         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61670         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61671         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61672         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61673         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61674
61675         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61676         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61677         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61678         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61679         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61680         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61681         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61682         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61683         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61684
61685         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61686         string.h any more.
61687
61688         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61689         not the default value.
61690
61691         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61692         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61693         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61694         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61695         Also check for iswcntrl, used for wcwidth fallback.
61696         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61697         to Autoconf 2.13.
61698
61699 2001-08-03  Jim Meyering  <meyering@lucent.com>
61700
61701         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61702         as it was in the original.  Reported by Paul Eggert.
61703
61704 2001-07-16  Jim Meyering  <meyering@lucent.com>
61705
61706         * m4/gettimeofday.m4: New file.
61707         Prompted by a report from Bernhard Baehr.
61708
61709 2001-07-15  Jim Meyering  <meyering@lucent.com>
61710
61711         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61712         stuff. Now it's in ../Makefile.cfg.
61713
61714 2001-07-15  Jim Meyering  <meyering@lucent.com>
61715
61716         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61717         (BUILT_SOURCES): Add unlocked-io.h.
61718         (io_functions): Define.
61719         (unlocked-io.h): New rule.
61720         (DISTCLEANFILES): Add unlocked-io.h.
61721         (all-local): Depend on unlocked-io.h, to ensure it is created.
61722
61723         * lib/unlocked-io.hin: New file
61724
61725         * lib/regex.c: Update from glibc.
61726
61727 2001-07-05  Jim Meyering  <meyering@lucent.com>
61728
61729         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61730         recommendation.
61731         (libfetish_a_SOURCES): Put all .h files here instead.
61732         Remove a thus-exposed (better checks in automake) duplicate and
61733         two unnecessary .h files.
61734
61735 2001-07-04  Jim Meyering  <meyering@lucent.com>
61736
61737         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61738         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61739         distcheck failure.
61740
61741 2001-07-02  Jim Meyering  <meyering@lucent.com>
61742
61743         The following changes were prompted by suggestions from Bruno Haible.
61744
61745         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61746         is now generated.
61747         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61748         definition of EXTRA_DIST.
61749         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61750         ensure that the generated file is created/updated whenever the list
61751         of $(unlocked_functions) is changed.
61752         (jm-glibc-io.m4): New rule.
61753         (unlocked-io.h): New rule -- currently unused.
61754
61755 2001-06-24  Jim Meyering  <meyering@lucent.com>
61756
61757         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61758         unmatched right bracket, rather than kludging it with an extra,
61759         falsely-matching quote in a comment.  Patch by Akim Demaille.
61760
61761 2001-06-11  Jim Meyering  <meyering@lucent.com>
61762
61763         * lib/regex.c: Update from GNU libc.
61764
61765 2001-05-27  Jim Meyering  <meyering@lucent.com>
61766
61767         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61768         Check for ut_type in struct utmp.
61769
61770 2001-05-27  Jim Meyering  <meyering@lucent.com>
61771
61772         * lib/readutmp.h (UT_TYPE): Define.
61773
61774 2001-05-24  Jim Meyering  <meyering@lucent.com>
61775
61776         * lib/argmatch.c: Include "quote.h".
61777         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61778         quote function.  Reported by Göran Uddeborg.
61779
61780 2001-05-22  Jim Meyering  <meyering@lucent.com>
61781
61782         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61783         now that we use the package-supplied version unconditionally.
61784         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61785
61786 2001-05-21  Jim Meyering  <meyering@lucent.com>
61787
61788         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61789         shell syntax errors.
61790
61791 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61792
61793         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61794
61795 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61796
61797         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61798         Don't bother to check library strftime, since
61799         we'll be using our own my_strftime function anyway.
61800         Define my_strftime instead of strftime.
61801
61802 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61803
61804         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61805         which is not yet declared.
61806
61807 2001-05-15  Jim Meyering  <meyering@lucent.com>
61808
61809         * m4/regex.m4: Use proper quoting so brackets appear in the test
61810         program.
61811         Reported by, and with help from, Bruno Haible.
61812
61813 2001-05-13  Jim Meyering  <meyering@lucent.com>
61814
61815         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61816         undefined.
61817
61818 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61819
61820         dirname code cleanup.  base_name now behaves more compatibly
61821         with POSIX basename when given file names that have trailing
61822         slashes, and similarly for dir_name.  Add new primitives
61823         base_len and dir_len.  Put the directory-name-related decls
61824         into dirname.h.
61825
61826         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61827         * lib/backupfile.c (base_name): Likewise.
61828         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61829         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61830         * lib/makepath.c (strip_trailing_slashes): Likewise.
61831         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61832         ISSLASH): Likewise.
61833         * lib/rename.c (strip_trailing_slashes): Likewise.
61834         * lib/same.c (base_name): Likewise.
61835         * lib/stripslash.c (ISSLASH): Likewise.
61836
61837         * lib/addext.c: Include <dirname.h> after size_t is defined.
61838         * lib/backupfile.c: Likewise.
61839
61840         * lib/addext.c (addext): Use base_len to trim redundant
61841         trailing slashes instead of doing it ourselves.
61842         But do not trim the last slash if it is not redundant.
61843
61844         * lib/backupfile.c (find_backup_file_name,
61845         max_backup_version): Use base_len instead of rolling it ourselves.
61846         Handle the case of "" and (on DOS) "C:" correctly.
61847
61848         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61849         needed. Include <string.h>, <dirname.h>.
61850         (base_name): Allow file names ending in slashes, other than names
61851         that are all slashes.  In this case, return the basename followed
61852         by the slashes.  This is more general, and can be used in places
61853         where the original base_name purposely had an assertion failure.
61854         (base_len): New function.
61855
61856         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61857         Do not include <assert.h>; no longer needed.
61858         Include xalloc.h.
61859         (memrchr): Remove decl.
61860         (dir_name_r): Remove.
61861         (dir_len): Renamed from dirlen.  All callers changed.
61862         Rewrite in terms of base_name, for simplicity and consistency.
61863         (dir_name): Never return NULL.  All callers changed.
61864         Do not include <stdlib.h> in test program; no longer needed.
61865         return 0; is fine for test program.
61866
61867         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61868         New macros.
61869         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61870
61871         * lib/path-concat.c (path_concat): Use base_len to compute
61872         base length, not strlen; this means we cannot rely on memcpy
61873         to null-terminate.
61874
61875         * lib/same.c (STREQ): Remove.
61876         (same_name): Handle the case where the basename ends in trailing '/'.
61877
61878         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61879         a slash was stripped.  Do not strip the last slash after a
61880         file system prefix.
61881
61882 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61883
61884         * lib/Makefile.am (libfetish_a_SOURCES):
61885         Add strftime.c, since we now compile it on all hosts.
61886
61887         * lib/strftime.c (my_strftime):
61888         Define to nstrftime if emacs, but only if my_strftime is not defined.
61889         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61890         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61891         Add one more extra argument: a nanoseconds value.
61892         All uses changed.
61893         (ns): New macro.
61894         (my_strftime function): Add %N format.
61895         (emacs_strftimeu): Renamed from emacs_strftime,
61896         with extra ut argument.
61897
61898 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61899
61900         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61901
61902 2001-04-21  Jim Meyering  <meyering@lucent.com>
61903
61904         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61905         doesn't interfere.
61906
61907 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61908
61909         * m4/ftruncate.m4: Check for chsize.
61910         Link with ftruncate.o unconditionally if ftruncate is missing.
61911         This was required when cross-compiling to i586-mingw32msvc.
61912
61913 2001-04-08  Jim Meyering  <meyering@lucent.com>
61914
61915         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61916         recomputed; that's necessary when the offset spans a DST transition.
61917         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61918
61919 2001-04-02  Jim Meyering  <meyering@lucent.com>
61920
61921         * lib/regex.h, regex.c: Update from GNU libc.
61922
61923 2001-03-24  Jim Meyering  <meyering@lucent.com>
61924
61925         * m4/jm-macros.m4: Require autoconf-2.49d.
61926
61927 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61928
61929         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61930
61931 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61932
61933         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61934
61935 2001-03-17  Jim Meyering  <meyering@lucent.com>
61936
61937         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61938         now that the version in autoconf is equivalent.
61939         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61940
61941         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61942         Suggestion from Akim Demaille.
61943
61944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61945         (jm_PREREQ_TEMPNAME): New function.
61946
61947 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61948
61949         * lib/tempname.c (uint64_t): Define to uintmax_t if
61950         not defined, and if UINT64_MAX is not defined.
61951         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61952         Reported by John David Anglin.
61953
61954 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61955
61956         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61957         resolve alias if codeset is empty.
61958         * lib/config.charset (BeOS): Use wildcard syntax.
61959
61960 2001-03-13  Jim Meyering  <meyering@lucent.com>
61961
61962         * lib/path-concat.c (path_concat)
61963         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61964         concatenating e.g., `C:' and `foo'.
61965         From Bruno Haible.
61966
61967 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61968
61969         * lib/localcharset.c (locale_charset): Don't use
61970         setlocale(LC_CTYPE,NULL). Don't return NULL.
61971         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61972
61973 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61974
61975         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61976         support for DOS/DJGPP.
61977
61978 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61979
61980         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61981         lacks mkstemp.  Compile our own tempname.c if we compile our own
61982         mkstemp.c, as mkstemp relies on tempname.
61983
61984 2001-03-01  Jim Meyering  <meyering@lucent.com>
61985
61986         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61987         AH_VERBATIM really does output its argument verbatim.
61988
61989 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61990
61991         * lib/Makefile.am (libfetish_a_SOURCES):
61992         Add dup-safer.c, fopen-safer.c.
61993         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61994
61995         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61996         * lib/unistd-safer.h: New files.
61997
61998 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61999
62000         The mkstemp replacement is taken from glibc 2.2.2, with some
62001         portability fixes for use outside glibc, as follows:
62002
62003         * lib/tempname.c (struct_stat64): New macro.
62004         (direxists, __gen_tempname): Use it.
62005         This avoids a portability problem with Solaris 8.
62006
62007         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62008         (<stddef.h>, <stdint.h>, <string.h>):
62009         Include only if STDC_HEADERS || _LIBC.
62010         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62011         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62012         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62013         (__set_errno): Define this macro if <errno.h> doesn't.
62014         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62015         Define these macros if <stdio.h> doesn't.
62016         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62017         Define these macros if <sys/stat.h>
62018         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62019         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62020         __xstat64): Define if not _LIBC.
62021         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62022         (__gen_tempname): Invoke gettimeofday only if
62023         HAVE_GETTIMEOFDAY || _LIBC;
62024         otherwise, fall back on plain "time".
62025         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62026
62027         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62028
62029         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62030
62031 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62032
62033         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62034
62035 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62036
62037         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62038         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62039         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62040         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62041
62042 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62043
62044         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62045         Remove workaround macros for hosts that have mbrtowc but not
62046         mbstate_t, as we now insist on proper declarations for both
62047         before using mbrtowc.
62048
62049 2001-02-17  Jim Meyering  <meyering@lucent.com>
62050
62051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62052         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62053         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62054         UnixWare 7.1.1.
62055
62056         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62057         rather than AC_CACHE_VAL.
62058
62059 2001-02-17  Jim Meyering  <meyering@lucent.com>
62060
62061         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62062         around included file name.
62063
62064         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62065
62066         * lib/strftime.c: Update from GNU libc (the only changes were to
62067         comments).
62068
62069 2001-02-17  Jim Meyering  <meyering@lucent.com>
62070
62071         * lib/regex.c: Update from libc.
62072
62073 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62074
62075         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62076         clash.
62077
62078 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62079
62080         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62081         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62082         Reported by Mark Hounschell via Paul Eggert.
62083
62084 2001-02-07  Jim Meyering  <meyering@lucent.com>
62085
62086         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62087
62088 2001-02-05  Jim Meyering  <meyering@lucent.com>
62089
62090         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62091         it includes the patch required for `large file' support with at least
62092         HP-UX's 10.20 /bin/cc.
62093
62094 2001-02-03  Jim Meyering  <meyering@lucent.com>
62095
62096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62097         AS_IF, now that it works once again (mysteriously).
62098         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62099
62100 2001-01-30  Jim Meyering  <meyering@lucent.com>
62101
62102         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62103         * m4/chown.m4: Rename conftestchown to conftest.chown.
62104         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62105         s/conftestdir2/conftest.d2/.
62106         * m4/utimes.m4: s/conftestdata/conftest.data/
62107         Inspired by Pavel Roskin's change in autoconf.
62108
62109 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62110
62111         * lib/config.charset: Update for FreeBSD 4.2.
62112
62113 2001-01-27  Jim Meyering  <meyering@lucent.com>
62114
62115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62116         a use of AS_IF.
62117         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62118
62119 2001-01-26  Jim Meyering  <meyering@lucent.com>
62120
62121         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62122         quotearg.c includes it.
62123
62124 2001-01-26  Jim Meyering  <meyering@lucent.com>
62125
62126         * lib/quotearg.c: Include stddef.h.
62127         * lib/quote.c: Include stddef.h.
62128         Reported by Axel Kittenberger.
62129
62130         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62131         line in double quotes so that it evokes a better diagnostic.
62132         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62133         Reported by Axel Kittenberger.
62134
62135 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62136
62137         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62138         as if it was a `charset'.
62139
62140 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62141
62142         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62143         has const.
62144
62145 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62146
62147         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62148         to avoid a warning.  Add back 'const' to inptr.
62149
62150 2001-01-20  Jim Meyering  <meyering@lucent.com>
62151
62152         Be sure that headers are checked before used in code compiled
62153         for the type checks.
62154         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62155         In place of that, invoke jm_CHECK_ALL_TYPES.
62156         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62157         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62158         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62159         The check for ssize_t was mistakenly run before the test for unistd.h.
62160
62161         The configure-time check for stdbool.h was missing.
62162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62163         (jm_PREREQ_HASH): New function.
62164
62165 2001-01-17  Jim Meyering  <meyering@lucent.com>
62166
62167         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62168         for autoconf-2.49c.
62169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62170
62171 2001-01-16  Jim Meyering  <meyering@lucent.com>
62172
62173         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62174         From Bruno Haible.
62175
62176 2001-01-14  Jim Meyering  <meyering@lucent.com>
62177
62178         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62179         foo and bar.  Create conftestdir/ in the script, not in the C code.
62180         Remove directories in the script, not in the C code.
62181         Remove conftestdir{,2} before trying to create the directory.
62182         Make the entire configure script fail if the mkdir fails.
62183
62184 2001-01-14  Jim Meyering  <meyering@lucent.com>
62185
62186         * lib/rename.c: New file.  From Volker Borchert.
62187         Include stdlib.h, string.h or strings.h, and xalloc.h.
62188         Use strip_trailing_slashes rather than open-coding it.
62189
62190 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62191
62192         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62193
62194 2001-01-03  Jim Meyering  <meyering@lucent.com>
62195
62196         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62197         of local `inptr' to avoid warning with some system declarations of
62198         iconv.
62199
62200 2001-01-02  Volker Borchert  <bt@teknon.de>
62201
62202         * m4/rename.m4: New file.
62203         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62204
62205 2001-01-01  Jim Meyering  <meyering@lucent.com>
62206
62207         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62208         even on systems with utmpx.h.  It's necessary for the declaration of
62209         utmp's ut_user member.  Reported by Andreas Jaeger.
62210
62211         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62212         available. They are required for the declarations of getgrgid and
62213         getpwuid resp.
62214         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62215         Reported by Andreas Jaeger.
62216
62217 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62218
62219         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62220         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62221         so `make install' also works in VPATH builds.
62222
62223 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62224
62225         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62226         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62227         can be used in subdirectories.
62228
62229 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62230
62231         * lib/modechange.c: Do not assume that mode_t uses the
62232         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62233         the other-execute bit of FOO even if S_IXOTH != 1.
62234
62235         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62236         WOTH, XOTH, ALLM): New macros.
62237         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62238          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62239         Use them.
62240         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62241         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62242         (mode_compile):
62243         No need to use uintmax_t; unsigned long is long enough.
62244         Don't bother to get suffix since we don't use it.
62245
62246 2000-12-26  Jim Meyering  <meyering@lucent.com>
62247
62248         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62249         better with autoheader.
62250
62251 2000-12-24  Jim Meyering  <meyering@lucent.com>
62252
62253         * lib/hash.c (is_prime): Return explicit boolean values.
62254         (hash_get_first): Return NULL to appease Irix5.6's 89.
62255         Reported by Nelson Beebe.
62256
62257 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62258
62259         * lib/localcharset.c (locale_charset): Add support for Win32.
62260
62261 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62262
62263         * lib/physmem.h, lib/physmem.c: New files.
62264
62265         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62266         (noinst_HEADERS): Add physmem.h.
62267
62268         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62269         't' for compatibility with Solaris 8 sort.
62270
62271 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62272
62273         * lib/config.charset: Add support for BeOS.
62274
62275 2000-12-17  Jim Meyering  <meyering@lucent.com>
62276
62277         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62278         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62279
62280 2000-12-16  Jim Meyering  <meyering@lucent.com>
62281
62282         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62283         N and M) would have treated it like `chown N:N FILE'.
62284
62285         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62286
62287 2000-12-16  Jim Meyering  <meyering@lucent.com>
62288
62289         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62290         SHELLS_FILE to a file name that's useful on djgpp systems.
62291         Include stdlib.h.
62292         (ADDITIONAL_DEFAULT_SHELLS): Define.
62293         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62294         Based mostly on a patch from Prashant TR.
62295
62296 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62297
62298         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62299         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62300         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62301
62302 2000-12-08  Andreas Schwab  <schwab@suse.de>
62303
62304         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62305         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62306
62307 2000-12-07  Jim Meyering  <meyering@lucent.com>
62308
62309         * lib/stripslash.c (ISSLASH): Define.
62310         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62311         `/'.
62312         From Prashant TR.
62313
62314         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62315         (dir_name_r): Declare this function as static.
62316         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62317         manifest itself on a name containing a mix of slashes and
62318         backslashes.
62319         Make this function work with names starting with a DOS-style
62320         drive letter and colon prefix.
62321         (dir_name): Append `.' if necessary.
62322         Based mostly on patches from Prashant TR and Eli Zaretskii.
62323
62324         * lib/dirname.h (dir_name_r): Remove prototype.
62325
62326 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62327
62328         * m4/off_t-format.m4: Remove this file.
62329         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62330
62331 2000-12-06  Jim Meyering  <meyering@lucent.com>
62332
62333         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62334         replacement strtoull, we may well need the replacement strtoul, too.
62335         Check for declarations of strtoul and strtoull.
62336         Check for strtol.  Mainly as a cue to cause automake to include
62337         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62338         Check for limits.h -- strtol.c needs it.
62339
62340 2000-12-05  Jim Meyering  <meyering@lucent.com>
62341
62342         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62343
62344 2000-12-04  Jim Meyering  <meyering@lucent.com>
62345
62346         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62347         Also include memory.h, stdlib.h, unistd.h if appropriate.
62348         Reported by Andreas Jaeger (conflicting declaration of malloc).
62349
62350 2000-12-02  Jim Meyering  <meyering@lucent.com>
62351
62352         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62353         * m4/jm-macros.m4 (jm_MACROS): require it.
62354
62355 2000-12-02  Jim Meyering  <meyering@lucent.com>
62356
62357         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62358
62359 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62360
62361         * lib/memrchr.c: Include <config.h> before any system include file.
62362
62363 2000-11-30  Jim Meyering  <meyering@lucent.com>
62364
62365         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62366
62367 2000-11-30  Jim Meyering  <meyering@lucent.com>
62368
62369         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62370
62371 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62372
62373         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62374
62375 2000-11-26  Jim Meyering  <meyering@lucent.com>
62376
62377         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62378
62379 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62380
62381         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62382         size of (size_t) -1; it's not portable.
62383
62384 2000-11-17  Jim Meyering  <meyering@lucent.com>
62385
62386         * lib/strstr.c: Update from GNU libc.
62387
62388 2000-11-17  Akim Demaille  <akim@epita.fr>
62389
62390         * lib/obstack.h: Formatting changes.
62391         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62392         prevent type checking.
62393         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62394         cast the value to (void *): assigning a `foo *' to a `void *'
62395         variable is valid.
62396         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62397
62398 2000-11-16  Jim Meyering  <meyering@lucent.com>
62399
62400         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62401
62402 2000-11-11  Jim Meyering  <meyering@lucent.com>
62403
62404         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62405
62406 2000-11-10  Jim Meyering  <meyering@lucent.com>
62407
62408         * lib/obstack.h: Update from GNU libc.
62409         * lib/obstack.c: Likewise.
62410
62411 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62412
62413         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62414
62415 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62416
62417         * lib/getusershell.c (setusershell): Use rewind rather than
62418         fseek/fseeko, to avoid configuration hassles with fseeko.
62419         Don't bother opening SHELLS_FILE if shellstream is NULL;
62420         it's not necessary.
62421
62422 2000-11-05  Jim Meyering  <meyering@lucent.com>
62423
62424         * lib/makepath.h (make_dir): Declare.
62425         * lib/makepath.c (make_dir): Remove `static' attribute.
62426         Tweak a comment.
62427
62428 2000-11-04  Jim Meyering  <meyering@lucent.com>
62429
62430         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62431
62432 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62433
62434         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62435         last one in a bucket, advance to the next bucket.
62436
62437 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62438
62439         * lib/fnmatch.c: Do not comment out all the code if we are using
62440         the GNU C library, because in some cases we are replacing buggy
62441         code in the GNU C library itself.
62442
62443 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62444
62445         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62446         (regex_compile): Catch bogus \(\1\).
62447
62448 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62449
62450         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62451         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62452         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62453
62454 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62455
62456         * lib/error.h, getline.h, modechange.h:
62457         Remove "2000" from Copyright line, as the file hasn't been
62458         changed this year other than in the copyright notice.
62459
62460         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62461         was changed this year.
62462
62463 2000-10-29  Jim Meyering  <meyering@lucent.com>
62464
62465         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62466         renaming.
62467         * m4/ls-mntd-fs.m4: Likewise
62468
62469 2000-10-29  Jim Meyering  <meyering@lucent.com>
62470
62471         * lib/xstat.in: Fix grammar in comment.
62472
62473 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62474
62475         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62476         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62477         doesn't define __restrict_arr.
62478
62479 2000-10-28  Jim Meyering  <meyering@lucent.com>
62480
62481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62482         (jm_PREREQ_MEMCHR): New function.
62483
62484 2000-10-28  Jim Meyering  <meyering@lucent.com>
62485
62486         * lib/memchr.c: Update from libc.
62487         Adjust for portability:
62488         [HAVE_STDLIB_H]: Include stdlib.h.
62489         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62490         Undef __memchr, too.
62491         [!weak_alias]: Define __memchr to memchr.
62492
62493         * lib/regex.c: Update from libc.
62494         * lib/regex.h: Likewise.
62495         * lib/getopt1.c: Likewise.
62496         * lib/memcmp.c: Likewise.
62497
62498         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62499         Avoid using fseek, when possible -- it's broken by design.
62500         Patch by Ulrich Drepper.
62501
62502 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62503
62504         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62505         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62506         Giving in to popular pressure to shut up the compiler with casts.
62507
62508 2000-10-26  Jim Meyering  <meyering@lucent.com>
62509
62510         * lib/strftime.c: Update from libc.
62511
62512 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62513
62514         * regex.c: More `unsigned char' -> `re_char' changes.
62515         Also change several `int' into `re_wchar_t'.
62516         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62517         (PUSH_FAILURE_POINTER): Don't cast any more.
62518         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62519         We want GCC to complain, since this piece of code makes
62520         re_match non-reentrant, which *should* be fixed.
62521         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62522         (EXTEND_BUFFER): Use RETALLOC.
62523         (SET_LIST_BIT): Don't cast.
62524         (re_wchar_t): New type.
62525         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62526         that those two functions will always properly return.
62527         (IMMEDIATE_QUIT_CHECK): Cast to void.
62528         (analyse_first): Use recursion rather than an explicit stack.
62529         (re_compile_fastmap): Can't fail anymore.
62530         (re_search_2): Don't check re_compile_fastmap for failure.
62531         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62532         Now also sets the new value (passed in a new argument).
62533         (re_match_2_internal): Use it.
62534         Also, use a new var `reg' of type size_t when looping through regs
62535         rather than reuse the inappropriate `mcnt'.
62536
62537 2000-10-25  Jim Meyering  <meyering@lucent.com>
62538
62539         * lib/obstack.c: Update from libc.
62540
62541 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62542
62543         * regex.c (regex_compile): Change the way of handling a range from
62544         a char less than 256 to a char not less than 256.
62545
62546 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62547
62548         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62549         NT-Emacs only.
62550         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62551         so that re_search functions only quit when callers expect them to.
62552
62553 2000-10-23  Jim Meyering  <meyering@lucent.com>
62554
62555         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62556         wrong.  That set_locale call must not have any side effects.
62557         From Paul Eggert.
62558
62559 2000-10-22  Jim Meyering  <meyering@lucent.com>
62560
62561         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62562         [CYCLIC]: Remove now-unused definition.
62563
62564         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62565         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62566         Suggestion from Ulrich Drepper.
62567
62568 2000-10-21  Jim Meyering  <meyering@lucent.com>
62569
62570         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62571         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62573
62574 2000-10-21  Jim Meyering  <meyering@lucent.com>
62575
62576         * lib/dirname.c (memrchr): Declare if necessary.
62577         (dir_name): Remove the restriction that there be no
62578         trailing slashes.  Now, this code skips past them, effectively
62579         ignoring them.
62580         [TEST_DIRNAME] (main): New unit tests.
62581
62582         * lib/memrchr.c: New file from GNU libc.
62583         Undef __memrchr, too.
62584         [!weak_alias]: Define __memrchr to memrchr.
62585         Guard weak_alias use with `#ifdef weak_alias'.
62586
62587 2000-10-21  Jim Meyering  <meyering@lucent.com>
62588
62589         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62590         (dir_name): Use dir_name_r.
62591         * lib/dirname.h (dir_name_r): Declare it.
62592
62593 2000-10-17  Jim Meyering  <meyering@lucent.com>
62594
62595         * lib/quote.h (PARAMS): Define and use.
62596         Reported by Akim Demaille.
62597
62598         * lib/getopt.c: Update from libc.
62599
62600 2000-10-16  Jim Meyering  <meyering@lucent.com>
62601
62602         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62603         setlocale.
62604         From Jan Fedak.
62605
62606 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62607
62608         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62609
62610 2000-09-25  Jim Meyering  <meyering@lucent.com>
62611
62612         * lib/md5.h (rol): Define (from GnuPG).
62613
62614         * lib/sha.c: Give credit (GnuPG) where due.
62615         (M): Use rol rather than open-coding it.
62616         Add a FIXME comment.
62617
62618 2000-09-21  Jim Meyering  <meyering@lucent.com>
62619
62620         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62621         Reported by Michael Stone.
62622
62623 2000-09-20  Jim Meyering  <meyering@lucent.com>
62624
62625         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62626         (noinst_HEADERS): Add sha.h.
62627         Based on code from Scott G. Miller and from GnuPG.
62628
62629 2000-09-18  Jim Meyering  <meyering@lucent.com>
62630
62631         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62632         LIBS. Otherwise, everyone ends up linking with -lelf for some
62633         configurations.
62634         Reported by Mike Stone.
62635
62636 2000-09-15  Jim Meyering  <meyering@lucent.com>
62637
62638         * lib/regex.c: Update from libc.
62639
62640 2000-09-10  Jim Meyering  <meyering@lucent.com>
62641
62642         * lib/getopt.c (_getopt_internal): Update from glibc.
62643
62644 2000-09-09  Jim Meyering  <meyering@lucent.com>
62645
62646         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62647         think it should be used as a general replacement for isascii.
62648         * lib/fnmatch.c: Likewise.
62649         * lib/mbswidth.c: Likewise
62650         * lib/regex.c: Likewise.
62651
62652         Don't use atoi.
62653         * lib/userspec.c: Include sys/param.h and limits.h.
62654         Include xstrtol.h.
62655         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62656         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62657         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62658         UID, GID.  Check range.
62659
62660 2000-09-06  Jim Meyering  <meyering@lucent.com>
62661
62662         * lib/getopt.c (_getopt_internal): Update from glibc.
62663
62664 2000-08-30  Jim Meyering  <meyering@lucent.com>
62665
62666         * lib/strftime.c: Merge in changes from GNU libc.
62667
62668 2000-08-26  Jim Meyering  <meyering@lucent.com>
62669
62670         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62671         * m4/fpending.m4: New file.
62672
62673 2000-08-26  Jim Meyering  <meyering@lucent.com>
62674
62675         * lib/closeout.c: Include "__fpending.h".
62676         (close_stdout_status): Return right away if there's nothing to flush.
62677
62678         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62679         * lib/__fpending.c: New file.
62680         * lib/__fpending.h: New file.
62681
62682 2000-08-20  Jim Meyering  <meyering@lucent.com>
62683
62684         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62685         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62686         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62687
62688 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62689
62690         Improve fileutils installation on systems where running
62691         programs (like install) can't be unlinked.
62692         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62693         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62694
62695 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62696
62697         Standardize on "memory exhausted" instead of "Memory exhausted"
62698         or "virtual memory exhausted".
62699         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62700         "virtual memory exhausted".
62701         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62702         our own message.
62703         * lib/userspec.c (parse_user_spec): Likewise.
62704         * lib/bumpalloc.h: comment fix
62705         * lib/same.c, userspec.c: Include xalloc.h.
62706
62707         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62708         not char *const and pointing to a constant array.
62709         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62710         (xrealloc): Comment fix.
62711
62712         * lib/userspec.c (parse_user_spec):
62713         Don't translate a message until just before returning,
62714         to avoid unnecessary translation.
62715
62716 2000-08-07  Jim Meyering  <meyering@lucent.com>
62717
62718         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62719         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62720         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62721         getgroups.c, gethostname.c, getopt.h, group-member.c,
62722         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62723         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62724         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62725         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62726         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62727         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62728         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62729         yesno.c: Back out Copyright date changes for each file with no change
62730         this year.  This eases coordination with other programs using the same
62731         source code modules.  From Paul Eggert.
62732
62733 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62734
62735         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62736         not char, for compatibility with glibc 2.1.3 strftime.c.
62737
62738 2000-08-03  Greg McGary  <greg@mcgary.org>
62739
62740         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62741         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62742         (EXTEND_BUFFER): Use them.
62743
62744 2000-08-01  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/dirname.c (ISSLASH): Define.
62747         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62748         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62749         both `\' and `/' may be use as path separators.
62750         Based on a patch from Prashant TR.
62751
62752 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62753
62754         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62755         slot vector a constant, since it might get modified.
62756
62757 2000-07-31  Jim Meyering  <meyering@lucent.com>
62758
62759         * lib/xmalloc.c: Use `virtual memory exhausted', not
62760         `Memory exhausted'.
62761         * lib/obstack.c (print_and_abort): Likewise.
62762
62763 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62764
62765         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62766         buffer, so that the caller can always quote one small
62767         component of a "memory exhausted" message in slot 0.
62768         From a suggestion by Jim Meyering.
62769
62770 2000-07-30  Jim Meyering  <meyering@lucent.com>
62771
62772         * lib/makepath.c (make_path): Quote the other instance, too.
62773
62774         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62775         (STATIC_BUF_SIZE): Define.
62776         (quotearg_n_options): Use only statically allocated storage when
62777         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62778         than STATIC_BUF_SIZE.
62779
62780 2000-07-29  Jim Meyering  <meyering@lucent.com>
62781
62782         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62783         * lib/dirname.c (dir_name): Likewise.
62784
62785         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62786         `/'.
62787
62788         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62789         (dir_name): Assert that there are no trailing slashes.
62790
62791 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62792
62793         * lib/mbswidth.h (mbswidth): Add a flags argument.
62794         (mbswidth): New declaration.
62795         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62796         * lib/mbswidth.c (mbswidth): Add a flags argument.
62797         (mbsnwidth): New function.
62798
62799 2000-07-24  Jim Meyering  <meyering@lucent.com>
62800
62801         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62802
62803 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62804
62805         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62806
62807 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62808
62809         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62810         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62811         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62812         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62813         invoke multibyte primitives.
62814
62815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62816
62817         * lib/quotearg.c:
62818         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62819         so that mbstate_t is always defined.
62820
62821         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62822         be 1 in at least one GCC installation, and this configuration
62823         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62824         performance on hosts that have mbrtowc but have only unibyte
62825         locales, but I assume these hosts are rare.
62826
62827 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62828
62829         * lib/mbswidth.c (_XOPEN_SOURCE):
62830         Don't define; this causes problems on Solaris 7.
62831         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62832
62833 2000-07-23  Jim Meyering  <meyering@lucent.com>
62834
62835         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62836         too: getgrgid, getpwuid, getuid.
62837
62838 2000-07-23  Jim Meyering  <meyering@lucent.com>
62839
62840         * lib/basename.c (base_name): Add an assertion.
62841
62842 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62843
62844         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62845         shadow its mbsinit function.
62846
62847 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62848
62849         * lib/mbswidth.h: New file.
62850         * lib/mbswidth.c: New file.
62851         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62852         (noinst_HEADERS): Add mbswidth.h.
62853
62854 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62855
62856         * lib/config.charset: Add support for FreeBSD. Improve support for
62857         HP-UX and IRIX 6.
62858
62859 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62860
62861         * m4/mbswidth.m4: New file.
62862         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62863
62864 2000-07-15  Jim Meyering  <meyering@lucent.com>
62865
62866         * lib/makepath.c: Include quote.h.
62867         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62868         corresponding argument in a `quote (...)' call.
62869         Give better diagnostics.
62870
62871         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62872         (noinst_HEADERS): Add quote.h.
62873
62874         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62875         from tar's src/misc.c.
62876         * lib/quote.h: New file.  Prototypes for same.
62877
62878 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62879
62880         From a suggestion by Bruno Haible.
62881         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62882         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62883         to decide whether to define the BeOS workaround macro;
62884         this adjusts to the change to AC_MBSTATE_T.
62885
62886 2000-07-14  Jim Meyering  <meyering@lucent.com>
62887
62888         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62889         jm_AC_TYPE_UINTMAX_T.
62890
62891 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62892
62893         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62894
62895         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62896         quotearg_buffer_restyled): Add support for
62897         clocale_quoting_style.  Undo previous change to
62898         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62899         and "{RIGHT QUOTATION MARK}" msgids.
62900
62901 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62902
62903         From a suggestion by Bruno Haible.
62904         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62905         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62906         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62907         and mbstate_t, to a single-part test that simply defines mbstate_t.
62908         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62909         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62910
62911 2000-07-10  Jim Meyering  <meyering@lucent.com>
62912
62913         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62914
62915         * m4/gnu-source.m4: Output to confdefs.h directly.
62916         Suggestion from Akim Demaille.
62917
62918 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62919
62920         The old behavior of quoting `like this' doesn't look good with
62921         newer, ISO-style fonts.  See:
62922         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62923
62924         Instead, quote "like this" by default.  Let the translator
62925         tailor the locale-specific quoting behavior by providing
62926         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62927
62928         * lib/quotearg.c (N_): New macro.
62929         (gettext_default): New function.
62930         (quotearg_buffer_restyled): Use
62931         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62932         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62933
62934 2000-07-09  Jim Meyering  <meyering@lucent.com>
62935
62936         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62937         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62938
62939         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62941
62942 2000-07-09  Jim Meyering  <meyering@lucent.com>
62943
62944         * lib/Most files: Update copyright dates to include 2000.
62945
62946 2000-07-08  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62949         if not defined.
62950         (xgethostname): Remove now-unnecessary #ifdef.
62951         Move declaration of `err' into loop where it's used.
62952
62953 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62954         and Bruno Haible  <haible@clisp.cons.org>
62955
62956         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62957         only if the test for an object-type mbstate_t fails.  This
62958         prevents us from mistakenly reporting that mbstate_t is a
62959         system object type after we "#define mbstate_t int" to work
62960         around its lack.
62961
62962 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62963         and Bruno Haible  <haible@clisp.cons.org>
62964
62965         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62966
62967 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62968
62969         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62970         to strerror_r.
62971         Include <ctype.h> for use of isalpha.
62972
62973 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62974
62975         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62976         by allocating a larger buffer. Test the gethostname return value for
62977         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62978         returns an error and ENAMETOOLONG isn't defined.
62979
62980 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62981
62982         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62983         dimension.
62984
62985 2000-07-04  Jim Meyering  <meyering@lucent.com>
62986
62987         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62988         of the deprecated AC_CHECKING.
62989
62990 2000-07-04  Jim Meyering  <meyering@lucent.com>
62991
62992         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62993         Reported by Bruno Haible.
62994
62995 2000-07-04  Jim Meyering  <meyering@lucent.com>
62996
62997         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62998         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62999         lacks mbrtowc.
63000
63001 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63002
63003         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63004         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63005
63006 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63007         and Bruno Haible  <haible@clisp.cons.org>
63008
63009         * lib/quotearg.c (mbrtowc):
63010         Assign to *pwc, and return 1 only if result is nonzero.
63011         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63012
63013 2000-07-03  Jim Meyering  <meyering@lucent.com>
63014
63015         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63016
63017 2000-07-03  Jim Meyering  <meyering@lucent.com>
63018
63019         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63020         This is necessary to get a definition of e.g., UTMP_FILE on
63021         HP-UX 10.20.
63022         From Bob Proulx.
63023
63024 2000-07-02  Jim Meyering  <meyering@lucent.com>
63025
63026         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63027
63028         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63029         AC_LIBOBJ(function_name).
63030         * m4/chown.m4: Likewise.
63031         * m4/fnmatch.m4: Likewise.
63032         * m4/ftruncate.m4: Likewise.
63033         * m4/getgroups.m4: Likewise.
63034         * m4/getline.m4: Likewise.
63035         * m4/group-member.m4: Likewise.
63036         * m4/jm-macros.m4: Likewise.
63037         * m4/lstat.m4: Likewise.
63038         * m4/malloc.m4: Likewise.
63039         * m4/memcmp.m4: Likewise.
63040         * m4/nanosleep.m4: Likewise.
63041         * m4/putenv.m4: Likewise.
63042         * m4/realloc.m4: Likewise.
63043         * m4/regex.m4: Likewise.
63044         * m4/stat.m4: Likewise.
63045         * m4/strftime.m4: Likewise.
63046
63047 2000-07-02  Jim Meyering  <meyering@lucent.com>
63048
63049         * lib/quotearg.c (mbstate_t): Don't define here.
63050
63051 2000-07-02  Jim Meyering  <meyering@lucent.com>
63052
63053         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63054
63055 2000-07-01  Jim Meyering  <meyering@lucent.com>
63056
63057         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63058
63059 2000-07-01  Jim Meyering  <meyering@lucent.com>
63060
63061         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63062         problem.
63063
63064 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63065
63066         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63067         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63068
63069 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63070
63071         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63072         per change in ../m4/ls-mntd-fs.m4.
63073         (read_filesystem_list): Ignore symbolic links.
63074
63075 2000-06-29  Jim Meyering  <meyering@lucent.com>
63076
63077         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63078         for declaration of strcmp.
63079
63080         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63081
63082         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63083         Avoid warning by casting result to `char *' to remove `const'.
63084
63085 2000-06-28  Jim Meyering  <meyering@lucent.com>
63086
63087         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63088         included by quotearg.c, for which we perform this test.  From
63089         Bruno Haible.
63090
63091 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63092
63093         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63094         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63095         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63096
63097 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63098
63099         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63100
63101 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63102
63103         savedir now sets errno on failure and invokes xmalloc to get memory.
63104         Fix a couple of other minor bugs while we're at it.
63105
63106         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63107         (NAMLEN): Remove macro.
63108         (malloc, realloc): Remove decls.
63109         (stpcpy): Likewise.
63110         ("xalloc.h"): Include.
63111         (NAME_SIZE_DEFAULT): New macro.
63112         (savedir): Use xmalloc / xrealloc to allocate memory.
63113         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63114         Skip "" directory entries.
63115         Use strlen to calculate directory entry length, since the old method
63116         is rarely used these days and isn't worth supporting.
63117         Don't use a pointer after freeing it.
63118         Check for integer overflow when calculating allocation size.
63119         Use memcpy to copy entries, instead of stpcpy.
63120         Set errno properly when returning NULL.
63121         Check for readdir error.
63122
63123 2000-06-26  Jim Meyering  <meyering@lucent.com>
63124
63125         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63126
63127 2000-06-25  Jim Meyering  <meyering@lucent.com>
63128
63129         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63130         Linux header bug when _XOPEN_SOURCE is defined to 500.
63131
63132 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63133
63134         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63135         deficiency.
63136
63137 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63138
63139         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63140         Include xalloc.h.
63141         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63142
63143 2000-06-24  Jim Meyering  <meyering@lucent.com>
63144
63145         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63146         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63147         for which strerror does return char*, but which lacks a conveniently
63148         accessible declaration of the function.  If the compile-test says
63149         strerror_r doesn't work, then resort to a `run'-test that works on
63150         BeOS and segfaults on DEC Unix.
63151
63152 2000-06-24  Jim Meyering  <meyering@lucent.com>
63153
63154         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63155
63156 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63157
63158         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63159         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63160
63161 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63162
63163         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63164         (mbrtowc, mbstate_t): Define substitutes if
63165         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63166         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63167         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63168
63169 2000-06-23  Jim Meyering  <meyering@lucent.com>
63170
63171         * m4/afs.m4: Add missing AC_MSG_RESULT.
63172         Reported by Bruno Haible.
63173
63174         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63175         Suggestion from Bruno Haible.
63176
63177 2000-06-23  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63180
63181 2000-06-21  Jim Meyering  <meyering@lucent.com>
63182
63183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63184
63185 2000-06-21  Jim Meyering  <meyering@lucent.com>
63186
63187         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63188         (noinst_HEADERS): Add getstr.h.
63189
63190         * lib/getline.c (getstr): Move into a separate file.
63191         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63192         the following changes: new parameter, delim2; both delim[12]
63193         parameters have type `int', not `char'.  The latter would lose
63194         with 8-bit delimiters.
63195         * lib/getstr.h: New file.
63196
63197 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63198
63199         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63200         than 1024, return a memory chunk of least possible size, instead
63201         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63202         Use free/xmalloc instead of xrealloc to avoid copying for very long
63203         paths.
63204
63205 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63206
63207         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63208         the empty string.
63209
63210 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63211
63212         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63213         address, not strdup.  Include <stdlib.h> and don't declare free().
63214
63215 2000-06-19  Jim Meyering  <meyering@lucent.com>
63216
63217         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63218
63219 2000-06-18  Jim Meyering  <meyering@lucent.com>
63220
63221         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63222
63223         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63224         `checking whether...' message to be consistent with that of the
63225         lstat test.
63226
63227 2000-06-18  Jim Meyering  <meyering@lucent.com>
63228
63229         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63230         Besides, these days every porting target provides a mkdir function.
63231
63232         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63233         needed. (this snippet comes from src/system.h).
63234
63235 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63236
63237         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63238
63239 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63240
63241         * lib/human.c (adjust_value): New function.
63242         (human_readable_inexact): Apply rounding style even when
63243         printing approximate values.
63244
63245 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63246
63247         * lib/human.c (human_readable_inexact): Allow an input block
63248         size that is not a multiple of the output block size, and vice versa.
63249         Reported by Piergiorgio Sartor.
63250
63251 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63252
63253         * lib/getdate.y (get_date): Apply relative times after time
63254         zone indicator, not before.  Reported by Todd A. Jacobs.
63255
63256 2000-06-13  Jim Meyering  <meyering@lucent.com>
63257
63258         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63259
63260         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63261
63262 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63263
63264         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63265
63266 2000-06-12  Jim Meyering  <meyering@lucent.com>
63267
63268         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63269         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63270         optional argument.
63271         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63272         the optional argument, `lib'.
63273
63274 2000-06-08  Jim Meyering  <meyering@lucent.com>
63275
63276         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63277
63278 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63279
63280         Rewrite largefile configuration so that we don't need to run
63281         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63282         AC_CANONICAL_HOST in configure.in -- jmm]
63283
63284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63285         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63286         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63287         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63288         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63289         All uses changed.
63290         Instead of inspecting the output of getconf, try to compile the
63291         test program without and with the macro definition.
63292         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63293         for getconf.  Instead, check for the needed flags by compiling
63294         test programs.
63295
63296 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63297
63298         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63299
63300 2000-06-04  Jim Meyering  <meyering@lucent.com>
63301
63302         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63303         SunOS 4.1.4 for which gid_t is an unsigned type.
63304
63305 2000-06-03  Jim Meyering  <meyering@lucent.com>
63306
63307         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63308         now that autoconf requires that.
63309
63310         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63311         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63312         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63313
63314 2000-06-03  Jim Meyering  <meyering@lucent.com>
63315
63316         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63317
63318 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63319
63320         * m4/glibc21.m4: New file.
63321         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63322
63323 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63324
63325         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63326         newer, don't install charset.alias.
63327         * lib/config.charset: Change the Linux/glibc rules so they become empty
63328         on glibc-2.1 or newer.
63329
63330 2000-06-02  Jim Meyering  <meyering@lucent.com>
63331
63332         * lib/mountlist.c: Back out last change.  Instead, do this...
63333         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63334         me_dummy member using the same `ignore'-testing code.
63335         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63336         fs_type strings.
63337         From Mark D. Roth.
63338
63339 2000-05-29  Jim Meyering  <meyering@lucent.com>
63340
63341         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63342         mounts with the `ignore' attribute.  Based on a patch from
63343         Mark D. Roth.
63344
63345 2000-05-28  Jim Meyering  <meyering@lucent.com>
63346
63347         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63348         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63349         * m4/stat.m4: Likewise.
63350         * m4/lstat.m4: Likewise.
63351         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63352
63353         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63354         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63355
63356 2000-05-26  Jim Meyering  <meyering@lucent.com>
63357
63358         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63359
63360 2000-05-24  Jim Meyering  <meyering@lucent.com>
63361
63362         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63363         autoconf requires that.
63364         * m4/lib-check.m4: Likewise.
63365         * m4/jm-macros.m4: Likewise.
63366         * m4/strftime.m4: Likewise.
63367
63368         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63369         AC_CHECK_DECLS, now that autoconf requires that.
63370
63371 2000-05-22  Jim Meyering  <meyering@lucent.com>
63372
63373         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63374         * m4/lstat.m4: Likewise.
63375
63376 2000-05-22  Jim Meyering  <meyering@lucent.com>
63377
63378         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63379
63380 2000-05-20  Jim Meyering  <meyering@lucent.com>
63381
63382         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63383         (jm_PREREQ): Use it.
63384
63385 2000-05-18  Jim Meyering  <meyering@lucent.com>
63386
63387         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63388         back, too, since it may have been modified by allocate_entry.
63389         (hash_delete): Rewrite to use neither the assignment operator
63390         nor the comma operator in an if-expression.
63391
63392 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63393
63394         * lib/closeout.c:
63395         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63396         Remove; no longer needed.
63397         "quotearg.h": Add include.
63398         (file_name): Do not bother to explicitly initialize to NULL; it's less
63399         efficient on some hosts.
63400         (close_stdout_status): Remove test as to whether stdout was already
63401         closed; it breaks for the case "echo x | sort >&-".
63402         Quote file name colons.
63403         Do not assume that _("write error") lacks format strings.
63404
63405 2000-05-15  Jim Meyering  <meyering@lucent.com>
63406
63407         * lib/version-etc.c (version_etc_copyright): Update the copyright
63408         string used in all --version output.
63409
63410 2000-05-14  Jim Meyering  <meyering@lucent.com>
63411
63412         * lib/closeout.c (close_stdout_set_file_name): New function.
63413         (close_stdout_status): Use new file-scoped global.
63414         Return right away if fstat says the stdout file descriptor is invalid.
63415         * lib/closeout.h (close_stdout_set_file_name): Declare.
63416
63417 2000-05-10  Jim Meyering  <meyering@lucent.com>
63418
63419         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63420         (close_stdout_set_status): New function.
63421         * lib/closeout.h (close_stdout_set_status): Declare.
63422
63423 2000-05-09  Jim Meyering  <meyering@lucent.com>
63424
63425         * m4/gettext.m4: Rename this...
63426         * m4/libintl.m4: ...to this.
63427
63428 2000-05-08  Jim Meyering  <meyering@lucent.com>
63429
63430         * lib/long-options.c: Don't include closeout.h.
63431         (parse_long_options): Don't call close_stdout for --version.
63432
63433 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63434
63435         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63436         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63437         2.1.3 bug.  This avoids a clash when files like regex.c define
63438         _GNU_SOURCE.
63439
63440 2000-05-06  Jim Meyering  <meyering@lucent.com>
63441
63442         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63443         (AC_REPLACE_FUNCS): Add strnlen.
63444
63445         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63446         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63447
63448         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63449         AC_SEARCH_LIBS call for nanosleep.
63450         (LIB_NANOSLEEP): Set and AC_SUBST.
63451
63452 2000-05-06  Jim Meyering  <meyering@lucent.com>
63453
63454         * lib/strnlen.c: Undefine __strnlen and strnlen.
63455         [!weak_alias]: Define __strnlen to strnlen.
63456
63457         * lib/atexit.c: New file, from libiberty.
63458
63459 2000-05-06  Jim Meyering  <meyering@lucent.com>
63460
63461         * lib/closeout.c (close_stdout_status): Also check for errors on the
63462         stderr stream.
63463
63464 2000-05-05  Jim Meyering  <meyering@lucent.com>
63465
63466         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63467         AC_SEARCH_LIBS call for clock_gettime.
63468         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63469
63470         * m4/search-libs.m4: Update from autoconf.
63471
63472         su doesn't work on Solaris 2.6.
63473         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63474         <shadow.h>.  Reported by Dragos Harabor.
63475
63476 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63477
63478         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63479         memcpy instead of xmalloc, xrealloc, path_concat.
63480         (locale_charset): Treat empty environment variables as absent.
63481         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63482
63483 2000-05-04  Jim Meyering  <meyering@lucent.com>
63484
63485         * lib/getopt.c: Update from glibc.
63486         * lib/obstack.c: Likewise.
63487         * lib/obstack.h: Likewise.
63488         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63489         file
63490
63491         * lib/regex.h: Likewise.
63492         * lib/strndup.c: Likewise.
63493         * lib/strnlen.c: New file, from glibc.
63494
63495 2000-05-03  Jim Meyering  <meyering@lucent.com>
63496
63497         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63498
63499 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63500
63501         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63502         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63503         compile-time test, rather than inspecting host and OS, to
63504         decide whether to define _LARGEFILE_SOURCE.
63505
63506 2000-05-01  Jim Meyering  <meyering@lucent.com>
63507
63508         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63509
63510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63511         Based on a patch from Bruno Haible.
63512
63513 2000-05-01  Jim Meyering  <meyering@lucent.com>
63514
63515         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63516
63517 2000-04-29  Jim Meyering  <meyering@lucent.com>
63518
63519         * lib/path-concat.c: Declare strdup only if it's not defined.
63520         * lib/canon-host.c: Likewise.
63521
63522 2000-04-28  Jim Meyering  <meyering@lucent.com>
63523
63524         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63525         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63526         is included first, then limits.h is included by locale.h by libintl.h.
63527         From John David Anglin.
63528
63529 2000-04-25  Jim Meyering  <meyering@lucent.com>
63530
63531         * lib/makepath.c (S_IRWXUGO): Define.
63532         (make_path): Always perform explicit chmod if MODE specifies any
63533         of the `special' permission bits.  Prompted by a bug report against
63534         install from Mate Wierdl and Joost van Baal.
63535
63536 2000-04-18  Jim Meyering  <meyering@lucent.com>
63537
63538         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63539         (jm_PREREQ): Use it.
63540
63541 2000-04-18  Jim Meyering  <meyering@lucent.com>
63542
63543         * lib/README: New file.
63544
63545         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63546         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63547
63548 2000-04-17  Jim Meyering  <meyering@lucent.com>
63549
63550         Get it right :-)
63551         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63552         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63553         Suggestion from Akim Demaille.
63554
63555 2000-04-17  Jim Meyering  <meyering@lucent.com>
63556
63557         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63558         the definition of it to rpl_strftime also defined-away the system's
63559         declaration.
63560
63561 2000-04-15  Jim Meyering  <meyering@lucent.com>
63562
63563         Use `C' to denote so-called `contiguous' files, the same way
63564         that tar does.
63565         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63566         (ftypelet): Use S_ISCTG.
63567         From Michael Deutschmann.
63568
63569 2000-04-14  Jim Meyering  <meyering@lucent.com>
63570
63571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63572         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63573         clobbered.
63574
63575 2000-04-14  Jim Meyering  <meyering@lucent.com>
63576
63577         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63578
63579 2000-04-13  Jim Meyering  <meyering@lucent.com>
63580
63581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63582         AH_VERBATIM to insert required #ifndef into config.h.in.
63583         Suggestion from Akim Demaille.
63584
63585 2000-04-12  Jim Meyering  <meyering@lucent.com>
63586
63587         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63588         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63589         Christian Krackowizer.
63590
63591         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63592         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63593         (AC_SYS_LARGEFILE): Require.
63594         (AM_C_PROTOTYPES): Require.
63595
63596 2000-04-08  Jim Meyering  <meyering@lucent.com>
63597
63598         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63599         names don't conflict.  Reported by Eli Zaretskii.
63600
63601 2000-04-07  Jim Meyering  <meyering@lucent.com>
63602
63603         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63604         sys/types.h, to work around system header problems on AIX 3.2.5.
63605         From Bruno Haible.
63606
63607 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63608
63609         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63610         bug.  Deal with the different error behavior of Irix iconv.
63611
63612 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63613
63614         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63615         IRIX if the installer said otherwise.
63616
63617 2000-04-05  Jim Meyering  <meyering@lucent.com>
63618
63619         Portability tweaks required for ultrix4.3.
63620         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63621         (jm_CHECK_DECLS): Add getutent to the list of functions.
63622         (_jm_DECL_HEADERS): Add utmpx.h.
63623         From John David Anglin.
63624
63625         * m4/strftime.m4: Back out the 2000-04-02 change.
63626         Instead of that change, simply undefine putenv in the test program.
63627
63628 2000-04-05  Jim Meyering  <meyering@lucent.com>
63629
63630         Portability tweaks required for ultrix4.3.
63631         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63632         getutent.
63633         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63634         * lib/canon-host.c: Declare strdup.
63635         * lib/path-concat.c: Likewise.
63636         From John David Anglin.
63637
63638 2000-04-04  Jim Meyering  <meyering@lucent.com>
63639
63640         Be more DOS 8.3-friendly.
63641         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63642         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63643         * lib/Makefile.am: Reflect renaming.
63644         Reported by Eli Zaretskii.
63645
63646         Use a temporary file name that won't clash with `charset.alias'
63647         in the DOS 8.3 name space.
63648         * lib/Makefile.am (charset_tmp): Define.
63649         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63650         (uninstall-local): Likewise.
63651         Reported by Eli Zaretskii.
63652
63653 2000-04-03  Jim Meyering  <meyering@lucent.com>
63654
63655         * m4/gettext.m4: Fix typo in comment.
63656
63657         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63658         textutils/configure.in).  Suggestion from Paul Eggert.
63659         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63660
63661 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63662
63663         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63664         variable in the shell rather than using putenv, which isn't
63665         portable.  This avoids the configure-time inter-test dependency
63666         on the potentially-renamed putenv function.
63667
63668 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63669
63670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63671         before checking struct stat.st_blksize, so that
63672         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63673
63674 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63675
63676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63677         since strftime.c uses HAVE_STRFTIME to decide whether to use
63678         the underlying strftime.
63679
63680 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63681
63682         * lib/time/strftime.c (my_strftime): Make sure we call the system
63683         strftime, not ourselves, when invoking the underlying strftime.
63684
63685 2000-03-24  Jim Meyering  <meyering@lucent.com>
63686
63687         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63688         (charset_alias): Define.
63689         (install-exec-local): Factor out common code.
63690         (uninstall-local): Split lines longer than 80.
63691         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63692         (SUFFIXES): Define.
63693         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63694         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63695
63696 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63697
63698         * lib/config.charset: Output a line containing "Packages using this
63699         file".
63700         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63701         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63702         ref-del.sed): New rules.
63703
63704 2000-03-17  Jim Meyering  <meyering@lucent.com>
63705
63706         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63707         Otherwise, include <strings.h>
63708
63709 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63710
63711         * lib/unicodeio.c (utf8_wctomb): New function.
63712         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63713         format instead of in UCS-4 with platform dependent endianness.
63714
63715 2000-03-10  Jim Meyering  <meyering@lucent.com>
63716
63717         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63718         From Marco Franzen.
63719
63720 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63721
63722         * lib/savedir.c (savedir): Work even if directory size is
63723         negative; this can happen with some screwy NFS configurations.
63724
63725 2000-03-06  Jim Meyering  <meyering@lucent.com>
63726
63727         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63728         if it's NULL (because we ran out of memory).  From Bruno Haible.
63729
63730 2000-03-05  Jim Meyering  <meyering@lucent.com>
63731
63732         * lib/localcharset.c ("path-concat.h"): Include.
63733         (get_charset_aliases): Use path_concat instead of ANSI string
63734         concatenation.
63735
63736         * lib/unicodeio.h (PARAMS): Define.
63737         Use it to guard prototype.
63738
63739 2000-03-04  Jim Meyering  <meyering@lucent.com>
63740
63741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63742         for lib/localcharset.c.
63743
63744 2000-03-04  Jim Meyering  <meyering@lucent.com>
63745
63746         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63747         installing into it.
63748         (uninstall-local): Uncomment this rule so `make distcheck' works
63749         once again.
63750
63751         * lib/unicodeio.c (<errno.h>): Include it.
63752         (errno): Declare if not defined.
63753
63754         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63755
63756         * lib/config.charset: New version, incorporating remarks from a linux
63757         i18n mailing list.  From Bruno Haible.
63758
63759 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63760
63761         * m4/codeset.m4: New file.
63762         * m4/iconv.m4: New file.
63763         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63764
63765 2000-03-03  Jim Meyering  <meyering@lucent.com>
63766
63767         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63768
63769 2000-03-02  Jim Meyering  <meyering@lucent.com>
63770
63771         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63772         the messages come out on separate lines.
63773
63774         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63775         rather than jm_CHECK_DECLARATIONS.
63776         * m4/decl.m4: Remove now-unused file.
63777
63778         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63779         geteuid.
63780
63781 2000-03-02  Jim Meyering  <meyering@lucent.com>
63782
63783         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63784
63785 2000-03-01  Jim Meyering  <meyering@lucent.com>
63786
63787         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63788         * lib/unicodeio.c: Likewise.
63789
63790 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63791
63792         * lib/config.charset: New file.
63793         * lib/localcharset.c: New file.
63794         * lib/unicodeio.h, lib/unicodeio.c: New files.
63795         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63796         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63797         (noinst_HEADERS): Add unicodeio.h.
63798         (all-local, install-exec-local, charset.alias): New targets.
63799
63800 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63801
63802         * lib/quotearg.c (ALERT_CHAR): New macro.
63803         (quotearg_buffer_restyled): Use it.
63804
63805 2000-02-27  Jim Meyering  <meyering@lucent.com>
63806
63807         * m4/check-decl.m4: Add getenv to the list.
63808
63809 2000-02-27  Jim Meyering  <meyering@lucent.com>
63810
63811         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63812         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63813
63814         * lib/backupfile.c: Guard inclusion of stdlib.h with
63815         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63816         Declare malloc if needed.
63817
63818         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63819         `#ifndef HAVE_DECL..'
63820         now that autoconf always defines the HAVE_DECL_ symbols.
63821         * lib/human.c: Likewise.
63822         * lib/same.c: Likewise.
63823         * lib/strtoumax.c: Likewise.
63824
63825         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63826         declaration check was not run.
63827         * lib/hash.c: Likewise.
63828         * lib/human.c: Likewise.
63829         * lib/same.c: Likewise.
63830         * lib/strtoumax.c: Likewise.
63831
63832         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63833         `.', then first look up the entire `.'-containing string as a login
63834         name.
63835
63836 2000-02-23  Jim Meyering  <meyering@lucent.com>
63837
63838         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63839         in place of my hack.
63840
63841 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63842
63843         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63844         (textint): New typedef.
63845         (parser_control): Member year changed from int to textint.
63846         All uses changed.
63847         (YYSTYPE): Removed; replaced by %union with int and textint members.
63848         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63849         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63850         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63851         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63852         (date, number, to_year): Use width of number in digits, not its value,
63853         to determine whether it's a 2-digit year, or a 2-digit time.
63854         (yylex): Store number of digits of numeric tokens.
63855         Reported by John Kendall.
63856
63857         (parser_control): Changed from struct parser_control to typedef (for
63858         consistency).  All uses changed.
63859
63860         (tID): Removed; not used.
63861         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63862
63863 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63864
63865         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63866         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63867
63868 2000-02-12  Jim Meyering  <meyering@lucent.com>
63869
63870         * lib/userspec.c (ISDIGIT): Define it.
63871         (isdigit): Remove definition.
63872         (is_number): Use ISDIGIT, not isdigit.
63873         <libintl.h>: Include.
63874         (_ and N_): Define.
63875         (parse_user_spec): Mark translatable strings.
63876
63877 2000-02-10  Jim Meyering  <meyering@lucent.com>
63878
63879         With these changes, nanosleep.[ch] are finally enough like the other
63880         lib/* replacement files to compile on a few more losing systems.
63881
63882         * lib/nanosleep.h: Don't include config.h.
63883         Remove prototype from declaration of nanosleep.
63884         (PARAMS): Remove now-unneeded definition.
63885         * lib/nanosleep.c: #undef nanosleep.
63886         (rpl_nanosleep): Rename from nanosleep.
63887
63888 2000-02-10  Jim Meyering  <meyering@lucent.com>
63889
63890         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63891         gnu_nanosleep to rpl_nanosleep.
63892
63893 2000-02-09  Jim Meyering  <meyering@lucent.com>
63894
63895         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63896         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63897
63898 2000-02-08  Akim Demaille  <akim@epita.fr>
63899
63900         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63901         `[' and `]' and remove uses of `changequote'.
63902         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63903         (AC_SYS_LARGEFILE): Likewise.
63904         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63905         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63906         of changequote.
63907         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63908         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63909         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63910         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63911
63912 2000-02-05  Jim Meyering  <meyering@lucent.com>
63913
63914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63915         Remove explicit use of AC_HEADER_TIME.  It is required by
63916         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63917         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63918         in autoconf whereby the expansion of the latter ended up preceding
63919         the expansion of its prerequisite, AC_HEADER_TIME.
63920         Reported by Volker Borchert.
63921
63922 2000-02-03  Jim Meyering  <meyering@lucent.com>
63923
63924         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63925
63926 2000-02-03  Jim Meyering  <meyering@lucent.com>
63927
63928         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63929         rather than with `#if HAVE_UTMPNAME'.
63930
63931 2000-02-02  Jim Meyering  <meyering@lucent.com>
63932
63933         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63934         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63935         Reported by Eli Zaretskii.
63936
63937 2000-02-01  Jim Meyering  <meyering@lucent.com>
63938
63939         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63940
63941 2000-01-31  Jim Meyering  <meyering@lucent.com>
63942
63943         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63944         functions.  Add the time.h and sys/time.h headers along with the
63945         AC_REQUIRE'ment of AC_HEADER_TIME.
63946
63947 2000-01-31  Jim Meyering  <meyering@lucent.com>
63948
63949         * lib/nanosleep.h (nanosleep): Guard declaration with
63950         `#if ! HAVE_DECL_NANOSLEEP'.
63951         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63952         the declaration in that vendor's sys/timers.h.
63953         Reported by Christian Krackowizer.
63954
63955         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63956         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63957         (ISPRINT): Likewise.
63958         Reported by Tom Tromey.
63959
63960 2000-01-30  Jim Meyering  <meyering@lucent.com>
63961
63962         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63963
63964         * m4/prereq.m4 (utmp_includes): Define.
63965         Check for ut_user and ut_name members in both struct utmpx
63966         and struct utmp.
63967
63968 2000-01-30  Jim Meyering  <meyering@lucent.com>
63969
63970         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63971         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63972         header files where only utmpx.ut_user is declared.
63973
63974         * lib/readutmp.h (UT_USER): Define.
63975
63976 2000-01-29  Jim Meyering  <meyering@lucent.com>
63977
63978         * m4/lib-check.m4: New file containing library-related checks from
63979         fileutils and sh-utils (textutils had none).
63980
63981 2000-01-28  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/perl.m4: Change format of warning message to look more like that
63984         from the missing script.  Suggestion from François Pinard.
63985
63986 2000-01-25  Jim Meyering  <meyering@lucent.com>
63987
63988         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63989         well as time.h in the compile check.
63990         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63991         Fix typo in cross-compiling case: s/yes/no/.
63992
63993 2000-01-23  Jim Meyering  <meyering@lucent.com>
63994
63995         * m4/jm-macros.m4: Move df-related tests here from
63996         fileutils/configure.in
63997
63998         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63999         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64000
64001         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64002         s/space/ac_fsusage_space/.
64003         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64004
64005         * m4/ftruncate.m4: New file (derived from part of
64006         fileutils/configure.in).
64007         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64008         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64009
64010         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64011         AC_SUBST these here, rather than just in sh-util/configure.in, so
64012         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64013         all the same.
64014         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64015         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64016         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64017         (AC_SUBST(POW_LIBM)): Likewise.
64018         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64019
64020 2000-01-23  Jim Meyering  <meyering@lucent.com>
64021
64022         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64023         obstack.c.
64024
64025 2000-01-22  Jim Meyering  <meyering@lucent.com>
64026
64027         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64028
64029         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64030
64031         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64032         configure.in
64033         (AC_CHECK_HEADERS): Likewise for sh-utils.
64034         (AC_CHECK_HEADERS): Likewise for textutils.
64035         Merge the three lists of headers.
64036
64037         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64038         from fileutils' configure.in.
64039
64040         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64041         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64042         check-decl.m4.
64043
64044         * m4/check-decl.m4: Use #if rather than #ifdef.
64045         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64046         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64047         (_jm_DECL_HEADERS): Define new function.
64048         (jm_CHECK_DECLARATIONS): Require it.
64049
64050 2000-01-22  Jim Meyering  <meyering@lucent.com>
64051
64052         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64053         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64054         Required for some AIX systems.  Reported by Christian Krackowizer.
64055         [TESTING] (main): New function.
64056
64057         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64058         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64059         letters.
64060
64061         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64062         iswprint.
64063
64064         * lib/strverscmp.c (ISDIGIT): Define.
64065         (strverscmp): Use ISDIGIT, not isdigit.
64066
64067 2000-01-19  Jim Meyering  <meyering@lucent.com>
64068
64069         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64070         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64071         defines `struct timespec' in <sys/time.h>
64072
64073         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64074         Thanks to Akim for explaining.
64075
64076 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64077
64078         * lib/nanosleep.c (nanosleep):
64079         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64080         POSIX.1 doesn't require SA_INTERRUPT and some systems
64081         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64082         it's been part of POSIX.1 since day 1 (in 1988).
64083
64084 2000-01-17  Jim Meyering  <meyering@lucent.com>
64085
64086         * lib/interlock: Remove unused file.  Reported by François Pinard.
64087
64088 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64089
64090         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64091         alert, backslash, formfeed, and vertical tab unnecessarily in
64092         shell quoting style.
64093
64094 2000-01-16  Jim Meyering  <meyering@lucent.com>
64095
64096         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64097         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64098         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64099         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64100
64101 2000-01-16  Jim Meyering  <meyering@lucent.com>
64102
64103         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64104         because the latter didn't work.
64105
64106 2000-01-15  Jim Meyering  <meyering@lucent.com>
64107
64108         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64109         (AC_REPLACE_FUNCS): Add memcpy and memset.
64110         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64111         Add strpbrk.
64112         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64113
64114 2000-01-12  Jim Meyering  <meyering@lucent.com>
64115
64116         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64117         (jm_PREREQ): Use it.
64118         (jm_PREREQ_READUTMP): New macro.
64119         (jm_PREREQ): Use it.
64120
64121 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64122
64123         Quote multibyte characters correctly.
64124         * m4/c-bs-a.m4: New file.
64125         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64126         (jm_PREREQ): Use it.
64127
64128 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64129
64130         * m4/uintmax_t.m4: Port to autoconf 2.13.
64131
64132 2000-01-08  Jim Meyering  <meyering@ascend.com>
64133
64134         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64135         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64136
64137 2000-01-04  Jim Meyering  <meyering@ascend.com>
64138
64139         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64140         jm_STRUCT_DIRENT_D_TYPE.
64141         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64142         jm_STRUCT_DIRENT_D_INO.
64143         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64144         jm_STRUCT_UTIMBUF.
64145         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64146         renamings.
64147         * m4/utime.m4: Likewise.
64148
64149         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64150         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64151
64152 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64153
64154         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64155         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64156
64157 2000-01-02  Jim Meyering  <meyering@ascend.com>
64158
64159         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64160         remember if this is necessary.
64161
64162 1999-12-26  Jim Meyering  <meyering@ascend.com>
64163
64164         * m4/jm-macros.m4: Use it here.
64165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64166
64167 1999-12-23  Jim Meyering  <meyering@ascend.com>
64168
64169         * m4/jm-macros.m4: Check for clock_gettime (moved from
64170         fileutils/configure.in)
64171         Check for gettimeofday.
64172
64173 1999-12-20  Jim Meyering  <meyering@ascend.com>
64174
64175         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64176         autoconf-2.14a-1999-12-20.
64177
64178 1999-12-19  Jim Meyering  <meyering@ascend.com>
64179
64180         * m4/lstat-slash.m4: New file.
64181         * m4/jm-macros.m4: Use the new macro:
64182         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64183
64184 1999-12-07  Jim Meyering  <meyering@ascend.com>
64185
64186         * m4/perl.m4: Require that File::Compare be available, too.
64187         Too many systems seem to lack it.
64188
64189         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64190         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64191
64192 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64193
64194         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64195         problem with the QNX 4.25 shell, which doesn't propagate exit
64196         status of failed commands inside shell assignments.
64197
64198 1999-11-17  Jim Meyering  <meyering@ascend.com>
64199
64200         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64201
64202 1999-11-07  Jim Meyering  <meyering@ascend.com>
64203
64204         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64205
64206 1999-11-06  Jim Meyering  <meyering@ascend.com>
64207
64208         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64209         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64210
64211 1999-11-05  Jim Meyering  <meyering@ascend.com>
64212
64213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64214         configure.in of textutils, fileutils, and sh-utils into this one
64215         (shared between those packages) file.
64216         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64217         AC_STRUCT_ST_BLKSIZE.
64218
64219 1999-11-03  Jim Meyering  <meyering@ascend.com>
64220
64221         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64222         of AC_CHECK_TYPE checks includes unistd.h.
64223         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64224         Suggestion from Akim Demaille.
64225
64226 1999-10-30  Jim Meyering  <meyering@ascend.com>
64227
64228         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64229         m4-quoted string.
64230         * m4/ls-mntd-fs.m4: Likewise.
64231         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64232         * m4/jm-winsz1.m4: Likewise.
64233
64234         * m4/const.m4: Remove file, since the fix made it into the experimental
64235         version of autoconf.
64236         * m4/mktime.m4: Likewise.
64237
64238         * m4/check-type.m4: Remove file, now that the latest version of
64239         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64240
64241         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64242         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64243         AC_CHECK_TYPE.
64244
64245 1999-10-04  Jim Meyering  <meyering@ascend.com>
64246
64247         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64248
64249 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64250
64251         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64252         2.95.1 bug with HP-UX 10.20.
64253
64254 1999-09-17  Jim Meyering  <meyering@ascend.com>
64255
64256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64257         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64258         due to missing strdup (against sh-utils-2.0).
64259
64260 1999-08-29  Jim Meyering  <meyering@ascend.com>
64261
64262         * m4/jm-macros.m4: Require jm_BISON.
64263         * m4/bison.m4: New file.
64264
64265 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64266
64267         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64268         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64269
64270 1999-08-05  Jim Meyering  <meyering@ascend.com>
64271
64272         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64273         to avoid conflicts with `conftest' on 8+3 filesystems.
64274         Suggestion from Eli Zaretskii.
64275
64276 1999-08-04  Jim Meyering  <meyering@ascend.com>
64277
64278         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64279         fileutils and sh-utils (textutils's getline test was inadequate).
64280         (AM_FUNC_GETLINE): Run this test.
64281         (AC_CHECK_FUNCS): Check for getdelim.
64282         Reported by Bob Proulx.
64283
64284 1999-08-02  Jim Meyering  <meyering@ascend.com>
64285
64286         * m4/jm-macros.m4: Add a comment.
64287
64288 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64289
64290         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64291         <inttypes.h> defines strtoumax as a macro (and not as a
64292         function).
64293
64294 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64295
64296         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64297         that we can shift, multiply and divide unsigned long long
64298         values; Ultrix cc can't do it.
64299
64300 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64301
64302         * m4/mktime.m4: New file, which is a preview of what should appear
64303         in the next public autoconf release.
64304
64305 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64306
64307         * m4/lfs.m4: Remove this file.
64308         * m4/largefile.m4: New file.  It contains the old contents of
64309         lfs.m4, except that all names with prefix AC_LFS have been
64310         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64311         compatible with future autoconf versions.  Also, some minor m4
64312         quoting problems have been fixed.
64313
64314 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64315
64316         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64317         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64318         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64319         and simplify the shell code.
64320
64321 1999-08-01  Jim Meyering  <meyering@ascend.com>
64322
64323         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64324         m4.
64325
64326 1999-07-20  Jim Meyering  <meyering@ascend.com>
64327
64328         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64329
64330 1999-07-15  Jim Meyering  <meyering@ascend.com>
64331
64332         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64333
64334 1999-05-22  Jim Meyering  <meyering@ascend.com>
64335
64336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64337
64338 1999-05-20  Jim Meyering  <meyering@ascend.com>
64339
64340         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64341         Add a colon after each `then' in case $4 is empty.
64342
64343 1999-05-16  Jim Meyering  <meyering@ascend.com>
64344
64345         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64346
64347 1999-05-10  Jim Meyering  <meyering@ascend.com>
64348
64349         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64350
64351         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64352         AC_FUNC_MKTIME.
64353
64354 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64355
64356         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64357
64358 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64359
64360         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64361         not CPPFLAGS, so that linking works correctly in IRIX.
64362
64363 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64364
64365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64366
64367 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64368
64369         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64370         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64372         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64373         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64374
64375         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64376
64377 1999-04-20  Jim Meyering  <meyering@ascend.com>
64378
64379         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64380         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64381         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64382
64383 1999-04-18  Jim Meyering  <meyering@ascend.com>
64384
64385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64386         * m4/jm-macros.m4: Use it.
64387
64388 1999-04-06  Jim Meyering  <meyering@ascend.com>
64389
64390         * m4/strftime.m4: Remove test for %f.
64391
64392 1999-03-29  Jim Meyering  <meyering@ascend.com>
64393
64394         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64395         superset of the AC_TYPE_* checks in the textutils, fileutils,
64396         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64397         AC_TYPE_PID_T.
64398
64399 1999-03-28  Jim Meyering  <meyering@ascend.com>
64400
64401         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64402         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64403         replaced e.g., in the *.sh files of the sh-utils.
64404
64405 1999-03-20  Jim Meyering  <meyering@ascend.com>
64406
64407         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64408         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64409         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64410
64411 1999-03-19  Jim Meyering  <meyering@ascend.com>
64412
64413         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64414
64415 1999-03-12  Jim Meyering  <meyering@ascend.com>
64416
64417         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64418
64419 1999-03-07  Jim Meyering  <meyering@ascend.com>
64420
64421         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64422         declared.
64423
64424 1999-02-17  Jim Meyering  <meyering@ascend.com>
64425
64426         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64427         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64428
64429 1999-02-07  Jim Meyering  <meyering@ascend.com>
64430
64431         * m4/group-member.m4: New file -- extracted from sh-utils'
64432         configure.in.
64433
64434         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64435         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64436
64437 1999-02-06  Jim Meyering  <meyering@ascend.com>
64438
64439         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64440         * m4/fnmatch.m4: Likewise.
64441         * m4/getgroups.m4: Likewise.
64442         * m4/lstat.m4: Likewise.
64443         * m4/malloc.m4: Likewise.
64444         * m4/putenv.m4: Likewise.
64445         * m4/realloc.m4: Likewise.
64446         * m4/regex.m4: Likewise.
64447         * m4/stat.m4: Likewise.
64448         * m4/strftime.m4: Likewise.
64449         Suggestion from Alain Magloire.
64450
64451         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64452         * m4/fnmatch.m4: Likewise.
64453         * m4/getgroups.m4: Likewise.
64454         * m4/getline.m4: Likewise.
64455         * m4/lstat.m4: Likewise.
64456         * m4/malloc.m4: Likewise.
64457         * m4/memcmp.m4: Likewise.
64458         * m4/putenv.m4: Likewise.
64459         * m4/realloc.m4: Likewise.
64460         * m4/regex.m4: Likewise.
64461         * m4/stat.m4: Likewise.
64462         * m4/strftime.m4: Likewise.
64463         Suggestion from Alain Magloire.
64464
64465         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64466         an argument.
64467
64468         * m4/regex.m4: Add a run-time Test for proper operation of
64469         re_compile_pattern.
64470
64471 1999-01-31  Jim Meyering  <meyering@ascend.com>
64472
64473         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64474
64475 1999-01-30  Jim Meyering  <meyering@ascend.com>
64476
64477         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64478
64479         * m4/jm-mktime.m4: Make this a wrapper around the official
64480         AM_FUNC_MKTIME rather than my private copy, now that the official one
64481         is up to date.
64482         * m4/mktime.m4: Remove file.
64483
64484         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64485         * m4/uptime.m4: Likewise.
64486         * m4/uintmax_t.m4: Likewise.
64487
64488 1999-01-28  Jim Meyering  <meyering@ascend.com>
64489
64490         * m4/jm-macros.m4: Use jm_AFS.
64491         * m4/afs.m4: New file (from fileutils' configure.in).
64492
64493         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64494         * m4/chown.m4: Likewise.
64495         * m4/d-ino.m4: Likewise.
64496         * m4/d-type.m4: Likewise.
64497         * m4/fnmatch.m4: Likewise.
64498         * m4/getgroups.m4: Likewise.
64499         * m4/gettext.m4: Likewise.
64500         * m4/jm-mktime.m4: Likewise.
64501         * m4/jm-winsz2.m4: Likewise.
64502         * m4/lcmessage.m4: Likewise.
64503         * m4/ls-mntd-fs.m4: Likewise.
64504         * m4/malloc.m4: Likewise.
64505         * m4/memcmp.m4: Likewise.
64506         * m4/putenv.m4: Likewise.
64507         * m4/realloc.m4: Likewise.
64508         * m4/st_mtim.m4: Likewise.
64509         * m4/strftime.m4: Likewise.
64510
64511 1999-01-16  Jim Meyering  <meyering@ascend.com>
64512
64513         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64514         (ARGMATCH_DIE_DECL): Define.
64515
64516 1999-01-12  Jim Meyering  <meyering@ascend.com>
64517
64518         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64519         Reported by Lars Hecking.
64520
64521 1999-01-10  Jim Meyering  <meyering@ascend.com>
64522
64523         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64524         gross kludge.
64525         * m4/inttypes_h.m4: Likewise.
64526         * m4/lstat.m4: Likewise.
64527         * m4/malloc.m4: Likewise.
64528         * m4/readdir.m4: Likewise.
64529         * m4/realloc.m4: Likewise.
64530         * m4/st_dm_mode.m4: Likewise.
64531         * m4/stat.m4: Likewise.
64532         * m4/utimbuf.m4: Likewise.
64533         * m4/utimes.m4: Likewise.
64534
64535         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64536         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64537         comments in config.h.in are meaningful.
64538
64539         * m4/jm-macros.m4: Require autoconf-2.13 here.
64540
64541         * m4/regex.m4: By default, don't use the included regex.c on systems
64542         with glibc 2.  Suggestion from Uli Drepper.
64543
64544 1999-01-02  Jim Meyering  <meyering@ascend.com>
64545
64546         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64547
64548 1998-12-18  Jim Meyering  <meyering@ascend.com>
64549
64550         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64551         Based on a suggestion from Lars Hecking.
64552
64553 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64554
64555         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64556
64557 1998-11-16  Jim Meyering  <meyering@ascend.com>
64558
64559         * m4/lfs.m4: Double-quote the `uname...` expression.
64560
64561 1998-11-14  Jim Meyering  <meyering@ascend.com>
64562
64563         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64564         * m4/stat.m4: Likewise.
64565
64566 1998-11-03  Jim Meyering  <meyering@ascend.com>
64567
64568         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64569         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64570
64571 1998-10-18  Jim Meyering  <meyering@ascend.com>
64572
64573         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64574
64575 1998-10-17  Jim Meyering  <meyering@ascend.com>
64576
64577         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64578         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64579         calls for those previously hard-coded headers.  Instead, take a new
64580         parameter.
64581         (jm_CHECK_DECLARATIONS): Reflect interface change.
64582         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64583         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64584
64585         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64586
64587 1998-10-14  Jim Meyering  <meyering@ascend.com>
64588
64589         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64590         instead of "TZ=America/Vancouver".  From Paul Eggert.
64591
64592 1998-10-11  Jim Meyering  <meyering@ascend.com>
64593
64594         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64595         This adds a test for a recently added compatibility fix for mktime.c.
64596         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64597
64598 1998-09-27  Jim Meyering  <meyering@ascend.com>
64599
64600         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64601
64602         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64603         ../configure.in, including a change from Gordon Matzigkeit to allow
64604         cross-compiling for the Hurd.
64605
64606         * m4/glibc.m4: New file/macro to test for the GNU C Library
64607         versions 1 and 2.  From Gordon Matzigkeit.
64608         Indent.
64609
64610 1998-09-21  Jim Meyering  <meyering@ascend.com>
64611
64612         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64613
64614 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64615
64616         Port nanosecond-resolution times to UnixWare 2.1.2 and
64617         pedantic Solaris 2.6.
64618
64619         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64620         AC_STRUCT_ST_MTIM.
64621         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64622         Generate name of ns member, instead of just 1 or undef.
64623         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64624
64625 1998-08-15  Jim Meyering  <meyering@ascend.com>
64626
64627         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64628         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64629         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64630         instead of jm_TYPE_SSIZE_T.
64631
64632 1998-08-12  Jim Meyering  <meyering@ascend.com>
64633
64634         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64635
64636 1998-08-02  Jim Meyering  <meyering@ascend.com>
64637
64638         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64639         in acconfig.h manually.
64640
64641 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64642
64643         * m4/st_mtim.m4: New file.
64644
64645 1998-07-28  Jim Meyering  <meyering@ascend.com>
64646
64647         * m4/utimes.m4: Undef stat.
64648
64649 1998-07-25  Jim Meyering  <meyering@ascend.com>
64650
64651         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64652         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64653
64654 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64655
64656         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64657         uid and gid actually remain unchanged.
64658
64659 1998-07-07  Jim Meyering  <meyering@ascend.com>
64660
64661         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64662
64663 1998-07-04  Jim Meyering  <meyering@ascend.com>
64664
64665         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64666         to prove that this macro can be used in packages without regex.c.
64667
64668 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64669
64670         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64671         is to be used.
64672
64673 1998-07-03  Jim Meyering  <meyering@ascend.com>
64674
64675         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64676
64677         * m4/gettext.m4: New file -- from gettext-0.10.35.
64678         * m4/lcmessage.m4: Likewise.
64679         * m4/progtest.m4: Likewise.
64680
64681         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64682         * m4/jm-macros.m4: Require the new macro.
64683
64684 1998-06-29  Jim Meyering  <meyering@ascend.com>
64685
64686         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64687         for the definition of NGROUPS (used in a system header included
64688         by sys/mount.h).
64689
64690 1998-06-28  Jim Meyering  <meyering@ascend.com>
64691
64692         * m4/ls-mntd-fs.m4: New file.
64693         * m4/fstypename.m4: New file.
64694
64695         * m4/jm-macros.m4: Require the new macro.
64696         * m4/jm-glibc-io.m4: New file.
64697
64698 1998-05-19  Jim Meyering  <meyering@ascend.com>
64699
64700         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64701         * m4/lchown.m4: New file.
64702
64703         * m4/Makefile.am.in: New file.
64704         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64705
64706 1998-05-14  Jim Meyering  <meyering@ascend.com>
64707
64708         * m4/Makefile.am (EXTRA_DIST): Add them.
64709         * m4/jm-macros.m4: New file.
64710         * m4/utimbuf.m4: New file.
64711
64712 1998-05-12  Jim Meyering  <meyering@ascend.com>
64713
64714         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64715
64716 1998-05-11  Jim Meyering  <meyering@ascend.com>
64717
64718         * m4/isc-posix.m4: New file.
64719
64720 1998-05-10  Jim Meyering  <meyering@ascend.com>
64721
64722         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64723
64724 1998-05-09  Jim Meyering  <meyering@ascend.com>
64725
64726         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64727         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64728         with automake.
64729
64730         * m4/ssize_t.m4: New file.
64731         * m4/mktime.m4: Remove file -- the new automake has this now.
64732
64733 1998-04-26  Jim Meyering  <meyering@ascend.com>
64734
64735         * m4/assert.m4: New file.
64736         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64737
64738 1998-04-05  Jim Meyering  <meyering@ascend.com>
64739
64740         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64741         (jm_PREREQ): Use it here.
64742
64743 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64744
64745         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64746         in acconfig.h.
64747
64748 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64749
64750         * m4/prereq.m4: New file.
64751         * m4/error.m4: New file.
64752         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64753
64754 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64755
64756         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64757         cache-check for the same variable -- that defeated the purpose of
64758         the test; the test program was never run.  This was a problem only
64759         on systems with losing getline functions -- HP-UX 10.20 is one.
64760         Reported by Bjorn Helgaas.
64761
64762 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64763
64764         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64765
64766 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64767
64768         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64769
64770         * m4/const.m4: New file.  Use an initializer in this declaration
64771         typedef int charset[2]; const charset x;
64772         Reported by Bob Glickstein.
64773
64774 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64775
64776         * m4/chown.m4: Fix reversed types on -1 args to chown.
64777         From Kaveh Ghazi.
64778
64779 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64780
64781         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64782         Add lseek and memchr.
64783
64784         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64785         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64786         have a 20-character limit on names.
64787
64788 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64789
64790         * m4/inttypes_h.m4: New file.
64791         * m4/uintmax_t.m4: New file.
64792         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64793
64794
64795         -----
64796
64797         Local Variables:
64798         coding: utf-8
64799         End:
64800
64801         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64802
64803         Copying and distribution of this file, with or without
64804         modification, are permitted provided the copyright notice
64805         and this notice are preserved.