Fix ioctl's protoype on glibc systems.
[pspp] / ChangeLog
1 2010-03-28  Bruno Haible  <bruno@clisp.org>
2
3         Fix ioctl's protoype on glibc systems.
4         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8         signature. If not, arrange to replace the ioctl function.
9         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10         REPLACE_IOCTL.
11         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
12         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13         Reported by Ludovic Courtès <ludo@gnu.org>.
14
15 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16
17         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19         made it so grep -r --include=GLOB* ... did not work.
20
21 2010-03-26  Jim Meyering  <meyering@redhat.com>
22             Eric Blake  <eblake@redhat.com>
23
24         maint.mk: prohibit use of test's -o and -a operators
25         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26
27 2010-03-28  Bruno Haible  <bruno@clisp.org>
28
29         Remove unused GNULIB_XYZ macro definitions.
30         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31         invocation.
32
33 2010-03-28  Bruno Haible  <bruno@clisp.org>
34
35         Mark privileged tests modules.
36         * modules/idpriv-drop-tests (Status): New section.
37         * modules/idpriv-droptemp-tests (Status): New section.
38
39 2010-03-28  Bruno Haible  <bruno@clisp.org>
40
41         Split C++ tests into separate tests modules.
42         * modules/dirent-c++-tests: New file, extracted from
43         modules/dirent-tests.
44         * modules/dirent-tests: Depend on it.
45         * modules/fcntl-h-c++-tests: New file, extracted from
46         modules/fcntl-h-tests.
47         * modules/fcntl-h-tests: Depend on it.
48         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
49         * modules/glob-tests: Depend on it.
50         * modules/iconv-h-c++-tests: New file, extracted from
51         modules/iconv-h-tests.
52         * modules/iconv-h-tests: Depend on it.
53         * modules/langinfo-c++-tests: New file, extracted from
54         modules/langinfo-tests.
55         * modules/langinfo-tests: Depend on it.
56         * modules/locale-c++-tests: New file, extracted from
57         modules/locale-tests.
58         * modules/locale-tests: Depend on it.
59         * modules/math-c++-tests: New file, extracted from modules/math-tests.
60         * modules/math-tests: Depend on it.
61         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
62         * modules/pty-tests: Depend on it.
63         * modules/search-c++-tests: New file, extracted from
64         modules/search-tests.
65         * modules/search-tests: Depend on it.
66         * modules/signal-c++-tests: New file, extracted from
67         modules/signal-tests.
68         * modules/signal-tests: Depend on it.
69         * modules/spawn-c++-tests: New file, extracted from
70         modules/spawn-tests.
71         * modules/spawn-tests: Depend on it.
72         * modules/stdio-c++-tests: New file, extracted from
73         modules/stdio-tests.
74         * modules/stdio-tests: Depend on it.
75         * modules/stdlib-c++-tests: New file, extracted from
76         modules/stdlib-tests.
77         * modules/stdlib-tests: Depend on it.
78         * modules/string-c++-tests: New file, extracted from
79         modules/string-tests.
80         * modules/string-tests: Depend on it.
81         * modules/sys_ioctl-c++-tests: New file, extracted from
82         modules/sys_ioctl-tests.
83         * modules/sys_ioctl-tests: Depend on it.
84         * modules/sys_select-c++-tests: New file, extracted from
85         modules/sys_select-tests.
86         * modules/sys_select-tests: Depend on it.
87         * modules/sys_socket-c++-tests: New file, extracted from
88         modules/sys_socket-tests.
89         * modules/sys_socket-tests: Depend on it.
90         * modules/sys_stat-c++-tests: New file, extracted from
91         modules/sys_stat-tests.
92         * modules/sys_stat-tests: Depend on it.
93         * modules/sys_time-c++-tests: New file, extracted from
94         modules/sys_time-tests.
95         * modules/sys_time-tests: Depend on it.
96         * modules/time-c++-tests: New file, extracted from modules/time-tests.
97         * modules/time-tests: Depend on it.
98         * modules/unistd-c++-tests: New file, extracted from
99         modules/unistd-tests.
100         * modules/unistd-tests: Depend on it.
101         * modules/wchar-c++-tests: New file, extracted from
102         modules/wchar-tests.
103         * modules/wchar-tests: Depend on it.
104         * modules/wctype-c++-tests: New file, extracted from
105         modules/wctype-tests.
106         * modules/wctype-tests: Depend on it.
107         Reported by Simon Josefsson.
108
109 2010-03-28  Bruno Haible  <bruno@clisp.org>
110
111         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
112         * gnulib-tool (func_exists_module): New function, extracted from
113         func_verify_module.
114         (func_verify_module): Use it.
115         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
116         'foo' only if 'foo' exists.
117         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
118         module.
119
120 2010-03-28  Bruno Haible  <bruno@clisp.org>
121
122         gnulib-tool: Add support for special categories of tests.
123         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
124         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
125         (func_usage): Document them.
126         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
127         inc_unportable_tests, inc_all_tests): New variables.
128         (func_acceptable): Consider these variables.
129         (func_modules_transitive_closure): Make it work when the 'Status' field
130         consists of multiple words.
131         (func_import): Store and restore the values of inc_cxx_tests,
132         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
133         inc_all_tests in gnulib-comp.m4.
134         (func_create_testdir): Set inc_all_tests to true.
135         * doc/gnulib.texi (Extra tests modules): New section.
136         Suggested by Jim Meyering.
137
138 2010-03-28  Bruno Haible  <bruno@clisp.org>
139
140         ansi-c++-opt: Allow turning off the C++ build by default.
141         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
142         gl_CXX_CHOICE_DEFAULT_NO is defined.
143         Requested by Eric Blake.
144
145 2010-03-28  Bruno Haible  <bruno@clisp.org>
146
147         unistd: Avoid #define replacements in C++ mode.
148         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
149         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
150         setsockopt, shutdown, select): In C++, attach a warning to the function
151         if possible, rather than #defining the symbol to a dysfunctional alias.
152         Reported by John W. Eaton <jwe@gnu.org>.
153
154 2010-03-28  Bruno Haible  <bruno@clisp.org>
155
156         Fix link errors on mingw.
157         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
158         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
159         $(LIBSOCKET).
160         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
161         $(LIBSOCKET).
162
163 2010-03-28  Bruno Haible  <bruno@clisp.org>
164             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
165
166         lib-ignore: Determine different options for different compilers.
167         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
168         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
169         Add comments.
170         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
171         * NEWS: Mention the change.
172
173 2010-03-27  Bruno Haible  <bruno@clisp.org>
174
175         Remove unused GNULIB_XYZ macro definitions.
176         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
177         * modules/fseek (configure.ac): Likewise.
178         * modules/ioctl (configure.ac): Likewise.
179         * modules/open (configure.ac): Likewise.
180         * modules/stdlib-safer (configure.ac): Likewise.
181
182 2010-03-27  Bruno Haible  <bruno@clisp.org>
183
184         Add a remark about certain modules.
185         * modules/malloc (Comment): New section.
186         * modules/realloc (Comment): Likewise.
187         * modules/sigpipe (Comment): Likewise.
188
189 2010-03-27  Bruno Haible  <bruno@clisp.org>
190
191         Resolve conflict between the two kinds of module indicators.
192         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
193         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
194         * modules/canonicalize (configure.ac): Invoke
195         gl_MODULE_INDICATOR_FOR_TESTS.
196         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
197         GNULIB_XYZ.
198         * tests/test-dirent-c++.cc: Likewise.
199         * tests/test-dirent-safer.c: Likewise.
200         * tests/test-dup2.c: Likewise.
201         * tests/test-fchdir.c: Likewise.
202         * tests/test-fcntl-h-c++.cc: Likewise.
203         * tests/test-getopt.c: Likewise.
204         * tests/test-getopt.h: Likewise.
205         * tests/test-langinfo-c++.cc: Likewise.
206         * tests/test-locale-c++.cc: Likewise.
207         * tests/test-math-c++.cc: Likewise.
208         * tests/test-pty-c++.cc: Likewise.
209         * tests/test-search-c++.cc: Likewise.
210         * tests/test-signal-c++.cc: Likewise.
211         * tests/test-spawn-c++.cc: Likewise.
212         * tests/test-stdio-c++.cc: Likewise.
213         * tests/test-stdlib-c++.cc: Likewise.
214         * tests/test-string-c++.cc: Likewise.
215         * tests/test-sys_ioctl-c++.cc: Likewise.
216         * tests/test-sys_select-c++.cc: Likewise.
217         * tests/test-sys_socket-c++.cc: Likewise.
218         * tests/test-sys_stat-c++.cc: Likewise.
219         * tests/test-sys_time-c++.cc: Likewise.
220         * tests/test-time-c++.cc: Likewise.
221         * tests/test-unistd-c++.cc: Likewise.
222         * tests/test-wchar-c++.cc: Likewise.
223         * tests/uninorm/test-u8-nfc.c: Likewise.
224         * tests/uninorm/test-u8-nfd.c: Likewise.
225         * tests/uninorm/test-u8-nfkc.c: Likewise.
226         * tests/uninorm/test-u8-nfkd.c: Likewise.
227         * tests/uninorm/test-u16-nfc.c: Likewise.
228         * tests/uninorm/test-u16-nfd.c: Likewise.
229         * tests/uninorm/test-u16-nfkc.c: Likewise.
230         * tests/uninorm/test-u16-nfkd.c: Likewise.
231         * tests/uninorm/test-u32-nfc.c: Likewise.
232         * tests/uninorm/test-u32-nfc-big.c: Likewise.
233         * tests/uninorm/test-u32-nfd.c: Likewise.
234         * tests/uninorm/test-u32-nfd-big.c: Likewise.
235         * tests/uninorm/test-u32-nfkc.c: Likewise.
236         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
237         * tests/uninorm/test-u32-nfkd.c: Likewise.
238         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
239         * tests/uninorm/test-u32-normalize-big.c: Likewise.
240
241 2010-03-27  Bruno Haible  <bruno@clisp.org>
242
243         Distinguish two kinds of module indicators.
244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
245         gl_MODULE_INDICATOR.
246         (gl_MODULE_INDICATOR): New macro.
247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
248         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
249         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
250         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
251         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
252         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
253         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
254         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
255         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
256         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
257         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
258         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
261         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
265         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
267         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
268         * modules/cloexec (configure.ac): Likewise.
269         * modules/getopt-gnu (configure.ac): Likewise.
270         * modules/uninorm/u8-normalize (configure.ac): Likewise.
271         * modules/uninorm/u16-normalize (configure.ac): Likewise.
272         * modules/uninorm/u32-normalize (configure.ac): Likewise.
273         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
274
275 2010-03-27  Bruno Haible  <bruno@clisp.org>
276
277         New module description field 'Comment'.
278         * gnulib-tool: New option --extract-comment.
279         (func_usage): Document it.
280         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
281         (func_get_comment): New function.
282         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
283
284 2010-03-27  Bruno Haible  <bruno@clisp.org>
285
286         Addendum to 2010-02-07 commit.
287         * gnulib-tool (func_usage): Document --extract-applicability option.
288
289 2010-03-27  Bruno Haible  <bruno@clisp.org>
290
291         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
292         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
293         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
294         rather than link errors.
295
296 2010-03-27  Bruno Haible  <bruno@clisp.org>
297
298         Avoid side effects from tests-related modules on the compilation of lib.
299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
300         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
301         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
302         parameter. Emit into AM_CPPFLAGS a definition of the designated C
303         macro.
304         (func_import): Define a witness macro. Assign it a value that depends
305         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
306         tests-related modules.
307         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
308         Reported by Jim Meyering.
309
310 2010-03-27  Bruno Haible  <bruno@clisp.org>
311
312         Factorize common .m4 code.
313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
314         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
315         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
316         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
318         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
319         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
322         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
323         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
324         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
325         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
326         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
327         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
328         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
329         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
330         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
332         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
333         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
335         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
336         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
337         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
338         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
339         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
340         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
341         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
343         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
344         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
345
346 2010-03-27  Bruno Haible  <bruno@clisp.org>
347
348         Fix a compilation error on Cygwin with g++ >= 4.3.
349         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
350         if it is undefined or if we alias it to chmod.
351         (lstat): Don't warn about the use of this function if it is undefined
352         or if we alias it to stat.
353         Reported by Simon Josefsson.
354
355 2010-03-27  Bruno Haible  <bruno@clisp.org>
356
357         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
358         * modules/getlogin (configure.ac): Update.
359
360         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
361         * modules/getlogin_r (configure.ac): Update.
362
363         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
365         * modules/inet_ntop (configure.ac): Update.
366
367         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
368         * modules/inet_pton (configure.ac): Update.
369
370         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
371         * modules/mbslen (configure.ac): Update.
372
373         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
374         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
375         * modules/forkpty (configure.ac): Update.
376         * modules/openpty (configure.ac): Update.
377
378 2010-03-26  Simon Josefsson  <simon@josefsson.org>
379
380         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
381         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
382
383 2010-03-25  Eric Blake  <eblake@redhat.com>
384
385         maint: use pragma consistently across replacement headers
386         * lib/ctype.in.h (system_header): Hoist for consistent placement.
387         * lib/dirent.in.h (system_header): Likewise.
388         * lib/errno.in.h (system_header): Likewise.
389         * lib/float.in.h (system_header): Likewise.
390         * lib/getopt.in.h (system_header): Likewise.
391         * lib/iconv.in.h (system_header): Likewise.
392         * lib/inttypes.in.h (system_header): Likewise.
393         * lib/langinfo.in.h (system_header): Likewise.
394         * lib/locale.in.h (system_header): Likewise.
395         * lib/math.in.h (system_header): Likewise.
396         * lib/netdb.in.h (system_header): Likewise.
397         * lib/netinet_in.in.h (system_header): Likewise.
398         * lib/pty.in.h (system_header): Likewise.
399         * lib/sched.in.h (system_header): Likewise.
400         * lib/se-selinux.in.h (system_header): Likewise.
401         * lib/search.in.h (system_header): Likewise.
402         * lib/spawn.in.h (system_header): Likewise.
403         * lib/stdarg.in.h (system_header): Likewise.
404         * lib/stdint.in.h (system_header): Likewise.
405         * lib/string.in.h (system_header): Likewise.
406         * lib/strings.in.h (system_header): Likewise.
407         * lib/sys_file.in.h (system_header): Likewise.
408         * lib/sys_ioctl.in.h (system_header): Likewise.
409         * lib/sys_socket.in.h (system_header): Likewise.
410         * lib/sys_times.in.h (system_header): Likewise.
411         * lib/sys_utsname.in.h (system_header): Likewise.
412         * lib/sys_wait.in.h (system_header): Likewise.
413         * lib/sysexits.in.h (system_header): Likewise.
414         * lib/unistd.in.h (system_header): Likewise.
415         * lib/wctype.in.h (system_header): Likewise.
416
417         arpa/inet: fix mingw compilation warning
418         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
419         Reported by Matthew Bolte.
420
421 2010-03-25  Bruno Haible  <bruno@clisp.org>
422
423         Avoid collision between gnulib wrapper and libintl wrapper.
424         * lib/printf.c (printf): Don't define if a printf wrapper is already
425         defined in intl/printf.c.
426         Reported by Michel Boaventura <michel@michelboaventura.com>.
427
428 2010-03-25  Bruno Haible  <bruno@clisp.org>
429
430         Use ANSI C.
431         * lib/readutmp.h (getutent): Provide ANSI C prototype.
432
433 2010-03-25  Bruno Haible  <bruno@clisp.org>
434
435         Minor formatting changes.
436         * lib/acosl.c: Insert space before function argument list.
437         * lib/argz.c: Likewise.
438         * lib/asinl.c: Likewise.
439         * lib/expl.c: Likewise.
440         * lib/gen-uni-tables.c: Likewise.
441         * lib/gettext.h: Likewise.
442         * lib/glthread/lock.h: Likewise.
443         * lib/tanl.c: Likewise.
444         * lib/uniname/uniname.c: Likewise.
445         * tests/test-idpriv-drop.c: Likewise.
446         * tests/test-idpriv-droptemp.c: Likewise.
447         * tests/test-lock.c: Likewise.
448         * tests/test-tls.c: Likewise.
449         * lib/argp-help.c: Insert space before function-like macro argument
450         list.
451         * lib/memcmp.c: Likewise.
452         * tests/test-base64.c: Likewise.
453         * lib/localename.c: Insert space before sizeof's argument list.
454         * lib/safe-alloc.h: Likewise.
455         * lib/file-set.h: Insert space before macro argument list.
456         * tests/test-argp.c: Likewise.
457         * lib/argp-namefrob.h: Insert space before function parameter list.
458         * lib/getaddrinfo.c: Likewise.
459         * lib/netdb.in.h: Likewise.
460         * lib/parse-duration.h: Likewise.
461         * lib/parse-duration.c: Likewise.
462         * lib/poll.c: Likewise.
463         * lib/select.c: Likewise.
464         * lib/trim.h: Likewise.
465         * tests/test-usleep.c: Likewise.
466         * lib/ldexpl.c: Insert space before function parameter list and before
467         function argument list.
468         * lib/logl.c: Likewise.
469         * lib/sqrtl.c: Likewise.
470         * lib/trim.c: Likewise.
471         * lib/cosl.c: Use GNU style indentation. Insert space before function
472         argument list.
473         * lib/sinl.c: Likewise.
474         * lib/tsearch.c: Insert space after 'for'.
475         Reported by Jim Meyering.
476
477 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
478
479         * maint.mk (sc_Wundef_boolean): Check for the presence of the
480         config header before grepping, as it's not present before
481         autoreconf/configure are run.  Reported by Simon Josefsson.
482
483 2010-03-23  Bruno Haible  <bruno@clisp.org>
484
485         pt_chown: Make it work with automake < 1.11.
486         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
487         Reported by Simon Josefsson.
488
489 2010-03-23  Bruno Haible  <bruno@clisp.org>
490
491         pt_chown: Don't depend on GPLed modules.
492         * lib/pt_chown.c: Don't include idpriv.h.
493         (main): Don't drop privileges.
494         * modules/pt_chown (Depends-on): Remove idpriv-drop.
495         Reported by Simon Josefsson.
496
497 2010-03-24  Simon Josefsson  <simon@josefsson.org>
498
499         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
500         suggestions from karl@freefriends.org (Karl Berry).
501
502 2010-03-22  Eric Blake  <eblake@redhat.com>
503
504         gethostname: further tweaks
505         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
506         are overriding gethostname.
507         Suggested by Bruno Haible.
508
509 2010-03-21  Bruno Haible  <bruno@clisp.org>
510
511         Fix comments.
512         * lib/forkpty.c (rpl_forkpty): Fix comment.
513         * lib/openpty.c (rpl_openpty): Likewise.
514         Reported by Eric Blake.
515
516 2010-03-22  Eric Blake  <eblake@redhat.com>
517
518         gethostname: fix build on mingw
519         * lib/unistd.in.h (includes): Work around fact that mingw
520         <winsock2.h> re-includes <unistd.h>, by avoiding any
521         redeclarations if we are being included by <winsock2.h>.
522         Reported by Matthias Bolte.
523
524 2010-03-21  Bruno Haible  <bruno@clisp.org>
525
526         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
527         * lib/forkpty.c (forkpty): New replacement function, from glibc with
528         modifications.
529         * lib/pty.in.h (forkpty): Update declaration. Add comments.
530         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
531         provide the replacement.
532         * modules/forkpty (Depends-on): Add openpty, login_tty.
533         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
534         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
535         * doc/glibc-functions/forkpty.texi: More supported platforms.
536         * config/srclist.txt: Add forkpty.c (commented).
537
538 2010-03-21  Bruno Haible  <bruno@clisp.org>
539
540         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
541         (Makefile.am): Verify that PTY_LIB is defined.
542
543         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
544
545 2010-03-21  Bruno Haible  <bruno@clisp.org>
546
547         Tests for module 'login_tty'.
548         * modules/login_tty-tests: New file.
549         * tests/test-login_tty.c: New file.
550
551         New module 'login_tty'.
552         * lib/login_tty.c: New file.
553         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
554         * modules/login_tty: New file.
555         * doc/glibc-functions/login_tty.texi: Mention the new module.
556
557 2010-03-21  Bruno Haible  <bruno@clisp.org>
558
559         login_tty: Documentation.
560         * doc/glibc-functions/login_tty.texi: New file.
561         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
562
563 2010-03-21  Bruno Haible  <bruno@clisp.org>
564
565         pty: Consistent macro naming.
566         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
567         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
568         * modules/pty (configure.ac): Update.
569
570 2010-03-21  Bruno Haible  <bruno@clisp.org>
571
572         Tests for openpty: Make stricter.
573         * tests/test-openpty.c (main): Add test of canonical processing and
574         erase.
575         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
576
577         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
578         * lib/openpty.c (openpty): New replacement function.
579         * lib/pty.in.h: Include <termios.h>.
580         (openpty): Update declaration. Add comments.
581         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
582         is not declared, arrange to provide the replacement. Check for _getpty
583         and posix_openpt.
584         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
585         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
586         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
587         * modules/pty-tests (test_pty_c___LDADD): New variable.
588         * doc/glibc-functions/openpty.texi: More supported platforms.
589
590 2010-03-21  Bruno Haible  <bruno@clisp.org>
591
592         setenv: Tweaks.
593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
594         the test program.
595         * doc/posix-functions/setenv.texi: Update platforms list.
596
597 2010-03-21  Bruno Haible  <bruno@clisp.org>
598
599         New module 'unlockpt'.
600         * lib/unlockpt.c: New file, from glibc with modifications.
601         * m4/unlockpt.m4: New file.
602         * modules/unlockpt: New file.
603         * lib/stdlib.in.h (unlockpt): New declaration.
604         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
605         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
606         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
607         HAVE_UNLOCKPT.
608         * doc/posix-functions/unlockpt.texi: Mention the new module.
609         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
610         * config/srclist.txt: Add unlockpt.c (commented).
611
612 2010-03-21  Jim Meyering  <meyering@redhat.com>
613
614         maint.mk: prohibit inclusion of "intprops.h" without use
615         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
616
617 2010-03-21  Bruno Haible  <bruno@clisp.org>
618
619         New module 'grantpt'.
620         * lib/grantpt.c: New file, from glibc with modifications.
621         * m4/grantpt.m4: New file.
622         * modules/grantpt: New file.
623         * lib/stdlib.in.h (grantpt): New declaration.
624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
626         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
627         HAVE_GRANTPT.
628         * doc/posix-functions/grantpt.texi: Mention the new module.
629         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
630         * config/srclist.txt: Add grantpt.c (commented).
631
632 2010-03-21  Bruno Haible  <bruno@clisp.org>
633
634         New module 'pt_chown'.
635         * lib/pt_chown.c: New file, from glibc with modifications.
636         * lib/pty-private.h: New file, from glibc with modifications.
637         * modules/pt_chown: New file.
638         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
639
640 2010-03-21  Bruno Haible  <bruno@clisp.org>
641
642         Tests for module 'ptsname'.
643         * modules/ptsname-tests: New file.
644         * tests/test-ptsname.c: New file.
645
646         New module 'ptsname'.
647         * lib/ptsname.c: New file, from glibc with modifications.
648         * m4/ptsname.m4: New file.
649         * modules/ptsname: New file.
650         * lib/stdlib.in.h (ptsname): New declaration.
651         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
652         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
653         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
654         HAVE_PTSNAME.
655         * doc/posix-functions/ptsname.texi: Mention the new module.
656         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
657         * config/srclist.txt: Add ptsname.c (commented).
658
659 2010-03-21  Bruno Haible  <bruno@clisp.org>
660
661         Tests for module 'ttyname_r'.
662         * modules/ttyname_r-tests: New file.
663         * tests/test-ttyname_r.c: New file.
664
665         New module 'ttyname_r'.
666         * lib/ttyname_r.c: New file.
667         * m4/ttyname_r.m4: New file.
668         * modules/ttyname_r: New file.
669         * lib/unistd.in.h (ttyname_r): New declaration.
670         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
671         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
672         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
673         HAVE_TTYNAME_R.
674         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
675         * doc/posix-functions/ttyname_r.texi: Mention the new module.
676
677 2010-03-20  Bruno Haible  <bruno@clisp.org>
678
679         signal: Undefine macro definitions in C++ mode.
680         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
681         sigfillset): Undefine macro definitions from the system header in C++
682         mode.
683         Reported by John W. Eaton <jwe@gnu.org>.
684
685 2010-03-20  Bruno Haible  <bruno@clisp.org>
686
687         Ensure no #include statements inside extern "C" { ... }.
688         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
689         contain #include statements.
690         * lib/time.in.h: Likewise.
691
692 2010-03-20  Bruno Haible  <bruno@clisp.org>
693
694         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
695         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
696         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
697         Reported by John W. Eaton <jwe@gnu.org>.
698
699 2010-03-20  Bruno Haible  <bruno@clisp.org>
700
701         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
702         Reported by Jim Meyering.
703
704 2010-03-20  Bruno Haible  <bruno@clisp.org>
705
706         pipe: Set errno upon failure.
707         * lib/pipe.h: Specify that when -1 is returned, errno is set.
708         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
709         errno value in error message.
710
711 2010-03-20  Bruno Haible  <bruno@clisp.org>
712             Jim Meyering  <meyering@redhat.com>
713
714         lchown: Avoid "unused variable" warning.
715         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
716
717 2010-03-20  Bruno Haible  <bruno@clisp.org>
718
719         Work around unlink() bug on MacOS X 10.5.6.
720         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
721         attempting to unlink a parent directory.
722         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
723         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
724         activate for the replacement function.
725         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
726
727 2010-03-20  Bruno Haible  <bruno@clisp.org>
728
729         Fix link errors on Solaris 8.
730         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
731         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
732
733 2010-03-19  Jim Meyering  <meyering@redhat.com>
734
735         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
736         The _LIBC implementation of build_range_exp correctly honors the
737         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
738         However, the non-_LIBC implementation would ignore that syntax-bit
739         flag and return REG_ERANGE unconditionally.
740         This change makes it honor that flag.
741         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
742         Make two pointer parameters "const".
743         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
744         (parse_bracket_exp): Update caller.
745
746         regex.m4: correct the reversed range endpoint ([b-a]) test
747         * m4/regex.m4: When requiring that [b-a] evoke failure,
748         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
749         test pass once again for x86-based systems.
750
751 2010-03-19  Bruno Haible  <bruno@clisp.org>
752
753         scandir: Fix link error on Solaris 8.
754         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
755         macros.
756
757 2010-03-19  Bruno Haible  <bruno@clisp.org>
758
759         getusershell: Fix documentation.
760         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
761         module.
762         * doc/glibc-functions/setusershell.texi: Likewise.
763
764         getusershell: Provide declaration, missing on Solaris 9.
765         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
766         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
767         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
768         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
770         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
771         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
772         HAVE_GETUSERSHELL.
773         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
774
775 2010-03-19  Bruno Haible  <bruno@clisp.org>
776
777         wctype: Provide iswblank function.
778         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
779         exists and is fine.
780         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
781         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
782         * tests/test-wctype.c (main): Re-enable the iswblank tests.
783         * doc/posix-functions/iswblank.texi: Update.
784
785 2010-03-19  Bruno Haible  <bruno@clisp.org>
786
787         Tests of module 'pty' in C++ mode.
788         * modules/pty-tests: New file.
789         * tests/test-pty-c++.cc: New file.
790         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
791
792 2010-03-19  Eric Blake  <eblake@redhat.com>
793
794         logb: fix documentation
795         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
796         1.5 declaration bug.
797
798         forkpty, openpty: prefer glibc's const-safe prototype
799         * lib/forkpty.c (rpl_forkpty): New file.
800         * lib/openpty.c (rpl_openpty): Likewise.
801         * modules/forkpty (Files): Distribute it.
802         * modules/openpty (Files): Likewise.
803         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
804         check...
805         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
806         replacement for for non-const BSD signature.
807         * modules/pty (Makefile.am): Substitute witnesses.
808         * lib/pty.in.h (forkpty, openpty): Declare replacements.
809         * tests/test-forkpty.c: Update signature check.
810         * tests/test-openpty.c: Likewise.
811         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
812         * doc/glibc-functions/openpty.texi (openpty): Likewise.
813
814         forkpty, openpty: split functions into new modules
815         * modules/pty (Makefile.am): Substitute new witnesses.
816         (Libraries): Move library detection...
817         * modules/forkpty: ...into new module.
818         * modules/openpty: Another new module.
819         * modules/pty-tests: Rename and split...
820         * modules/forkpty-tests: ...to this...
821         * modules/openpty-tests: ...and this.
822         * tests/test-pty.c: Rename and split...
823         * tests/test-forkpty.c: ...to this...
824         * tests/test-openpty.c: ...and this.
825         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
826         (gl_PTY): Split library searching...
827         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
828         (gl_FORKPTY, gl_OPENPTY): New macros.
829         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
830         * NEWS: Mention the split.
831         * MODULES.html.sh (Misc): Document the modules.
832         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
833         * doc/glibc-functions/openpty.texi (openpty): Likewise.
834
835         pty: improve replacement header
836         * lib/pty.in.h: New file.
837         * modules/pty (Files): Ship it.
838         (Makefile.am): Always build replacement.
839         * m4/pty.m4: Rename...
840         * m4/pty_h.m4: ...to this.
841         (gl_PTY): Modernize setting of witness macros; update check of
842         forkpty to take proper advantage of cache.
843         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
844
845         getopt: avoid compiler warning
846         * lib/getopt.c (attribute_hidden): Remove unused macro.
847
848 2010-03-18  Bruno Haible  <bruno@clisp.org>
849
850         Fix link errors on Solaris 8.
851         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
852         * modules/search-tests (test_search_c___LDADD): Likewise.
853         * modules/signal-tests (test_signal_c___LDADD): Likewise.
854         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
855         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
856         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
857         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
858         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
859         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
860
861 2010-03-18  Bruno Haible  <bruno@clisp.org>
862
863         Fix bug introduced on 2010-03-14.
864         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
865         (gl_SPAWN_H): Require it.
866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
867         Reported by Simon Josefsson.
868
869 2010-03-18  Bruno Haible  <bruno@clisp.org>
870
871         Fix typo introduced on 2009-12-31.
872         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
873         posix_spawn_file_actions_adddup2.
874
875 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
876         and Eric Blake  <eblake@redhat.com>
877
878         test-vc-list-files-git: make more robust
879         * tests/test-vc-list-files-git.sh: Unset problematic environment
880         variables.  Chain commands together.
881
882 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
883
884         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
885         `AC_CHECK_DECL' invocation.
886
887 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
888
889         * lib/inttostr.c (inttostr): Make sure the invocation of verify
890         appears before executable statements. Suggested by Petr Sumbera
891         <Petr.Sumbera@Sun.COM>.
892
893 2010-03-14  Bruno Haible  <bruno@clisp.org>
894
895         * tests/test-flock.c (test_exclusive): Comment out a test that causes
896         portability problems. Instead use a simpler test.
897         (main): Check that invalid arguments are rejected only on Linux.
898
899 2010-03-14  Bruno Haible  <bruno@clisp.org>
900
901         Fix bug introduced on 2009-12-31.
902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
903         gl_PREREQ_SYS_H_WINSOCK2 always.
904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
905         SYS_SOCKET_H variable.
906         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
907         Update comments.
908         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
909         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
913
914 2010-03-14  Bruno Haible  <bruno@clisp.org>
915
916         Fix values returned by sinl, cosl.
917         * lib/trigl.h: Add specification comments.
918         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
919         that combines the values from the precomputed table with the values of
920         the Chebyshev polynomials.
921
922 2010-03-14  Bruno Haible  <bruno@clisp.org>
923
924         Fix compilation error when modules 'posix_spawn[p]' are not used.
925         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
926         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
927
928 2010-03-14  Bruno Haible  <bruno@clisp.org>
929
930         Fix compilation error on mingw when module 'time_r' is not used.
931         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
932         is 1.
933         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
934         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
935         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
937
938 2010-03-14  Bruno Haible  <bruno@clisp.org>
939
940         Fix compilation error with Sun C.
941         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
942         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
943         instead of GCC specific ULONG_LONG_MAX.
944         * lib/xstrtoll.c: Likewise.
945         * lib/xstrtoull.c: Likewise.
946
947 2010-03-13  Bruno Haible  <bruno@clisp.org>
948
949         Allow the user to disable C++ code and tests.
950         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
951         (gl_PROG_ANSI_CXX): Require it.
952
953 2010-03-13  Bruno Haible  <bruno@clisp.org>
954
955         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
956         cases.
957
958 2010-03-13  Bruno Haible  <bruno@clisp.org>
959
960         Test that gnulib does not break the standard C++ headers.
961         * tests/test-locale-c++2.cc: New file.
962         * modules/locale-tests (Files): Add it.
963         (Makefile.am): Compile it for test-locale-c++.
964         * tests/test-math-c++2.cc: New file.
965         * modules/math-tests (Files): Add it.
966         (Makefile.am): Compile it for test-math-c++.
967         * tests/test-signal-c++2.cc: New file.
968         * modules/signal-tests (Files): Add it.
969         (Makefile.am): Compile it for test-signal-c++.
970         * tests/test-stdio-c++2.cc: New file.
971         * modules/stdio-tests (Files): Add it.
972         (Makefile.am): Compile it for test-stdio-c++.
973         * tests/test-stdlib-c++2.cc: New file.
974         * modules/stdlib-tests (Files): Add it.
975         (Makefile.am): Compile it for test-stdlib-c++.
976         * tests/test-string-c++2.cc: New file.
977         * modules/string-tests (Files): Add it.
978         (Makefile.am): Compile it for test-string-c++.
979         * tests/test-time-c++2.cc: New file.
980         * modules/time-tests (Files): Add it.
981         (Makefile.am): Compile it for test-time-c++.
982         Reported by John W. Eaton <jwe@gnu.org>.
983
984 2010-03-13  Bruno Haible  <bruno@clisp.org>
985
986         * gnulib-tool (func_usage): Clarify which options are available for
987         --create-testdir and --create-megatestdir.
988
989 2010-03-13  Bruno Haible  <bruno@clisp.org>
990
991         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
992         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
993         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
994         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
995         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
996         when appropriate.
997         Reported by Jim Meyering.
998
999 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1000
1001         * gnulib-tool (func_import): Explain origin of code.
1002
1003 2010-03-12  Bruno Haible  <bruno@clisp.org>
1004
1005         Fix problem with automake's definition of CXXLINK.
1006         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1007         Reported by Simon Josefsson and Ludovic Courtès.
1008
1009 2010-03-12  Bruno Haible  <bruno@clisp.org>
1010
1011         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1012         stable releases.
1013
1014 2010-03-11  Bruno Haible  <bruno@clisp.org>
1015
1016         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1017         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1018         whether the system provides one variant or multiple variants of the
1019         function.
1020         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1021         C++ compilers.
1022         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1023         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1024         Reported by Jim Meyering.
1025
1026 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1027
1028         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1029
1030 2010-03-08  Bruno Haible  <bruno@clisp.org>
1031
1032         gnulib-tool: Add support for --libtool in --create-testdir.
1033         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1034         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1035
1036 2010-03-08  Eric Blake  <eblake@redhat.com>
1037
1038         gnulib-tool.texi: mention possibility of git submodule
1039         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1040         submodules.
1041         * doc/.gitignore: Ignore another generated file.
1042
1043 2010-03-08  Karl Berry  <karl@gnu.org>
1044
1045         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1046         of committing gnulib files while skipping others.
1047
1048 2010-03-07  Bruno Haible  <bruno@clisp.org>
1049
1050         Tests of module 'wctype' in C++ mode.
1051         * tests/test-wctype-c++.cc: New file.
1052         * modules/wctype-tests (Files): Add it and tests/signature.h.
1053         (Depends-on): Add ansi-c++-opt.
1054         (Makefile.am): Arrange to compile and run test-wctype-c++.
1055
1056         Tests of module 'wchar' in C++ mode.
1057         * tests/test-wchar-c++.cc: New file.
1058         * modules/wchar-tests (Files): Add it and tests/signature.h.
1059         (Depends-on): Add ansi-c++-opt.
1060         (Makefile.am): Arrange to compile and run test-wchar-c++.
1061         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1062         gl_MODULE_INDICATOR.
1063
1064         Tests of module 'unistd' in C++ mode.
1065         * tests/test-unistd-c++.cc: New file.
1066         * modules/unistd-tests (Files): Add it and tests/signature.h.
1067         (Depends-on): Add ansi-c++-opt.
1068         (Makefile.am): Arrange to compile and run test-unistd-c++.
1069         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1070         gl_MODULE_INDICATOR.
1071
1072         Tests of module 'time' in C++ mode.
1073         * tests/test-time-c++.cc: New file.
1074         * modules/time-tests (Files): Add it and tests/signature.h.
1075         (Depends-on): Add ansi-c++-opt.
1076         (Makefile.am): Arrange to compile and run test-time-c++.
1077         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1078
1079         Tests of module 'sys_time' in C++ mode.
1080         * tests/test-sys_time-c++.cc: New file.
1081         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1082         (Depends-on): Add ansi-c++-opt.
1083         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1084         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1085         gl_MODULE_INDICATOR.
1086
1087         Tests of module 'sys_stat' in C++ mode.
1088         * tests/test-sys_stat-c++.cc: New file.
1089         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1090         (Depends-on): Add ansi-c++-opt.
1091         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1092         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1093         gl_MODULE_INDICATOR.
1094
1095         Tests of module 'sys_socket' in C++ mode.
1096         * tests/test-sys_socket-c++.cc: New file.
1097         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1098         (Depends-on): Add ansi-c++-opt.
1099         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1101         gl_MODULE_INDICATOR.
1102
1103         Tests of module 'sys_select' in C++ mode.
1104         * tests/test-sys_select-c++.cc: New file.
1105         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1106         (Depends-on): Add ansi-c++-opt.
1107         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1108         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1109         gl_MODULE_INDICATOR.
1110
1111         Tests of module 'sys_ioctl' in C++ mode.
1112         * tests/test-sys_ioctl-c++.cc: New file.
1113         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1114         (Depends-on): Add ansi-c++-opt.
1115         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1117         gl_MODULE_INDICATOR.
1118
1119         Tests of module 'string' in C++ mode.
1120         * tests/test-string-c++.cc: New file.
1121         * modules/string-tests (Files): Add it and tests/signature.h.
1122         (Depends-on): Add ansi-c++-opt.
1123         (Makefile.am): Arrange to compile and run test-string-c++.
1124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1125         gl_MODULE_INDICATOR.
1126
1127         Tests of module 'stdlib' in C++ mode.
1128         * tests/test-stdlib-c++.cc: New file.
1129         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1130         (Depends-on): Add ansi-c++-opt.
1131         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1132         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1133         gl_MODULE_INDICATOR.
1134
1135         Tests of module 'stdio' in C++ mode.
1136         * tests/test-stdio-c++.cc: New file.
1137         * modules/stdio-tests (Files): Add it and tests/signature.h.
1138         (Depends-on): Add ansi-c++-opt.
1139         (Makefile.am): Arrange to compile and run test-stdio-c++.
1140         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1141         gl_MODULE_INDICATOR.
1142
1143         Tests of module 'spawn' in C++ mode.
1144         * tests/test-spawn-c++.cc: New file.
1145         * modules/spawn-tests (Files): Add it and tests/signature.h.
1146         (Depends-on): Add ansi-c++-opt.
1147         (Makefile.am): Arrange to compile and run test-spawn-c++.
1148         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1149         gl_MODULE_INDICATOR.
1150
1151         Tests of module 'signal' in C++ mode.
1152         * tests/test-signal-c++.cc: New file.
1153         * modules/signal-tests (Files): Add it and tests/signature.h.
1154         (Depends-on): Add ansi-c++-opt.
1155         (Makefile.am): Arrange to compile and run test-signal-c++.
1156         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1157         gl_MODULE_INDICATOR.
1158
1159         Tests of module 'search' in C++ mode.
1160         * tests/test-search-c++.cc: New file.
1161         * modules/search-tests (Files): Add it and tests/signature.h.
1162         (Depends-on): Add ansi-c++-opt.
1163         (Makefile.am): Arrange to compile and run test-search-c++.
1164         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1165         gl_MODULE_INDICATOR.
1166
1167         Tests of module 'math' in C++ mode.
1168         * tests/test-math-c++.cc: New file.
1169         * modules/math-tests (Files): Add it and tests/signature.h.
1170         (Depends-on): Add ansi-c++-opt.
1171         (Makefile.am): Arrange to compile and run test-math-c++.
1172         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1173
1174         Tests of module 'locale' in C++ mode.
1175         * tests/test-locale-c++.cc: New file.
1176         * modules/locale-tests (Files): Add it and tests/signature.h.
1177         (Depends-on): Add ansi-c++-opt.
1178         (Makefile.am): Arrange to compile and run test-locale-c++.
1179         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1180         gl_MODULE_INDICATOR.
1181
1182         Tests of module 'langinfo' in C++ mode.
1183         * tests/test-langinfo-c++.cc: New file.
1184         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1185         (Depends-on): Add ansi-c++-opt.
1186         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1187         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1188         gl_MODULE_INDICATOR.
1189
1190         Tests of module 'iconv-h' in C++ mode.
1191         * tests/test-iconv-h-c++.cc: New file.
1192         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1193         (Depends-on): Add ansi-c++-opt.
1194         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1195
1196         Tests of module 'glob' in C++ mode.
1197         * tests/test-glob-c++.cc: New file.
1198         * modules/glob-tests (Files): Add it.
1199         (Depends-on): Add ansi-c++-opt.
1200         (Makefile.am): Arrange to compile and run test-glob-c++.
1201
1202         Tests of module 'fcntl-h' in C++ mode.
1203         * tests/test-fcntl-h-c++.cc: New file.
1204         * modules/fcntl-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-fcntl-h-c++.
1207         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1208         gl_MODULE_INDICATOR.
1209
1210         Tests of module 'dirent' in C++ mode.
1211         * tests/test-dirent-c++.cc: New file.
1212         * modules/dirent-tests (Files): Add it and tests/signature.h.
1213         (Depends-on): Add ansi-c++-opt.
1214         (Makefile.am): Arrange to compile and run test-dirent-c++.
1215         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1216         gl_MODULE_INDICATOR.
1217
1218         New module 'ansi-c++-opt'.
1219         * modules/ansi-c++-opt: New file.
1220         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1221
1222         Document C++ namespace mode.
1223         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1224
1225         wctype: Avoid #define replacements in C++ mode.
1226         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1228         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1229         In C++, define a namespaced alias symbol.
1230         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1231         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1232         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1233         rule.
1234
1235         wchar: Avoid #define replacements in C++ mode.
1236         * lib/wchar.in.h: Include c++defs.h.
1237         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1238         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1239         symbol.
1240         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1241         * modules/wchar (Depends-on): Add c++defs.
1242         (Makefile.am): Update wchar.h rule.
1243
1244         unistd: Avoid #define replacements in C++ mode.
1245         * lib/unistd.in.h: Include c++defs.h.
1246         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1247         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1248         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1249         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1250         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1251         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1252         symbol.
1253         (environ): Update.
1254         * modules/unistd (Depends-on): Add c++defs.
1255         (Makefile.am): Update unistd.h rule.
1256
1257         time: Avoid #define replacements in C++ mode.
1258         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1259         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1260         define a namespaced alias symbol.
1261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1262         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1263         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1264         * modules/time (Depends-on): Add c++defs, warn-on-use.
1265         (Makefile.am): Update time.h rule.
1266         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1267         * modules/nanosleep (configure.ac): Likewise.
1268         * modules/strptime (configure.ac): Likewise.
1269         * modules/timegm (configure.ac): Likewise.
1270
1271         sys_time: Avoid #define replacements in C++ mode.
1272         * lib/sys_time.in.h: Include c++defs.h.
1273         (gettimeofday): In C++, define a namespaced alias symbol.
1274         * modules/sys_time (Depends-on): Add c++defs.
1275         (Makefile.am): Update sys/time.h rule.
1276
1277         sys_stat: Avoid #define replacements in C++ mode.
1278         * lib/sys_stat.in.h: Include c++defs.h.
1279         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1280         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1281         namespaced alias symbol.
1282         In C++, define a namespaced alias symbol.
1283         * modules/sys_stat (Depends-on): Add c++defs.
1284         (Makefile.am): Update sys/stat.h rule.
1285
1286         sys_socket: Avoid #define replacements in C++ mode.
1287         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1288         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1289         definitions also when the system has a <sys/socket.h>.
1290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1292         In C++, define a namespaced alias symbol.
1293         * modules/sys_socket (Depends-on): Add c++defs.
1294         (Makefile.am): Update sys/socket.h rule.
1295
1296         sys_select: Avoid #define replacements in C++ mode.
1297         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1298         definitions also when the system has a <sys/select.h>.
1299         (select): In C++, define a namespaced alias symbol.
1300         * modules/sys_select (Depends-on): Add c++defs.
1301         (Makefile.am): Update sys/select.h rule.
1302
1303         sys_ioctl: Avoid #define replacements in C++ mode.
1304         * lib/sys_ioctl.in.h: Include c++defs.h.
1305         (ioctl): In C++, define a namespaced alias symbol.
1306         * modules/sys_ioctl (Depends-on): Add c++defs.
1307         (Makefile.am): Update sys/ioctl.h rule.
1308
1309         string: Avoid #define replacements in C++ mode.
1310         * lib/string.in.h: Include c++defs.h.
1311         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1312         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1313         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1314         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1315         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1316         * modules/string (Depends-on): Add c++defs.
1317         (Makefile.am): Update string.h rule.
1318
1319         stdlib: Avoid #define replacements in C++ mode.
1320         * lib/stdlib.in.h: Include c++defs.h.
1321         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1322         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1323         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1324         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1325         symbol.
1326         * modules/stdlib (Depends-on): Add c++defs.
1327         (Makefile.am): Update stdlib.h rule.
1328
1329         stdio: Avoid #define replacements in C++ mode.
1330         * lib/stdio.in.h: Include c++defs.h.
1331         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1332         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1333         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1334         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1335         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1336         namespaced alias symbol.
1337         * modules/stdio (Depends-on): Add c++defs.
1338         (Makefile.am): Update stdio.h rule.
1339
1340         spawn: Avoid #define replacements in C++ mode.
1341         * lib/spawn.in.h: Include c++defs.h.
1342         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1343         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1344         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1345         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1346         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1347         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1348         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1349         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1350         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1351         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1352         In C++, define a namespaced alias symbol.
1353         * modules/spawn (Depends-on): Add c++defs.
1354         (Makefile.am): Update spawn.h rule.
1355
1356         signal: Avoid #define replacements in C++ mode.
1357         * lib/signal.in.h: Include c++defs.h.
1358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1359         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1360         namespaced alias symbol.
1361         * modules/signal (Depends-on): Add c++defs.
1362         (Makefile.am): Update signal.h rule.
1363
1364         search: Avoid #define replacements in C++ mode.
1365         * lib/search.in.h: Include c++defs.h.
1366         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1367         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1368         symbol.
1369         * modules/search (Depends-on): Add c++defs.
1370         (Makefile.am): Update search.h rule.
1371
1372         math: Avoid #define replacements in C++ mode.
1373         * lib/math.in.h: Include c++defs.h.
1374         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1375         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1376         trunc, truncl): In C++, define a namespaced alias symbol.
1377         * modules/math (Depends-on): Add c++defs.
1378         (Makefile.am): Update math.h rule.
1379
1380         locale: Avoid #define replacements in C++ mode.
1381         * lib/locale.in.h: Include c++defs.h.
1382         (duplocale): In C++, define a namespaced alias symbol.
1383         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1384         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1385         * modules/locale (Depends-on): Add c++defs.
1386         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1387
1388         langinfo: Avoid #define replacements in C++ mode.
1389         * lib/langinfo.in.h: Include c++defs.h.
1390         (nl_langinfo): In C++, define a namespaced alias symbol.
1391         * modules/langinfo (Depends-on): Add c++defs.
1392         (Makefile.am): Update langinfo.h rule.
1393
1394         iconv-h: Avoid #define replacements in C++ mode.
1395         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1396         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1397         symbol.
1398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1399         whenever iconv is present.
1400         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1401         (Makefile.am): Update iconv.h rule.
1402
1403         glob: Avoid #define replacements in C++ mode.
1404         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1405         (_gl_glob_errfunc_fn): New type.
1406         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1407         symbol.
1408         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1409         (Makefile.am): Update glob.h rule.
1410
1411         fcntl-h: Avoid #define replacements in C++ mode.
1412         * lib/fcntl.in.h: Include c++defs.h.
1413         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1414         * modules/fcntl-h (Depends-on): Add c++defs.
1415         (Makefile.am): Update fcntl.h rule.
1416
1417         dirent: Avoid #define replacements in C++ mode.
1418         * lib/dirent.in.h: Include c++defs.h.
1419         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1420         namespaced alias symbol.
1421         (dirfd): Update declaration.
1422         * modules/dirent (Depends-on): Add c++defs.
1423         (Makefile.am): Update dirent.h rule.
1424
1425         ctype: Make it usable in C++ code.
1426         * lib/ctype.in.h: Include c++defs.h.
1427         (isblank): Declare as extern "C".
1428         * modules/ctype (Depends-on): Add c++defs.
1429         (Makefile.am): Update ctype.h rule.
1430
1431         New module 'c++defs'.
1432         * modules/c++defs: New file.
1433         * build-aux/c++defs.h: New file.
1434         Reported by John W. Eaton <jwe@gnu.org>.
1435
1436 2010-03-07  Bruno Haible  <bruno@clisp.org>
1437
1438         logb: Provide missing declaration for Cygwin.
1439         * lib/math.in.h (logb): New declaration.
1440         * m4/logb.m4: New file.
1441         * modules/logb (Files): Add m4/logb.m4.
1442         (Depends-on): Add math.
1443         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1444         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1446         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1447         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1448
1449 2010-03-07  Bruno Haible  <bruno@clisp.org>
1450
1451         Fix test-cond link error.
1452         * tests/test-cond.c: Include <stdio.h>.
1453
1454 2010-03-07  Bruno Haible  <bruno@clisp.org>
1455
1456         Fix test-dirent-safer link error.
1457         * modules/dirent-safer-tests (Makefile.am): Define
1458         test_dirent_safer_LDADD.
1459
1460 2010-03-07  Bruno Haible  <bruno@clisp.org>
1461
1462         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1463         among default module list.
1464
1465 2010-03-07  Bruno Haible  <bruno@clisp.org>
1466
1467         Fix link error on platforms with GNU libiconv.
1468         * modules/unistr/u8-strcoll-tests (Makefile): Define
1469         test_u8_strcoll_LDADD.
1470         * modules/unistr/u16-strcoll-tests (Makefile): Define
1471         test_u16_strcoll_LDADD.
1472         * modules/unistr/u32-strcoll-tests (Makefile): Define
1473         test_u32_strcoll_LDADD.
1474
1475 2010-03-07  Bruno Haible  <bruno@clisp.org>
1476
1477         Use POSIX declarations for socket functions.
1478         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1479         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1480         rpl_sendto): Change declaration to match POSIX.
1481         * lib/connect.c (rpl_connect): Likewise.
1482         * lib/accept.c (rpl_accept): Likewise.
1483         * lib/bind.c (rpl_bind): Likewise.
1484         * lib/getpeername.c (rpl_getpeername): Likewise.
1485         * lib/getsockname.c (rpl_getsockname): Likewise.
1486         * lib/recv.c (rpl_recv): Likewise.
1487         * lib/send.c (rpl_send): Likewise.
1488         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1489         * lib/sendto.c (rpl_sendto): Likewise.
1490
1491 2010-03-06  Bruno Haible  <bruno@clisp.org>
1492
1493         Clarify access, euidaccess, faccessat.
1494         * doc/posix-functions/faccessat.texi: Mention security problem under
1495         "Other problems", not "Portability problems".
1496         * doc/posix-functions/access.texi: Likewise. Mention a related security
1497         problem.
1498         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1499         * lib/euidaccess.c: Add comments about platforms.
1500         * lib/unistd.in.h (access, euidaccess): Add warnings.
1501
1502 2010-03-07  Bruno Haible  <bruno@clisp.org>
1503
1504         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1505         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1506         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1507         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1508         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1509         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1510         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1511         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1512         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1514         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1515         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1516         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1517         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1518         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1519         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1520         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1521         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1522         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1523         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1524         Likewise.
1525         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1526         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1527         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1528         Likewise.
1529         * tests/test-spawn.c (main): Make it work when
1530         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1531
1532 2010-03-07  Bruno Haible  <bruno@clisp.org>
1533
1534         Fix incorrect Makefile.am generation in German locale.
1535         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1536         Execute sed command with character range in C locale.
1537
1538 2010-03-06  Bruno Haible  <bruno@clisp.org>
1539
1540         Tests for module 'iconv-h'.
1541         * modules/iconv-h-tests: New file.
1542         * tests/test-iconv-h.c: New file.
1543
1544         New module 'iconv-h'.
1545         * modules/iconv-h: New file.
1546         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1547         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1548         (configure.ac): Remove gl_ICONV_H.
1549         (Makefile.am): Remove rule for iconv.h.
1550
1551 2010-03-06  Bruno Haible  <bruno@clisp.org>
1552
1553         More consistent naming of *.m4 files.
1554         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1555         * modules/wctype (Files): Update.
1556
1557         More consistent naming of *.m4 files.
1558         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1559         * modules/wchar (Files): Update.
1560
1561 2010-03-06  Jim Meyering  <meyering@redhat.com>
1562
1563         euidaccess: relax license to LGPLv2+
1564         * modules/euidaccess (License): Relax to LGPLv2+.
1565
1566 2010-03-06  Bruno Haible  <bruno@clisp.org>
1567
1568         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1569         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1570         (Makefile.am): Augment lib_SOURCES instead.
1571
1572 2010-03-04  Jim Meyering  <meyering@redhat.com>
1573
1574         utime: remove obsolete module
1575         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1576         unnecessary for years, and has been marked as obsolete for 10 months.
1577         * modules/utime: Remove file.
1578         * lib/utime.c: Remove file.
1579         * m4/utime.m4: Remove file.
1580         * m4/utimes-null.m4: Remove file.
1581         * doc/posix-functions/utime.texi (utime): Remove reference to
1582         the module.  Move the sole "fixed by gnulib" item into the
1583         "problems not fixed by Gnulib" list.
1584         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1585
1586 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1587
1588         * modules/exit (License): Relax license to LGPLv2+.
1589         (Status): Mark as obsolete.
1590         * NEWS: Mention deprecated 'exit' module.
1591         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1592         of now obsolete 'exit'.
1593
1594 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1595
1596         fts-lgpl: remove unused module
1597         * modules/fts-lgpl: Remove.
1598         * MODULES.html.sh (func_all_modules): Adjust.
1599         * check-module (find_included_lib_files): Adjust.
1600         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1601
1602 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1603
1604         copy-acl: enhance Solaris ACL error handling
1605         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1606         * lib/set-mode-acl.c (qset_acl): Likewise.
1607
1608 2010-03-02  Bruno Haible  <bruno@clisp.org>
1609
1610         spawn: Don't override the system defined values on FreeBSD 8.
1611         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1612         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1613         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1614         if HAVE_POSIX_SPAWN is 1.
1615         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1616
1617 2010-03-01  Bruno Haible  <bruno@clisp.org>
1618
1619         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1620         regarding Automake.
1621
1622 2010-02-25  Bruno Haible  <bruno@clisp.org>
1623
1624         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1625         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1626         setting, not afterwards.
1627         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1628
1629 2010-02-24  Eric Blake  <eblake@redhat.com>
1630
1631         bootstrap, git-version-gen: use timestamp
1632         * build-aux/git-version-gen (scriptversion): Force UTC.
1633         * build-aux/bootstrap (scriptversion): New variable.
1634
1635         bootstrap: allow older git
1636         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1637         older than 1.6.4.  Requested by the libvirt project.
1638
1639 2010-02-23  Eric Blake  <eblake@redhat.com>
1640
1641         warn-on-use: work with old autoconf
1642         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1643         AS_VAR semantics of autoconf 2.60.
1644         Reported by Bruno Haible.
1645
1646         bootstrap: improve some comments
1647         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1648         clarification comments.
1649
1650         gettimeofday: provide correct function
1651         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1652         when replacement is declared, otherwise provide gettimeofday.
1653         Reported by Michael Goffioul.
1654
1655 2010-02-23  Jim Meyering  <meyering@redhat.com>
1656
1657         lib-ignore: relax license to "unlimited", not LGPLv2+
1658         * modules/lib-ignore (License): Relax to "unlimited".
1659
1660 2010-02-23  Jim Meyering  <meyering@redhat.com>
1661
1662         lib-ignore: relax license to LGPLv2+
1663         * modules/lib-ignore (License): Relax to LGPLv2+.
1664
1665 2010-02-22  Eric Blake  <eblake@redhat.com>
1666
1667         lseek: avoid bash 3.2 broken pipe bug
1668         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1669         warning from bash 3.2.
1670         Reported by Ben Pfaff, with analysis from Bruno Haible.
1671
1672         bootstrap: support non-FSF copyright holder
1673         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1674         bootstrap.conf override of COPYRIGHT_HOLDER.
1675         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1676
1677         bootstrap: interoperate with gettext 0.14.1
1678         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1679
1680         bootstrap: allow for alternate submodule location
1681         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1682         hardcoding submodule location.
1683         (gnulib_mk): Allow direct use of Makefile.am.
1684
1685         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1686         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1687         rather than reconfiguring where the submodule points.
1688
1689         gettimeofday: restore support for platforms that lack function
1690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1691         replacement if function is missing.
1692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1693         * modules/sys_time (Makefile.am): Substitute it.
1694         * lib/sys_time.in.h (gettimeofday): Check it.
1695         Reported by Michael Goffioul.
1696
1697 2010-02-21  Bruno Haible  <bruno@clisp.org>
1698
1699         * lib/stdio.in.h (obstack_printf): Fix typo.
1700
1701 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1702
1703         vc-list-files: use bzr ls's -R option
1704         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1705         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1706
1707 2010-02-21  Jim Meyering  <meyering@redhat.com>
1708
1709         init.sh: fix EXEEXT shims to work also for names like test-prog
1710         * tests/init.sh: Re-exec a better shell, when needed.
1711         If the current shell lacks support for posix $(...), an init.sh-using
1712         test will now try to find a shell that supports that.  If EXEEXT is
1713         nonempty, we also require support for hyphen-in-alias-name and shell
1714         substitutions like ${var#glob}.  Failure to find such a shell results
1715         in a skipped test.
1716
1717 2010-02-21  Bruno Haible  <bruno@clisp.org>
1718
1719         Really work around around "broken pipe" error message from bash 3.2.
1720         * gnulib-tool (func_reset_sigpipe): Remove function.
1721         (echo): In bash 3.2, define to a function that uses printf.
1722         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1723
1724 2010-02-20  Bruno Haible  <bruno@clisp.org>
1725
1726         Restore support for automake 1.9.6 with autoconf 2.61.
1727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1728         Reported by James Youngman <jay@gnu.org>.
1729
1730 2010-02-20  Bruno Haible  <bruno@clisp.org>
1731
1732         Improve *printf warning condition.
1733         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1734         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1735         and the function is overridden due to SIGPIPE emulation.
1736
1737 2010-02-20  Bruno Haible  <bruno@clisp.org>
1738
1739         * lib/stdio.in.h: Tweak comments.
1740
1741 2010-02-19  Bruno Haible  <bruno@clisp.org>
1742
1743         Make it easier to find modules. New gnulib-tool option '--find'.
1744         * gnulib-tool: New option --find.
1745         (func_usage): Document it.
1746         (func_sanitize_modulelist): New function, extracted from
1747         func_all_modules.
1748         (func_all_modules): Invoke it.
1749         * doc/gnulib-tool.texi (Which modules?): New node.
1750
1751 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1752
1753         * lib/sys_select.in.h: Provide select replacement even if
1754         sys/select.h exists on a system, for Interix.
1755
1756 2010-02-18  Jim Meyering  <meyering@redhat.com>
1757
1758         init.sh: don't use $(...) just yet
1759         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1760         to accommodate e.g., Solaris' /bin/sh.
1761
1762 2010-02-17  Bruno Haible  <bruno@clisp.org>
1763
1764         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1765         Reported by Ludovic Courtès <ludo@gnu.org>.
1766
1767 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1768
1769         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1770         linking with -lintl.
1771
1772 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1773
1774         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1775         if not provided by the system's netdb.h.  Reported by
1776         ludo@gnu.org (Ludovic Courtès).
1777
1778 2010-02-15  Jim Meyering  <meyering@redhat.com>
1779
1780         init.sh: improve portability and efficiency
1781         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1782         "dummy" in a for loop.
1783         Use '!', not '^' to select the complement of a character set used
1784         in a "case" statement.
1785         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1786         Suggestions from Eric Blake.
1787
1788         init.sh: automatically accommodate programs with the .exe suffix
1789         Automatically arrange for an invocation of "prog" to execute the
1790         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1791         may use the simpler "prog", yet still work when built on a system
1792         that requires specifying the added suffix.
1793         Do this by constructing a function named "prog" that invokes
1794         "prog.exe" for each .exe file in selected directories.
1795         * tests/init.sh (find_exe_basenames_): New function.
1796         (create_exe_shim_functions_): New function.
1797         (path_prepend_): Use it.
1798
1799         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1800         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1801         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1802
1803 2010-02-14  Jim Meyering  <meyering@redhat.com>
1804
1805         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1806         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1807         (sc_prohibit_hash_pjw_without_use): New rule.
1808
1809         maint.mk: allow the default upload destination dir to be overridden
1810         * top/maint.mk (upload_dest_dir_): Define with a default that
1811         preserves the status quo.
1812         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1813         Reported by Peter Simons.
1814
1815         maint.mk: prohibit inclusion of "hash.h" without_use
1816         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1817
1818 2010-02-10  Jim Meyering  <meyering@redhat.com>
1819
1820         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1821         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1822
1823 2010-02-09  Eric Blake  <ebb9@byu.net>
1824         and Bruno Haible  <bruno@clisp.org>
1825
1826         obstack-printf-posix: ensure declaration
1827         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1828         extracted from gl_FUNC_OBSTACK_PRINTF.
1829         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1830         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1831         Likewise.
1832         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1833         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1834         0.
1835
1836 2010-02-08  Bruno Haible  <bruno@clisp.org>
1837
1838         gnulib-tool: Fix typo in 2010-02-07 commit.
1839         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1840         Reported by Eric Blake.
1841
1842 2010-02-07  Bruno Haible  <bruno@clisp.org>
1843
1844         gnulib-tool: Fix up caching patches.
1845         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1846         option --no-cache. Use associative arrays when supported by the shell.
1847         (sed_comments): New variable.
1848         (modcache): Renamed from do_cache.
1849         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1850         abbreviate unnecessarily.
1851         (have_associative): New variable.
1852         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1853         way also for ksh and zsh.
1854         (func_init_sed_convert_to_cache_statements): New function, extracted
1855         from func_cache_lookup_module. Add support for associative arrays.
1856         Don't set the c_MODULE_cached variable here. Ignore all lines before
1857         the first field header. Remove only the final newline, not all trailing
1858         newlines. Support empty fields correctly. Limit the use of 'eval' to
1859         assignments.
1860         (func_get_description, func_get_status, func_get_notice,
1861         func_get_applicability, func_get_filelist, func_get_dependencies,
1862         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1863         func_get_automake_snippet, func_get_include_directive,
1864         func_get_link_directive, func_get_license, func_get_maintainer):
1865         Update documentation. List the unoptimized code first. Add support for
1866         associative arrays. Limit the use of 'eval' to assignments.
1867         (func_get_applicability): Undo stylistic pessimisations.
1868         (func_get_automake_snippet, func_get_include_directive): Reduce code
1869         duplication.
1870         (func_modules_transitive_closure, func_modules_add_dummy,
1871         func_modules_notice, func_modules_to_filelist, func_add_file,
1872         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1873         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1874         func_create_testdir, func_create_megatestdir): Update documentation.
1875
1876 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1877
1878         * gnulib-tool (func_cache_lookup_module): Store the module name
1879         belonging to the cache variable; error out if two different
1880         module names map to the same cache variable name.
1881
1882 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1883
1884         gnulib-tool: Make caching optional.
1885         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1886         Update matching short versions of --no-changelog.
1887         (func_usage): Update.
1888         (sed_extract_cache_prog): Renamed from ...
1889         (sed_extract_prog): ... this; revert to old extraction script.
1890         (func_get_description, func_get_status)
1891         (func_get_notice, func_get_applicability, func_get_filelist)
1892         (func_get_dependencies, func_get_autoconf_early_snippet)
1893         (func_get_autoconf_snippet, func_get_automake_snippet)
1894         (func_get_include_directive, func_get_link_directive)
1895         (func_get_license, func_get_maintainer): If $do_cache is false,
1896         use old, non-caching extraction scripts.
1897         Suggestion by Bruno Haible.
1898
1899 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1900
1901         gnulib-tool: cache module metainformation.
1902         * gnulib-tool (sed_extract_prog): Match newline before each
1903         header, and rewrite header to a shell variable suffix.
1904         (func_cache_var, func_cache_lookup_module): New functions,
1905         to turn a module name into a cache variable prefix, and to
1906         look up and cache module metainformation.
1907         (func_get_description, func_get_status)
1908         (func_get_notice, func_get_applicability, func_get_filelist)
1909         (func_get_dependencies, func_get_autoconf_early_snippet)
1910         (func_get_autoconf_snippet, func_get_automake_snippet)
1911         (func_get_include_directive, func_get_link_directive)
1912         (func_get_license, func_get_maintainer): Use
1913         func_cache_lookup_module.
1914
1915 2010-02-07  Bruno Haible  <bruno@clisp.org>
1916
1917         fnctl: Fix missing dependency.
1918         * modules/fcntl (Depends-on): Add getdtablesize.
1919         Reported by John W. Eaton <jwe@gnu.org>.
1920
1921 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1922
1923         Argp: fix recognition of short alias options.
1924
1925         * lib/argp-parse.c (convert_options): Fix improper use of
1926         `|' between character values.
1927         * tests/test-argp.c (group1_option): New alias option
1928         --read (-r).
1929         (group1_parser): Special handling for 'r'.
1930         (test15): New test case.
1931         (test_fun): Add test15.
1932         * tests/test-argp-2.sh: Update expected --help and --usage
1933         outputs.
1934
1935 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1936
1937         * tests/test-argp.c: Fix indentation.
1938
1939 2010-02-04  Eric Blake  <ebb9@byu.net>
1940
1941         gettimeofday: expose type of second argument
1942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1943         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1944         * tests/test-gettimeofday.c: Use it to silence warning.
1945         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1946         the issue.
1947
1948 2010-02-03  Jim Meyering  <meyering@redhat.com>
1949
1950         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1951         * lib/regcomp.c (TYPE_SIGNED): Define.
1952         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1953
1954         regcomp.c: avoid a new -Wshadow warning
1955         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1956
1957 2010-02-01  Jim Meyering  <meyering@redhat.com>
1958
1959         removing useless parentheses in cpp #define directives
1960         For motivation, see commit c0221df4, "define STREQ(a,b)
1961         consistently, removing useless parentheses"
1962         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1963         * lib/mountlist.c (MNT_IGNORE): Likewise.
1964         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1965
1966 2010-02-01  Eric Blake  <ebb9@byu.net>
1967
1968         sys_time: use link-warning
1969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1970         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1971         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1972         * modules/sys_time (Depends-on): Add warn-on-use.
1973         (Makefile.am): Always build replacement.
1974         (configure.ac): Update substitutions.
1975         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1976         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1977         bother with SYS_TIME_H.
1978         * modules/gettimeofday (configure.ac): Declare indicator.
1979         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1980         in use.
1981
1982         closein-tests: silence compiler warning
1983         * tests/test-closein.c (main): Ignore fread result.
1984         * modules/closein-tests (Depends-on): Add ignore-value.
1985
1986         tests: silence warning about system return
1987         * tests/test-areadlink-with-size.c (main): Ignore system result.
1988         * tests/test-areadlink.c (main): Likewise.
1989         * tests/test-areadlinkat-with-size.c (main): Likewise.
1990         * tests/test-areadlinkat.c (main): Likewise.
1991         * tests/test-canonicalize-lgpl.c (main): Likewise.
1992         * tests/test-canonicalize.c (main): Likewise.
1993         * tests/test-chown.c (main): Likewise.
1994         * tests/test-fchownat.c (main): Likewise.
1995         * tests/test-fdutimensat.c (main): Likewise.
1996         * tests/test-fstatat.c (main): Likewise.
1997         * tests/test-futimens.c (main): Likewise.
1998         * tests/test-lchown.c (main): Likewise.
1999         * tests/test-link.c (main): Likewise.
2000         * tests/test-linkat.c (main): Likewise.
2001         * tests/test-lstat.c (main): Likewise.
2002         * tests/test-mkdir.c (main): Likewise.
2003         * tests/test-mkdirat.c (main): Likewise.
2004         * tests/test-mkfifo.c (main): Likewise.
2005         * tests/test-mkfifoat.c (main): Likewise.
2006         * tests/test-mknod.c (main): Likewise.
2007         * tests/test-readlink.c (main): Likewise.
2008         * tests/test-remove.c (main): Likewise.
2009         * tests/test-rename.c (main): Likewise.
2010         * tests/test-renameat.c (main): Likewise.
2011         * tests/test-rmdir.c (main): Likewise.
2012         * tests/test-symlink.c (main): Likewise.
2013         * tests/test-symlinkat.c (main): Likewise.
2014         * tests/test-unlink.c (main): Likewise.
2015         * tests/test-unlinkat.c (main): Likewise.
2016         * tests/test-utimens.c (main): Likewise.
2017         * tests/test-utimensat.c (main): Likewise.
2018         * modules/areadlink-tests (Depends-on): Add ignore-value.
2019         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2020         * modules/areadlinkat-tests (Depends-on): Likewise.
2021         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2022         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2023         * modules/canonicalize-tests (Depends-on): Likewise.
2024         * modules/chown-tests (Depends-on): Likewise.
2025         * modules/fdutimensat-tests (Depends-on): Likewise.
2026         * modules/futimens-tests (Depends-on): Likewise.
2027         * modules/lchown-tests (Depends-on): Likewise.
2028         * modules/link-tests (Depends-on): Likewise.
2029         * modules/linkat-tests (Depends-on): Likewise.
2030         * modules/lstat-tests (Depends-on): Likewise.
2031         * modules/mkdir-tests (Depends-on): Likewise.
2032         * modules/mkfifo-tests (Depends-on): Likewise.
2033         * modules/mkfifoat-tests (Depends-on): Likewise.
2034         * modules/mknod-tests (Depends-on): Likewise.
2035         * modules/openat-tests (Depends-on): Likewise.
2036         * modules/readlink-tests (Depends-on): Likewise.
2037         * modules/remove-tests (Depends-on): Likewise.
2038         * modules/rename-tests (Depends-on): Likewise.
2039         * modules/renameat-tests (Depends-on): Likewise.
2040         * modules/rmdir-tests (Depends-on): Likewise.
2041         * modules/symlink-tests (Depends-on): Likewise.
2042         * modules/symlinkat-tests (Depends-on): Likewise.
2043         * modules/unlink-tests (Depends-on): Likewise.
2044         * modules/utimens-tests (Depends-on): Likewise.
2045         * modules/utimensat-tests (Depends-on): Likewise.
2046
2047 2010-01-31  Bruno Haible  <bruno@clisp.org>
2048
2049         Perform the same test for many <math.h> functions.
2050         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2051         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2052         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2053         of gl_MATHFUNC.
2054         * modules/acos (configure.ac): Likewise.
2055         * modules/asin (configure.ac): Likewise.
2056         * modules/atan (configure.ac): Likewise.
2057         * modules/atan2 (configure.ac): Likewise.
2058         * modules/cbrt (configure.ac): Likewise.
2059         * modules/copysign (configure.ac): Likewise.
2060         * modules/cos (configure.ac): Likewise.
2061         * modules/cosh (configure.ac): Likewise.
2062         * modules/erf (configure.ac): Likewise.
2063         * modules/erfc (configure.ac): Likewise.
2064         * modules/exp (configure.ac): Likewise.
2065         * modules/fmod (configure.ac): Likewise.
2066         * modules/hypot (configure.ac): Likewise.
2067         * modules/j0 (configure.ac): Likewise.
2068         * modules/j1 (configure.ac): Likewise.
2069         * modules/jn (configure.ac): Likewise.
2070         * modules/lgamma (configure.ac): Likewise.
2071         * modules/log (configure.ac): Likewise.
2072         * modules/log10 (configure.ac): Likewise.
2073         * modules/log1p (configure.ac): Likewise.
2074         * modules/pow (configure.ac): Likewise.
2075         * modules/remainder (configure.ac): Likewise.
2076         * modules/sin (configure.ac): Likewise.
2077         * modules/sinh (configure.ac): Likewise.
2078         * modules/tan (configure.ac): Likewise.
2079         * modules/tanh (configure.ac): Likewise.
2080         * modules/y0 (configure.ac): Likewise.
2081         * modules/y1 (configure.ac): Likewise.
2082         * modules/yn (configure.ac): Likewise.
2083         Suggested by Paolo Bonzini.
2084
2085 2010-01-31  Bruno Haible  <bruno@clisp.org>
2086
2087         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2088
2089 2010-01-31  Bruno Haible  <bruno@clisp.org>
2090
2091         Work around getdelim() bug on FreeBSD 8.0.
2092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2093         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2094         not work.
2095         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2096         is 1.
2097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2098         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2099         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2100         a non-zero size.
2101         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2102
2103 2010-01-31  Bruno Haible  <bruno@clisp.org>
2104
2105         Work around getline() bug on FreeBSD 8.0.
2106         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2107         and a non-zero size.
2108         * tests/test-getline.c (main): Likewise.
2109         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2110         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2111
2112 2010-01-28  Eric Blake  <ebb9@byu.net>
2113
2114         regex: fix build failure
2115         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2116         platforms.
2117
2118 2010-01-28  Jim Meyering  <meyering@redhat.com>
2119
2120         regex: do not ignore memory allocation failure
2121         * lib/regex_internal.c (create_cd_newstate): Detect
2122         re_node_set_init_copy failure.   Extracted from glibc commit
2123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2124
2125         regex: sync more white-space changes from libc
2126         * lib/regex_internal.c: White-space only changes.
2127         * lib/regexec.c: Likewise.
2128
2129         regex: add many uses of __attribute_warn_unused_result__
2130         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2131         * lib/regexec.c: Likewise.
2132         Extracted from a messy glibc commit.
2133
2134         regcomp.c: spelling and merge-artifact from glibc
2135         * lib/regcomp.c: Merge remainder of glibc's
2136         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2137
2138         regcomp.c: sync white-space changes from glibc
2139         * lib/regcomp.c: Merge to accommodate white space
2140         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2141
2142         regcomp.c: do not ignore internal return values
2143         * lib/regcomp.c: Do not ignore internal return values.
2144         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2145         but without its white-space changes and spelling fixes.
2146
2147         regex_internal.h: define __attribute_warn_unused_result__
2148         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2149
2150         maint: add a syntax-check rule to check for vulnerable Makefile.in
2151         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2152
2153 2010-01-27  Jim Meyering  <meyering@redhat.com>
2154
2155         ncftpput-ftp: clean up spaces
2156         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2157         Remove trailing blanks.
2158
2159 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2160
2161         * build-aux/git-version-gen: Fix copyright statement.
2162         * build-aux/gnupload: Likewise.
2163         * tests/test-arcfour.c: Likewise.
2164         * tests/test-arctwo.c: Likewise.
2165         * tests/test-count-one-bits.c: Likewise.
2166         * tests/test-crc.c: Likewise.
2167         * tests/test-des.c: Likewise.
2168         * tests/test-gc-arcfour.c: Likewise.
2169         * tests/test-gc-arctwo.c: Likewise.
2170         * tests/test-gc-des.c: Likewise.
2171         * tests/test-gc-hmac-md5.c: Likewise.
2172         * tests/test-gc-hmac-sha1.c: Likewise.
2173         * tests/test-gc-md2.c: Likewise.
2174         * tests/test-gc-md4.c: Likewise.
2175         * tests/test-gc-md5.c: Likewise.
2176         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2177         * tests/test-gc-rijndael.c: Likewise.
2178         * tests/test-gc-sha1.c: Likewise.
2179         * tests/test-gc.c: Likewise.
2180         * tests/test-gethostname.c: Likewise.
2181         * tests/test-gettimeofday.c: Likewise.
2182         * tests/test-hash.c: Likewise.
2183         * tests/test-hmac-md5.c: Likewise.
2184         * tests/test-hmac-sha1.c: Likewise.
2185         * tests/test-md2.c: Likewise.
2186         * tests/test-md4.c: Likewise.
2187         * tests/test-md5.c: Likewise.
2188         * tests/test-memchr.c: Likewise.
2189         * tests/test-memchr2.c: Likewise.
2190         * tests/test-memcmp.c: Likewise.
2191         * tests/test-memmem.c: Likewise.
2192         * tests/test-memrchr.c: Likewise.
2193         * tests/test-rawmemchr.c: Likewise.
2194         * tests/test-read-file.c: Likewise.
2195         * tests/test-rijndael.c: Likewise.
2196         * tests/test-sockets.c: Likewise.
2197         * tests/test-strchrnul.c: Likewise.
2198         * tests/test-strstr.c: Likewise.
2199         * tests/test-strtod.c: Likewise.
2200         * build-aux/ncftpput-ftp: Likewise.
2201
2202 2010-01-26  Eric Blake  <ebb9@byu.net>
2203
2204         ignore-value: update recommended header name
2205         * modules/ignore-value (Include): Only use <> for headers that
2206         exist in glibc.
2207
2208 2010-01-26  Jim Meyering  <meyering@redhat.com>
2209
2210         test-userspec.c: avoid compiler warnings
2211         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2212         and "initialization discards qualifiers..." warnings.
2213         Put the first "uid" in its own scope, and make char* members "const".
2214
2215 2010-01-25  Bruno Haible  <bruno@clisp.org>
2216
2217         gnulib-tool: Make warning diagnostics consistent.
2218         * gnulib-tool (func_warning): New function.
2219         Use it everywhere where gnulib-tool produces output to stderr and it is
2220         not a fatal error.
2221
2222 2010-01-25  Bruno Haible  <bruno@clisp.org>
2223
2224         Fix test dependencies.
2225         * modules/xstrtol-tests (Depends-on): Add inttypes.
2226         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2227
2228 2010-01-25 Pádraig Brady <P@draigBrady.com>
2229
2230         syntax-check: detect incorrect boolean macro values in config.h
2231         * modules/maintainer-makefile (configure.ac): Parameterize the location
2232         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2233         The logic is from Eric Blake and the location indicated by Jim Meyering.
2234         Note the more natural CONFIG_HEADER name is prohibited by automake
2235         for backwards compatibility reasons.
2236         * top/maint.mk (sc_Wundef_boolean): New rule.
2237
2238 2010-01-25  Jim Meyering  <meyering@redhat.com>
2239
2240         bootstrap: detect MacOS 10.6's shasum, too
2241         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2242         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2243
2244 2010-01-23  Jim Meyering  <meyering@redhat.com>
2245
2246         xstrtoll: new module
2247         * modules/xstrtoll: New file.
2248         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2249         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2250         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2251         ./configure fails if you use this module and lack "long long".
2252         * modules/xstrtoll-tests: New module.
2253         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2254         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2255         new init.sh-based test framework.
2256
2257 2010-01-24  Bruno Haible  <bruno@clisp.org>
2258
2259         Tests for module 'yn'.
2260         * modules/yn-tests: New file.
2261         * tests/test-yn.c: New file.
2262
2263         Tests for module 'y1'.
2264         * modules/y1-tests: New file.
2265         * tests/test-y1.c: New file.
2266
2267         Tests for module 'y0'.
2268         * modules/y0-tests: New file.
2269         * tests/test-y0.c: New file.
2270
2271         Tests for module 'tanh'.
2272         * modules/tanh-tests: New file.
2273         * tests/test-tanh.c: New file.
2274
2275         Tests for module 'tan'.
2276         * modules/tan-tests: New file.
2277         * tests/test-tan.c: New file.
2278
2279         Tests for module 'sqrt'.
2280         * modules/sqrt-tests: New file.
2281         * tests/test-sqrt.c: New file.
2282
2283         Tests for module 'sinh'.
2284         * modules/sinh-tests: New file.
2285         * tests/test-sinh.c: New file.
2286
2287         Tests for module 'sin'.
2288         * modules/sin-tests: New file.
2289         * tests/test-sin.c: New file.
2290
2291         Tests for module 'rint'.
2292         * modules/rint-tests: New file.
2293         * tests/test-rint.c: New file.
2294
2295         Tests for module 'remainder'.
2296         * modules/remainder-tests: New file.
2297         * tests/test-remainder.c: New file.
2298
2299         Tests for module 'pow'.
2300         * modules/pow-tests: New file.
2301         * tests/test-pow.c: New file.
2302
2303         Tests for module 'nextafter'.
2304         * modules/nextafter-tests: New file.
2305         * tests/test-nextafter.c: New file.
2306
2307         Tests for module 'modf'.
2308         * modules/modf-tests: New file.
2309         * tests/test-modf.c: New file.
2310
2311         Tests for module 'logb'.
2312         * modules/logb-tests: New file.
2313         * tests/test-logb.c: New file.
2314
2315         Tests for module 'log1p'.
2316         * modules/log1p-tests: New file.
2317         * tests/test-log1p.c: New file.
2318
2319         Tests for module 'log10'.
2320         * modules/log10-tests: New file.
2321         * tests/test-log10.c: New file.
2322
2323         Tests for module 'log'.
2324         * modules/log-tests: New file.
2325         * tests/test-log.c: New file.
2326
2327         Tests for module 'lgamma'.
2328         * modules/lgamma-tests: New file.
2329         * tests/test-lgamma.c: New file.
2330
2331         Tests for module 'ldexp'.
2332         * modules/ldexp-tests: New file.
2333         * tests/test-ldexp.c: New file.
2334
2335         Tests for module 'jn'.
2336         * modules/jn-tests: New file.
2337         * tests/test-jn.c: New file.
2338
2339         Tests for module 'j1'.
2340         * modules/j1-tests: New file.
2341         * tests/test-j1.c: New file.
2342
2343         Tests for module 'j0'.
2344         * modules/j0-tests: New file.
2345         * tests/test-j0.c: New file.
2346
2347         Tests for module 'hypot'.
2348         * modules/hypot-tests: New file.
2349         * tests/test-hypot.c: New file.
2350
2351         Tests for module 'fmod'.
2352         * modules/fmod-tests: New file.
2353         * tests/test-fmod.c: New file.
2354
2355         Tests for module 'fabs'.
2356         * modules/fabs-tests: New file.
2357         * tests/test-fabs.c: New file.
2358
2359         Tests for module 'exp'.
2360         * modules/exp-tests: New file.
2361         * tests/test-exp.c: New file.
2362
2363         Tests for module 'erfc'.
2364         * modules/erfc-tests: New file.
2365         * tests/test-erfc.c: New file.
2366
2367         Tests for module 'erf'.
2368         * modules/erf-tests: New file.
2369         * tests/test-erf.c: New file.
2370
2371         Tests for module 'cosh'.
2372         * modules/cosh-tests: New file.
2373         * tests/test-cosh.c: New file.
2374
2375         Tests for module 'cos'.
2376         * modules/cos-tests: New file.
2377         * tests/test-cos.c: New file.
2378
2379         Tests for module 'copysign'.
2380         * modules/copysign-tests: New file.
2381         * tests/test-copysign.c: New file.
2382
2383         Tests for module 'cbrt'.
2384         * modules/cbrt-tests: New file.
2385         * tests/test-cbrt.c: New file.
2386
2387         Tests for module 'atan2'.
2388         * modules/atan2-tests: New file.
2389         * tests/test-atan2.c: New file.
2390
2391         Tests for module 'atan'.
2392         * modules/atan-tests: New file.
2393         * tests/test-atan.c: New file.
2394
2395         Tests for module 'asin'.
2396         * modules/asin-tests: New file.
2397         * tests/test-asin.c: New file.
2398
2399         Tests for module 'acos'.
2400         * modules/acos-tests: New file.
2401         * tests/test-acos.c: New file.
2402
2403 2010-01-24  Bruno Haible  <bruno@clisp.org>
2404
2405         Fix tests for common <math.h> functions.
2406         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2407         code snippet that references the function pointer, rather than merely
2408         calling the function. Substitute the FUNC_LIBM variable.
2409         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2410         * modules/acos (configure.ac): Likewise.
2411         * modules/asin (configure.ac): Likewise.
2412         * modules/atan (configure.ac): Likewise.
2413         * modules/atan2 (configure.ac): Likewise.
2414         * modules/cbrt (configure.ac): Likewise.
2415         * modules/copysign (configure.ac): Likewise.
2416         * modules/cos (configure.ac): Likewise.
2417         * modules/cosh (configure.ac): Likewise.
2418         * modules/erf (configure.ac): Likewise.
2419         * modules/erfc (configure.ac): Likewise.
2420         * modules/exp (configure.ac): Likewise.
2421         * modules/fabs (configure.ac): Likewise.
2422         * modules/fmod (configure.ac): Likewise.
2423         * modules/hypot (configure.ac): Likewise.
2424         * modules/j0 (configure.ac): Likewise.
2425         * modules/j1 (configure.ac): Likewise.
2426         * modules/jn (configure.ac): Likewise.
2427         * modules/ldexp (configure.ac): Likewise.
2428         * modules/lgamma (configure.ac): Likewise.
2429         * modules/log (configure.ac): Likewise.
2430         * modules/log10 (configure.ac): Likewise.
2431         * modules/log1p (configure.ac): Likewise.
2432         * modules/logb (configure.ac): Likewise.
2433         * modules/modf (configure.ac): Likewise.
2434         * modules/nextafter (configure.ac): Likewise.
2435         * modules/pow (configure.ac): Likewise.
2436         * modules/remainder (configure.ac): Likewise.
2437         * modules/rint (configure.ac): Likewise.
2438         * modules/sin (configure.ac): Likewise.
2439         * modules/sinh (configure.ac): Likewise.
2440         * modules/tan (configure.ac): Likewise.
2441         * modules/tanh (configure.ac): Likewise.
2442         * modules/y0 (configure.ac): Likewise.
2443         * modules/y1 (configure.ac): Likewise.
2444         * modules/yn (configure.ac): Likewise.
2445
2446 2010-01-24  Bruno Haible  <bruno@clisp.org>
2447
2448         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2449         * tests/test-acosl.c (x): New variable.
2450         (main): Store argument in x and fetch it from x.
2451         * tests/test-asinl.c (x): New variable.
2452         (main): Store argument in x and fetch it from x.
2453         * tests/test-atanl.c (x): New variable.
2454         (main): Store argument in x and fetch it from x.
2455         * tests/test-cosl.c (x): New variable.
2456         (main): Store argument in x and fetch it from x.
2457         * tests/test-expl.c (x): New variable.
2458         (main): Store argument in x and fetch it from x.
2459         * tests/test-logl.c (x): New variable.
2460         (main): Store argument in x and fetch it from x.
2461         * tests/test-sinl.c (x): New variable.
2462         (main): Store argument in x and fetch it from x.
2463         * tests/test-sqrtl.c (x): New variable.
2464         (main): Store argument in x and fetch it from x.
2465         * tests/test-tanl.c (x): New variable.
2466         (main): Store argument in x and fetch it from x.
2467
2468 2010-01-24  Bruno Haible  <bruno@clisp.org>
2469
2470         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2471         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2472         assignments to the initial TESTS_ENVIRONMENT.
2473         * doc/gnulib.texi (Unit test modules): Document it.
2474         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2475         TESTS_ENVIRONMENT.
2476         * modules/btowc-tests (Makefile.am): Likewise.
2477         * modules/c-stack-tests (Makefile.am): Likewise.
2478         * modules/c-strcase-tests (Makefile.am): Likewise.
2479         * modules/copy-file-tests (Makefile.am): Likewise.
2480         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2481         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2482         * modules/mbrtowc-tests (Makefile.am): Likewise.
2483         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2484         * modules/mbscasestr-tests (Makefile.am): Likewise.
2485         * modules/mbschr-tests (Makefile.am): Likewise.
2486         * modules/mbscspn-tests (Makefile.am): Likewise.
2487         * modules/mbsinit-tests (Makefile.am): Likewise.
2488         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2489         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2490         * modules/mbspbrk-tests (Makefile.am): Likewise.
2491         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2492         * modules/mbsrchr-tests (Makefile.am): Likewise.
2493         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2494         * modules/mbsspn-tests (Makefile.am): Likewise.
2495         * modules/mbsstr-tests (Makefile.am): Likewise.
2496         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2497         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2498         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2499         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2500         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2501         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2502         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2503         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2504         * modules/wcrtomb-tests (Makefile.am): Likewise.
2505         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2506         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2507         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2508         assignments from TESTS_ENVIRONMENT.
2509         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2510         augmentation.
2511         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2512         * modules/atexit-tests (Makefile.am): Likewise.
2513         * modules/binary-io-tests (Makefile.am): Likewise.
2514         * modules/closein-tests (Makefile.am): Likewise.
2515         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2516         * modules/exclude-tests (Makefile.am): Likewise.
2517         * modules/fflush-tests (Makefile.am): Likewise.
2518         * modules/fpending-tests (Makefile.am): Likewise.
2519         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2520         * modules/freadahead-tests (Makefile.am): Likewise.
2521         * modules/freadptr-tests (Makefile.am): Likewise.
2522         * modules/freadseek-tests (Makefile.am): Likewise.
2523         * modules/fseek-tests (Makefile.am): Likewise.
2524         * modules/fseeko-tests (Makefile.am): Likewise.
2525         * modules/ftell-tests (Makefile.am): Likewise.
2526         * modules/ftello-tests (Makefile.am): Likewise.
2527         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2528         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2529         * modules/lseek-tests (Makefile.am): Likewise.
2530         * modules/parse-duration-tests (Makefile.am): Likewise.
2531         * modules/perror-tests (Makefile.am): Likewise.
2532         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2533         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2534         * modules/pipe-tests (Makefile.am): Likewise.
2535         * modules/pread-tests (Makefile.am): Likewise.
2536         * modules/printf-posix-tests (Makefile.am): Likewise.
2537         * modules/select-tests (Makefile.am): Likewise.
2538         * modules/sigpipe-tests (Makefile.am): Likewise.
2539         * modules/tsearch-tests (Makefile.am): Likewise.
2540         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2541         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2542         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2543         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2544         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2545         * modules/version-etc-tests (Makefile.am): Likewise.
2546         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2547         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2548         * modules/xalloc-die-tests (Makefile.am): Likewise.
2549         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2550         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2551         * modules/xstrtol-tests (Makefile.am): Likewise.
2552         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2553         * modules/yesno-tests (Makefile.am): Likewise.
2554         Suggested by Jim Meyering.
2555
2556 2010-01-24  Bruno Haible  <bruno@clisp.org>
2557
2558         More documentation.
2559         * doc/gnulib.texi (Writing modules): New chapter.
2560         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2561         the new chapter.
2562
2563 2010-01-24  Jim Meyering  <meyering@redhat.com>
2564
2565         maint.mk: do not prepend "./" after filtering
2566         * top/maint.mk (_prepend_srcdir_prefix): New variable
2567         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2568         "./" when $(srcdir) is ".".
2569
2570         define STREQ(a,b) consistently, removing useless parentheses
2571         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2572         since the only risk is that "a" or "b" contains an unparenthesized
2573         comma, but if either did that, STREQ would have 3 or more arguments.
2574         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2575         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2576         * lib/hash-triple.c (STREQ): Likewise.
2577         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2578         * lib/getugroups.c (STREQ): Likewise.
2579
2580 2010-01-23  Jim Meyering  <meyering@redhat.com>
2581
2582         maint.mk: fix syntax-check in a non-srcdir build directory
2583         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2584         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2585
2586 2010-01-22  Jim Meyering  <meyering@redhat.com>
2587
2588         userspec: add unit tests
2589         * tests/test-userspec.c: New file.
2590         * modules/userspec-tests: Likewise.
2591
2592 2010-01-21  Jim Meyering  <meyering@redhat.com>
2593
2594         maint.mk: handle source file names containing "." robustly
2595         * top/maint.mk (_dot_escaped_srcdir): Define.
2596         (VC_LIST): Use it in LHS of sed substitution.
2597
2598 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2599
2600         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2601         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2602         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2603         from a non-srcdir build.
2604
2605 2010-01-20  Eric Blake  <ebb9@byu.net>
2606
2607         warn-on-use: use instead of link-warning
2608         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2609         * modules/unistd (Depends-on, Makefile.am): Likewise.
2610         * modules/arpa_inet (Depends-on): Replace link-warning with
2611         warn-on-use.
2612         (Makefile.am): Update rules accordingly.
2613         * modules/ctype (Depends-on, Makefile.am): Likewise.
2614         * modules/dirent (Depends-on, Makefile.am): Likewise.
2615         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2616         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2617         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2618         * modules/locale (Depends-on, Makefile.am): Likewise.
2619         * modules/math (Depends-on, Makefile.am): Likewise.
2620         * modules/search (Depends-on, Makefile.am): Likewise.
2621         * modules/signal (Depends-on, Makefile.am): Likewise.
2622         * modules/spawn (Depends-on, Makefile.am): Likewise.
2623         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2624         * modules/string (Depends-on, Makefile.am): Likewise.
2625         * modules/strings (Depends-on, Makefile.am): Likewise.
2626         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2627         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2628         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2629         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2630         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2631         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2632         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2633         * modules/wchar (Depends-on, Makefile.am): Likewise.
2634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2635         should be poisoned.
2636         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2637         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2638         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2641         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2642         * m4/math_h.m4 (gl_MATH_H): Likewise.
2643         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2644         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2645         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2646         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2647         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2648         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2649         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2650         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2655         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2656         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2658         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2659         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2660         GL_LINK_WARNING.
2661         * lib/ctype.in.h: Likewise.
2662         * lib/dirent.in.h: Likewise.
2663         * lib/fcntl.in.h: Likewise.
2664         * lib/inttypes.in.h: Likewise.
2665         * lib/langinfo.in.h: Likewise.
2666         * lib/locale.in.h: Likewise.
2667         * lib/math.in.h: Likewise.
2668         * lib/search.in.h: Likewise.
2669         * lib/signal.in.h: Likewise.
2670         * lib/spawn.in.h: Likewise.
2671         * lib/stdio.in.h: Likewise.
2672         * lib/stdlib.in.h: Likewise.
2673         * lib/string.in.h: Likewise.
2674         * lib/strings.in.h: Likewise.
2675         * lib/sys_file.in.h: Likewise.
2676         * lib/sys_ioctl.in.h: Likewise.
2677         * lib/sys_select.in.h: Likewise.
2678         * lib/sys_socket.in.h: Likewise.
2679         * lib/sys_stat.in.h: Likewise.
2680         * lib/sys_times.in.h: Likewise.
2681         * lib/sys_utsname.in.h: Likewise.
2682         * lib/unistd.in.h: Likewise.
2683         * lib/wchar.in.h: Likewise.
2684
2685 2010-01-20  Bruno Haible  <bruno@clisp.org>
2686
2687         Avoid duplicate -lm.
2688         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2689         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2692         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2693         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2694         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2695         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2696         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2697         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2698         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2699         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2700         Reported by Paolo Bonzini.
2701
2702 2010-01-19  Bruno Haible  <bruno@clisp.org>
2703
2704         langinfo, nl_langinfo: Relicense under LGPLv2+.
2705         * modules/langinfo (License): Change to LGPLv2+.
2706         * modules/nl_langinfo (License): Likewise.
2707         Patch by David Lutterkort <lutter@redhat.com>.
2708
2709 2010-01-19  Bruno Haible  <bruno@clisp.org>
2710
2711         Avoid compilation error with cc on OSF/1 5.1.
2712         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2713         statement, not before.
2714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2715
2716 2010-01-18  Bruno Haible  <bruno@clisp.org>
2717
2718         Avoid a link error due to the __printf__ symbol.
2719         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2720         and 2.6.x.
2721         (__format__, __printf__): Remove definitions.
2722         * lib/argp-fmtstream.h: Likewise.
2723         * lib/argp.h: Likewise.
2724         * lib/error.h: Likewise.
2725         * lib/vasnprintf.h: Likewise.
2726         * lib/xprintf.h: Likewise.
2727         * lib/xvasprintf.h: Likewise.
2728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2729
2730 2010-01-18  Bruno Haible  <bruno@clisp.org>
2731
2732         Tests for module 'tanl'.
2733         * modules/tanl-tests: New file.
2734         * tests/test-tanl.c: New file.
2735
2736         Tests for module 'sqrtl'.
2737         * modules/sqrtl-tests: New file.
2738         * tests/test-sqrtl.c: New file.
2739
2740         Tests for module 'sinl'.
2741         * modules/sinl-tests: New file.
2742         * tests/test-sinl.c: New file.
2743
2744         Tests for module 'logl'.
2745         * modules/logl-tests: New file.
2746         * tests/test-logl.c: New file.
2747
2748         Tests for module 'expl'.
2749         * modules/expl-tests: New file.
2750         * tests/test-expl.c: New file.
2751
2752         Tests for module 'cosl'.
2753         * modules/cosl-tests: New file.
2754         * tests/test-cosl.c: New file.
2755
2756         Tests for module 'atanl'.
2757         * modules/atanl-tests: New file.
2758         * tests/test-atanl.c: New file.
2759
2760         Tests for module 'asinl'.
2761         * modules/asinl-tests: New file.
2762         * tests/test-asinl.c: New file.
2763
2764         Tests for module 'acosl'.
2765         * modules/acosl-tests: New file.
2766         * tests/test-acosl.c: New file.
2767
2768         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2769         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2770         tanl): Use the standard gnulib idiom.
2771         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2772         * lib/sinl.c: Likewise.
2773         * lib/tanl.c: Don't include trigl.c.
2774         (kernel_tanl): Make static.
2775         * lib/sincosl.c: Include trigl.h first.
2776         * lib/trigl.c: Likewise.
2777         * m4/acosl.m4: New file.
2778         * m4/asinl.m4: New file.
2779         * m4/atanl.m4: New file.
2780         * m4/cosl.m4: New file.
2781         * m4/expl.m4: New file.
2782         * m4/logl.m4: New file.
2783         * m4/sinl.m4: New file.
2784         * m4/sqrtl.m4: New file.
2785         * m4/tanl.m4: New file.
2786         * m4/mathl.m4: Remove file.
2787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2788         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2789         Don't initialize GNULIB_MATHL.
2790         * modules/acosl: New file.
2791         * modules/asinl: New file.
2792         * modules/atanl: New file.
2793         * modules/cosl: New file.
2794         * modules/expl: New file.
2795         * modules/logl: New file.
2796         * modules/sinl: New file.
2797         * modules/sqrtl: New file.
2798         * modules/tanl: New file.
2799         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2800         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2801         substitute GNULIB_MATHL.
2802         * modules/mathl: Rewritten.
2803         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2804         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2805         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2806         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2807         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2808         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2809         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2810         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2811         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2812
2813 2010-01-18  Bruno Haible  <bruno@clisp.org>
2814
2815         sqrt: Make gl_FUNC_SQRT requirable.
2816         * m4/sqrt.m4: New file.
2817         * modules/sqrt (Files): Add it.
2818         (configure.ac): Invoke gl_FUNC_SQRT.
2819
2820 2010-01-18  Bruno Haible  <bruno@clisp.org>
2821
2822         New modules for common <math.h> functions.
2823         * m4/mathfunc.m4: New file.
2824         * modules/acos: New file.
2825         * modules/asin: New file.
2826         * modules/atan: New file.
2827         * modules/atan2: New file.
2828         * modules/cbrt: New file.
2829         * modules/copysign: New file.
2830         * modules/cos: New file.
2831         * modules/cosh: New file.
2832         * modules/erf: New file.
2833         * modules/erfc: New file.
2834         * modules/exp: New file.
2835         * modules/fabs: New file.
2836         * modules/fmod: New file.
2837         * modules/hypot: New file.
2838         * modules/j0: New file.
2839         * modules/j1: New file.
2840         * modules/jn: New file.
2841         * modules/ldexp: New file.
2842         * modules/lgamma: New file.
2843         * modules/log: New file.
2844         * modules/log10: New file.
2845         * modules/log1p: New file.
2846         * modules/logb: New file.
2847         * modules/modf: New file.
2848         * modules/nextafter: New file.
2849         * modules/pow: New file.
2850         * modules/remainder: New file.
2851         * modules/rint: New file.
2852         * modules/sin: New file.
2853         * modules/sinh: New file.
2854         * modules/sqrt: New file.
2855         * modules/tan: New file.
2856         * modules/tanh: New file.
2857         * modules/y0: New file.
2858         * modules/y1: New file.
2859         * modules/yn: New file.
2860         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2861         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2862         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2863         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2864         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2865         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2866         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2867         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2868         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2869         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2870         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2871         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2872         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2873         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2874         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2875         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2876         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2877         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2878         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2879         * doc/posix-functions/log.texi: Mention the 'log' module.
2880         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2881         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2882         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2883         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2884         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2885         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2886         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2887         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2888         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2889         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2890         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2891         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2892         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2893         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2894         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2895         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2896
2897 2010-01-18  Jim Meyering  <meyering@redhat.com>
2898
2899         ignore-value: relax license to LGPLv2+
2900         * modules/ignore-value (License): Relax to LGPLv2+.
2901
2902         getdate: don't leak when TZ contains two or more '"'s
2903         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2904         double quote in TZ after the first one.
2905
2906         readtokens: do not leak internal token_lengths buffer
2907         * lib/readtokens.c (readtokens): Free the local, lengths,
2908         when the supplied "token_lengths" parameter is NULL.
2909
2910 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2911
2912         Fix a couple of missing LIBTHREAD link failures on AIX.
2913         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2914         $(LIBTHREAD).
2915         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2916
2917         Link test-poll against INET_PTON_LIB.
2918         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2919         for inet_pton on Solaris 10.
2920
2921 2010-01-17  Bruno Haible  <bruno@clisp.org>
2922
2923         unistdio/*-sprintf: Fix typo in module description.
2924         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2925         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2926         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2927         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2928         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2929         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2930         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2932
2933 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2934
2935         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2936         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2937         variables in shell case patterns, for AIX and HP-UX ksh.
2938
2939         Split large sed scripts, for HP-UX sed.
2940         * modules/stdio: Split sed scripts around 50 sed commands,
2941         to avoid HP-UX limit of 99 commands, in the near future.
2942         * modules/string: Likewise.
2943         * modules/unistd: Likewise.
2944
2945         gnulib-tool: avoid writing in the current directory.
2946         * gnulib-tool (func_emit_lib_Makefile_am)
2947         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2948         not in the current directory, so concurrent gnulib-tool
2949         instances do not interfere.
2950
2951 2010-01-16  Jim Meyering  <meyering@redhat.com>
2952
2953         doc: update users.txt
2954         * users.txt: Add grep.
2955         (diffutils, gzip): Update URLs.
2956
2957 2010-01-12  Bruno Haible  <bruno@clisp.org>
2958
2959         posix_spawn: Avoid test failure on Cygwin.
2960         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2961         characters.
2962         Reported by Simon Josefsson.
2963
2964 2010-01-12  Bruno Haible  <bruno@clisp.org>
2965
2966         * tests/test-cond.c (main): When skipping the test, show the reason.
2967
2968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2969
2970         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2971
2972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2973
2974         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2975         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2976
2977 2010-01-12  Eric Blake  <ebb9@byu.net>
2978
2979         build: guarantee AS_VAR_IF
2980         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2981         (gl_AS_VAR_IF): Move...
2982         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2983         Reported by Simon Josefsson.
2984
2985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2986
2987         * lib/stdio.in.h: Fix typo.
2988
2989 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2990
2991         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2992         libgpg-error.
2993
2994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2995
2996         * tests/test-xalloc-die.sh: Use $EXEEXT.
2997
2998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2999             Bruno Haible  <bruno@clisp.org>
3000
3001         getlogin, getlogin_r: Avoid test failure.
3002         * tests/test-getlogin.c: Include <stdio.h>.
3003         (main): Skip the test when the function fails because stdin is not a
3004         tty.
3005         * tests/test-getlogin_r.c: Include <stdio.h>.
3006         (main): Skip the test when the function fails because stdin is not a
3007         tty.
3008
3009 2010-01-11  Eric Blake  <ebb9@byu.net>
3010
3011         tests: avoid more large file warnings
3012         * tests/test-fflush.c: Avoid warning about ftell use.
3013         * tests/test-fseek.c: Avoid warning about fseek use.
3014
3015 2010-01-10  Bruno Haible  <bruno@clisp.org>
3016
3017         nproc: Work better on Linux when /proc and /sys are not mounted.
3018         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3019         as lower bound when, on glibc/Linux systems,
3020         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3021         Suggested by Pádraig Brady <P@draigbrady.com>.
3022         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3023
3024         nproc: Refactor.
3025         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3026         extracted from num_processors.
3027         (num_processors): Call it.
3028
3029 2010-01-11  Jim Meyering  <meyering@redhat.com>
3030
3031         utimecmp: avoid new warning from upcoming gcc-4.5.0
3032         * lib/utimecmp.c (BILLION): Define using #define rather than an
3033         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3034
3035 2010-01-11  Eric Blake  <ebb9@byu.net>
3036
3037         math: add portability warnings for classification macros
3038         * modules/math (Depends-on): Add warn-on-use.
3039         (Makefile.am): Provide new substitutions.
3040         * m4/math_h.m4 (gl_MATH_H): Require inline.
3041         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3042         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3043         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3044         implement warnings.
3045
3046         unistd: warn on use of environ without module
3047         * modules/unistd (Depends-on): Add warn-on-use.
3048         (Makefile.am): Provide new substitutions.
3049         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3050         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3051
3052         stdio: warn on suspicious uses
3053         * modules/stdio (Depends-on): Add warn-on-use.
3054         (Makefile.am): Provide new substitutions.
3055         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3056         fseeko.
3057         * lib/stdio.in.h (gets): Always warn on use.
3058         (fseek, ftell): Adjust when warnings are issued, and honor
3059         _GL_NO_LARGE_FILES as a way to silence the warning.
3060         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3061         any warning about large file offsets.
3062         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3063         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3064         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3065         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3066         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3067         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3068         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3069         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3070
3071         warn-on-use: new module
3072         * modules/warn-on-use: New file.
3073         * build-aux/warn-on-use.h: Likewise.
3074         * m4/warn-on-use.m4: Likewise.
3075         * MODULES.html.sh (Support for building): Mention it.
3076
3077 2010-01-10  Bruno Haible  <bruno@clisp.org>
3078
3079         Tests for module 'unistr/u32-strdup'.
3080         * modules/unistr/u32-strdup-tests: New file.
3081         * tests/unistr/test-u32-strdup.c: New file.
3082
3083         Tests for module 'unistr/u16-strdup'.
3084         * modules/unistr/u16-strdup-tests: New file.
3085         * tests/unistr/test-u16-strdup.c: New file.
3086
3087         Tests for module 'unistr/u8-strdup'.
3088         * modules/unistr/u8-strdup-tests: New file.
3089         * tests/unistr/test-u8-strdup.c: New file.
3090         * tests/unistr/test-strdup.h: New file.
3091
3092         Tests for module 'unistr/u32-strncmp'.
3093         * modules/unistr/u32-strncmp-tests: New file.
3094         * tests/unistr/test-u32-strncmp.c: New file.
3095
3096         Tests for module 'unistr/u16-strncmp'.
3097         * modules/unistr/u16-strncmp-tests: New file.
3098         * tests/unistr/test-u16-strncmp.c: New file.
3099
3100         Tests for module 'unistr/u8-strncmp'.
3101         * modules/unistr/u8-strncmp-tests: New file.
3102         * tests/unistr/test-u8-strncmp.c: New file.
3103         * tests/unistr/test-strncmp.h: New file.
3104
3105         Tests for module 'unistr/u32-strcoll'.
3106         * modules/unistr/u32-strcoll-tests: New file.
3107         * tests/unistr/test-u32-strcoll.c: New file.
3108
3109         Tests for module 'unistr/u16-strcoll'.
3110         * modules/unistr/u16-strcoll-tests: New file.
3111         * tests/unistr/test-u16-strcoll.c: New file.
3112
3113         Tests for module 'unistr/u8-strcoll'.
3114         * modules/unistr/u8-strcoll-tests: New file.
3115         * tests/unistr/test-u8-strcoll.c: New file.
3116
3117         Tests for module 'unistr/u32-strcmp'.
3118         * modules/unistr/u32-strcmp-tests: New file.
3119         * tests/unistr/test-u32-strcmp.c: New file.
3120         * tests/unistr/test-u32-strcmp.h: New file.
3121
3122         Tests for module 'unistr/u16-strcmp'.
3123         * modules/unistr/u16-strcmp-tests: New file.
3124         * tests/unistr/test-u16-strcmp.c: New file.
3125         * tests/unistr/test-u16-strcmp.h: New file.
3126
3127         Tests for module 'unistr/u8-strcmp'.
3128         * modules/unistr/u8-strcmp-tests: New file.
3129         * tests/unistr/test-u8-strcmp.c: New file.
3130         * tests/unistr/test-u8-strcmp.h: New file.
3131         * tests/unistr/test-strcmp.h: New file.
3132
3133         Tests for module 'unistr/u32-strncat'.
3134         * modules/unistr/u32-strncat-tests: New file.
3135         * tests/unistr/test-u32-strncat.c: New file.
3136
3137         Tests for module 'unistr/u16-strncat'.
3138         * modules/unistr/u16-strncat-tests: New file.
3139         * tests/unistr/test-u16-strncat.c: New file.
3140
3141         Tests for module 'unistr/u8-strncat'.
3142         * modules/unistr/u8-strncat-tests: New file.
3143         * tests/unistr/test-u8-strncat.c: New file.
3144         * tests/unistr/test-strncat.h: New file.
3145
3146         Tests for module 'unistr/u32-strcat'.
3147         * modules/unistr/u32-strcat-tests: New file.
3148         * tests/unistr/test-u32-strcat.c: New file.
3149
3150         Tests for module 'unistr/u16-strcat'.
3151         * modules/unistr/u16-strcat-tests: New file.
3152         * tests/unistr/test-u16-strcat.c: New file.
3153
3154         Tests for module 'unistr/u8-strcat'.
3155         * modules/unistr/u8-strcat-tests: New file.
3156         * tests/unistr/test-u8-strcat.c: New file.
3157         * tests/unistr/test-strcat.h: New file.
3158
3159         Tests for module 'unistr/u32-stpncpy'.
3160         * modules/unistr/u32-stpncpy-tests: New file.
3161         * tests/unistr/test-u32-stpncpy.c: New file.
3162
3163         Tests for module 'unistr/u16-stpncpy'.
3164         * modules/unistr/u16-stpncpy-tests: New file.
3165         * tests/unistr/test-u16-stpncpy.c: New file.
3166
3167         Tests for module 'unistr/u8-stpncpy'.
3168         * modules/unistr/u8-stpncpy-tests: New file.
3169         * tests/unistr/test-u8-stpncpy.c: New file.
3170         * tests/unistr/test-stpncpy.h: New file.
3171
3172         Tests for module 'unistr/u32-strncpy'.
3173         * modules/unistr/u32-strncpy-tests: New file.
3174         * tests/unistr/test-u32-strncpy.c: New file.
3175
3176         Tests for module 'unistr/u16-strncpy'.
3177         * modules/unistr/u16-strncpy-tests: New file.
3178         * tests/unistr/test-u16-strncpy.c: New file.
3179
3180         Tests for module 'unistr/u8-strncpy'.
3181         * modules/unistr/u8-strncpy-tests: New file.
3182         * tests/unistr/test-u8-strncpy.c: New file.
3183         * tests/unistr/test-strncpy.h: New file.
3184
3185         Tests for module 'unistr/u32-stpcpy'.
3186         * modules/unistr/u32-stpcpy-tests: New file.
3187         * tests/unistr/test-u32-stpcpy.c: New file.
3188
3189         Tests for module 'unistr/u16-stpcpy'.
3190         * modules/unistr/u16-stpcpy-tests: New file.
3191         * tests/unistr/test-u16-stpcpy.c: New file.
3192
3193         Tests for module 'unistr/u8-stpcpy'.
3194         * modules/unistr/u8-stpcpy-tests: New file.
3195         * tests/unistr/test-u8-stpcpy.c: New file.
3196         * tests/unistr/test-stpcpy.h: New file.
3197
3198         Tests for module 'unistr/u32-strcpy'.
3199         * modules/unistr/u32-strcpy-tests: New file.
3200         * tests/unistr/test-u32-strcpy.c: New file.
3201
3202         Tests for module 'unistr/u16-strcpy'.
3203         * modules/unistr/u16-strcpy-tests: New file.
3204         * tests/unistr/test-u16-strcpy.c: New file.
3205
3206         Tests for module 'unistr/u8-strcpy'.
3207         * modules/unistr/u8-strcpy-tests: New file.
3208         * tests/unistr/test-u8-strcpy.c: New file.
3209         * tests/unistr/test-strcpy.h: New file.
3210
3211         Tests for module 'unistr/u32-strnlen'.
3212         * modules/unistr/u32-strnlen-tests: New file.
3213         * tests/unistr/test-u32-strnlen.c: New file.
3214
3215         Tests for module 'unistr/u16-strnlen'.
3216         * modules/unistr/u16-strnlen-tests: New file.
3217         * tests/unistr/test-u16-strnlen.c: New file.
3218
3219         Tests for module 'unistr/u8-strnlen'.
3220         * modules/unistr/u8-strnlen-tests: New file.
3221         * tests/unistr/test-u8-strnlen.c: New file.
3222         * tests/unistr/test-strnlen.h: New file.
3223
3224         Tests for module 'unistr/u32-strlen'.
3225         * modules/unistr/u32-strlen-tests: New file.
3226         * tests/unistr/test-u32-strlen.c: New file.
3227
3228         Tests for module 'unistr/u16-strlen'.
3229         * modules/unistr/u16-strlen-tests: New file.
3230         * tests/unistr/test-u16-strlen.c: New file.
3231
3232         Tests for module 'unistr/u8-strlen'.
3233         * modules/unistr/u8-strlen-tests: New file.
3234         * tests/unistr/test-u8-strlen.c: New file.
3235
3236         Tests for module 'unistr/u32-prev'.
3237         * modules/unistr/u32-prev-tests: New file.
3238         * tests/unistr/test-u32-prev.c: New file.
3239
3240         Tests for module 'unistr/u16-prev'.
3241         * modules/unistr/u16-prev-tests: New file.
3242         * tests/unistr/test-u16-prev.c: New file.
3243
3244         Tests for module 'unistr/u8-prev'.
3245         * modules/unistr/u8-prev-tests: New file.
3246         * tests/unistr/test-u8-prev.c: New file.
3247
3248         Tests for module 'unistr/u32-next'.
3249         * modules/unistr/u32-next-tests: New file.
3250         * tests/unistr/test-u32-next.c: New file.
3251
3252         Tests for module 'unistr/u16-next'.
3253         * modules/unistr/u16-next-tests: New file.
3254         * tests/unistr/test-u16-next.c: New file.
3255
3256         Tests for module 'unistr/u8-next'.
3257         * modules/unistr/u8-next-tests: New file.
3258         * tests/unistr/test-u8-next.c: New file.
3259
3260         Tests for module 'unistr/u32-strmbtouc'.
3261         * modules/unistr/u32-strmbtouc-tests: New file.
3262         * tests/unistr/test-u32-strmbtouc.c: New file.
3263
3264         Tests for module 'unistr/u16-strmbtouc'.
3265         * modules/unistr/u16-strmbtouc-tests: New file.
3266         * tests/unistr/test-u16-strmbtouc.c: New file.
3267
3268         Tests for module 'unistr/u8-strmbtouc'.
3269         * modules/unistr/u8-strmbtouc-tests: New file.
3270         * tests/unistr/test-u8-strmbtouc.c: New file.
3271
3272         Tests for module 'unistr/u32-strmblen'.
3273         * modules/unistr/u32-strmblen-tests: New file.
3274         * tests/unistr/test-u32-strmblen.c: New file.
3275
3276         Tests for module 'unistr/u16-strmblen'.
3277         * modules/unistr/u16-strmblen-tests: New file.
3278         * tests/unistr/test-u16-strmblen.c: New file.
3279
3280         Tests for module 'unistr/u8-strmblen'.
3281         * modules/unistr/u8-strmblen-tests: New file.
3282         * tests/unistr/test-u8-strmblen.c: New file.
3283
3284         Tests for module 'unistr/u32-cpy-alloc'.
3285         * modules/unistr/u32-cpy-alloc-tests: New file.
3286         * tests/unistr/test-u32-cpy-alloc.c: New file.
3287
3288         Tests for module 'unistr/u16-cpy-alloc'.
3289         * modules/unistr/u16-cpy-alloc-tests: New file.
3290         * tests/unistr/test-u16-cpy-alloc.c: New file.
3291
3292         Tests for module 'unistr/u8-cpy-alloc'.
3293         * modules/unistr/u8-cpy-alloc-tests: New file.
3294         * tests/unistr/test-u8-cpy-alloc.c: New file.
3295         * tests/unistr/test-cpy-alloc.h: New file.
3296
3297         Tests for module 'unistr/u32-mbsnlen'.
3298         * modules/unistr/u32-mbsnlen-tests: New file.
3299         * tests/unistr/test-u32-mbsnlen.c: New file.
3300
3301         Tests for module 'unistr/u16-mbsnlen'.
3302         * modules/unistr/u16-mbsnlen-tests: New file.
3303         * tests/unistr/test-u16-mbsnlen.c: New file.
3304
3305         Tests for module 'unistr/u8-mbsnlen'.
3306         * modules/unistr/u8-mbsnlen-tests: New file.
3307         * tests/unistr/test-u8-mbsnlen.c: New file.
3308
3309         Tests for module 'unistr/u32-chr'.
3310         * modules/unistr/u32-chr-tests: New file.
3311         * tests/unistr/test-u32-chr.c: New file.
3312
3313         Tests for module 'unistr/u16-chr'.
3314         * modules/unistr/u16-chr-tests: New file.
3315         * tests/unistr/test-u16-chr.c: New file.
3316
3317         Tests for module 'unistr/u8-chr'.
3318         * modules/unistr/u8-chr-tests: New file.
3319         * tests/unistr/test-u8-chr.c: New file.
3320         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3321
3322         Tests for module 'unistr/u32-cmp2'.
3323         * modules/unistr/u32-cmp2-tests: New file.
3324         * tests/unistr/test-u32-cmp2.c: New file.
3325
3326         Tests for module 'unistr/u16-cmp2'.
3327         * modules/unistr/u16-cmp2-tests: New file.
3328         * tests/unistr/test-u16-cmp2.c: New file.
3329
3330         Tests for module 'unistr/u8-cmp2'.
3331         * modules/unistr/u8-cmp2-tests: New file.
3332         * tests/unistr/test-u8-cmp2.c: New file.
3333         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3334
3335         Tests for module 'unistr/u32-cmp'.
3336         * modules/unistr/u32-cmp-tests: New file.
3337         * tests/unistr/test-u32-cmp.c: New file.
3338
3339         Tests for module 'unistr/u16-cmp'.
3340         * modules/unistr/u16-cmp-tests: New file.
3341         * tests/unistr/test-u16-cmp.c: New file.
3342
3343         Tests for module 'unistr/u8-cmp'.
3344         * modules/unistr/u8-cmp-tests: New file.
3345         * tests/unistr/test-u8-cmp.c: New file.
3346         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3347
3348         Tests for module 'unistr/u32-set'.
3349         * modules/unistr/u32-set-tests: New file.
3350         * tests/unistr/test-u32-set.c: New file.
3351
3352         Tests for module 'unistr/u16-set'.
3353         * modules/unistr/u16-set-tests: New file.
3354         * tests/unistr/test-u16-set.c: New file.
3355
3356         Tests for module 'unistr/u8-set'.
3357         * modules/unistr/u8-set-tests: New file.
3358         * tests/unistr/test-u8-set.c: New file.
3359         * tests/unistr/test-set.h: New file.
3360
3361         Tests for module 'unistr/u32-move'.
3362         * modules/unistr/u32-move-tests: New file.
3363         * tests/unistr/test-u32-move.c: New file.
3364
3365         Tests for module 'unistr/u16-move'.
3366         * modules/unistr/u16-move-tests: New file.
3367         * tests/unistr/test-u16-move.c: New file.
3368
3369         Tests for module 'unistr/u8-move'.
3370         * modules/unistr/u8-move-tests: New file.
3371         * tests/unistr/test-u8-move.c: New file.
3372         * tests/unistr/test-move.h: New file.
3373
3374         Tests for module 'unistr/u32-cpy'.
3375         * modules/unistr/u32-cpy-tests: New file.
3376         * tests/unistr/test-u32-cpy.c: New file.
3377
3378         Tests for module 'unistr/u16-cpy'.
3379         * modules/unistr/u16-cpy-tests: New file.
3380         * tests/unistr/test-u16-cpy.c: New file.
3381
3382         Tests for module 'unistr/u8-cpy'.
3383         * modules/unistr/u8-cpy-tests: New file.
3384         * tests/unistr/test-u8-cpy.c: New file.
3385         * tests/unistr/test-cpy.h: New file.
3386
3387 2010-01-09  Bruno Haible  <bruno@clisp.org>
3388
3389         Tests for module 'unistr/u32-uctomb'.
3390         * modules/unistr/u32-uctomb-tests: New file.
3391         * tests/unistr/test-u32-uctomb.c: New file.
3392
3393         Tests for module 'unistr/u16-uctomb'.
3394         * modules/unistr/u16-uctomb-tests: New file.
3395         * tests/unistr/test-u16-uctomb.c: New file.
3396
3397         Tests for module 'unistr/u8-uctomb'.
3398         * modules/unistr/u8-uctomb-tests: New file.
3399         * tests/unistr/test-u8-uctomb.c: New file.
3400
3401         Tests for module 'unistr/u32-mbtoucr'.
3402         * modules/unistr/u32-mbtoucr-tests: New file.
3403         * tests/unistr/test-u32-mbtoucr.c: New file.
3404
3405         Tests for module 'unistr/u16-mbtoucr'.
3406         * modules/unistr/u16-mbtoucr-tests: New file.
3407         * tests/unistr/test-u16-mbtoucr.c: New file.
3408
3409         Tests for module 'unistr/u8-mbtoucr'.
3410         * modules/unistr/u8-mbtoucr-tests: New file.
3411         * tests/unistr/test-u8-mbtoucr.c: New file.
3412
3413         Tests for module 'unistr/u32-mbtouc'.
3414         * modules/unistr/u32-mbtouc-tests: New file.
3415         * tests/unistr/test-u32-mbtouc.c: New file.
3416
3417         Tests for module 'unistr/u16-mbtouc'.
3418         * modules/unistr/u16-mbtouc-tests: New file.
3419         * tests/unistr/test-u16-mbtouc.c: New file.
3420
3421         Tests for module 'unistr/u8-mbtouc'.
3422         * modules/unistr/u8-mbtouc-tests: New file.
3423         * tests/unistr/test-u8-mbtouc.c: New file.
3424
3425         Tests for module 'unistr/u32-mbtouc-unsafe'.
3426         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3427         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3428         * tests/unistr/test-u32-mbtouc.h: New file.
3429
3430         Tests for module 'unistr/u16-mbtouc-unsafe'.
3431         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3432         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3433         * tests/unistr/test-u16-mbtouc.h: New file.
3434
3435         Tests for module 'unistr/u8-mbtouc-unsafe'.
3436         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3437         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3438         * tests/unistr/test-u8-mbtouc.h: New file.
3439
3440         Tests for module 'unistr/u32-mblen'.
3441         * modules/unistr/u32-mblen-tests: New file.
3442         * tests/unistr/test-u32-mblen.c: New file.
3443
3444         Tests for module 'unistr/u16-mblen'.
3445         * modules/unistr/u16-mblen-tests: New file.
3446         * tests/unistr/test-u16-mblen.c: New file.
3447
3448         Tests for module 'unistr/u8-mblen'.
3449         * modules/unistr/u8-mblen-tests: New file.
3450         * tests/unistr/test-u8-mblen.c: New file.
3451
3452         Tests for module 'unistr/u32-to-u16'.
3453         * modules/unistr/u32-to-u16-tests: New file.
3454         * tests/unistr/test-u32-to-u16.c: New file.
3455
3456         Tests for module 'unistr/u32-to-u8'.
3457         * modules/unistr/u32-to-u8-tests: New file.
3458         * tests/unistr/test-u32-to-u8.c: New file.
3459
3460         Tests for module 'unistr/u16-to-u32'.
3461         * modules/unistr/u16-to-u32-tests: New file.
3462         * tests/unistr/test-u16-to-u32.c: New file.
3463
3464         Tests for module 'unistr/u16-to-u8'.
3465         * modules/unistr/u16-to-u8-tests: New file.
3466         * tests/unistr/test-u16-to-u8.c: New file.
3467
3468         Tests for module 'unistr/u8-to-u32'.
3469         * modules/unistr/u8-to-u32-tests: New file.
3470         * tests/unistr/test-u8-to-u32.c: New file.
3471
3472         Tests for module 'unistr/u8-to-u16'.
3473         * modules/unistr/u8-to-u16-tests: New file.
3474         * tests/unistr/test-u8-to-u16.c: New file.
3475
3476         Tests for module 'unistr/u32-check'.
3477         * modules/unistr/u32-check-tests: New file.
3478         * tests/unistr/test-u32-check.c: New file.
3479
3480         Tests for module 'unistr/u16-check'.
3481         * modules/unistr/u16-check-tests: New file.
3482         * tests/unistr/test-u16-check.c: New file.
3483
3484         Tests for module 'unistr/u8-check'.
3485         * modules/unistr/u8-check-tests: New file.
3486         * tests/unistr/test-u8-check.c: New file.
3487
3488         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3489         (category_equals): New function.
3490         (main): Add more tests.
3491         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3492
3493         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3494
3495 2010-01-10  Bruno Haible  <bruno@clisp.org>
3496
3497         unistr/u*-strcoll: Try harder to distinguish different strings.
3498         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3499         compare s1 and s2 to see if they are different.
3500
3501 2010-01-10  Bruno Haible  <bruno@clisp.org>
3502
3503         unistr/u*-stpncpy: Fix the return value.
3504         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3505         description of the return value consistent with stpncpy in glibc.
3506         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3507         written non-NUL unit.
3508
3509 2010-01-10  Bruno Haible  <bruno@clisp.org>
3510
3511         unistr/u*-next: Add missing dependencies.
3512         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3513         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3514         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3515
3516 2010-01-10  Bruno Haible  <bruno@clisp.org>
3517
3518         unistr/u8-mbsnlen: Fix return value for incomplete character.
3519         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3520         u8_mblen.
3521         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3522         Remove unistr/u8-mblen.
3523         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3524         u16_mblen.
3525         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3526         Remove unistr/u16-mblen.
3527
3528 2010-01-10  Bruno Haible  <bruno@clisp.org>
3529
3530         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3531         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3532         Reported by Brian Gough <bjg@gnu.org> and
3533         Chris Clayton <chris2553@googlemail.com> via
3534         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3535
3536 2010-01-09  Bruno Haible  <bruno@clisp.org>
3537
3538         unistr/u16-to-u32: Reject invalid input.
3539         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3540         u16_mbtouc.
3541         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3542         Remove unistr/u16-mbtouc.
3543
3544         unistr/u16-to-u8: Reject invalid input.
3545         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3546         u16_mbtouc.
3547         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3548         Remove unistr/u16-mbtouc.
3549
3550         unistr/u8-to-u32: Reject invalid input.
3551         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3552         u8_mbtouc.
3553         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3554         Remove unistr/u8-mbtouc.
3555
3556         unistr/u8-to-u16: Reject invalid input.
3557         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3558         u8_mbtouc.
3559         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3560         Remove unistr/u8-mbtouc.
3561
3562 2010-01-09  Bruno Haible  <bruno@clisp.org>
3563
3564         Tests for module 'getlogin'.
3565         * modules/getlogin-tests: New file.
3566         * tests/test-getlogin.c: New file.
3567
3568         New module 'getlogin'.
3569         * lib/unistd.in.h (getlogin): New declaration.
3570         * lib/getlogin.c: New file.
3571         * m4/getlogin.m4: New file.
3572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3573         HAVE_GETLOGIN.
3574         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3575         HAVE_GETLOGIN.
3576         * modules/getlogin: New file.
3577         * doc/posix-functions/getlogin.texi: Mention the new module.
3578         Reported by John W. Eaton <jwe@gnu.org>.
3579
3580 2010-01-09  Bruno Haible  <bruno@clisp.org>
3581
3582         getlogin_r: Support for native Windows.
3583         * lib/getlogin_r.c: Include <windows.h>
3584         (getlogin_r): Implement for native Windows.
3585         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3586         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3587         via John W. Eaton <jwe@gnu.org>.
3588
3589 2010-01-09  Bruno Haible  <bruno@clisp.org>
3590
3591         getlogin_r: Small fixes.
3592         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3593         succeeds.
3594         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3595         before testing whether getlogin_r is declared. No need to set
3596         HAVE_DECL_GETLOGIN_R to 1.
3597         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3598
3599 2010-01-09  Bruno Haible  <bruno@clisp.org>
3600
3601         * lib/unistd.in.h (getlogin_r): Add comment.
3602
3603 2010-01-09  Bruno Haible  <bruno@clisp.org>
3604
3605         Tests for module 'getlogin_r'.
3606         * modules/getlogin_r-tests: New file.
3607         * tests/test-getlogin_r.c: New file.
3608
3609 2010-01-09  Jim Meyering  <meyering@redhat.com>
3610
3611         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3612         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3613         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3614
3615 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3616
3617         * lib/dup2.c (rpl_dup2): Improve comment.
3618
3619 2010-01-08  Eric Blake  <ebb9@byu.net>
3620
3621         maint.mk: allow packages to add makefile @@ exceptions
3622         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3623         (sc_makefile_check): Rename...
3624         (sc_makefile_at_at_check): ...to this, and use hook.
3625
3626         dup2: work around mingw bug
3627         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3628         Reported by Simon Josefsson.
3629
3630 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3631
3632         glob: Fix C++ compilation.
3633         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3634         C++.
3635
3636 2010-01-07  Bruno Haible  <bruno@clisp.org>
3637
3638         Fix indentation of wctype.in.h, broken since 2007-01-06.
3639         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3640
3641 2010-01-07  Bruno Haible  <bruno@clisp.org>
3642
3643         mbslen: Avoid collision with system function.
3644         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3645         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3646         * m4/mbslen.m4: New file.
3647         * modules/mbslen (Files): Add it.
3648         (configure.ac): Invoke gl_MBSLEN.
3649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3650         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3652         via Ian Beckwith <ianb@erislabs.net>.
3653
3654 2010-01-07  Bruno Haible  <bruno@clisp.org>
3655
3656         dirent: Document the last fix.
3657         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3658
3659 2010-01-07  Bruno Haible  <bruno@clisp.org>
3660
3661         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3662         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3663         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3664         va_list are defined.
3665         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3666         Reported by Eric Blake.
3667
3668 2010-01-07  Bruno Haible  <bruno@clisp.org>
3669
3670         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3671         * modules/xlist (Depends-on): Add 'list',
3672         * modules/xoset (Depends-on): Add 'oset'.
3673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3674
3675 2010-01-07  Bruno Haible  <bruno@clisp.org>
3676
3677         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3678         * doc/posix-functions/strncasecmp.texi: Likewise.
3679
3680 2010-01-07  Bruno Haible  <bruno@clisp.org>
3681
3682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3683
3684 2010-01-07  John W. Eaton  <jwe@octave.org>
3685
3686         wctype: allow C++ use
3687         * lib/wctype.in.h: Add extern "C" block for C++.
3688
3689 2010-01-06  Eric Blake  <ebb9@byu.net>
3690
3691         maint.mk: detect incorrect GFDL usage
3692         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3693
3694 2010-01-06  Jim Meyering  <meyering@redhat.com>
3695         and Eric Blake  <ebb9@byu.net>
3696
3697         maint.mk: ignore multi-line copyright in NEWS
3698         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3699
3700 2010-01-06  Eric Blake  <ebb9@byu.net>
3701
3702         select: add missing dependency
3703         * modules/select-tests (Depends-on): Move sockets dependency...
3704         * modules/select (Depends-on): ...here.
3705         Reported by Ian Beckwith.
3706
3707         doc: regenerate INSTALL
3708         * doc/INSTALL: Reflect recent autoconf update.
3709         * doc/INSTALL.ISO: Likewise.
3710         * doc/INSTALL.UTF-8: Likewise.
3711
3712         pread: fix compilation on glibc
3713         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3714         Reported by Ralf Wildenhues.
3715
3716         dirent: fix test failure
3717         * lib/dirent.in.h (includes): Guarantee ino_t.
3718         Reported by Ralf Wildenhues.
3719
3720 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3721
3722         linkat, renameat: avoid bad free
3723         * lib/at-func2.c (at_func2): Fix typo.
3724         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3725
3726 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3727
3728         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3729         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3730         to avoid failure of symlink test later.
3731
3732 2010-01-06  Eric Blake  <ebb9@byu.net>
3733
3734         stdio, unistd: guarantee ssize_t
3735         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3736         2008 are exposed when needed.
3737         * lib/stdio.in.h (includes): Likewise.
3738         Reported by Ralf Wildenhues.
3739
3740 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3741
3742         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3743         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3744         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3745
3746 2010-01-06  Jim Meyering  <meyering@redhat.com>
3747
3748         readtokens: this module *does* require xalloc.h
3749         It uses only functions that were omitted by the old syntax-check rule.
3750         * lib/readtokens.c: Include "xalloc.h" once again.
3751         * modules/readtokens (Depends-on): Add xalloc.
3752         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3753
3754 2010-01-05  Eric Blake  <ebb9@byu.net>
3755
3756         maint: support 'make announcement' from a VPATH build
3757         * top/maint.mk (announcement): Look for correct NEWS file.
3758
3759 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3760
3761         utimens (fdutimens): ignore a negative FD, per contract
3762         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3763         when we have a valid file descriptor.  Otherwise, using a brand
3764         new glibc (with just-patched futimens that now fails with EBADF)
3765         would cause this function to fail with ENOSYS.
3766         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3767         See also http://bugzilla.redhat.com/552320.
3768
3769 2010-01-05  Eric Blake  <ebb9@byu.net>
3770
3771         strcase: document what it provides
3772         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3773         gnulib module.
3774         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3775         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3776
3777 2010-01-05  Jim Meyering  <meyering@redhat.com>
3778
3779         maint: remove useless inclusions of "xalloc.h"
3780         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3781         * lib/readtokens.c: Likewise.
3782         * lib/same.c: Likewise.
3783         * modules/getloadavg (Depends-on): Remove xalloc.
3784         * modules/readtokens: Likewise.
3785         * modules/same: Likewise.
3786
3787         maint.mk: include 4 more function names in alloca.h-checking regexp
3788         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3789         regexp.  Before, we would give a false-positive (saying alloca.h
3790         is included unnecessarily) when the only uses involved omitted symbols.
3791
3792         xalloc.h: use consistent formatting
3793         * lib/xalloc.h: Move declarations to start in the first column.
3794
3795 2010-01-05  Eric Blake  <ebb9@byu.net>
3796
3797         mkdir: avoid xalloc
3798         * lib/mkdir.c (includes): Drop unused header.
3799         Reported by John W. Eaton.
3800
3801 2010-01-04  Jim Meyering  <meyering@redhat.com>
3802
3803         nl_langinfo: avoid configure-time syntax error
3804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3805         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3806         the empty string.  Don't let that provoke a shell syntax error.
3807
3808         regcomp, regexec, fnmatch: avoid array bounds read error
3809         * lib/regcomp.c (build_equiv_class): From glibc:
3810         Use only the low 24 bits of a findidx return value as an index
3811         into the weights array.  Patch by Ulrich Drepper:
3812         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3813         * lib/regexec.c (check_node_accept_bytes): Likewise.
3814         * lib/fnmatch_loop.c (FCT): Likewise.
3815
3816         regcomp: skip collseq lookup when there are no rules
3817         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3819
3820         regcomp: recognize ill-formed { } expressions
3821         * lib/regcomp.c (parse_dup_op): From glibc:
3822         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3823
3824         regcomp: fix typo in comment
3825         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3826         s/satisfy/satisfies/.
3827
3828         regcomp: sync from glibc: remove dead store
3829         * lib/regcomp.c (duplicate_node_closure): Remove useless
3830         search_duplicated_node call and dead store.
3831
3832         regcomp: sync from glibc; always use nl_langinfo
3833         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3834         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3835         * modules/regex (Depends-on): Add nl_langinfo.
3836
3837 2010-01-04  Eric Blake  <ebb9@byu.net>
3838
3839         fdopendir: fix configure test
3840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3841
3842 2010-01-01  Bruno Haible  <bruno@clisp.org>
3843
3844         wchar: Remove unused configure check.
3845         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3846
3847 2010-01-01  Eric Blake  <ebb9@byu.net>
3848
3849         headers: make check of system header explicit
3850         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3851         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3852         ourselves.
3853         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3856         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3857         internals.
3858         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3859         missing.
3860         Suggested by Bruno Haible.
3861
3862 2010-01-01  Jim Meyering  <meyering@redhat.com>
3863
3864         ChangeLog: tweak to eliminate unnecessary copyright line
3865         * ChangeLog: Remove a copyright line that was mistakenly updated
3866         by today's update-copyright run.  Reported by Eric Blake.
3867
3868         test-update-copyright: don't let envvar setting cause test failure
3869         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3870
3871 2010-01-01  Bruno Haible  <bruno@clisp.org>
3872
3873         localename: Avoid gcc warning.
3874         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3875         function if it is not used.
3876
3877 2010-01-01  Jim Meyering  <meyering@redhat.com>
3878
3879         update nearly all FSF copyright year lists to include 2010
3880         Use the same procedure as for 2009, outlined in
3881         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3882
3883         version-etc: set COPYRIGHT_YEAR to 2010
3884         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3885
3886 2009-12-31  Eric Blake  <ebb9@byu.net>
3887
3888         doc: correct availability of cygwin 1.5.x getopt
3889         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3890         variables.
3891         * doc/posix-functions/opterr.texi (opterr): Likewise.
3892         * doc/posix-functions/optind.texi (optind): Likewise.
3893         * doc/posix-functions/optopt.texi (optopt): Likewise.
3894         * doc/posix-functions/tzname.texi (tzname): Likewise.
3895
3896         openat: update maintainer
3897         * modules/openat (Maintainer): Add myself.
3898
3899         utimens: avoid shadowing warning
3900         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3901         buffers into one, to avoid shadowing, as well as avoiding a
3902         redundant stat.
3903         Reported by Jim Meyering.
3904
3905         test-dup2: avoid compiler warning
3906         * tests/test-dup2.c (is_inheritable): Only define if used.
3907
3908 2010-01-01  Bruno Haible  <bruno@clisp.org>
3909
3910         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3911         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3912         defined, use wctomb instead of wcrtomb.
3913
3914 2010-01-01  Bruno Haible  <bruno@clisp.org>
3915
3916         iconv: Reject native Solaris iconv.
3917         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3918         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3919
3920 2009-12-31  Bruno Haible  <bruno@clisp.org>
3921
3922         * tests/test-signal.c (main): Remove test of 'SIG'.
3923
3924 2009-12-31  Bruno Haible  <bruno@clisp.org>
3925
3926         spawn: Fix incomplete fix.
3927         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3928         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3929         warnings for GNULIB_POSIXCHECK again.
3930         Reported by Eric Blake.
3931
3932 2009-12-31  Bruno Haible  <bruno@clisp.org>
3933
3934         Avoid namespace pollution on glibc systems.
3935         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3936         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3937         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3938         glibc systems.
3939
3940 2009-12-31  Bruno Haible  <bruno@clisp.org>
3941
3942         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3943         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3945         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3946         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3947         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3948         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3949
3950 2009-12-31  Bruno Haible  <bruno@clisp.org>
3951
3952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3953         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3954         afterwards.
3955
3956 2009-12-31  Bruno Haible  <bruno@clisp.org>
3957
3958         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3959         SYS_UTSNAME_H.
3960
3961 2009-12-31  Bruno Haible  <bruno@clisp.org>
3962
3963         spawn: Fix misapplied patch.
3964         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3965         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3966         warnings for GNULIB_POSIXCHECK.
3967
3968 2009-12-31  Bruno Haible  <bruno@clisp.org>
3969
3970         times: Update after sys_times changed.
3971         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3972         * modules/times (Files): Add it.
3973         (configure.ac): Invoke gl_FUNC_TIMES.
3974
3975 2009-12-31  Bruno Haible  <bruno@clisp.org>
3976
3977         Use AC_C_INLINE where necessary.
3978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3979         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3981         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3982         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3983         * m4/mbiter.m4 (gl_MBITER): Likewise.
3984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3986         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3987         * modules/u64 (configure.ac): Likewise.
3988
3989 2009-12-31  Bruno Haible  <bruno@clisp.org>
3990
3991         Use AC_C_INLINE instead of module 'inline' where possible.
3992         * modules/inline (Description): Clarify purpose.
3993         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3994         * modules/count-one-bits (Depends-on): Remove inline.
3995         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3996         * modules/openat (Depends-on): Remove inline.
3997         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3998         instead of depending on module 'inline'.
3999         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4000         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4001         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4002         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4003         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4004         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4005         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4006         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4007         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4008         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4009         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4010         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4011         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4012         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4013         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4014         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4015         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4016         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4017         Likewise.
4018         * modules/unictype/property-ascii-hex-digit (Depends-on,
4019         configure.ac): Likewise.
4020         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4021         configure.ac): Likewise.
4022         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4023         configure.ac): Likewise.
4024         * modules/unictype/property-bidi-block-separator (Depends-on,
4025         configure.ac): Likewise.
4026         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4027         configure.ac): Likewise.
4028         * modules/unictype/property-bidi-common-separator (Depends-on,
4029         configure.ac): Likewise.
4030         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4031         Likewise.
4032         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4033         configure.ac): Likewise.
4034         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4035         configure.ac): Likewise.
4036         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4037         configure.ac): Likewise.
4038         * modules/unictype/property-bidi-european-digit (Depends-on,
4039         configure.ac): Likewise.
4040         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4041         configure.ac): Likewise.
4042         * modules/unictype/property-bidi-left-to-right (Depends-on,
4043         configure.ac): Likewise.
4044         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4045         configure.ac): Likewise.
4046         * modules/unictype/property-bidi-other-neutral (Depends-on,
4047         configure.ac): Likewise.
4048         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4049         Likewise.
4050         * modules/unictype/property-bidi-segment-separator (Depends-on,
4051         configure.ac): Likewise.
4052         * modules/unictype/property-bidi-whitespace (Depends-on,
4053         configure.ac): Likewise.
4054         * modules/unictype/property-combining (Depends-on, configure.ac):
4055         Likewise.
4056         * modules/unictype/property-composite (Depends-on, configure.ac):
4057         Likewise.
4058         * modules/unictype/property-currency-symbol (Depends-on,
4059         configure.ac): Likewise.
4060         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4061         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4062         Likewise.
4063         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4064         configure.ac): Likewise.
4065         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4066         Likewise.
4067         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4068         Likewise.
4069         * modules/unictype/property-extender (Depends-on, configure.ac):
4070         Likewise.
4071         * modules/unictype/property-format-control (Depends-on, configure.ac):
4072         Likewise.
4073         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4074         Likewise.
4075         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4076         Likewise.
4077         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4078         Likewise.
4079         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4080         Likewise.
4081         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4082         Likewise.
4083         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4084         Likewise.
4085         * modules/unictype/property-id-start (Depends-on, configure.ac):
4086         Likewise.
4087         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4088         Likewise.
4089         * modules/unictype/property-ids-binary-operator (Depends-on,
4090         configure.ac): Likewise.
4091         * modules/unictype/property-ids-trinary-operator (Depends-on,
4092         configure.ac): Likewise.
4093         * modules/unictype/property-ignorable-control (Depends-on,
4094         configure.ac): Likewise.
4095         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4096         Likewise.
4097         * modules/unictype/property-join-control (Depends-on, configure.ac):
4098         Likewise.
4099         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4100         Likewise.
4101         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4102         Likewise.
4103         * modules/unictype/property-logical-order-exception (Depends-on,
4104         configure.ac): Likewise.
4105         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4106         Likewise.
4107         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4108         * modules/unictype/property-non-break (Depends-on, configure.ac):
4109         Likewise.
4110         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4111         Likewise.
4112         * modules/unictype/property-numeric (Depends-on, configure.ac):
4113         Likewise.
4114         * modules/unictype/property-other-alphabetic (Depends-on,
4115         configure.ac): Likewise.
4116         * modules/unictype/property-other-default-ignorable-code-point
4117         (Depends-on, configure.ac): Likewise.
4118         * modules/unictype/property-other-grapheme-extend (Depends-on,
4119         configure.ac): Likewise.
4120         * modules/unictype/property-other-id-continue (Depends-on,
4121         configure.ac): Likewise.
4122         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4123         Likewise.
4124         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4125         Likewise.
4126         * modules/unictype/property-other-math (Depends-on, configure.ac):
4127         Likewise.
4128         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4129         Likewise.
4130         * modules/unictype/property-paired-punctuation (Depends-on,
4131         configure.ac): Likewise.
4132         * modules/unictype/property-paragraph-separator (Depends-on,
4133         configure.ac): Likewise.
4134         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4135         Likewise.
4136         * modules/unictype/property-pattern-white-space (Depends-on,
4137         configure.ac): Likewise.
4138         * modules/unictype/property-private-use (Depends-on, configure.ac):
4139         Likewise.
4140         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4141         Likewise.
4142         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4143         Likewise.
4144         * modules/unictype/property-radical (Depends-on, configure.ac):
4145         Likewise.
4146         * modules/unictype/property-sentence-terminal (Depends-on,
4147         configure.ac): Likewise.
4148         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4149         Likewise.
4150         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4151         * modules/unictype/property-terminal-punctuation (Depends-on,
4152         configure.ac): Likewise.
4153         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4154         Likewise.
4155         * modules/unictype/property-unassigned-code-value (Depends-on,
4156         configure.ac): Likewise.
4157         * modules/unictype/property-unified-ideograph (Depends-on,
4158         configure.ac): Likewise.
4159         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4160         Likewise.
4161         * modules/unictype/property-variation-selector (Depends-on,
4162         configure.ac): Likewise.
4163         * modules/unictype/property-white-space (Depends-on, configure.ac):
4164         Likewise.
4165         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4166         Likewise.
4167         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4168         Likewise.
4169         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4170         Likewise.
4171         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4172         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4173         Likewise.
4174
4175 2009-12-31  Bruno Haible  <bruno@clisp.org>
4176
4177         Remove unnecessary AC_C_INLINE invocation.
4178         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4179         since 2009-08-21.
4180
4181 2009-12-31  Jim Meyering  <meyering@redhat.com>
4182
4183         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4184         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4185         With this change, we can all remove the gpg_key_ID = ... definition
4186         from our respective cfg.mk files.
4187
4188         maint.mk: create announcement template in ~/, not in /tmp
4189         * top/maint.mk (emit_upload_commands): Adjust.
4190         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4191         Remove temporary file, .ci-msg.
4192
4193 2009-12-31  Eric Blake  <ebb9@byu.net>
4194
4195         link-warning: always build headers with link warnings
4196         * modules/arpa_inet (Makefile.am): Always build replacement
4197         header.
4198         * modules/ctype (Makefile.am): Likewise.
4199         * modules/dirent (Makefile.am): Likewise.
4200         * modules/inttypes (Makefile.am): Likewise.
4201         * modules/langinfo (Makefile.am): Likewise.
4202         * modules/locale (Makefile.am): Likewise.
4203         * modules/spawn (Makefile.am): Likewise.
4204         * modules/sys_file (Makefile.am): Likewise.
4205         * modules/sys_ioctl (Makefile.am): Likewise.
4206         * modules/sys_select (Makefile.am): Likewise.
4207         * modules/sys_socket (Makefile.am): Likewise.
4208         * modules/sys_times (Makefile.am): Likewise.
4209         * modules/sys_utsname (Makefile.am): Likewise.
4210         * modules/sys_wait (Makefile.am): Likewise.
4211         * modules/wchar (Makefile.am): Likewise.
4212         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4213         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4214         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4215         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4217         Likewise.
4218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4219         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4220         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4221         Likewise.
4222         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4223         Likewise.
4224         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4225         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4226         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4228         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4229         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4230         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4231         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4232         (gl_WCHAR_H_DEFAULTS): Likewise.
4233
4234 2009-12-31  Eric Blake  <ebb9@byu.net>
4235
4236         signal, spawn: use link warnings
4237         * lib/signal.in.h (sigset_t): Make unconditional.
4238         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4239         (sigpending, sigprocmask, sigaction): Add link warnings.
4240         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4241         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4242         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4243         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4244         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4245         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4246         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4247         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4248         (posix_spawn_file_actions_destroy)
4249         (posix_spawn_file_actions_addopen)
4250         (posix_spawn_file_actions_addclose)
4251         (posix_spawn_file_actions_adddup2): Likewise.
4252         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4253         * tests/test-signal.c (main): Enhance test.
4254
4255         spawn: improve wrapper support
4256         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4257         (gl_SPAWN_H_DEFAULTS): New defaults.
4258         * modules/spawn (Makefile.am): Substitute them.
4259         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4260         Only declare if missing or broken.
4261
4262         sys_times, sys_utsname: use include_next
4263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4264         header.
4265         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4267         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4268         * modules/sys_times (Depends-on): Add include_next.
4269         (Makefile.am): Substitute additional values.
4270         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4271         * lib/sys_times.in.h (includes): Include native header, if
4272         available.
4273         * lib/sys_utsname.in.h (includes): Likewise.
4274         * tests/test-sys_times.c (main): Enhance test.
4275
4276         fdutimensat: revert prior patch
4277         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4278         utimens.h.
4279         Reported by Bruno Haible.
4280
4281 2009-12-30  Eric Blake  <ebb9@byu.net>
4282
4283         sys_wait: drop link-warning dependency
4284         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4285         link-warning efforts.
4286         * lib/sys_wait.in.h: Likewise.
4287
4288         fdutimensat: remove bogus dependency
4289         * modules/fdutimensat (Depends-on): Drop inline.
4290
4291         unistd: fix typo
4292         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4293
4294 2009-12-30  Bruno Haible  <bruno@clisp.org>
4295
4296         Fix compilation error with Solaris cc.
4297         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4298         * lib/unicase/u16-is-invariant.c: Likewise.
4299         * lib/unicase/u32-is-invariant.c: Likewise.
4300         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4301
4302 2009-12-30  Bruno Haible  <bruno@clisp.org>
4303
4304         Fix test crash.
4305         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4306         locales.
4307         Reported by Simon Josefsson <simon@josefsson.org>.
4308
4309 2009-12-30  Bruno Haible  <bruno@clisp.org>
4310
4311         Fix compilation error on most platforms.
4312         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4313         Reported by Simon Josefsson <simon@josefsson.org>
4314         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4315
4316 2009-12-30  Eric Blake  <ebb9@byu.net>
4317
4318         futimens, utimensat: work around ntfs-3g bug
4319         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4320         a ctime bug is present, and expand workaround to cover ntfs-3g.
4321         * lib/utimens.c (fdutimens, lutimens): Likewise.
4322         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4323         (validate_timespec): Adjust return value.
4324         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4325         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4326         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4327
4328 2009-12-29  Eric Blake  <ebb9@byu.net>
4329
4330         link-warning: make usage consistent
4331         * modules/ctype (Depends-on): Add link-warning.
4332         (Makefile.am): Update rules accordingly.
4333         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4334         * modules/locale (Depends-on, Makefile.am): Likewise.
4335         * modules/sys_file (Makefile.am): Likewise.
4336         * modules/getopt-posix (Makefile.am): Delete unused link warning
4337         efforts.
4338         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4339         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4340         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4341         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4342
4343         stdio: remove unused variables
4344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4346         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4347
4348         tests: test more substitute headers
4349         * modules/ctype-tests: New file.
4350         * modules/dirent-tests: Likewise.
4351         * modules/spawn-tests: Likewise.
4352         * modules/sys_file-tests: Likewise.
4353         * modules/sys_ioctl-tests: Likewise.
4354         * modules/sys_wait-tests: Likewise.
4355         * tests/test-ctype.c: Likewise.
4356         * tests/test-dirent.c: Likewise.
4357         * tests/test-spawn.c: Likewise.
4358         * tests/test-sys_file.c: Likewise.
4359         * tests/test-sys_ioctl.c: Likewise.
4360         * tests/test-sys_wait.c: Likewise.
4361         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4362         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4363         whether or not flock is in use.
4364
4365         tests: remove License section from module
4366         * modules/arpa_inet-tests: Remove unneeded section.
4367         * modules/byteswap-tests: Likewise.
4368         * modules/ceilf-tests: Likewise.
4369         * modules/ceill-tests: Likewise.
4370         * modules/crypto/des-tests: Likewise.
4371         * modules/crypto/gc-arcfour-tests: Likewise.
4372         * modules/crypto/gc-arctwo-tests: Likewise.
4373         * modules/crypto/gc-des-tests: Likewise.
4374         * modules/crypto/gc-hmac-md5-tests: Likewise.
4375         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4376         * modules/crypto/gc-md2-tests: Likewise.
4377         * modules/crypto/gc-md4-tests: Likewise.
4378         * modules/crypto/gc-md5-tests: Likewise.
4379         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4380         * modules/crypto/gc-rijndael-tests: Likewise.
4381         * modules/crypto/gc-sha1-tests: Likewise.
4382         * modules/crypto/gc-tests: Likewise.
4383         * modules/crypto/md2-tests: Likewise.
4384         * modules/crypto/md4-tests: Likewise.
4385         * modules/fcntl-h-tests: Likewise.
4386         * modules/floorf-tests: Likewise.
4387         * modules/floorl-tests: Likewise.
4388         * modules/frexp-nolibm-tests: Likewise.
4389         * modules/frexp-tests: Likewise.
4390         * modules/frexpl-nolibm-tests: Likewise.
4391         * modules/frexpl-tests: Likewise.
4392         * modules/getaddrinfo-tests: Likewise.
4393         * modules/inttypes-tests: Likewise.
4394         * modules/isfinite-tests: Likewise.
4395         * modules/isinf-tests: Likewise.
4396         * modules/ldexpl-tests: Likewise.
4397         * modules/locale-tests: Likewise.
4398         * modules/math-tests: Likewise.
4399         * modules/netdb-tests: Likewise.
4400         * modules/netinet_in-tests: Likewise.
4401         * modules/printf-frexp-tests: Likewise.
4402         * modules/printf-frexpl-tests: Likewise.
4403         * modules/priv-set-tests: Likewise.
4404         * modules/random_r-tests: Likewise.
4405         * modules/round-tests: Likewise.
4406         * modules/roundf-tests: Likewise.
4407         * modules/roundl-tests: Likewise.
4408         * modules/search-tests: Likewise.
4409         * modules/select-tests: Likewise.
4410         * modules/signal-tests: Likewise.
4411         * modules/stdbool-tests: Likewise.
4412         * modules/stddef-tests: Likewise.
4413         * modules/stdint-tests: Likewise.
4414         * modules/stdio-tests: Likewise.
4415         * modules/stdlib-tests: Likewise.
4416         * modules/string-tests: Likewise.
4417         * modules/strings-tests: Likewise.
4418         * modules/sys_select-tests: Likewise.
4419         * modules/sys_socket-tests: Likewise.
4420         * modules/sys_stat-tests: Likewise.
4421         * modules/sys_time-tests: Likewise.
4422         * modules/sys_utsname-tests: Likewise.
4423         * modules/sysexits-tests: Likewise.
4424         * modules/time-tests: Likewise.
4425         * modules/trunc-tests: Likewise.
4426         * modules/truncf-tests: Likewise.
4427         * modules/truncl-tests: Likewise.
4428         * modules/tsearch-tests: Likewise.
4429         * modules/unistd-tests: Likewise.
4430         * modules/wchar-tests: Likewise.
4431         * modules/wctype-tests: Likewise.
4432
4433         tests: fix license on several tests
4434         * tests/test-des.c: Update to GPLv3+.
4435         * tests/test-flock.c: Likewise.
4436         * tests/test-fsync.c: Likewise.
4437         * tests/test-futimens.h: Likewise.
4438         * tests/test-gc-arcfour.c: Likewise.
4439         * tests/test-gc-arctwo.c: Likewise.
4440         * tests/test-gc-des.c: Likewise.
4441         * tests/test-gc-hmac-md5.c: Likewise.
4442         * tests/test-gc-hmac-sha1.c: Likewise.
4443         * tests/test-gc-md2.c: Likewise.
4444         * tests/test-gc-md4.c: Likewise.
4445         * tests/test-gc-md5.c: Likewise.
4446         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4447         * tests/test-gc-rijndael.c: Likewise.
4448         * tests/test-gc-sha1.c: Likewise.
4449         * tests/test-gc.c: Likewise.
4450         * tests/test-getcwd.c: Likewise.
4451         * tests/test-link.c: Likewise.
4452         * tests/test-link.h: Likewise.
4453         * tests/test-lutimens.h: Likewise.
4454         * tests/test-md2.c: Likewise.
4455         * tests/test-md4.c: Likewise.
4456         * tests/test-mkdir.h: Likewise.
4457         * tests/test-rename.c: Likewise.
4458         * tests/test-rename.h: Likewise.
4459         * tests/test-safe-alloc.c: Likewise.
4460         * tests/test-utimens-common.h: Likewise.
4461         * tests/test-utimens.h: Likewise.
4462
4463         maint: sync license texts
4464         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4465         * doc/gpl-3.0.texi: Revert copyright year update.
4466         * doc/lgpl-3.0.texi: Likewise.
4467
4468 2009-12-29  Jim Meyering  <meyering@redhat.com>
4469
4470         update nearly all FSF copyright year lists to include 2009
4471         The files named by the following are exempted:
4472             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4473               test -f "$dst" && { echo "$dst"; continue; }
4474               test -d "$dst" || continue
4475               echo "$dst"/$(basename "$src")
4476             done > exempt
4477             git ls-files tests/unictype >> exempt
4478         In the remaining files, convert to all-interval notation if
4479         - there is already at least one year interval like 2000-2003
4480         - the file is maintained by me
4481         - the file is in lib/uni*/, where that style already prevails
4482         Otherwise, use update-copyright's default.
4483
4484 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4485         and Eric Blake  <ebb9@byu.net>
4486
4487         tests: don't require debug system() to pass
4488         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4489         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4490         * tests/test-unlink.h (test_unlink_func): Likewise.
4491         * tests/test-fstatat.c (main): ...into callers.
4492         * tests/test-lstat.c (main): Likewise.
4493         * tests/test-rmdir.c (main): Likewise.
4494         * tests/test-unlink.c (main): Likewise.
4495         * tests/test-unlinkat.c (main): Likewise.
4496         * tests/test-areadlink-with-size.c (main): Don't require a
4497         debug-only system call to pass, aiding cross-testing to mingw.
4498         * tests/test-areadlink.c (main): Likewise.
4499         * tests/test-areadlinkat-with-size.c (main): Likewise.
4500         * tests/test-areadlinkat.c (main): Likewise.
4501         * tests/test-canonicalize-lgpl.c (main): Likewise.
4502         * tests/test-canonicalize.c (main): Likewise.
4503         * tests/test-chown.c (main): Likewise.
4504         * tests/test-fchownat.c (main): Likewise.
4505         * tests/test-lchown.c (main): Likewise.
4506         * tests/test-fdutimensat.c (main): Likewise.
4507         * tests/test-futimens.c (main): Likewise.
4508         * tests/test-link.c (main): Likewise.
4509         * tests/test-linkat.c (main): Likewise.
4510         * tests/test-mkdir.c (main): Likewise.
4511         * tests/test-mkdirat.c (main): Likewise.
4512         * tests/test-mkfifo.c (main): Likewise.
4513         * tests/test-mkfifoat.c (main): Likewise.
4514         * tests/test-mknod.c (main): Likewise.
4515         * tests/test-readlink.c (main): Likewise.
4516         * tests/test-remove.c (main): Likewise.
4517         * tests/test-rename.c (main): Likewise.
4518         * tests/test-renameat.c (main): Likewise.
4519         * tests/test-symlink.c (main): Likewise.
4520         * tests/test-symlinkat.c (main): Likewise.
4521         * tests/test-utimens.c (main): Likewise.
4522         * tests/test-utimensat.c (main): Likewise.
4523
4524 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4525
4526         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4527         on $(UNUSED_PARAMETER_H) to avoid build failure.
4528
4529 2009-12-28  Jim Meyering  <meyering@redhat.com>
4530
4531         update-copyright: you may specify a max. line length other than 72
4532         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4533
4534         maint: use consistent FSF copyright line syntax
4535         * lib/posixtm.c: Add missing comma in FSF copyright line.
4536         * lib/posixtm.h: Likewise.
4537         * lib/getugroups.c: Add missing ", Inc.".
4538
4539         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4540         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4541         FSF copyright line.  Remove trailing blanks.
4542
4543 2009-12-28  Eric Blake  <ebb9@byu.net>
4544
4545         test-dup2: reduce dependencies
4546         * modules/cloexec (Configure.ac): Set witness.
4547         * modules/dup2-tests (Depends-on): Drop cloexec.
4548         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4549         not present.
4550         Suggested by Bruno Haible.
4551
4552 2009-12-26  Bruno Haible  <bruno@clisp.org>
4553
4554         Remove an unneeded dependency.
4555         * modules/fseterr (Depends-on): Remove dup2.
4556
4557 2009-12-26  Eric Blake  <ebb9@byu.net>
4558
4559         tests: use macros.h in more places
4560         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4561         (ASSERT_STREAM): Provide default of stderr.
4562         * tests/test-dirent-safer.c: Include macros.h, using alternate
4563         stream for assertions.
4564         * tests/test-dup-safer.c: Likewise.
4565         * tests/test-freopen-safer.c: Likewise.
4566         * tests/test-getopt.c: Likewise.
4567         * tests/test-openat-safer.c: Likewise.
4568         * tests/test-pipe.c: Likewise.
4569         * tests/test-popen-safer.c: Likewise.
4570         * modules/dirent-safer-tests (Files): Include macros.h.
4571         * modules/unistd-safer-tests (Files): Likewise.
4572         * modules/freopen-safer-tests (Files): Likewise.
4573         * modules/getopt-posix-tests (Files): Likewise.
4574         * modules/openat-safer-tests (Files): Likewise.
4575         * modules/pipe-tests (Files): Likewise.
4576
4577 2009-12-26  Bruno Haible  <bruno@clisp.org>
4578
4579         javacomp: Portability fix.
4580         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4581         that it also works on Solaris.
4582
4583 2009-12-26  Bruno Haible  <bruno@clisp.org>
4584
4585         localename: Fix storage allocation of gl_locale_name_thread's result.
4586         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4587         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4588         all platforms that have 'uselocale'.
4589         (gl_locale_name_thread_unsafe): New function, extracted from
4590         gl_locale_name_thread.
4591         (gl_locale_name_thread): Call struniq on all platforms that have
4592         'uselocale'.
4593         * tests/test-localename.c (test_locale_name_thread): Check that the
4594         resulting strings are permanently allocated.
4595         * modules/localename-tests (Depends-on): Add strdup.
4596
4597 2009-12-26  Bruno Haible  <bruno@clisp.org>
4598
4599         * tests/test-localename.c (categories): Fill in the strings.
4600
4601 2009-12-26  Jim Meyering  <meyering@redhat.com>
4602
4603         isdir: complete the removal of m4/isdir.m4
4604         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4605
4606         isdir: clean up, since at least grep still uses it
4607         * lib/isdir.c: Include "isdir.h".
4608         (S_ISDIR): Remove now-unneeded definition.
4609         * modules/isdir (Files): Add lib/isdir.h.
4610         * lib/isdir.h: New file, with declaration.
4611         * m4/isdir.m4: Remove file -- unneeded.
4612
4613 2009-12-25  Bruno Haible  <bruno@clisp.org>
4614
4615         selinux-h: Make generated .h files standalone.
4616         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4617         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4618         * lib/se-selinux.in.h: Likewise.
4619         * modules/selinux-h (Depends-on): Add unused-parameter.
4620         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4621         selinux/selinux.h and selinux/context.h.
4622         Suggested by Eric Blake.
4623
4624 2009-12-25  Bruno Haible  <bruno@clisp.org>
4625
4626         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4627         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4628         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4629         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4630         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4631
4632 2009-12-24  Bruno Haible  <bruno@clisp.org>
4633
4634         openat: Fix warning.
4635         * lib/openat-proc.c: Include <unistd.h>.
4636
4637 2009-12-24  Bruno Haible  <bruno@clisp.org>
4638
4639         New module 'unused-parameter'.
4640         * build-aux/unused-parameter.h: New file, extracted from earlier
4641         gnulib-common.m4.
4642         * modules/unused-parameter: New file.
4643         * lib/unistr.h: Include unused-parameter.h.
4644         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4645         _GL_UNUSED.
4646         * modules/unistr/base (Depends-on): Add unused-parameter.
4647
4648 2009-12-24  Bruno Haible  <bruno@clisp.org>
4649
4650         Add missing dependencies to 'extensions' module.
4651         * m4/extensions.m4: Add comment.
4652         * modules/accept4 (Depends-on): Add extensions.
4653         * modules/dup3 (Depends-on): Likewise.
4654         * modules/fcntl (Depends-on): Likewise.
4655         * modules/futimens (Depends-on): Likewise.
4656         * modules/mknod (Depends-on): Likewise.
4657         * modules/pipe2 (Depends-on): Likewise.
4658         * modules/stat-time (Depends-on): Likewise.
4659         * modules/strcasestr-simple (Depends-on): Likewise.
4660         * modules/strsignal (Depends-on): Likewise.
4661         * modules/utimensat (Depends-on): Likewise.
4662         * modules/localcharset (Depends-on): Likewise. Needed because of
4663         gl_FCNTL_O_FLAGS.
4664         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4665         AC_TYPE_MBSTATE_T.
4666         * modules/wcsnrtombs (Depends-on): Likewise.
4667         * modules/wcsrtombs (Depends-on): Likewise.
4668
4669 2009-12-24  Bruno Haible  <bruno@clisp.org>
4670
4671         binary-io: Avoid gcc warning due to SET_BINARY.
4672         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4673         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4674
4675 2009-12-24  Bruno Haible  <bruno@clisp.org>
4676
4677         Avoid future namespace pollution on glibc systems.
4678         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4679         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4680         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4681         glibc systems.
4682
4683 2009-12-24  Bruno Haible  <bruno@clisp.org>
4684
4685         Refactor common macros used in tests.
4686         * tests/macros.h: New file.
4687         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4688         and/or <stdlib.h>, if appropriate.
4689         (ASSERT, SIZEOF): Remove macros.
4690         * tests/test-areadlink-with-size.c: Likewise.
4691         * tests/test-areadlinkat.c: Likewise.
4692         * tests/test-areadlinkat-with-size.c: Likewise.
4693         * tests/test-argmatch.c: Likewise.
4694         * tests/test-argv-iter.c: Likewise.
4695         * tests/test-array-mergesort.c: Likewise.
4696         * tests/test-array_list.c: Likewise.
4697         * tests/test-array_oset.c: Likewise.
4698         * tests/test-avltree_list.c: Likewise.
4699         * tests/test-avltree_oset.c: Likewise.
4700         * tests/test-avltreehash_list.c: Likewise.
4701         * tests/test-base64.c: Likewise.
4702         * tests/test-binary-io.c: Likewise.
4703         * tests/test-bitrotate.c: Likewise.
4704         * tests/test-btowc.c: Likewise.
4705         * tests/test-byteswap.c: Likewise.
4706         * tests/test-c-ctype.c: Likewise.
4707         * tests/test-c-stack.c: Likewise.
4708         * tests/test-c-strcasecmp.c: Likewise.
4709         * tests/test-c-strcasestr.c: Likewise.
4710         * tests/test-c-strncasecmp.c: Likewise.
4711         * tests/test-c-strstr.c: Likewise.
4712         * tests/test-canonicalize-lgpl.c: Likewise.
4713         * tests/test-canonicalize.c: Likewise.
4714         * tests/test-carray_list.c: Likewise.
4715         * tests/test-ceilf1.c: Likewise.
4716         * tests/test-ceilf2.c: Likewise.
4717         * tests/test-ceill.c: Likewise.
4718         * tests/test-chown.c: Likewise.
4719         * tests/test-cloexec.c: Likewise.
4720         * tests/test-copy-acl.c: Likewise.
4721         * tests/test-copy-file.c: Likewise.
4722         * tests/test-count-one-bits.c: Likewise.
4723         * tests/test-dprintf-posix.c: Likewise.
4724         * tests/test-dup2.c: Likewise.
4725         * tests/test-dup3.c: Likewise.
4726         * tests/test-duplocale.c: Likewise.
4727         * tests/test-fbufmode.c: Likewise.
4728         * tests/test-fchdir.c: Likewise.
4729         * tests/test-fchownat.c: Likewise.
4730         * tests/test-fcntl-safer.c: Likewise.
4731         * tests/test-fcntl.c: Likewise.
4732         * tests/test-fdopendir.c: Likewise.
4733         * tests/test-fdutimensat.c: Likewise.
4734         * tests/test-fflush2.c: Likewise.
4735         * tests/test-file-has-acl.c: Likewise.
4736         * tests/test-filevercmp.c: Likewise.
4737         * tests/test-flock.c: Likewise.
4738         * tests/test-floorf1.c: Likewise.
4739         * tests/test-floorf2.c: Likewise.
4740         * tests/test-floorl.c: Likewise.
4741         * tests/test-fnmatch.c: Likewise.
4742         * tests/test-fopen.h: Likewise.
4743         * tests/test-fpending.c: Likewise.
4744         * tests/test-fprintf-posix.c: Likewise.
4745         * tests/test-fpurge.c: Likewise.
4746         * tests/test-freadable.c: Likewise.
4747         * tests/test-freadahead.c: Likewise.
4748         * tests/test-freading.c: Likewise.
4749         * tests/test-freadptr.c: Likewise.
4750         * tests/test-freadptr2.c: Likewise.
4751         * tests/test-freadseek.c: Likewise.
4752         * tests/test-freopen.c: Likewise.
4753         * tests/test-frexp.c: Likewise.
4754         * tests/test-frexpl.c: Likewise.
4755         * tests/test-fseek.c: Likewise.
4756         * tests/test-fseeko.c: Likewise.
4757         * tests/test-fstatat.c: Likewise.
4758         * tests/test-fstrcmp.c: Likewise.
4759         * tests/test-fsync.c: Likewise.
4760         * tests/test-ftell.c: Likewise.
4761         * tests/test-ftello.c: Likewise.
4762         * tests/test-func.c: Likewise.
4763         * tests/test-futimens.c: Likewise.
4764         * tests/test-fwritable.c: Likewise.
4765         * tests/test-fwriting.c: Likewise.
4766         * tests/test-getcwd.c: Likewise.
4767         * tests/test-getdate.c: Likewise.
4768         * tests/test-getdelim.c: Likewise.
4769         * tests/test-getdtablesize.c: Likewise.
4770         * tests/test-getgroups.c: Likewise.
4771         * tests/test-getline.c: Likewise.
4772         * tests/test-getndelim2.c: Likewise.
4773         * tests/test-glob.c: Likewise.
4774         * tests/test-hash.c: Likewise.
4775         * tests/test-i-ring.c: Likewise.
4776         * tests/test-iconv-utf.c: Likewise.
4777         * tests/test-iconv.c: Likewise.
4778         * tests/test-idpriv-drop.c: Likewise.
4779         * tests/test-idpriv-droptemp.c: Likewise.
4780         * tests/test-inet_ntop.c: Likewise.
4781         * tests/test-inet_pton.c: Likewise.
4782         * tests/test-isblank.c: Likewise.
4783         * tests/test-isfinite.c: Likewise.
4784         * tests/test-isinf.c: Likewise.
4785         * tests/test-isnan.c: Likewise.
4786         * tests/test-isnand.h: Likewise.
4787         * tests/test-isnanf.h: Likewise.
4788         * tests/test-isnanl.h: Likewise.
4789         * tests/test-lchown.c: Likewise.
4790         * tests/test-ldexpl.c: Likewise.
4791         * tests/test-link.c: Likewise.
4792         * tests/test-linkat.c: Likewise.
4793         * tests/test-linked_list.c: Likewise.
4794         * tests/test-linkedhash_list.c: Likewise.
4795         * tests/test-localename.c: Likewise.
4796         * tests/test-lseek.c: Likewise.
4797         * tests/test-lstat.c: Likewise.
4798         * tests/test-mbmemcasecmp.c: Likewise.
4799         * tests/test-mbmemcasecoll.c: Likewise.
4800         * tests/test-mbrtowc.c: Likewise.
4801         * tests/test-mbscasecmp.c: Likewise.
4802         * tests/test-mbscasestr1.c: Likewise.
4803         * tests/test-mbscasestr2.c: Likewise.
4804         * tests/test-mbscasestr3.c: Likewise.
4805         * tests/test-mbscasestr4.c: Likewise.
4806         * tests/test-mbschr.c: Likewise.
4807         * tests/test-mbscspn.c: Likewise.
4808         * tests/test-mbsinit.c: Likewise.
4809         * tests/test-mbsncasecmp.c: Likewise.
4810         * tests/test-mbsnrtowcs.c: Likewise.
4811         * tests/test-mbspbrk.c: Likewise.
4812         * tests/test-mbspcasecmp.c: Likewise.
4813         * tests/test-mbsrchr.c: Likewise.
4814         * tests/test-mbsrtowcs.c: Likewise.
4815         * tests/test-mbsspn.c: Likewise.
4816         * tests/test-mbsstr1.c: Likewise.
4817         * tests/test-mbsstr2.c: Likewise.
4818         * tests/test-mbsstr3.c: Likewise.
4819         * tests/test-memchr.c: Likewise.
4820         * tests/test-memchr2.c: Likewise.
4821         * tests/test-memcmp.c: Likewise.
4822         * tests/test-memmem.c: Likewise.
4823         * tests/test-memrchr.c: Likewise.
4824         * tests/test-mkdir.c: Likewise.
4825         * tests/test-mkdirat.c: Likewise.
4826         * tests/test-mkfifo.c: Likewise.
4827         * tests/test-mkfifoat.c: Likewise.
4828         * tests/test-mknod.c: Likewise.
4829         * tests/test-nanosleep.c: Likewise.
4830         * tests/test-nl_langinfo.c: Likewise.
4831         * tests/test-obstack-printf.c: Likewise.
4832         * tests/test-open.c: Likewise.
4833         * tests/test-openat.c: Likewise.
4834         * tests/test-pipe-filter-gi1.c: Likewise.
4835         * tests/test-pipe-filter-gi2-main.c: Likewise.
4836         * tests/test-pipe-filter-ii1.c: Likewise.
4837         * tests/test-pipe-filter-ii2-main.c: Likewise.
4838         * tests/test-pipe2.c: Likewise.
4839         * tests/test-popen.h: Likewise.
4840         * tests/test-posixtm.c: Likewise.
4841         * tests/test-pread.c: Likewise.
4842         * tests/test-printf-frexp.c: Likewise.
4843         * tests/test-printf-frexpl.c: Likewise.
4844         * tests/test-printf-posix.c: Likewise.
4845         * tests/test-priv-set.c: Likewise.
4846         * tests/test-quotearg.c: Likewise.
4847         * tests/test-random_r.c: Likewise.
4848         * tests/test-rawmemchr.c: Likewise.
4849         * tests/test-rbtree_list.c: Likewise.
4850         * tests/test-rbtree_oset.c: Likewise.
4851         * tests/test-rbtreehash_list.c: Likewise.
4852         * tests/test-readlink.c: Likewise.
4853         * tests/test-remove.c: Likewise.
4854         * tests/test-rename.c: Likewise.
4855         * tests/test-renameat.c: Likewise.
4856         * tests/test-rmdir.c: Likewise.
4857         * tests/test-round1.c: Likewise.
4858         * tests/test-roundf1.c: Likewise.
4859         * tests/test-roundl.c: Likewise.
4860         * tests/test-safe-alloc.c: Likewise.
4861         * tests/test-sameacls.c: Likewise.
4862         * tests/test-set-mode-acl.c: Likewise.
4863         * tests/test-setenv.c: Likewise.
4864         * tests/test-sigaction.c: Likewise.
4865         * tests/test-signbit.c: Likewise.
4866         * tests/test-sleep.c: Likewise.
4867         * tests/test-snprintf-posix.c: Likewise.
4868         * tests/test-snprintf.c: Likewise.
4869         * tests/test-sprintf-posix.c: Likewise.
4870         * tests/test-stat-time.c: Likewise.
4871         * tests/test-stat.c: Likewise.
4872         * tests/test-strcasestr.c: Likewise.
4873         * tests/test-strchrnul.c: Likewise.
4874         * tests/test-strerror.c: Likewise.
4875         * tests/test-striconv.c: Likewise.
4876         * tests/test-striconveh.c: Likewise.
4877         * tests/test-striconveha.c: Likewise.
4878         * tests/test-strsignal.c: Likewise.
4879         * tests/test-strstr.c: Likewise.
4880         * tests/test-strtod.c: Likewise.
4881         * tests/test-strverscmp.c: Likewise.
4882         * tests/test-symlink.c: Likewise.
4883         * tests/test-symlinkat.c: Likewise.
4884         * tests/test-trunc1.c: Likewise.
4885         * tests/test-trunc2.c: Likewise.
4886         * tests/test-truncf1.c: Likewise.
4887         * tests/test-truncf2.c: Likewise.
4888         * tests/test-truncl.c: Likewise.
4889         * tests/test-uname.c: Likewise.
4890         * tests/test-unlink.c: Likewise.
4891         * tests/test-unlinkat.c: Likewise.
4892         * tests/test-unsetenv.c: Likewise.
4893         * tests/test-usleep.c: Likewise.
4894         * tests/test-utimens.c: Likewise.
4895         * tests/test-utimensat.c: Likewise.
4896         * tests/test-vasnprintf-posix.c: Likewise.
4897         * tests/test-vasnprintf-posix2.c: Likewise.
4898         * tests/test-vasnprintf.c: Likewise.
4899         * tests/test-vasprintf-posix.c: Likewise.
4900         * tests/test-vasprintf.c: Likewise.
4901         * tests/test-vdprintf-posix.c: Likewise.
4902         * tests/test-vfprintf-posix.c: Likewise.
4903         * tests/test-vprintf-posix.c: Likewise.
4904         * tests/test-vsnprintf-posix.c: Likewise.
4905         * tests/test-vsnprintf.c: Likewise.
4906         * tests/test-vsprintf-posix.c: Likewise.
4907         * tests/test-wcrtomb.c: Likewise.
4908         * tests/test-wcsnrtombs.c: Likewise.
4909         * tests/test-wcsrtombs.c: Likewise.
4910         * tests/test-wctype.c: Likewise.
4911         * tests/test-wcwidth.c: Likewise.
4912         * tests/test-xfprintf-posix.c: Likewise.
4913         * tests/test-xmemdup0.c: Likewise.
4914         * tests/test-xprintf-posix.c: Likewise.
4915         * tests/test-xvasprintf.c: Likewise.
4916         * tests/unicase/test-locale-language.c: Likewise.
4917         * tests/unicase/test-mapping-part1.h: Likewise.
4918         * tests/unicase/test-predicate-part1.h: Likewise.
4919         * tests/unicase/test-u8-casecmp.c: Likewise.
4920         * tests/unicase/test-u8-casecoll.c: Likewise.
4921         * tests/unicase/test-u8-casefold.c: Likewise.
4922         * tests/unicase/test-u8-is-cased.c: Likewise.
4923         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4924         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4925         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4926         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4927         * tests/unicase/test-u8-tolower.c: Likewise.
4928         * tests/unicase/test-u8-totitle.c: Likewise.
4929         * tests/unicase/test-u8-toupper.c: Likewise.
4930         * tests/unicase/test-u16-casecmp.c: Likewise.
4931         * tests/unicase/test-u16-casecoll.c: Likewise.
4932         * tests/unicase/test-u16-casefold.c: Likewise.
4933         * tests/unicase/test-u16-is-cased.c: Likewise.
4934         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4935         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4936         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4937         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4938         * tests/unicase/test-u16-tolower.c: Likewise.
4939         * tests/unicase/test-u16-totitle.c: Likewise.
4940         * tests/unicase/test-u16-toupper.c: Likewise.
4941         * tests/unicase/test-u32-casecmp.c: Likewise.
4942         * tests/unicase/test-u32-casecoll.c: Likewise.
4943         * tests/unicase/test-u32-casefold.c: Likewise.
4944         * tests/unicase/test-u32-is-cased.c: Likewise.
4945         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4946         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4947         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4948         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4949         * tests/unicase/test-u32-tolower.c: Likewise.
4950         * tests/unicase/test-u32-totitle.c: Likewise.
4951         * tests/unicase/test-u32-toupper.c: Likewise.
4952         * tests/unicase/test-ulc-casecmp.c: Likewise.
4953         * tests/unicase/test-ulc-casecoll.c: Likewise.
4954         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4955         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4958         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4959         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4960         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4961         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4962         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4963         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4964         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4965         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4966         * tests/unictype/test-bidi_byname.c: Likewise.
4967         * tests/unictype/test-bidi_name.c: Likewise.
4968         * tests/unictype/test-bidi_of.c: Likewise.
4969         * tests/unictype/test-bidi_test.c: Likewise.
4970         * tests/unictype/test-block_list.c: Likewise.
4971         * tests/unictype/test-block_of.c: Likewise.
4972         * tests/unictype/test-block_test.c: Likewise.
4973         * tests/unictype/test-categ_and.c: Likewise.
4974         * tests/unictype/test-categ_and_not.c: Likewise.
4975         * tests/unictype/test-categ_byname.c: Likewise.
4976         * tests/unictype/test-categ_name.c: Likewise.
4977         * tests/unictype/test-categ_none.c: Likewise.
4978         * tests/unictype/test-categ_of.c: Likewise.
4979         * tests/unictype/test-categ_or.c: Likewise.
4980         * tests/unictype/test-categ_test_withtable.c: Likewise.
4981         * tests/unictype/test-combining.c: Likewise.
4982         * tests/unictype/test-decdigit.c: Likewise.
4983         * tests/unictype/test-digit.c: Likewise.
4984         * tests/unictype/test-mirror.c: Likewise.
4985         * tests/unictype/test-numeric.c: Likewise.
4986         * tests/unictype/test-pr_byname.c: Likewise.
4987         * tests/unictype/test-pr_test.c: Likewise.
4988         * tests/unictype/test-predicate-part1.h: Likewise.
4989         * tests/unictype/test-scripts.c: Likewise.
4990         * tests/unictype/test-sy_c_ident.c: Likewise.
4991         * tests/unictype/test-sy_java_ident.c: Likewise.
4992         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4993         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4994         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4995         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4996         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4997         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4998         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4999         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5000         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5001         * tests/uninorm/test-compat-decomposition.c: Likewise.
5002         * tests/uninorm/test-composition.c: Likewise.
5003         * tests/uninorm/test-decomposing-form.c: Likewise.
5004         * tests/uninorm/test-decomposition.c: Likewise.
5005         * tests/uninorm/test-u8-nfc.c: Likewise.
5006         * tests/uninorm/test-u8-nfd.c: Likewise.
5007         * tests/uninorm/test-u8-nfkc.c: Likewise.
5008         * tests/uninorm/test-u8-nfkd.c: Likewise.
5009         * tests/uninorm/test-u8-normcmp.c: Likewise.
5010         * tests/uninorm/test-u8-normcoll.c: Likewise.
5011         * tests/uninorm/test-u16-nfc.c: Likewise.
5012         * tests/uninorm/test-u16-nfd.c: Likewise.
5013         * tests/uninorm/test-u16-nfkc.c: Likewise.
5014         * tests/uninorm/test-u16-nfkd.c: Likewise.
5015         * tests/uninorm/test-u16-normcmp.c: Likewise.
5016         * tests/uninorm/test-u16-normcoll.c: Likewise.
5017         * tests/uninorm/test-u32-nfc.c: Likewise.
5018         * tests/uninorm/test-u32-nfd.c: Likewise.
5019         * tests/uninorm/test-u32-nfkc.c: Likewise.
5020         * tests/uninorm/test-u32-nfkd.c: Likewise.
5021         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5022         * tests/uninorm/test-u32-normcmp.c: Likewise.
5023         * tests/uninorm/test-u32-normcoll.c: Likewise.
5024         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5025         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5026         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5027         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5028         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5029         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5030         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5031         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5033         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5034         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5035         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5036         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5037         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5038         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5039         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5040         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5041         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5042         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5043         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5044         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5045         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5046         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5047         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5048         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5049         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5050         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5051         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5052         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5053         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5054         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5055         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5056         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5057         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5058         * tests/uniwidth/test-u8-width.c: Likewise.
5059         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5060         * tests/uniwidth/test-u16-width.c: Likewise.
5061         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5062         * tests/uniwidth/test-u32-width.c: Likewise.
5063         * tests/uniwidth/test-uc_width.c: Likewise.
5064         * tests/uniwidth/test-uc_width2.c: Likewise.
5065         * modules/acl-tests (Files): Add tests/macros.h.
5066         * modules/areadlink-tests (Files): Likewise.
5067         * modules/areadlink-with-size-tests (Files): Likewise.
5068         * modules/areadlinkat-tests (Files): Likewise.
5069         * modules/areadlinkat-with-size-tests (Files): Likewise.
5070         * modules/argmatch-tests (Files): Likewise.
5071         * modules/argv-iter-tests (Files): Likewise.
5072         * modules/array-list-tests (Files): Likewise.
5073         * modules/array-mergesort-tests (Files): Likewise.
5074         * modules/array-oset-tests (Files): Likewise.
5075         * modules/avltree-list-tests (Files): Likewise.
5076         * modules/avltree-oset-tests (Files): Likewise.
5077         * modules/avltreehash-list-tests (Files): Likewise.
5078         * modules/base64-tests (Files): Likewise.
5079         * modules/binary-io-tests (Files): Likewise.
5080         * modules/bitrotate-tests (Files): Likewise.
5081         * modules/btowc-tests (Files): Likewise.
5082         * modules/byteswap-tests (Files): Likewise.
5083         * modules/c-ctype-tests (Files): Likewise.
5084         * modules/c-stack-tests (Files): Likewise.
5085         * modules/c-strcase-tests (Files): Likewise.
5086         * modules/c-strcasestr-tests (Files): Likewise.
5087         * modules/c-strstr-tests (Files): Likewise.
5088         * modules/canonicalize-lgpl-tests (Files): Likewise.
5089         * modules/canonicalize-tests (Files): Likewise.
5090         * modules/carray-list-tests (Files): Likewise.
5091         * modules/ceilf-tests (Files): Likewise.
5092         * modules/ceill-tests (Files): Likewise.
5093         * modules/chown-tests (Files): Likewise.
5094         * modules/cloexec-tests (Files): Likewise.
5095         * modules/copy-file-tests (Files): Likewise.
5096         * modules/count-one-bits-tests (Files): Likewise.
5097         * modules/dprintf-posix-tests (Files): Likewise.
5098         * modules/dup2-tests (Files): Likewise.
5099         * modules/dup3-tests (Files): Likewise.
5100         * modules/duplocale-tests (Files): Likewise.
5101         * modules/fbufmode-tests (Files): Likewise.
5102         * modules/fchdir-tests (Files): Likewise.
5103         * modules/fcntl-safer-tests (Files): Likewise.
5104         * modules/fcntl-tests (Files): Likewise.
5105         * modules/fdopendir-tests (Files): Likewise.
5106         * modules/fdutimensat-tests (Files): Likewise.
5107         * modules/fflush-tests (Files): Likewise.
5108         * modules/filevercmp-tests (Files): Likewise.
5109         * modules/flock-tests (Files): Likewise.
5110         * modules/floorf-tests (Files): Likewise.
5111         * modules/floorl-tests (Files): Likewise.
5112         * modules/fnmatch-tests (Files): Likewise.
5113         * modules/fopen-safer-tests (Files): Likewise.
5114         * modules/fopen-tests (Files): Likewise.
5115         * modules/fpending-tests (Files): Likewise.
5116         * modules/fprintf-posix-tests (Files): Likewise.
5117         * modules/fpurge-tests (Files): Likewise.
5118         * modules/freadable-tests (Files): Likewise.
5119         * modules/freadahead-tests (Files): Likewise.
5120         * modules/freading-tests (Files): Likewise.
5121         * modules/freadptr-tests (Files): Likewise.
5122         * modules/freadseek-tests (Files): Likewise.
5123         * modules/freopen-tests (Files): Likewise.
5124         * modules/frexp-nolibm-tests (Files): Likewise.
5125         * modules/frexp-tests (Files): Likewise.
5126         * modules/frexpl-nolibm-tests (Files): Likewise.
5127         * modules/frexpl-tests (Files): Likewise.
5128         * modules/fseek-tests (Files): Likewise.
5129         * modules/fseeko-tests (Files): Likewise.
5130         * modules/fstrcmp-tests (Files): Likewise.
5131         * modules/fsync-tests (Files): Likewise.
5132         * modules/ftell-tests (Files): Likewise.
5133         * modules/ftello-tests (Files): Likewise.
5134         * modules/func-tests (Files): Likewise.
5135         * modules/futimens-tests (Files): Likewise.
5136         * modules/fwritable-tests (Files): Likewise.
5137         * modules/fwriting-tests (Files): Likewise.
5138         * modules/getcwd-tests (Files): Likewise.
5139         * modules/getdate-tests (Files): Likewise.
5140         * modules/getdelim-tests (Files): Likewise.
5141         * modules/getdtablesize-tests (Files): Likewise.
5142         * modules/getgroups-tests (Files): Likewise.
5143         * modules/getline-tests (Files): Likewise.
5144         * modules/getndelim2-tests (Files): Likewise.
5145         * modules/glob-tests (Files): Likewise.
5146         * modules/hash-tests (Files): Likewise.
5147         * modules/i-ring-tests (Files): Likewise.
5148         * modules/iconv-tests (Files): Likewise.
5149         * modules/iconv_open-utf-tests (Files): Likewise.
5150         * modules/idpriv-drop-tests (Files): Likewise.
5151         * modules/idpriv-droptemp-tests (Files): Likewise.
5152         * modules/inet_ntop-tests (Files): Likewise.
5153         * modules/inet_pton-tests (Files): Likewise.
5154         * modules/isblank-tests (Files): Likewise.
5155         * modules/isfinite-tests (Files): Likewise.
5156         * modules/isinf-tests (Files): Likewise.
5157         * modules/isnan-tests (Files): Likewise.
5158         * modules/isnand-nolibm-tests (Files): Likewise.
5159         * modules/isnand-tests (Files): Likewise.
5160         * modules/isnanf-nolibm-tests (Files): Likewise.
5161         * modules/isnanf-tests (Files): Likewise.
5162         * modules/isnanl-nolibm-tests (Files): Likewise.
5163         * modules/isnanl-tests (Files): Likewise.
5164         * modules/lchown-tests (Files): Likewise.
5165         * modules/ldexpl-tests (Files): Likewise.
5166         * modules/link-tests (Files): Likewise.
5167         * modules/linkat-tests (Files): Likewise.
5168         * modules/linked-list-tests (Files): Likewise.
5169         * modules/linkedhash-list-tests (Files): Likewise.
5170         * modules/localename-tests (Files): Likewise.
5171         * modules/lseek-tests (Files): Likewise.
5172         * modules/lstat-tests (Files): Likewise.
5173         * modules/mbmemcasecmp-tests (Files): Likewise.
5174         * modules/mbmemcasecoll-tests (Files): Likewise.
5175         * modules/mbrtowc-tests (Files): Likewise.
5176         * modules/mbscasecmp-tests (Files): Likewise.
5177         * modules/mbscasestr-tests (Files): Likewise.
5178         * modules/mbschr-tests (Files): Likewise.
5179         * modules/mbscspn-tests (Files): Likewise.
5180         * modules/mbsinit-tests (Files): Likewise.
5181         * modules/mbsncasecmp-tests (Files): Likewise.
5182         * modules/mbsnrtowcs-tests (Files): Likewise.
5183         * modules/mbspbrk-tests (Files): Likewise.
5184         * modules/mbspcasecmp-tests (Files): Likewise.
5185         * modules/mbsrchr-tests (Files): Likewise.
5186         * modules/mbsrtowcs-tests (Files): Likewise.
5187         * modules/mbsspn-tests (Files): Likewise.
5188         * modules/mbsstr-tests (Files): Likewise.
5189         * modules/memchr-tests (Files): Likewise.
5190         * modules/memchr2-tests (Files): Likewise.
5191         * modules/memcmp-tests (Files): Likewise.
5192         * modules/memmem-tests (Files): Likewise.
5193         * modules/memrchr-tests (Files): Likewise.
5194         * modules/mkdir-tests (Files): Likewise.
5195         * modules/mkfifo-tests (Files): Likewise.
5196         * modules/mkfifoat-tests (Files): Likewise.
5197         * modules/mknod-tests (Files): Likewise.
5198         * modules/nanosleep-tests (Files): Likewise.
5199         * modules/nl_langinfo-tests (Files): Likewise.
5200         * modules/obstack-printf-tests (Files): Likewise.
5201         * modules/open-tests (Files): Likewise.
5202         * modules/openat-tests (Files): Likewise.
5203         * modules/pipe-filter-gi-tests (Files): Likewise.
5204         * modules/pipe-filter-ii-tests (Files): Likewise.
5205         * modules/pipe2-tests (Files): Likewise.
5206         * modules/popen-safer-tests (Files): Likewise.
5207         * modules/popen-tests (Files): Likewise.
5208         * modules/posixtm-tests (Files): Likewise.
5209         * modules/pread-tests (Files): Likewise.
5210         * modules/printf-frexp-tests (Files): Likewise.
5211         * modules/printf-frexpl-tests (Files): Likewise.
5212         * modules/printf-posix-tests (Files): Likewise.
5213         * modules/priv-set-tests (Files): Likewise.
5214         * modules/quotearg-tests (Files): Likewise.
5215         * modules/random_r-tests (Files): Likewise.
5216         * modules/rawmemchr-tests (Files): Likewise.
5217         * modules/rbtree-list-tests (Files): Likewise.
5218         * modules/rbtree-oset-tests (Files): Likewise.
5219         * modules/rbtreehash-list-tests (Files): Likewise.
5220         * modules/readlink-tests (Files): Likewise.
5221         * modules/remove-tests (Files): Likewise.
5222         * modules/rename-tests (Files): Likewise.
5223         * modules/renameat-tests (Files): Likewise.
5224         * modules/rmdir-tests (Files): Likewise.
5225         * modules/round-tests (Files): Likewise.
5226         * modules/roundf-tests (Files): Likewise.
5227         * modules/roundl-tests (Files): Likewise.
5228         * modules/safe-alloc-tests (Files): Likewise.
5229         * modules/setenv-tests (Files): Likewise.
5230         * modules/sigaction-tests (Files): Likewise.
5231         * modules/signbit-tests (Files): Likewise.
5232         * modules/sleep-tests (Files): Likewise.
5233         * modules/snprintf-posix-tests (Files): Likewise.
5234         * modules/snprintf-tests (Files): Likewise.
5235         * modules/sprintf-posix-tests (Files): Likewise.
5236         * modules/stat-tests (Files): Likewise.
5237         * modules/stat-time-tests (Files): Likewise.
5238         * modules/strcasestr-tests (Files): Likewise.
5239         * modules/strchrnul-tests (Files): Likewise.
5240         * modules/strerror-tests (Files): Likewise.
5241         * modules/striconv-tests (Files): Likewise.
5242         * modules/striconveh-tests (Files): Likewise.
5243         * modules/striconveha-tests (Files): Likewise.
5244         * modules/strsignal-tests (Files): Likewise.
5245         * modules/strstr-tests (Files): Likewise.
5246         * modules/strtod-tests (Files): Likewise.
5247         * modules/strverscmp-tests (Files): Likewise.
5248         * modules/symlink-tests (Files): Likewise.
5249         * modules/symlinkat-tests (Files): Likewise.
5250         * modules/trunc-tests (Files): Likewise.
5251         * modules/truncf-tests (Files): Likewise.
5252         * modules/truncl-tests (Files): Likewise.
5253         * modules/uname-tests (Files): Likewise.
5254         * modules/unicase/cased-tests (Files): Likewise.
5255         * modules/unicase/ignorable-tests (Files): Likewise.
5256         * modules/unicase/locale-language-tests (Files): Likewise.
5257         * modules/unicase/tolower-tests (Files): Likewise.
5258         * modules/unicase/totitle-tests (Files): Likewise.
5259         * modules/unicase/toupper-tests (Files): Likewise.
5260         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5261         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5262         * modules/unicase/u8-casefold-tests (Files): Likewise.
5263         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5264         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5265         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5266         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5267         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5268         * modules/unicase/u8-tolower-tests (Files): Likewise.
5269         * modules/unicase/u8-totitle-tests (Files): Likewise.
5270         * modules/unicase/u8-toupper-tests (Files): Likewise.
5271         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5272         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5273         * modules/unicase/u16-casefold-tests (Files): Likewise.
5274         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5275         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5276         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5277         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5278         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5279         * modules/unicase/u16-tolower-tests (Files): Likewise.
5280         * modules/unicase/u16-totitle-tests (Files): Likewise.
5281         * modules/unicase/u16-toupper-tests (Files): Likewise.
5282         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5283         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5284         * modules/unicase/u32-casefold-tests (Files): Likewise.
5285         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5286         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5287         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5288         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5289         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5290         * modules/unicase/u32-tolower-tests (Files): Likewise.
5291         * modules/unicase/u32-totitle-tests (Files): Likewise.
5292         * modules/unicase/u32-toupper-tests (Files): Likewise.
5293         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5294         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5295         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5296         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5297         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5298         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5299         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5300         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5301         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5302         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5303         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5304         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5305         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5306         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5307         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5308         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5309         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5310         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5311         * modules/unictype/block-list-tests (Files): Likewise.
5312         * modules/unictype/block-of-tests (Files): Likewise.
5313         * modules/unictype/block-test-tests (Files): Likewise.
5314         * modules/unictype/category-C-tests (Files): Likewise.
5315         * modules/unictype/category-Cc-tests (Files): Likewise.
5316         * modules/unictype/category-Cf-tests (Files): Likewise.
5317         * modules/unictype/category-Cn-tests (Files): Likewise.
5318         * modules/unictype/category-Co-tests (Files): Likewise.
5319         * modules/unictype/category-Cs-tests (Files): Likewise.
5320         * modules/unictype/category-L-tests (Files): Likewise.
5321         * modules/unictype/category-Ll-tests (Files): Likewise.
5322         * modules/unictype/category-Lm-tests (Files): Likewise.
5323         * modules/unictype/category-Lo-tests (Files): Likewise.
5324         * modules/unictype/category-Lt-tests (Files): Likewise.
5325         * modules/unictype/category-Lu-tests (Files): Likewise.
5326         * modules/unictype/category-M-tests (Files): Likewise.
5327         * modules/unictype/category-Mc-tests (Files): Likewise.
5328         * modules/unictype/category-Me-tests (Files): Likewise.
5329         * modules/unictype/category-Mn-tests (Files): Likewise.
5330         * modules/unictype/category-N-tests (Files): Likewise.
5331         * modules/unictype/category-Nd-tests (Files): Likewise.
5332         * modules/unictype/category-Nl-tests (Files): Likewise.
5333         * modules/unictype/category-No-tests (Files): Likewise.
5334         * modules/unictype/category-P-tests (Files): Likewise.
5335         * modules/unictype/category-Pc-tests (Files): Likewise.
5336         * modules/unictype/category-Pd-tests (Files): Likewise.
5337         * modules/unictype/category-Pe-tests (Files): Likewise.
5338         * modules/unictype/category-Pf-tests (Files): Likewise.
5339         * modules/unictype/category-Pi-tests (Files): Likewise.
5340         * modules/unictype/category-Po-tests (Files): Likewise.
5341         * modules/unictype/category-Ps-tests (Files): Likewise.
5342         * modules/unictype/category-S-tests (Files): Likewise.
5343         * modules/unictype/category-Sc-tests (Files): Likewise.
5344         * modules/unictype/category-Sk-tests (Files): Likewise.
5345         * modules/unictype/category-Sm-tests (Files): Likewise.
5346         * modules/unictype/category-So-tests (Files): Likewise.
5347         * modules/unictype/category-Z-tests (Files): Likewise.
5348         * modules/unictype/category-Zl-tests (Files): Likewise.
5349         * modules/unictype/category-Zp-tests (Files): Likewise.
5350         * modules/unictype/category-Zs-tests (Files): Likewise.
5351         * modules/unictype/category-and-not-tests (Files): Likewise.
5352         * modules/unictype/category-and-tests (Files): Likewise.
5353         * modules/unictype/category-byname-tests (Files): Likewise.
5354         * modules/unictype/category-name-tests (Files): Likewise.
5355         * modules/unictype/category-none-tests (Files): Likewise.
5356         * modules/unictype/category-of-tests (Files): Likewise.
5357         * modules/unictype/category-or-tests (Files): Likewise.
5358         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5359         * modules/unictype/combining-class-tests (Files): Likewise.
5360         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5361         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5362         * modules/unictype/ctype-blank-tests (Files): Likewise.
5363         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5364         * modules/unictype/ctype-digit-tests (Files): Likewise.
5365         * modules/unictype/ctype-graph-tests (Files): Likewise.
5366         * modules/unictype/ctype-lower-tests (Files): Likewise.
5367         * modules/unictype/ctype-print-tests (Files): Likewise.
5368         * modules/unictype/ctype-punct-tests (Files): Likewise.
5369         * modules/unictype/ctype-space-tests (Files): Likewise.
5370         * modules/unictype/ctype-upper-tests (Files): Likewise.
5371         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5372         * modules/unictype/decimal-digit-tests (Files): Likewise.
5373         * modules/unictype/digit-tests (Files): Likewise.
5374         * modules/unictype/mirror-tests (Files): Likewise.
5375         * modules/unictype/numeric-tests (Files): Likewise.
5376         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5377         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5378         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5379         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5380         Likewise.
5381         * modules/unictype/property-bidi-block-separator-tests (Files):
5382         Likewise.
5383         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5384         Likewise.
5385         * modules/unictype/property-bidi-common-separator-tests (Files):
5386         Likewise.
5387         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5388         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5389         Likewise.
5390         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5391         Likewise.
5392         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5393         Likewise.
5394         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5395         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5396         Likewise.
5397         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5398         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5399         Likewise.
5400         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5401         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5402         * modules/unictype/property-bidi-segment-separator-tests (Files):
5403         Likewise.
5404         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5405         * modules/unictype/property-byname-tests (Files): Likewise.
5406         * modules/unictype/property-combining-tests (Files): Likewise.
5407         * modules/unictype/property-composite-tests (Files): Likewise.
5408         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5409         * modules/unictype/property-dash-tests (Files): Likewise.
5410         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5411         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5412         Likewise.
5413         * modules/unictype/property-deprecated-tests (Files): Likewise.
5414         * modules/unictype/property-diacritic-tests (Files): Likewise.
5415         * modules/unictype/property-extender-tests (Files): Likewise.
5416         * modules/unictype/property-format-control-tests (Files): Likewise.
5417         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5418         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5419         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5420         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5421         * modules/unictype/property-hyphen-tests (Files): Likewise.
5422         * modules/unictype/property-id-continue-tests (Files): Likewise.
5423         * modules/unictype/property-id-start-tests (Files): Likewise.
5424         * modules/unictype/property-ideographic-tests (Files): Likewise.
5425         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5426         * modules/unictype/property-ids-trinary-operator-tests (Files):
5427         Likewise.
5428         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5429         * modules/unictype/property-iso-control-tests (Files): Likewise.
5430         * modules/unictype/property-join-control-tests (Files): Likewise.
5431         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5432         * modules/unictype/property-line-separator-tests (Files): Likewise.
5433         * modules/unictype/property-logical-order-exception-tests (Files):
5434         Likewise.
5435         * modules/unictype/property-lowercase-tests (Files): Likewise.
5436         * modules/unictype/property-math-tests (Files): Likewise.
5437         * modules/unictype/property-non-break-tests (Files): Likewise.
5438         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5439         * modules/unictype/property-numeric-tests (Files): Likewise.
5440         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5441         * modules/unictype/property-other-default-ignorable-code-point-tests
5442         (Files): Likewise.
5443         * modules/unictype/property-other-grapheme-extend-tests (Files):
5444         Likewise.
5445         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5446         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5447         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5448         * modules/unictype/property-other-math-tests (Files): Likewise.
5449         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5450         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5451         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5452         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5453         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5454         * modules/unictype/property-private-use-tests (Files): Likewise.
5455         * modules/unictype/property-punctuation-tests (Files): Likewise.
5456         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5457         * modules/unictype/property-radical-tests (Files): Likewise.
5458         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5459         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5460         * modules/unictype/property-space-tests (Files): Likewise.
5461         * modules/unictype/property-terminal-punctuation-tests (Files):
5462         Likewise.
5463         * modules/unictype/property-test-tests (Files): Likewise.
5464         * modules/unictype/property-titlecase-tests (Files): Likewise.
5465         * modules/unictype/property-unassigned-code-value-tests (Files):
5466         Likewise.
5467         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5468         * modules/unictype/property-uppercase-tests (Files): Likewise.
5469         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5470         * modules/unictype/property-white-space-tests (Files): Likewise.
5471         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5472         * modules/unictype/property-xid-start-tests (Files): Likewise.
5473         * modules/unictype/property-zero-width-tests (Files): Likewise.
5474         * modules/unictype/scripts-tests (Files): Likewise.
5475         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5476         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5477         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5478         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5479         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5480         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5481         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5482         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5483         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5484         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5485         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5486         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5487         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5488         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5489         * modules/uninorm/composition-tests (Files): Likewise.
5490         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5491         * modules/uninorm/decomposition-tests (Files): Likewise.
5492         * modules/uninorm/filter-tests (Files): Likewise.
5493         * modules/uninorm/nfc-tests (Files): Likewise.
5494         * modules/uninorm/nfd-tests (Files): Likewise.
5495         * modules/uninorm/nfkc-tests (Files): Likewise.
5496         * modules/uninorm/nfkd-tests (Files): Likewise.
5497         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5498         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5499         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5500         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5501         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5502         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5503         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5504         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5505         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5506         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5507         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5508         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5509         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5510         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5511         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5512         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5513         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5514         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5515         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5516         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5517         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5518         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5519         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5520         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5521         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5522         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5523         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5524         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5525         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5526         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5527         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5528         * modules/uniwidth/u8-width-tests (Files): Likewise.
5529         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5530         * modules/uniwidth/u16-width-tests (Files): Likewise.
5531         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5532         * modules/uniwidth/u32-width-tests (Files): Likewise.
5533         * modules/uniwidth/width-tests (Files): Likewise.
5534         * modules/unlink-tests (Files): Likewise.
5535         * modules/unsetenv-tests (Files): Likewise.
5536         * modules/usleep-tests (Files): Likewise.
5537         * modules/utimens-tests (Files): Likewise.
5538         * modules/utimensat-tests (Files): Likewise.
5539         * modules/vasnprintf-posix-tests (Files): Likewise.
5540         * modules/vasnprintf-tests (Files): Likewise.
5541         * modules/vasprintf-posix-tests (Files): Likewise.
5542         * modules/vasprintf-tests (Files): Likewise.
5543         * modules/vdprintf-posix-tests (Files): Likewise.
5544         * modules/vfprintf-posix-tests (Files): Likewise.
5545         * modules/vprintf-posix-tests (Files): Likewise.
5546         * modules/vsnprintf-posix-tests (Files): Likewise.
5547         * modules/vsnprintf-tests (Files): Likewise.
5548         * modules/vsprintf-posix-tests (Files): Likewise.
5549         * modules/wcrtomb-tests (Files): Likewise.
5550         * modules/wcsnrtombs-tests (Files): Likewise.
5551         * modules/wcsrtombs-tests (Files): Likewise.
5552         * modules/wctype-tests (Files): Likewise.
5553         * modules/wcwidth-tests (Files): Likewise.
5554         * modules/xmemdup0-tests (Files): Likewise.
5555         * modules/xprintf-posix-tests (Files): Likewise.
5556         * modules/xvasprintf-tests (Files): Likewise.
5557
5558 2009-12-24  Eric Blake  <ebb9@byu.net>
5559
5560         test-nanosleep: fix typo
5561         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5562         patch.
5563         Reported by Bruno Haible.
5564
5565 2009-12-24  Bruno Haible  <bruno@clisp.org>
5566
5567         Reduce namespace pollution on glibc systems.
5568         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5569         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5570         systems.
5571         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5572         <getopt.h> on glibc systems.
5573         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5574         systems.
5575         * lib/fcntl.c: Include <unistd.h> here instead.
5576
5577 2009-12-24  Bruno Haible  <bruno@clisp.org>
5578
5579         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5580
5581 2009-12-24  Eric Blake  <ebb9@byu.net>
5582
5583         tests: add signature checks
5584         * tests/signature.h (SIGNATURE_CHECK): New file.
5585         * modules/atexit-tests (Files): Use it.
5586         * modules/btowc-tests (Files): Likewise.
5587         * modules/canonicalize-lgpl-tests (Files): Likewise.
5588         * modules/ceilf-tests (Files): Likewise.
5589         * modules/ceill-tests (Files): Likewise.
5590         * modules/chown-tests (Files): Likewise.
5591         * modules/dprintf-posix-tests (Files): Likewise.
5592         * modules/dup2-tests (Files): Likewise.
5593         * modules/dup3-tests (Files): Likewise.
5594         * modules/duplocale-tests (Files): Likewise.
5595         * modules/fchdir-tests (Files): Likewise.
5596         * modules/fcntl-tests (Files): Likewise.
5597         * modules/fdopendir-tests (Files): Likewise.
5598         * modules/fflush-tests (Files): Likewise.
5599         * modules/flock-tests (Files): Likewise.
5600         * modules/floorf-tests (Files): Likewise.
5601         * modules/floorl-tests (Files): Likewise.
5602         * modules/fnmatch-tests (Files): Likewise.
5603         * modules/fopen-tests (Files): Likewise.
5604         * modules/fprintf-posix-tests (Files): Likewise.
5605         * modules/freopen-tests (Files): Likewise.
5606         * modules/frexp-nolibm-tests (Files): Likewise.
5607         * modules/frexp-tests (Files): Likewise.
5608         * modules/frexpl-nolibm-tests (Files): Likewise.
5609         * modules/frexpl-tests (Files): Likewise.
5610         * modules/fseek-tests (Files): Likewise.
5611         * modules/fseeko-tests (Files): Likewise.
5612         * modules/fsync-tests (Files): Likewise.
5613         * modules/ftell-tests (Files): Likewise.
5614         * modules/ftello-tests (Files): Likewise.
5615         * modules/futimens-tests (Files): Likewise.
5616         * modules/getaddrinfo-tests (Files): Likewise.
5617         * modules/getcwd-tests (Files): Likewise.
5618         * modules/getdelim-tests (Files): Likewise.
5619         * modules/getdtablesize-tests (Files): Likewise.
5620         * modules/getgroups-tests (Files): Likewise.
5621         * modules/gethostname-tests (Files): Likewise.
5622         * modules/getline-tests (Files): Likewise.
5623         * modules/getopt-posix-tests (Files): Likewise.
5624         * modules/gettimeofday-tests (Files): Likewise.
5625         * modules/glob-tests (Files): Likewise.
5626         * modules/iconv-tests (Files): Likewise.
5627         * modules/inet_ntop-tests (Files): Likewise.
5628         * modules/inet_pton-tests (Files): Likewise.
5629         * modules/isblank-tests (Files): Likewise.
5630         * modules/lchown-tests (Files): Likewise.
5631         * modules/ldexpl-tests (Files): Likewise.
5632         * modules/link-tests (Files): Likewise.
5633         * modules/linkat-tests (Files): Likewise.
5634         * modules/lseek-tests (Files): Likewise.
5635         * modules/lstat-tests (Files): Likewise.
5636         * modules/mbrtowc-tests (Files): Likewise.
5637         * modules/mbsinit-tests (Files): Likewise.
5638         * modules/mbsnrtowcs-tests (Files): Likewise.
5639         * modules/mbsrtowcs-tests (Files): Likewise.
5640         * modules/memchr-tests (Files): Likewise.
5641         * modules/memcmp-tests (Files): Likewise.
5642         * modules/memmem-tests (Files): Likewise.
5643         * modules/memrchr-tests (Files): Likewise.
5644         * modules/mkdir-tests (Files): Likewise.
5645         * modules/mkfifo-tests (Files): Likewise.
5646         * modules/mkfifoat-tests (Files): Likewise.
5647         * modules/mknod-tests (Files): Likewise.
5648         * modules/nanosleep-tests (Files): Likewise.
5649         * modules/nl_langinfo-tests (Files): Likewise.
5650         * modules/obstack-printf-tests (Files): Likewise.
5651         * modules/open-tests (Files): Likewise.
5652         * modules/openat-tests (Files): Likewise.
5653         * modules/perror-tests (Files): Likewise.
5654         * modules/pipe2-tests (Files): Likewise.
5655         * modules/poll-tests (Files): Likewise.
5656         * modules/popen-tests (Files): Likewise.
5657         * modules/posix_spawn-tests (Files): Likewise.
5658         * modules/posix_spawnp-tests (Files): Likewise.
5659         * modules/pread-tests (Files): Likewise.
5660         * modules/printf-posix-tests (Files): Likewise.
5661         * modules/pty-tests (Files): Likewise.
5662         * modules/random_r-tests (Files): Likewise.
5663         * modules/rawmemchr-tests (Files): Likewise.
5664         * modules/readlink-tests (Files): Likewise.
5665         * modules/remove-tests (Files): Likewise.
5666         * modules/rename-tests (Files): Likewise.
5667         * modules/renameat-tests (Files): Likewise.
5668         * modules/rmdir-tests (Files): Likewise.
5669         * modules/round-tests (Files): Likewise.
5670         * modules/roundf-tests (Files): Likewise.
5671         * modules/roundl-tests (Files): Likewise.
5672         * modules/select-tests (Files): Likewise.
5673         * modules/setenv-tests (Files): Likewise.
5674         * modules/sigaction-tests (Files): Likewise.
5675         * modules/sleep-tests (Files): Likewise.
5676         * modules/snprintf-posix-tests (Files): Likewise.
5677         * modules/snprintf-tests (Files): Likewise.
5678         * modules/sprintf-posix-tests (Files): Likewise.
5679         * modules/stat-tests (Files): Likewise.
5680         * modules/strcasestr-tests (Files): Likewise.
5681         * modules/strchrnul-tests (Files): Likewise.
5682         * modules/strerror-tests (Files): Likewise.
5683         * modules/strsignal-tests (Files): Likewise.
5684         * modules/strstr-tests (Files): Likewise.
5685         * modules/strtod-tests (Files): Likewise.
5686         * modules/strverscmp-tests (Files): Likewise.
5687         * modules/symlink-tests (Files): Likewise.
5688         * modules/symlinkat-tests (Files): Likewise.
5689         * modules/times-tests (Files): Likewise.
5690         * modules/trunc-tests (Files): Likewise.
5691         * modules/truncf-tests (Files): Likewise.
5692         * modules/truncl-tests (Files): Likewise.
5693         * modules/tsearch-tests (Files): Likewise.
5694         * modules/uname-tests (Files): Likewise.
5695         * modules/unlink-tests (Files): Likewise.
5696         * modules/unsetenv-tests (Files): Likewise.
5697         * modules/usleep-tests (Files): Likewise.
5698         * modules/utimensat-tests (Files): Likewise.
5699         * modules/vasprintf-tests (Files): Likewise.
5700         * modules/vdprintf-posix-tests (Files): Likewise.
5701         * modules/vfprintf-posix-tests (Files): Likewise.
5702         * modules/vprintf-posix-tests (Files): Likewise.
5703         * modules/vsnprintf-posix-tests (Files): Likewise.
5704         * modules/vsnprintf-tests (Files): Likewise.
5705         * modules/vsprintf-posix-tests (Files): Likewise.
5706         * modules/wcrtomb-tests (Files): Likewise.
5707         * modules/wcsnrtombs-tests (Files): Likewise.
5708         * modules/wcsrtombs-tests (Files): Likewise.
5709         * modules/wcwidth-tests (Files): Likewise.
5710         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5711         * tests/test-isinf.c (isinf): Likewise.
5712         * tests/test-isnan.c (isnan): Likewise.
5713         * tests/test-signbit.c (signbit): Likewise.
5714         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5715         declaration, either as macro or with correct signature.
5716         (select): Ensure function under test is declared with correct
5717         signature in correct header.
5718         * tests/test-atexit.c (atexit): Likewise.
5719         * tests/test-btowc.c (btowc): Likewise.
5720         * tests/test-canonicalize-lgpl.c (realpath)
5721         (canonicalize_file_name): Likewise.
5722         * tests/test-ceilf1.c (ceilf): Likewise.
5723         * tests/test-ceill.c (ceill): Likewise.
5724         * tests/test-chown.c (chown): Likewise.
5725         * tests/test-dprintf-posix.c (dprintf): Likewise.
5726         * tests/test-dup2.c (dup2): Likewise.
5727         * tests/test-dup3.c (dup3): Likewise.
5728         * tests/test-duplocale.c (duplocale): Likewise.
5729         * tests/test-fchdir.c (fchdir): Likewise.
5730         * tests/test-fchownat.c (fchownat): Likewise.
5731         * tests/test-fcntl.c (fcntl): Likewise.
5732         * tests/test-fdopendir.c (fdopendir): Likewise.
5733         * tests/test-fflush.c (fflush): Likewise.
5734         * tests/test-flock.c (flock): Likewise.
5735         * tests/test-floorf1.c (floorf): Likewise.
5736         * tests/test-floorl.c (floorl): Likewise.
5737         * tests/test-fnmatch.c (fnmatch): Likewise.
5738         * tests/test-fopen.c (fopen): Likewise.
5739         * tests/test-fprintf-posix.c (fprintf): Likewise.
5740         * tests/test-freopen.c (freopen): Likewise.
5741         * tests/test-frexp.c (frexp): Likewise.
5742         * tests/test-frexpl.c (frexpl): Likewise.
5743         * tests/test-fseek.c (fseek): Likewise.
5744         * tests/test-fseeko.c (fseeko): Likewise.
5745         * tests/test-fstatat.c (fstatat): Likewise.
5746         * tests/test-fsync.c (fsync): Likewise.
5747         * tests/test-ftell.c (ftell): Likewise.
5748         * tests/test-ftello.c (ftello): Likewise.
5749         * tests/test-futimens.c (futimens): Likewise.
5750         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5751         (gai_strerror): Likewise.
5752         * tests/test-getcwd.c (getcwd): Likewise.
5753         * tests/test-getdelim.c (getdelim): Likewise.
5754         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5755         * tests/test-getgroups.c (getgroups): Likewise.
5756         * tests/test-gethostname.c (gethostname): Likewise.
5757         * tests/test-getline.c (getline): Likewise.
5758         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5759         Likewise.
5760         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5761         * tests/test-glob.c (glob, globfree): Likewise.
5762         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5763         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5764         * tests/test-inet_pton.c (inet_pton): Likewise.
5765         * tests/test-isblank.c (isblank): Likewise.
5766         * tests/test-lchown.c (lchown): Likewise.
5767         * tests/test-ldexpl.c (ldexpl): Likewise.
5768         * tests/test-link.c (link): Likewise.
5769         * tests/test-linkat.c (linkat): Likewise.
5770         * tests/test-lseek.c (lseek): Likewise.
5771         * tests/test-lstat.c (lstat): Likewise.
5772         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5773         * tests/test-mbsinit.c (mbsinit): Likewise.
5774         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5775         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5776         * tests/test-memchr.c (memchr): Likewise.
5777         * tests/test-memcmp.c (memcmp): Likewise.
5778         * tests/test-memmem.c (memmem): Likewise.
5779         * tests/test-memrchr.c (memrchr): Likewise.
5780         * tests/test-mkdir.c (mkdir): Likewise.
5781         * tests/test-mkdirat.c (mkdirat): Likewise.
5782         * tests/test-mkfifo.c (mkfifo): Likewise.
5783         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5784         * tests/test-mknod.c (mknod): Likewise.
5785         * tests/test-nanosleep.c (nanosleep): Likewise.
5786         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5787         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5788         Likewise.
5789         * tests/test-open.c (open): Likewise.
5790         * tests/test-openat.c (openat): Likewise.
5791         * tests/test-perror.c (perror): Likewise.
5792         * tests/test-pipe2.c (pipe2): Likewise.
5793         * tests/test-poll.c (poll): Likewise.
5794         * tests/test-popen.c (popen, pclose): Likewise.
5795         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5796         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5797         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5798         (posix_spawn_file_actions_destroy)
5799         (posix_spawn_file_actions_addclose)
5800         (posix_spawn_file_actions_addopen)
5801         (posix_spawn_file_actions_adddup2): Likewise.
5802         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5803         * tests/test-pread.c (pread): Likewise.
5804         * tests/test-printf-posix.c (printf): Likewise.
5805         * tests/test-pty.c (openpty, forkpty): Likewise.
5806         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5807         (random_r): Likewise.
5808         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5809         * tests/test-readlink.c (readlink): Likewise.
5810         * tests/test-remove.c (remove): Likewise.
5811         * tests/test-rename.c (rename): Likewise.
5812         * tests/test-renameat.c (renameat): Likewise.
5813         * tests/test-rmdir.c (rmdir): Likewise.
5814         * tests/test-round1.c (round): Likewise.
5815         * tests/test-roundf1.c (roundf): Likewise.
5816         * tests/test-roundl.c (roundl): Likewise.
5817         * tests/test-setenv.c (setenv): Likewise.
5818         * tests/test-sigaction.c (sigaction): Likewise.
5819         * tests/test-sleep.c (sleep): Likewise.
5820         * tests/test-snprintf.c (snprintf): Likewise.
5821         * tests/test-sprintf-posix.c (sprintf): Likewise.
5822         * tests/test-stat.c (stat): Likewise.
5823         * tests/test-stpncpy.c (stpncpy): Likewise.
5824         * tests/test-strcasestr.c (strcasestr): Likewise.
5825         * tests/test-strchrnul.c (strchrnul): Likewise.
5826         * tests/test-strerror.c (strerror): Likewise.
5827         * tests/test-strsignal.c (strsignal): Likewise.
5828         * tests/test-strstr.c (strstr): Likewise.
5829         * tests/test-strtod.c (strtod): Likewise.
5830         * tests/test-strverscmp.c (strverscmp): Likewise.
5831         * tests/test-symlink.c (symlink): Likewise.
5832         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5833         * tests/test-times.c (times): Likewise.
5834         * tests/test-trunc1.c (trunc): Likewise.
5835         * tests/test-truncf1.c (truncf): Likewise.
5836         * tests/test-truncl.c (truncl): Likewise.
5837         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5838         Likewise.
5839         * tests/test-uname.c (uname): Likewise.
5840         * tests/test-unlink.c (unlink): Likewise.
5841         * tests/test-unlinkat.c (unlinkat): Likewise.
5842         * tests/test-unsetenv.c (unsetenv): Likewise.
5843         * tests/test-usleep.c (usleep): Likewise.
5844         * tests/test-utimensat.c (utimensat): Likewise.
5845         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5846         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5847         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5848         * tests/test-vprintf-posix.c (vprintf): Likewise.
5849         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5850         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5851         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5852         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5853         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5854         * tests/test-wcwidth.c (wcwidth): Likewise.
5855
5856         build: pull in conditional headers during GNULIB_POSIXCHECK
5857         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5858         definitions from any conditionally-included headers.
5859         * lib/stdlib.in.h (includes): Likewise.
5860         * lib/unistd.in.h (includes): Likewise.
5861
5862 2009-12-24  Bruno Haible  <bruno@clisp.org>
5863
5864         * tests/test-argv-iter.c: Include header file being tested immediately
5865         after config.h.
5866         * tests/test-base64.c: Likewise.
5867         * tests/test-flock.c: Likewise.
5868         * tests/test-fsync.c: Likewise.
5869         * tests/test-getdate.c: Likewise.
5870         * tests/test-getndelim2.c: Likewise.
5871         * tests/test-isfinite.c: Likewise.
5872         * tests/test-isinf.c: Likewise.
5873         * tests/test-strerror.c: Likewise.
5874         * tests/test-strsignal.c: Likewise.
5875
5876 2009-12-23  Eric Blake  <ebb9@byu.net>
5877
5878         unistd: work around cygwin bug
5879         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5880         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5881         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5882
5883 2009-12-23  Bruno Haible  <bruno@clisp.org>
5884
5885         localename: More tests.
5886         * tests/test-localename.c (SIZEOF): New macro.
5887         (categories): New variable.
5888         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5889         test_locale_name_default): Add test w.r.t. thread locale.
5890         (test_locale_name_thread): New function.
5891         (main): Invoke it.
5892
5893         localename: Make aware of thread locale.
5894         * lib/localename.h (gl_locale_name_thread): New declaration.
5895         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5896         behaviour with respect to thread locale.
5897         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5898         <langinfo.h>, glthread/lock.h.
5899         (SIZE_BITS): New macro.
5900         (string_hash): New function.
5901         (struct hash_node): New type.
5902         (HASH_TABLE_SIZE): New macro.
5903         (struniq_hash_table, struniq_lock): New variables.
5904         (struniq): New function.
5905         (gl_locale_name_thread): New function.
5906         (gl_locale_name): Invoke it.
5907         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5908         * modules/localename (Depends-on): Add lock.
5909         Reported by Mike Gran <spk121@yahoo.com>.
5910
5911 2009-12-23  Eric Blake  <ebb9@byu.net>
5912
5913         va-args: new module
5914         * modules/va-args: New file.
5915         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5916         * MODULES.html.sh (Core language properties): Mention it.
5917
5918         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5919         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5920         named alias for __attribute__((__unused__)).
5921         * lib/chown.c: Update client.
5922         * lib/fchmodat.c: Likewise.
5923         * lib/fts.c: Likewise.
5924         * lib/getdate.y: Likewise.
5925         * lib/getgroups.c: Likewise.
5926         * lib/getopt.c: Likewise.
5927         * lib/getugroups.c: Likewise.
5928         * lib/mkdir.c: Likewise.
5929         * lib/mkfifo.c: Likewise.
5930         * lib/mkfifoat.c: Likewise.
5931         * lib/mknod.c: Likewise.
5932         * lib/mknodat.c: Likewise.
5933         * lib/readlink.c: Likewise.
5934         * lib/se-context.in.h: Likewise.
5935         * lib/se-selinux.in.h: Likewise.
5936         * lib/sockets.c: Likewise.
5937         * lib/symlink.c: Likewise.
5938         * lib/symlinkat.c: Likewise.
5939         * lib/unicodeio.c: Likewise.
5940         * lib/unistr.h: Likewise.
5941         * tests/test-areadlink.c: Likewise.
5942         * tests/test-areadlinkat.c: Likewise.
5943         * tests/test-filenamecat.c: Likewise.
5944         * tests/test-fseeko.c: Likewise.
5945         * tests/test-ftello.c: Likewise.
5946         * tests/test-getdate.c: Likewise.
5947         * tests/test-getgroups.c: Likewise.
5948         * tests/test-gethostname.c: Likewise.
5949         * tests/test-quotearg.c: Likewise.
5950         * tests/test-version-etc.c: Likewise.
5951         * tests/test-xalloc-die.c: Likewise.
5952         * tests/test-xfprintf-posix.c: Likewise.
5953         * tests/test-xprintf-posix.c: Likewise.
5954         * tests/test-xvasprintf.c: Likewise.
5955
5956         tests: avoid compiler warnings
5957         * tests/test-fcntl.c (main): Delete unused parameters.
5958         * tests/test-freopen-safer.c (main): Likewise.
5959         * tests/test-xalloc-die.c (main): Mark unused parameters.
5960         * tests/test-fseeko.c (main): Likewise.
5961         * tests/test-ftello.c (main): Likewise.
5962         * tests/test-nanosleep.c (main): Avoid declaration warning.
5963         * tests/test-sleep.c (main): Likewise.
5964         * tests/test-unsetenv.c (main): Silence warning about string
5965         literal.
5966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5967
5968 2009-12-23  Bruno Haible  <bruno@clisp.org>
5969
5970         * tests/test-localename.c (test_locale_name): New function, extracted
5971         from main. Also test mixed situations.
5972         (test_locale_name_posix, test_locale_name_environ,
5973         test_locale_name_default): New functions.
5974         (main): Invoke them all.
5975         * modules/localename-tests (configure.ac): Test for newlocale.
5976
5977 2009-12-23  Bruno Haible  <bruno@clisp.org>
5978
5979         unistd: Ensure getcwd gets declared before being overridden.
5980         * lib/unistd.in.h: Conditionally include <io.h>.
5981
5982 2009-12-22  Bruno Haible  <bruno@clisp.org>
5983
5984         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5985         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5986         (gl_WCHAR_H): Invoke it.
5987         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5988         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5989         Reported by Karl Berry <karl@freefriends.org>.
5990
5991 2009-12-22  Eric Blake  <ebb9@byu.net>
5992
5993         math, unistd: avoid redundant includes
5994         * lib/math.in.h (isnan): No need to re-include <math.h>.
5995         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5996
5997         getsubopt: work around cygwin bug
5998         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5999         avoid conflicting with system getsubopt.
6000         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6001         bug.
6002
6003         getopt: synchronize from glibc
6004         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6005         parameter order.  Adjust all callers.
6006         (_getopt_internal_r, main): Adjust quoting in error messages.
6007         Drop considerations for outdated POSIX 1003.2 error message.
6008         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6009         callers.
6010         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6011
6012         test-getopt: test stderr behavior
6013         * modules/getopt-posix-tests (Depends-on): Add dup2.
6014         * tests/test-getopt.c (ASSERT): Avoid stderr.
6015         (main): Move stderr to a temporary file.
6016         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6017         Instead, add parameter to inform caller if output occurred.
6018         (test_getopt): Adjust all existing tests to expect silence, and
6019         add new tests of leading ":".
6020         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6021         glibc shortcomings with leading "-:" or "+:" in optstring.
6022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6023         Likewise.
6024         * doc/posix-functions/getopt.texi (getopt): Likewise.
6025
6026         test-getopt: enhance test
6027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6028         supports optind=0.
6029         * tests/test-getopt.c (OPTIND_MIN): Move...
6030         * tests/test-getopt.h (OPTIND_MIN): ...here.
6031         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6032         Require that optind=0 works, since modern BSD supports it in
6033         addition to optreset, and since coreutils expects it.
6034         (test_getopt_long_only): New test.
6035         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6036         glibc shortcomings with 'W;', and enforcement of optind=0.
6037         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6038         Likewise.
6039
6040 2009-12-21  Bruno Haible  <bruno@clisp.org>
6041
6042         localename: Improvements for MacOS X and Cygwin.
6043         * lib/localename.h (gl_locale_name_environ): New declaration.
6044         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6045         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6046         (gl_locale_name_posix): Invoke it.
6047         (gl_locale_name_default): Add comments. Use Windows native API also on
6048         Cygwin.
6049
6050 2009-12-21  Bruno Haible  <bruno@clisp.org>
6051
6052         Update list of Win32 locale ids.
6053         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6054         (LANG_SAMI): Renamed from LANG_SAAMI.
6055         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6056         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6057         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6058         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6059         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6060         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6061         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6062         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6063         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6064         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6065         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6066         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6067         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6068         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6069         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6070         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6071         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6072         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6073         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6074         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6075         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6076         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6077         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6078         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6079         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6080         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6081         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6082         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6083         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6084         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6085         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6086         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6087         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6088         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6089         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6090         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6091         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6092         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6093         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6094         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6095         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6096         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6097         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6098         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6099         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6100         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6101         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6102         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6103         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6104         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6105         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6106         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6107         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6108         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6109         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6110         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6111         Add more languages and countries for Sami, Sorbian. Add more countries
6112         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6113         for Pashto. Change country for Syriac, Tswana.
6114
6115 2009-12-21  Eric Blake  <ebb9@byu.net>
6116
6117         test-utimens: avoid spurious failure
6118         * tests/test-chown.h (nap): Factor...
6119         * tests/nap.h: ...into new file.
6120         * tests/test-lchown.h (nap): Avoid duplication.
6121         * tests/test-utimens-common.h (nap): Use shared implementation,
6122         necessary on file systems with 1-second resolution.
6123         * modules/chown-tests (Files): Include new file.
6124         * modules/fdutimensat-tests (Files): Likewise.
6125         * modules/futimens-tests (Files): Likewise.
6126         * modules/lchown-tests (Files): Likewise.
6127         * modules/openat-tests (Files): Likewise.
6128         * modules/utimens-tests (Files): Likewise.
6129         * modules/utimensat-tests (Files): Likewise.
6130
6131 2009-12-19  Eric Blake  <ebb9@byu.net>
6132
6133         futimens, utimensat: work around Linux bug
6134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6136         * lib/utimensat.c (rpl_utimensat): Work around it.
6137         * lib/futimens.c (rpl_futimens): Adjust comment.
6138
6139         utimens: work around Linux ctime bug
6140         * lib/utimens.c (detect_ctime_bug): New helper function.
6141         (update_timespec): Differentiate between workaround needed for
6142         this bug vs. what is needed for systems that lack utimensat.
6143         (fdutimens, lutimens): Work around bug.
6144
6145         utimens: check for ctime update
6146         * tests/test-utimens-common.h (check_ctime): Define.
6147         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6148         * tests/test-futimens.h (test_futimens): Likewise.
6149         * tests/test-lutimens.h (test_lutimens): Likewise.
6150         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6151         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6152
6153 2009-12-19  Bruno Haible  <bruno@clisp.org>
6154
6155         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6156         * tests/test-dprintf-posix2.sh: New file.
6157         * tests/test-dprintf-posix2.c: New file.
6158         * modules/dprintf-posix-tests (Files): Add them.
6159         (configure.ac): Check for getrlimit and setrlimit.
6160         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6161
6162 2009-12-19  Bruno Haible  <bruno@clisp.org>
6163
6164         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6165         * tests/test-fprintf-posix3.sh: New file.
6166         * tests/test-fprintf-posix3.c: New file.
6167         * modules/fprintf-posix-tests (Files): Add them.
6168         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6169
6170 2009-12-19  Eric Blake  <ebb9@byu.net>
6171
6172         dirfd: fix prototype
6173         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6174         * lib/dirfd.c (dirfd): Likewise.
6175
6176         canonicalize: reduce memory usage
6177         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6178         allocation to size.
6179         Reported by Solar Designer <solar@openwall.com>.
6180
6181 2009-12-19  Bruno Haible  <bruno@clisp.org>
6182
6183         New module attribute 'Applicability'.
6184         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6185         * gnulib-tool: New option --extract-applicability.
6186         (func_usage): Document it.
6187         (sed_extract_prog): Recognize it.
6188         (func_get_applicability): New function.
6189         (func_import): Generalize handling of 'link-warning' module.
6190         * modules/link-warning (Applicability): New section.
6191         * modules/arg-nonnull (Applicability): New section.
6192         Repoted by Simon Josefsson <simon@josefsson.org>.
6193
6194 2009-12-19  Bruno Haible  <bruno@clisp.org>
6195
6196         fflush: tweak
6197         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6198         * lib/fseeko.c (rpl_fseeko): Likewise.
6199
6200 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6201
6202         * lib/gl_list.h: Fix typo in comment.
6203
6204 2009-12-16  Eric Blake  <ebb9@byu.net>
6205
6206         fcntl: use to simplify other modules
6207         * modules/cloexec (Depends-on): Add fcntl.
6208         * modules/fchdir (Depends-on): Likewise.
6209         * modules/fd-safer-flag (Depends-on): Likewise.
6210         * modules/unistd-safer (Depends-on): Likewise.
6211         * modules/dup3 (configure.ac): Set module indicator.
6212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6213         missing.
6214         * lib/fchdir.c (_gl_register_dup): Fix comment.
6215         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6216         * lib/dup-safer.c (dup_safer): Likewise.
6217         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6218         * lib/dup3.c (dup3): Likewise.
6219         * tests/test-fchdir.c (main): Enhance test.
6220         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6221
6222         fcntl: port portions of fcntl to mingw
6223         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6224         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6225         replacement for mingw.
6226         * modules/fcntl (Description): Update.
6227         (Depends-on): Add dup2.
6228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6229         * modules/fcntl-h (Makefile.am): Substitute it.
6230         * lib/fcntl.in.h (fcntl): Update declaration.
6231         (F_DUPFD, F_GETFD): New macros, when needed.
6232         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6233         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6234         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6235         we now guarantee.
6236
6237         fcntl: work around cygwin bug in F_DUPFD
6238         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6239         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6240         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6241         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6242         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6243
6244         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6245         * modules/fcntl (Files): List new files.
6246         (configure.ac): Run a test.
6247         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6248         * lib/fcntl.c (rpl_fcntl): Likewise.
6249         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6250         (gl_FCNTL_H): Always replace fcntl.h.
6251         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6252         * lib/fcntl.in.h (fcntl): Declare replacement.
6253         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6254         needed, plus a witness.
6255         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6256         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6257         * tests/test-fcntl.c: New file.
6258         * modules/fcntl-tests: Likewise.
6259
6260         binary-io: avoid potential compilation warning
6261         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6262         directives.
6263
6264         fflush: avoid compilation error on NetBSD
6265         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6266         between off_t and fpos_t, since the latter is sometimes a struct.
6267         * lib/fseeko.c (rpl_fseeko): Likewise.
6268         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6269
6270 2009-12-15  Eric Blake  <ebb9@byu.net>
6271
6272         fcntl-h, stdio, sys_ioctl: fix declarations
6273         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6274         function must not take arguments.
6275         * lib/sys_ioctl.in.h (ioctl): Likewise.
6276         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6277         (open): Add a link warning.
6278
6279 2009-12-15  Jim Meyering  <meyering@redhat.com>
6280
6281         areadlink, areadlink-with-size: relax license to LGPLv2+
6282         * modules/areadlink (License): Relax to LGPLv2+.
6283         * modules/areadlink-with-size (License): Likewise.
6284
6285 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6286             Bruno Haible  <bruno@clisp.org>
6287
6288         *printf: Fix memory leak.
6289         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6290         * lib/vfprintf.c (vfprintf): Likewise.
6291         * lib/dprintf.c (dprintf): Likewise.
6292         * lib/vdprintf.c (vdprintf): Likewise.
6293
6294 2009-12-14  Eric Blake  <ebb9@byu.net>
6295
6296         accept4: adjust module dependencies
6297         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6298
6299         utimens: one more try at avoiding compiler warning
6300         * lib/utimens.c (lutimens): Lower scope of result.
6301
6302 2009-12-13  Bruno Haible  <bruno@clisp.org>
6303
6304         Move the malloc checking from module 'list' to new module 'xlist'.
6305         * modules/xlist: New file.
6306         * lib/gl_xlist.h: New file.
6307         * lib/gl_xlist.c: New file.
6308         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6309         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6310         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6311         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6312         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6313         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6314         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6315         gl_sortedlist_nx_add): New declarations.
6316         (struct gl_list_implementation): Rename and change methods accordingly.
6317         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6318         (gl_list_nx_create): Renamed from gl_list_create.
6319         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6320         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6321         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6322         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6323         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6324         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6325         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6326         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6327         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6328         gl_list_create_empty.
6329         (gl_list_nx_create): Renamed from gl_list_create.
6330         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6331         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6332         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6333         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6334         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6335         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6336         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6337         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6338         * lib/gl_array_list.c: Don't include xalloc.h.
6339         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6340         NULL upon out-of-memory.
6341         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6342         out-of-memory.
6343         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6344         Change return type to 'int'.
6345         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6346         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6347         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6348         upon out-of-memory.
6349         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6350         upon out-of-memory.
6351         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6352         upon out-of-memory.
6353         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6354         upon out-of-memory.
6355         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6356         out-of-memory.
6357         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6358         Update.
6359         (gl_array_list_implementation): Update.
6360         * lib/gl_carray_list.c: Don't include xalloc.h.
6361         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6362         Return NULL upon out-of-memory.
6363         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6364         out-of-memory.
6365         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6366         Change return type to 'int'.
6367         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6368         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6369         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6370         upon out-of-memory.
6371         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6372         upon out-of-memory.
6373         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6374         out-of-memory.
6375         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6376         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6377         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6378         Update.
6379         (gl_carray_list_implementation): Update.
6380         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6381         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6382         gl_linked_create_empty. Return NULL upon out-of-memory.
6383         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6384         out-of-memory.
6385         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6386         Change return type to 'int'. Return -1 upon out-of-memory.
6387         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6388         out-of-memory.
6389         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6390         upon out-of-memory.
6391         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6392         upon out-of-memory.
6393         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6394         NULL upon out-of-memory.
6395         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6396         upon out-of-memory.
6397         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6398         out-of-memory.
6399         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6400         Update.
6401         * lib/gl_linked_list.c: Don't include xalloc.h.
6402         (gl_linked_list_implementation): Update.
6403         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6404         (add_to_bucket): Change return type to 'int'.
6405         (gl_linkedhash_list_implementation): Update.
6406         * lib/gl_anytree_list1.h (free_subtree): New function.
6407         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6408         gl_tree_create_empty. Return NULL upon out-of-memory.
6409         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6410         Change return type to 'int'. Return -1 upon out-of-memory.
6411         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6412         out-of-memory.
6413         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6414         (gl_tree_remove_node): New function, moved here from
6415         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6416         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6417         Update.
6418         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6419         malloc, not xmalloc. Return NULL upon out-of-memory.
6420         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6421         out-of-memory.
6422         (gl_tree_remove_node_from_tree): New function, extracted from
6423         gl_tree_remove_node.
6424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6425         upon out-of-memory.
6426         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6427         out-of-memory.
6428         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6429         upon out-of-memory.
6430         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6431         upon out-of-memory.
6432         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6433         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6434         not xmalloc. Return NULL upon out-of-memory.
6435         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6436         out-of-memory.
6437         (gl_tree_remove_node_from_tree): New function, extracted from
6438         gl_tree_remove_node.
6439         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6440         upon out-of-memory.
6441         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6442         out-of-memory.
6443         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6444         upon out-of-memory.
6445         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6446         upon out-of-memory.
6447         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6448         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6449         gl_anytree_list1.h before gl_anyavltree_list2.h.
6450         (gl_avltree_list_implementation): Update.
6451         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6452         gl_anytree_list1.h before gl_anyavltree_list2.h.
6453         (gl_rbtree_list_implementation): Update.
6454         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6455         Change return type to 'int'. Return -1 upon out-of-memory. Use
6456         __builtin_expect.
6457         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6458         (gl_avltreehash_list_implementation): Update.
6459         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6460         (gl_rbtreehash_list_implementation): Update.
6461         * modules/array-list (Depends-on): Remove xalloc.
6462         * modules/carray-list (Depends-on): Likewise.
6463         * modules/linked-list (Depends-on): Likewise.
6464         * modules/linkedhash-list (Depends-on): Likewise.
6465         * modules/avltree-list (Depends-on): Likewise.
6466         * modules/rbtree-list (Depends-on): Likewise.
6467         * modules/avltreehash-list (Depends-on): Likewise.
6468         * modules/rbtreehash-list (Depends-on): Likewise.
6469
6470         * modules/xsublist: New file.
6471         * lib/gl_xsublist.h: New file.
6472         * lib/gl_xsublist.c: New file.
6473         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6474         (gl_sublist_nx_create): New declaration.
6475         * lib/gl_sublist.c: Don't include xalloc.h.
6476         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6477         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6478         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6479         Change return type to 'int'. Return -1 upon out-of-memory.
6480         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6481         upon out-of-memory.
6482         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6483         NULL upon out-of-memory.
6484         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6485         upon out-of-memory.
6486         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6487         NULL upon out-of-memory.
6488         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6489         NULL upon out-of-memory.
6490         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6491         upon out-of-memory.
6492         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6493         (gl_sublist_list_implementation): Update.
6494         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6495         upon out-of-memory.
6496         * modules/sublist (Depends-on): Remove xalloc.
6497
6498         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6499         * tests/test-carray_list.c: Likewise.
6500         * tests/test-linked_list.c: Likewise.
6501         * tests/test-linkedhash_list.c: Likewise.
6502         * tests/test-avltree_list.c: Likewise.
6503         * tests/test-rbtree_list.c: Likewise.
6504         * tests/test-avltreehash_list.c: Likewise.
6505         * tests/test-rbtreehash_list.c: Likewise.
6506         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6507         * modules/carray-list-tests (Makefile.am): Likewise.
6508         * modules/linked-list-tests (Makefile.am): Likewise.
6509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6510         * modules/avltree-list-tests (Makefile.am): Likewise.
6511         * modules/rbtree-list-tests (Makefile.am): Likewise.
6512         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6514
6515         * NEWS: Mention the changes.
6516
6517         * lib/clean-temp.c: Include gl_xlist.h.
6518         * modules/clean-temp (Depends-on): Add xlist.
6519
6520         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6521         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6522
6523         * tests/test-array_oset.c: Include gl_xlist.h.
6524         * modules/array-oset-tests (Depends-on): Add xlist.
6525
6526         Reported by José E. Marchesi <jemarch@gnu.org>.
6527
6528 2009-12-13  Bruno Haible  <bruno@clisp.org>
6529
6530         Move the malloc checking from module 'oset' to new module 'xoset'.
6531         * modules/xoset: New file.
6532         * lib/gl_xoset.h: New file.
6533         * lib/gl_xoset.c: New file.
6534         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6535         declarations.
6536         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6537         (struct gl_oset_implementation): Rename and change methods accordingly.
6538         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6540         'int'. Mark as __warn_unused_result__.
6541         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6542         gl_oset_create_empty.
6543         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6544         'int'.
6545         * lib/gl_array_oset.c: Don't include xalloc.h.
6546         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6547         malloc, not xmalloc.
6548         (grow): Change return type to 'int'. Don't call xalloc_die.
6549         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6550         to 'int'.
6551         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6552         'int'.
6553         (gl_array_oset_implementation): Update.
6554         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6555         gl_tree_create_empty.
6556         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6557         'int'.
6558         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6560         xmalloc.
6561         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6562         not xmalloc.
6563         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6564         xmalloc.
6565         (gl_avltree_oset_implementation): Update.
6566         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6568         xmalloc.
6569         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6570         not xmalloc.
6571         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6572         xmalloc.
6573         (gl_rbtree_oset_implementation): Update.
6574         * modules/array-oset (Depends-on): Remove xalloc.
6575         * modules/avltree-oset (Depends-on): Likewise.
6576         * modules/rbtree-oset (Depends-on): Likewise.
6577         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6578         * tests/test-avltree_oset.c: Likewise.
6579         * tests/test-rbtree_oset.c: Likewise.
6580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6581         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6582         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6583         * NEWS: Mention the change.
6584
6585 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6586
6587         maint.mk: allow a project to override release-prep commands
6588         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6589         commands into a new rule.
6590         (release-prep): New rule.
6591         (release-prep-hook): New overridable variable.
6592
6593 2009-12-13  Bruno Haible  <bruno@clisp.org>
6594
6595         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6596
6597 2009-12-13  Jim Meyering  <meyering@redhat.com>
6598
6599         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6600         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6601
6602 2009-12-12  Bruno Haible  <bruno@clisp.org>
6603
6604         duplocale: Tweak.
6605         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6606
6607 2009-12-12  Karl Berry  <karl@gnu.org>
6608
6609         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6610
6611 2009-12-12  Bruno Haible  <bruno@clisp.org>
6612
6613         * m4/po.m4: Undo incorrect untabification.
6614
6615 2009-12-12  Bruno Haible  <bruno@clisp.org>
6616
6617         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6618         * modules/c-strtod (Depends-on): Add locale.
6619         * modules/c-strtold (Depends-on): Likewise.
6620
6621 2009-12-12  Bruno Haible  <bruno@clisp.org>
6622
6623         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6624
6625 2009-12-11  Eric Blake  <ebb9@byu.net>
6626
6627         setenv: relax requirement in light of POSIX ruling
6628         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6629         not NULL.
6630         * tests/test-setenv.c (main): Relax test.
6631         * tests/test-unsetenv.c (main): Likewise.
6632         * doc/posix-functions/setenv.texi (setenv): Document this.
6633         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6634
6635 2009-12-11  Bruno Haible  <bruno@clisp.org>
6636
6637         New module 'fd-safer-flag'.
6638         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6639         * lib/dup-safer.c (dup_safer_flag): Remove function.
6640         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6641         * lib/fd-safer.c (fd_safer_flag): Remove function.
6642         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6643         * modules/cloexec (configure.ac): Drop indicator macro.
6644         * modules/fd-safer-flag: New file.
6645         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6646         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6647         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6648
6649 2009-12-11  Bruno Haible  <bruno@clisp.org>
6650
6651         Tests for module 'nl_langinfo'.
6652         * modules/nl_langinfo-tests: New file.
6653         * tests/test-nl_langinfo.sh: New file.
6654         * tests/test-nl_langinfo.c: New file.
6655
6656         New module 'nl_langinfo'.
6657         * lib/nl_langinfo.c: New file.
6658         * m4/nl_langinfo.m4: New file.
6659         * modules/nl_langinfo: New file.
6660         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6661
6662 2009-12-11  Bruno Haible  <bruno@clisp.org>
6663
6664         Tests for module 'langinfo'.
6665         * modules/langinfo-tests: New file.
6666         * tests/test-langinfo.c: New file.
6667
6668         New module 'langinfo'.
6669         * lib/langinfo.in.h: New file.
6670         * m4/langinfo_h.m4: New file.
6671         * modules/langinfo: New file.
6672         * doc/posix-headers/langinfo.texi: Mention the new module.
6673
6674 2009-12-11  Bruno Haible  <bruno@clisp.org>
6675
6676         * lib/config.charset: Untabify.
6677
6678 2009-12-11  Bruno Haible  <bruno@clisp.org>
6679
6680         * modules/unistd-safer (configure.ac): Drop indicator macro.
6681
6682 2009-12-11  Bruno Haible  <bruno@clisp.org>
6683
6684         Move pipe2-safer code to its own file.
6685         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6686         * lib/pipe-safer.c (pipe2_safer): Remove function.
6687         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6688         (Makefile.am): Add it to lib_SOURCES.
6689
6690 2009-12-10  Bruno Haible  <bruno@clisp.org>
6691
6692         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6693
6694 2009-12-10  Bruno Haible  <bruno@clisp.org>
6695
6696         Declare which arguments expect non-NULL values, for GCC and clang.
6697         * build-aux/arg-nonnull.h: New file.
6698         * modules/arg-nonnull: New file.
6699         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6700         (inet_ntop, inet_pton): Use it.
6701         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6702         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6703         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6704         (open, openat): Use it.
6705         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6706         (fnmatch): Use it.
6707         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6708         (getopt, getopt_long, getopt_long_only): Use it.
6709         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6710         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6711         Use it.
6712         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6713         (iconv_open): Use it.
6714         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6715         (strtoimax, strtoumax): Use it.
6716         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6717         (duplocale): Use it.
6718         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6719         (frexp, frexpl): Use it.
6720         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6721         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6722         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6723         (tsearch, tfind, tdelete, twalk): Use it.
6724         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6725         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6726         sigpending): Use it.
6727         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6728         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6729         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6730         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6731         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6732         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6733         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6734         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6735         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6736         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6737         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6738         Use it.
6739         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6740         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6741         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6742         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6743         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6744         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6745         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6746         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6747         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6748         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6749         strtoull, unsetenv): Use it.
6750         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6751         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6752         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6753         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6754         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6755         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6756         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6757         (strcasecmp, strncasecmp): Use it.
6758         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6759         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6760         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6761         rpl_setsockopt): Use it.
6762         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6763         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6764         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6765         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6766         (gettimeofday): Use it.
6767         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6768         (times): Use it.
6769         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6770         (uname): Use it.
6771         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6772         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6773         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6774         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6775         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6776         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6777         unlinkat, write): Use it.
6778         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6779         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6780         * lib/argv-iter.h: Include arg-nonnull.h.
6781         (_ATTRIBUTE_NONNULL_): Remove macro.
6782         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6783         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6784         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6785         optimization.
6786         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6787         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6788         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6789         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6790         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6791         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6792         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6793         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6794         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6795         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6796         * modules/dirent (Depends-on): Add arg-nonnull.
6797         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6798         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6799         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6800         * modules/fnmatch (Depends-on): Add arg-nonnull.
6801         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6802         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6803         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6804         * modules/glob (Depends-on): Add arg-nonnull.
6805         (Makefile.am): Insert arg-nonnull.h into glob.h.
6806         * modules/iconv_open (Depends-on): Add arg-nonnull.
6807         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6808         * modules/inttypes (Depends-on): Add arg-nonnull.
6809         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6810         * modules/locale (Depends-on): Add arg-nonnull.
6811         (Makefile.am): Insert arg-nonnull.h into locale.h.
6812         * modules/math (Depends-on): Add arg-nonnull.
6813         (Makefile.am): Insert arg-nonnull.h into math.h.
6814         * modules/netdb (Depends-on): Add arg-nonnull.
6815         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6816         * modules/search (Depends-on): Add arg-nonnull.
6817         (Makefile.am): Insert arg-nonnull.h into search.h.
6818         * modules/signal (Depends-on): Add arg-nonnull.
6819         (Makefile.am): Insert arg-nonnull.h into signal.h.
6820         * modules/spawn (Depends-on): Add arg-nonnull.
6821         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6822         * modules/stdio (Depends-on): Add arg-nonnull.
6823         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6824         * modules/stdlib (Depends-on): Add arg-nonnull.
6825         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6826         * modules/string (Depends-on): Add arg-nonnull.
6827         (Makefile.am): Insert arg-nonnull.h into string.h.
6828         * modules/strings (Depends-on): Add arg-nonnull.
6829         (Makefile.am): Insert arg-nonnull.h into strings.h.
6830         * modules/sys_socket (Depends-on): Add arg-nonnull.
6831         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6832         * modules/sys_stat (Depends-on): Add arg-nonnull.
6833         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6834         * modules/sys_time (Depends-on): Add arg-nonnull.
6835         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6836         * modules/sys_times (Depends-on): Add arg-nonnull.
6837         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6838         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6839         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6840         * modules/time (Depends-on): Add arg-nonnull.
6841         (Makefile.am): Insert arg-nonnull.h into time.h.
6842         * modules/unistd (Depends-on): Add arg-nonnull.
6843         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6844         * modules/wchar (Depends-on): Add arg-nonnull.
6845         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6846         * modules/argv-iter (Depends-on): Add arg-nonnull.
6847         * tests/test-canonicalize.c (null_ptr): New function.
6848         (main): Use it.
6849         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6850         (main): Use it.
6851         * tests/test-memmem.c (null_ptr): New function.
6852         (main): Use it.
6853         Reported by Jim Meyering.
6854
6855 2009-12-10  Bruno Haible  <bruno@clisp.org>
6856
6857         Use spaces for indentation, not tabs.
6858         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6859         * m4/*.m4: Untabify.
6860         * build-aux/*.h: Untabify.
6861         * tests/**/*.[hc]: Untabify.
6862         * README: New section "Indent with spaces, not TABs", based on
6863         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6864         * NEWS: Mention the change.
6865
6866 2009-12-10  Bruno Haible  <bruno@clisp.org>
6867
6868         pty test: Fix link error.
6869         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6870         test_pty_LDADD.
6871
6872 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6873
6874         * modules/pty: New file.
6875         * modules/pty-tests: New file.
6876         * m4/pty.m4: New file.
6877         * tests/test-pty.c: New file.
6878         * doc/glibc-headers/pty.texi: Modified.
6879         * doc/glibc-functions/forkpty.texi: Modified.
6880         * doc/glibc-functions/openpty.texi: Modified.
6881
6882 2009-12-10  Bruno Haible  <bruno@clisp.org>
6883
6884         Avoid syntax error in C++ mode.
6885         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6886
6887 2009-12-10  Bruno Haible  <bruno@clisp.org>
6888
6889         Use sed with option -e.
6890         * gnulib-tool (func_version, func_emit_copyright_notice,
6891         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6892         option -e to sed.
6893         * modules/link-warning (Makefile.am): Likewise.
6894
6895 2009-12-10  Jim Meyering  <meyering@redhat.com>
6896
6897         mgetgroups: do not write bytes beyond end of malloc'd buffer
6898         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6899         username, we call getgroups with a one-element-shorter buffer,
6900         but still told it the length was original, max_n_groups.
6901
6902 2009-12-09  Eric Blake  <ebb9@byu.net>
6903
6904         cloexec: relax license
6905         * modules/cloexec (Maintainer): Add myself.
6906         (License): Use LGPL, not GPL.
6907
6908         link-warning: optimize generation
6909         * modules/link-warning (Makefile.am): Reduce process usage.
6910
6911 2009-12-09  Bruno Haible  <bruno@clisp.org>
6912
6913         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6914         workaround was added on 2009-11-17.
6915
6916 2009-12-09  Jim Meyering  <meyering@redhat.com>
6917             Bruno Haible  <bruno@clisp.org>
6918
6919         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6920         * modules/link-warning (Makefile.am): Make the comment-removing sed
6921         command more robust in the face of bootstrap-prepended comment lines.
6922
6923 2009-12-09  Bruno Haible  <bruno@clisp.org>
6924
6925         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6926         most one group.
6927
6928 2009-12-09  Simon Josefsson <simon@josefsson.org>
6929             Bruno Haible  <bruno@clisp.org>
6930
6931         * build-aux/link-warning.h: Add copyright notice.
6932         * modules/link-warning (Makefile.am): Generate link-warning.h from
6933         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6934         * NEWS: Mention change in link-warning module.
6935         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6936         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6937         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6938         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6939         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6940         * modules/math (Makefile.am): Add dependency to math.h.
6941         * modules/search (Makefile.am): Add dependency to search.h.
6942         * modules/signal (Makefile.am): Add dependency to signal.h.
6943         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6944         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6945         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6946         * modules/string (Makefile.am): Add dependency to string.h.
6947         * modules/strings (Makefile.am): Add dependency to strings.h.
6948         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6949         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6950         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6951         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6952         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6953         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6954         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6955         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6956         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6957
6958 2009-12-09  Bruno Haible  <bruno@clisp.org>
6959
6960         fchdir: Optimize away rpl_fstat when possible.
6961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6962         REPLACE_OPEN_DIRECTORY.
6963         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6964
6965 2009-12-09  Bruno Haible  <bruno@clisp.org>
6966
6967         * lib/fchdir.c: Update comment.
6968
6969 2009-12-09  Bruno Haible  <bruno@clisp.org>
6970
6971         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6972
6973 2009-12-08  Eric Blake  <ebb9@byu.net>
6974
6975         fchdir: avoid memory leak on re-registration.
6976         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6977
6978 2009-12-08  Jim Meyering  <meyering@redhat.com>
6979
6980         init.sh: avoid Solaris 10 /bin/sh portability problem
6981         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6982         sourced script:
6983           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6984           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6985           bar
6986         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6987         and two tests used that idiom.
6988         * tests/init.sh: Update suggested usage comments.
6989         (path_prepend_): New function, to be used in place
6990         of the --src-path=DIR option.
6991         (setup_): Move PATH-prepending code into path_prepend_.
6992         * tests/test-pread.sh: Adapt to new usage.
6993         * tests/test-xalloc-die.sh: Likewise.
6994
6995 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6996
6997         * doc/gnulib.texi (Glibc pty.h): Add.
6998         * doc/glibc-functions/forkpty.texi: Add.
6999         * doc/glibc-functions/openpty.texi: Add.
7000         Suggested by Bruno Haible.
7001
7002 2009-12-08  Eric Blake  <ebb9@byu.net>
7003
7004         fchdir: fix logic bugs
7005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7006         * tests/test-fchdir.c (main): Enhance test.
7007         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7008         is in use.
7009
7010         dup2: fix logic bugs
7011         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7012         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7013         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7014         exists.
7015         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7016
7017 2009-12-07  Eric Blake  <ebb9@byu.net>
7018
7019         unlink: fix m4 detection
7020         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7021
7022         unistd-safer: add unit test
7023         * modules/unistd-safer-tests: New file.
7024         * tests/test-dup-safer.c: Likewise.
7025         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7026         * tests/test-dup2.c (setmode): Likewise.
7027         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7028
7029         cloexec: preserve text vs. binary across dup_cloexec
7030         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7031         mode.
7032         * modules/dup2-tests (Depends-on): Add binary-io.
7033         * modules/cloexec-tests (Depends-on): Likewise.
7034         * tests/test-dup2.c (setmode, is_mode): New helpers.
7035         (main): Add tests that translation mode is preserved.
7036         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7037         Reported by Bruno Haible.
7038
7039         mgetgroups: reduce duplicate listings
7040         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7041         resulting array.
7042         * tests/test-chown.h (test_chown): Simplify client.
7043         * tests/test-lchown.h (test_lchown): Likewise.
7044
7045 2009-12-06  Bruno Haible  <bruno@clisp.org>
7046
7047         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7048         value.
7049
7050 2009-12-06  Bruno Haible  <bruno@clisp.org>
7051
7052         * lib/progname.c: Include stdio.h, stdlib.h.
7053         (set_program_name): Reject a NULL argument.
7054
7055 2009-12-05  Eric Blake  <ebb9@byu.net>
7056
7057         pipe2-safer: new module
7058         * modules/pipe2-safer: New file.
7059         * lib/unistd-safer.h (pipe2_safer): New prototype.
7060         * lib/unistd--.h (pipe2): New wrapper.
7061         * lib/pipe-safer.c (pipe2_safer): New function.
7062         * modules/pipe (Depends-on): Add pipe2-safer.
7063         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7064
7065         stdlib-safer: preserve cloexec flag for mkostemp[s]
7066         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7067         fd_safer_flag.
7068
7069         unistd-safer: allow preservation of cloexec status via flag
7070         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7071         prototypes.
7072         * lib/dup-safer.c (dup_safer_flag): New function.
7073         * lib/fd-safer.c (fd_safer_flag): Likewise.
7074         * modules/cloexec (configure.ac): Set witness.
7075
7076         test-dup2: enhance test
7077         * modules/dup2-tests (Depends-on): Add cloexec.
7078         * tests/test-dup2.c (main): Enhance test.
7079
7080         cloexec: add dup_cloexec
7081         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7082         header and comments.
7083         * lib/cloexec.c (set_cloexec_flag): Add comments.
7084         (dup_cloexec): New function, with mingw implementation borrowed
7085         from...
7086         * lib/w32spawn.h (dup_noinherit): ...here.
7087         * modules/execute (Depends-on): Add cloexec.
7088         * modules/pipe (Depends-on): Likewise.
7089         * modules/cloexec (Depends-on): Add dup2.
7090         * modules/cloexec-tests (Files): New file.
7091         * tests/test-cloexec.c: Likewise.
7092
7093         test-xalloc-die: fix test for mingw
7094         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7095         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7096         directory and .exe suffix off argv[0] output.
7097
7098         test-fseeko: fix test for mingw
7099         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7100         than undefining fseek, so test will pass on mingw.
7101
7102 2009-12-05  Bruno Haible  <bruno@clisp.org>
7103
7104         * lib/progname.h (set_program_name): Clarify specification.
7105         * lib/progname.c (set_program_name): Likewise.
7106         Reported by Jim Meyering.
7107
7108 2009-12-05  Jim Meyering  <meyering@redhat.com>
7109
7110         maint.mk: backslash-escape parens in default regexp
7111         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7112         backslash-escape the literal parentheses.
7113
7114         maint.mk: news-date-check: use grep -E
7115         * top/maint.mk (today): Define a Make variable, not a...
7116         (news-date-check): ...shell variable.
7117         (news-date-regexp): Use the Make variable.
7118         Use grep's -E option.  Change the failing diagnostic to mention
7119         the variable, $(news-date-regexp).
7120
7121 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7122
7123         maintainer-makefile: allow customization of NEWS entry format
7124         * top/maint.mk (news-date-regexp): New overridable variable.
7125         (news-date-check): Use it.
7126
7127 2009-12-04  Eric Blake  <ebb9@byu.net>
7128
7129         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7130         * lib/mgetgroups.h (xgetgroups): New prototype.
7131         * lib/mgetgroups.c (xgetgroups): New wrapper.
7132         (mgetgroups): Handle ENOSYS.
7133         * modules/mgetgroups (Depends-on): Add realloc.
7134         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7135
7136         mgetgroups: avoid argument promotion issues with -1
7137         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7138         for invalid gid_t.
7139         * tests/test-chown.h (getegid, test_chown): Likewise.
7140         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7141
7142 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7143
7144         exclude: Fix header file problems.
7145         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7146
7147 2009-12-01  Jim Meyering  <meyering@redhat.com>
7148
7149         fts: fts_open: do not let an empty string cause immediate failure
7150         This is required in support of GNU rm, for which the command
7151         "rm A '' B" must process and remove both A and B, in spite of
7152         the empty string argument.
7153         * lib/fts.c (fts_open): Do not let the presence of an empty string
7154         cause fts_open to fail immediately.  Most fts-using tools must be
7155         able to process all arguments, in order, and can be expected to
7156         diagnose such arguments themselves.
7157
7158 2009-11-30  Eric Blake  <ebb9@byu.net>
7159
7160         utimens: fix compilation error
7161         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7162         Declare variable at right scope.
7163
7164 2009-11-29  Jim Meyering  <meyering@redhat.com>
7165
7166         bootstrap: handle perl-5.11's changed --version output
7167         * build-aux/bootstrap (get_version): Handle perl separately,
7168         since perl-5.11's --version output is different.
7169
7170 2009-11-28  Jim Meyering  <meyering@redhat.com>
7171
7172         userspec: depend on the inttostr module, too
7173         * modules/userspec (Depends-on): Add inttostr.
7174
7175         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7176         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7177         number of MAXUID when it evaluates to (uid_t) -1.
7178         Likewise for group ID.  Reported by Matt McCutchen in
7179         <http://savannah.gnu.org/bugs/?28113>
7180
7181         userspec: reformat to use spaces, not TABs
7182         * lib/userspec.c: Expand TABs to spaces.
7183         Add Emacs' "indent-tabs-mode: nil" hint.
7184
7185 2009-11-27  Eric Blake  <ebb9@byu.net>
7186
7187         getopt-gnu: flush out another BSD bug
7188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7189         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7190         flush out BSD bug.
7191         * tests/test-getopt.h (test_getopt): End lists with NULL.
7192         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7193         (test_getopt_long_posix): Enhance test.
7194         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7195         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7196         getopt-gnu.
7197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7198         Likewise.
7199
7200 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7201
7202         * modules/idpriv-droptemp-tests (Notice): Fix text.
7203
7204 2009-11-27  Jim Meyering  <meyering@redhat.com>
7205
7206         test-xalloc-die: avoid spurious failure due to libtool argv difference
7207         In a libtool-enabled project, this test would fail due to a difference
7208         in the emitted program name, e.g.,
7209         -test-xalloc-die: memory exhausted
7210         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7211         Use program to avoid that.
7212         * modules/xalloc-die-tests (Depends-on): Add progname.
7213         * tests/test-xalloc-die.c: Include progname.h".
7214         (program_name): Remove decl.
7215         (main): Call set_program_name.
7216         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7217
7218 2009-11-26  Richard Jones  <rjones@redhat.com>
7219
7220         w32sock: leave win32 error in place.
7221         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7222
7223 2009-11-26  Eric Blake  <ebb9@byu.net>
7224
7225         init.sh: suggest to use skip_ and fail_ functions in comments
7226         * tests/init.sh: Add a sentence.
7227
7228 2009-11-25  Bruno Haible  <bruno@clisp.org>
7229
7230         init.sh: add documentation in comments
7231         * tests/init.sh: Add some developer and user documentation.
7232
7233 2009-11-26  Jim Meyering  <meyering@redhat.com>
7234
7235         init.sh: accommodate even those who specify bogus srcdir manually
7236         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7237         configure-time tests to be sanitized, so that there is no need to
7238         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7239         (with no double quotes) suffices.  However, since tests may be
7240         invoked manually, and since you may explicitly set srcdir to the
7241         name of a directory containing spaces, do quote its uses here.
7242         * tests/test-pread.sh: Likewise.
7243         Suggested by Bruno Haible.
7244
7245         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7246         * tests/test-pread.sh: Write no data into the pipe, because
7247         test-pread actually reads none.  This avoids a diagnostic,
7248         "bash: echo: write error: Broken pipe", that arises in the unusual
7249         event something is ignoring SIGPIPE, and might be interpreted
7250         as some sort of failure.  Reported by Bruno Haible.
7251
7252 2009-11-25  Jim Meyering  <meyering@redhat.com>
7253
7254         test-pread: cover failure with ESPIPE and EINVAL
7255         * tests/test-pread.c (main): Test for failure, too.
7256         * tests/test-pread.sh: Invoke with stdin on a pipe.
7257         Suggested by Eric Blake.
7258
7259         pread: improvement and fix
7260         * modules/pread (Depends-on): Depend on lseek, for portability to
7261         e.g., mingw.  Suggested by Eric Blake.
7262         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7263
7264         unistd.in.h: correct declaration of pread
7265         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7266         Reported by Richard W.M. Jones.
7267
7268         test-pread.sh: distribute the test script
7269         * modules/pread-tests (Files): Include test-pread.sh.
7270
7271         test-pread.sh: clean up
7272         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7273         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7274         That is unnecessary, since it's always ".".
7275         Suggestion from Eric Blake.
7276
7277         test-pread.sh: make executable
7278         * tests/test-pread.sh: Set executable bit.
7279         Reported by Eric Blake.
7280
7281         correct typo in test-pread.sh
7282         * tests/test-pread.sh: Add #! line.
7283
7284         test pread
7285         * tests/test-pread.c: New file.
7286         * tests/test-pread.sh: Likewise.
7287         * modules/pread-tests: Likewise.
7288
7289         pread: new module
7290         * modules/pread: New file.
7291         * lib/unistd.in.h (pread): Define/declare.
7292         * lib/pread.c (pread): New file.
7293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7294         * modules/unistd (Makefile.am): Substitute witnesses.
7295         * doc/posix-functions/pread.texi (pread): Update.
7296         * MODULES.html.sh: Add pread.
7297
7298 2009-11-25  Jim Meyering  <meyering@redhat.com>
7299
7300         tests/init.sh: new file to be used via most *.sh tests
7301         * tests/init.sh: New file.
7302
7303 2009-11-25  Eric Blake  <ebb9@byu.net>
7304
7305         utimens: work around older Linux failure with symlinks
7306         * lib/utimens.c (lutimensat_works_really): New variable.
7307         (fdutimens, lutimens): Use it to manage kernels that support
7308         nanosecond times on files, but not on symlinks.
7309         Reported by Ondřej Vašík.
7310
7311         utimes: fix configure grammar
7312         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7313
7314 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7315
7316         regex: Fix fastmap for multibyte character ranges.
7317         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7318         characters when a multibyte character range is included.
7319
7320 2009-11-22  Andy Wingo  <wingo@pobox.com>
7321
7322         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7323         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7324
7325 2009-11-24  Bruno Haible  <bruno@clisp.org>
7326
7327         doc: Most *_l functions exist in MacOS X 10.5.
7328         * doc/posix-functions/duplocale.texi: Update platforms list.
7329         * doc/posix-functions/freelocale.texi: Likewise.
7330         * doc/posix-functions/newlocale.texi: Likewise.
7331         * doc/posix-functions/uselocale.texi: Likewise.
7332         * doc/posix-functions/isalnum_l.texi: Likewise.
7333         * doc/posix-functions/isalpha_l.texi: Likewise.
7334         * doc/posix-functions/isblank_l.texi: Likewise.
7335         * doc/posix-functions/iscntrl_l.texi: Likewise.
7336         * doc/posix-functions/isdigit_l.texi: Likewise.
7337         * doc/posix-functions/isgraph_l.texi: Likewise.
7338         * doc/posix-functions/islower_l.texi: Likewise.
7339         * doc/posix-functions/isprint_l.texi: Likewise.
7340         * doc/posix-functions/ispunct_l.texi: Likewise.
7341         * doc/posix-functions/isspace_l.texi: Likewise.
7342         * doc/posix-functions/isupper_l.texi: Likewise.
7343         * doc/posix-functions/iswalnum_l.texi: Likewise.
7344         * doc/posix-functions/iswalpha_l.texi: Likewise.
7345         * doc/posix-functions/iswblank_l.texi: Likewise.
7346         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7347         * doc/posix-functions/iswctype_l.texi: Likewise.
7348         * doc/posix-functions/iswdigit_l.texi: Likewise.
7349         * doc/posix-functions/iswgraph_l.texi: Likewise.
7350         * doc/posix-functions/iswlower_l.texi: Likewise.
7351         * doc/posix-functions/iswprint_l.texi: Likewise.
7352         * doc/posix-functions/iswpunct_l.texi: Likewise.
7353         * doc/posix-functions/iswspace_l.texi: Likewise.
7354         * doc/posix-functions/iswupper_l.texi: Likewise.
7355         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7356         * doc/posix-functions/isxdigit_l.texi: Likewise.
7357         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7358         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7359         * doc/posix-functions/strcoll_l.texi: Likewise.
7360         * doc/posix-functions/strfmon_l.texi: Likewise.
7361         * doc/posix-functions/strftime_l.texi: Likewise.
7362         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7363         * doc/posix-functions/strxfrm_l.texi: Likewise.
7364         * doc/posix-functions/tolower_l.texi: Likewise.
7365         * doc/posix-functions/toupper_l.texi: Likewise.
7366         * doc/posix-functions/towctrans_l.texi: Likewise.
7367         * doc/posix-functions/towlower_l.texi: Likewise.
7368         * doc/posix-functions/towupper_l.texi: Likewise.
7369         * doc/posix-functions/wcscoll_l.texi: Likewise.
7370         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7371         * doc/posix-functions/wctrans_l.texi: Likewise.
7372         * doc/posix-functions/wctype_l.texi: Likewise.
7373         * doc/glibc-functions/strptime_l.texi: Likewise.
7374         * doc/glibc-functions/strtod_l.texi: Likewise.
7375         * doc/glibc-functions/strtof_l.texi: Likewise.
7376         * doc/glibc-functions/strtol_l.texi: Likewise.
7377         * doc/glibc-functions/strtold_l.texi: Likewise.
7378         * doc/glibc-functions/strtoll_l.texi: Likewise.
7379         * doc/glibc-functions/strtoul_l.texi: Likewise.
7380         * doc/glibc-functions/strtoull_l.texi: Likewise.
7381         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7382         * doc/glibc-functions/wcstod_l.texi: Likewise.
7383         * doc/glibc-functions/wcstof_l.texi: Likewise.
7384         * doc/glibc-functions/wcstol_l.texi: Likewise.
7385         * doc/glibc-functions/wcstold_l.texi: Likewise.
7386         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7387         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7388         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7389
7390 2009-11-24  Bruno Haible  <bruno@clisp.org>
7391
7392         duplocale: Fix logic bug.
7393         * lib/duplocale.c: Don't include <langinfo.h>.
7394         (_NL_LOCALE_NAME): Remove macro.
7395         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7396         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7397
7398 2009-11-23  Jim Meyering  <meyering@redhat.com>
7399
7400         test-update-copyright: don't hard-code /usr/bin/perl
7401         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7402         perl to print the current year.  Gilles Espinasse reported that
7403         the replaced use of perl was hard-coded as /usr/bin/perl.
7404
7405 2009-11-23  Bruno Haible  <bruno@clisp.org>
7406
7407         duplocale: Add support for glibc 2.3.x.
7408         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7409
7410 2009-11-22  Bruno Haible  <bruno@clisp.org>
7411
7412         vasnprintf: Tiny optimization.
7413         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7414         MacOS X.
7415
7416 2009-11-22  Bruno Haible  <bruno@clisp.org>
7417
7418         Tests for module 'duplocale'.
7419         * modules/duplocale-tests: New file.
7420         * tests/test-duplocale.c: New file.
7421
7422         New module 'duplocale'.
7423         * m4/duplocale.m4: New file.
7424         * lib/locale.in.h (duplocale): New declaration.
7425         * lib/duplocale.c: New file.
7426         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7427         gl_LOCALE_H_DEFAULTS): New macros.
7428         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7429         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7430         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7431         REPLACE_DUPLOCALE.
7432         * modules/duplocale: New file.
7433         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7434
7435 2009-11-22  Bruno Haible  <bruno@clisp.org>
7436
7437         * modules/locale-tests (configure.ac): Test for newlocale function.
7438         * tests/test-locale.c: When the system has extended locale functions,
7439         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7440
7441         locale: Make locale_t available when possible.
7442         * lib/locale.in.h: Include <xlocale.h> when it exists.
7443         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7444         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7445         * modules/locale (Depends-on): Add extensions.
7446         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7447         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7448
7449 2009-11-22  Bruno Haible  <bruno@clisp.org>
7450
7451         Add comments.
7452         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7453         invocation.
7454         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7456         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7457
7458 2009-11-22  Bruno Haible  <bruno@clisp.org>
7459
7460         error: account for the possibility of freopen (stdout).
7461         * lib/error.c: Include <unistd.h>.
7462         (flush_stdout): New function, extracted from error and error_at_line.
7463         Determine stdout's fd dynamically.
7464         (error, error_at_line): Invoke flush_stdout.
7465         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7466         * modules/error (Depends-on): Add unistd.
7467
7468 2009-11-22  Bruno Haible  <bruno@clisp.org>
7469
7470         diffseq: Add comment.
7471         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7472
7473 2009-11-22  Jim Meyering  <meyering@redhat.com>
7474
7475         c-stack: avoid defining an unused static function
7476         * lib/c-stack.c (find_stack_direction): Do not define this function
7477         when it will not be used.
7478
7479         diffseq: avoid spurious gcc warnings
7480         * lib/diffseq.h (IF_LINT2): Define.
7481         (compareseq): Use it to initialize two members of "part".
7482         This avoids two used-uninitialized warnings.
7483
7484 2009-11-21  Jim Meyering  <meyering@redhat.com>
7485
7486         c-stack: avoid "ignoring return value of `write'" warning
7487         * lib/c-stack.c: Include "ignore-value.h".
7488         (die): Explicitly ignore each write return value.
7489         * modules/c-stack (Depends-on): Add ignore-value.
7490
7491 2009-11-21  Bruno Haible  <bruno@clisp.org>
7492
7493         diffseq: reduce scope of variable 'best'.
7494         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7495         variable, earlier used for two different purposes.
7496
7497 2009-11-21  Jim Meyering  <meyering@redhat.com>
7498
7499         diffseq: remove useless assignment to "best"
7500         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7501         assignment.  At that point "best" is already guaranteed to be zero.
7502
7503 2009-11-20  Eric Blake  <ebb9@byu.net>
7504
7505         build: mention ftp redirector in release announcements
7506         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7507         values that used to come from cfg.mk; mention FTP redirect URL.
7508         * build-aux/announce-gen: Mention the mirror list.
7509         Suggested by Karl Berry.
7510
7511         nanosleep: improve port to mingw
7512         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7514         LIB_NANOSLEEP, but only when needed.
7515         * modules/select (Link): Document LIBSOCKET.
7516         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7517         enough.
7518
7519         nanosleep: work around cygwin bug
7520         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7521         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7522         bug.
7523         (getnow): Delete, not needed.
7524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7525         LIB_CLOCK_GETTIME.
7526         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7527         clock-time, gettime.
7528         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7529         bug.
7530         * modules/nanosleep-tests: New test.
7531         * tests/test-nanosleep.c: New file.
7532
7533         sleep: work around cygwin bug
7534         * lib/sleep.c (rpl_sleep): Work around the bug.
7535         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7536         (gl_PREREQ_SLEEP): Delete unused macro.
7537         * modules/sleep (Depends-on): Add verify.
7538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7539         * modules/unistd (Makefile.am): Substitute witness.
7540         * lib/unistd.in.h (sleep): Update prototype.
7541         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7542         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7543         * modules/sleep-tests (Depends-on): Check for alarm.
7544
7545 2009-11-20  Jim Meyering  <meyering@redhat.com>
7546
7547         maint.mk: improve sc_prohibit_magic_number_exit
7548         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7549         so it does not match uses like System.exit(1).
7550         Add comments showing how to correct all offenders.
7551
7552 2009-11-19  Eric Blake  <ebb9@byu.net>
7553
7554         xalloc-die-tests: add missing library
7555         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7556
7557         test-xvasprintf: silence compiler warnings
7558         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7559         empty string from gcc.
7560
7561 2009-11-19  Jim Meyering  <meyering@redhat.com>
7562
7563         xfreopen: new module, from coreutils
7564         * modules/xfreopen: New module.
7565         * lib/xfreopen.c: New file.
7566         * lib/xfreopen.h: New file.
7567         * MODULES.html.sh (File stream based Input/Output"): Add it.
7568
7569 2009-11-19  Eric Blake  <ebb9@byu.net>
7570
7571         manywarnings: depend on warnings
7572         * modules/manywarnings (Depends-on): Add warnings.
7573
7574         build: avoid compiler warnings
7575         * lib/select.c (rpl_select): Delete unused variable.
7576         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7577
7578 2009-11-18  Eric Blake  <ebb9@byu.net>
7579
7580         tests: avoid false negative with --with-packager
7581         * tests/test-version-etc.sh: Discard packager information.
7582         * tests/test-argp-version-etc-1.sh: Likewise.
7583         Reported by Mike Frysinger.
7584
7585         utimens: fix regression on Solaris
7586         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7587         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7588         can only change fd timestamps via futimesat.  Instead, use an
7589         additional witness macro to avoid BSD bug.
7590         Reported by Jim Meyering.
7591
7592 2009-11-17  Eric Blake  <ebb9@byu.net>
7593
7594         usleep: use it to simplify tests
7595         * modules/stat-time-tests (Depends-on): Add usleep.
7596         (configure.ac): Drop usleep check.
7597         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7598         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7599         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7600         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7601         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7602         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7603         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7604         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7605         Likewise.
7606         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7607         * tests/test-lchown.h (nap): Likewise.
7608         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7609         * tests/test-stat-time.c (nap): Likewise.
7610         * tests/test-utimens-common.h (nap): Update comments.
7611
7612         usleep: new module
7613         * modules/usleep: New file.
7614         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7615         * lib/usleep.c (usleep): Likewise.
7616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7617         * modules/unistd (Makefile.am): Substitute witnesses.
7618         * lib/unistd.in.h (usleep): Add declaration.
7619         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7620         * MODULES.html.sh (Date and time): Likewise.
7621         * modules/usleep-tests (Depends-on): New test.
7622         * tests/test-usleep.c: New file.
7623
7624         chown: work around OpenBSD bug
7625         * lib/chown.c (rpl_chown): Work around the bug.
7626         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7627         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7628         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7629         * modules/chown (Depends-on): Add stdbool.
7630         * modules/lchown (Depends-on): Likewise.
7631         * doc/posix-functions/chown.texi (chown): Document the bug.
7632         * doc/posix-functions/lchown.texi (lchown): Likewise.
7633         * tests/test-lchown.h (test_chown): Relax test.
7634
7635         mkstemp: avoid conflict with C++ keyword template
7636         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7637         * lib/mkostemp.c (mkostemp): Likewise.
7638         * lib/mkostemps.c (mkostemps): Likewise.
7639         * lib/mkstemp.c (mkstemp): Likewise.
7640         * lib/mkstemps.c (mkstemps): Likewise.
7641
7642         xalloc-die-tests: optimize
7643         * tests/test-xalloc-die.sh: Reduce number of processes.
7644
7645 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7646
7647         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7648         patch from ludo@gnu.org (Ludovic Courtès).
7649
7650 2009-11-17  Jim Meyering  <meyering@redhat.com>
7651
7652         version-etc: use proper license string
7653         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7654         * modules/version-etc-fsf: Likewise.
7655
7656 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7657
7658         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7659         printed to stdout.  Deal with EOL differences.
7660
7661 2009-11-17  Eric Blake  <ebb9@byu.net>
7662
7663         unsetenv: work around Solaris bug
7664         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7665         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7666         Reported by Jim Meyering.
7667
7668         vasnprintf: avoid compiler warnings
7669         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7670         variables.
7671         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7672
7673 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7674
7675         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7676         settings since xalloc-die is no longer the self test,
7677         xalloc-die.sh is.
7678
7679 2009-11-17  Jim Meyering  <meyering@redhat.com>
7680
7681         test-xalloc-die.sh: make the code agree with the commit log
7682         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7683         at the end, just in case you happen to have a test-xalloc-die
7684         program in some other PATH directory.
7685
7686         test-xalloc-die.sh: fix a portability bug
7687         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7688         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7689         Otherwise, argv[0] (as often seen in diagnostics) would be too
7690         system-dependent, sometimes with, and sometimes without the leading "./".
7691
7692         version-etc-fsf: relax license to LGPLv3+
7693         * modules/version-etc-fsf (License): Relax license.
7694
7695 2009-11-16  Eric Blake  <ebb9@byu.net>
7696
7697         xalloc-die-tests: avoid printing null pointer
7698         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7699         shell script.
7700         * tests/test-xalloc-die.c (program_name): Declare.
7701         * tests/test-xalloc-die.sh (tmpfiles): New file.
7702
7703         setenv, unsetenv: work around various bugs
7704         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7705         (setenv) [HAVE_SETENV]: Work around bugs.
7706         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7708         for bugs.
7709         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7710         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7712         * modules/stdlib (Makefile.am): Update substitutions.
7713         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7714         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7715         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7716         * modules/setenv-tests: New test.
7717         * modules/unsetenv-tests: Likewise.
7718         * tests/test-setenv.c: New file.
7719         * tests/test-unsetenv.c: Likewise.
7720
7721 2009-11-16  Jim Meyering  <meyering@redhat.com>
7722
7723         version-etc: relax license to LGPLv3+
7724         * modules/version-etc (License): Relax license.
7725
7726         better AC_REQUIRE expanded-before-required-warning avoidance
7727         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7728         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7729         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7730         which is no longer needed.
7731
7732 2009-11-16  Eric Blake  <ebb9@byu.net>
7733
7734         test-freading: clean up temporary file
7735         * tests/test-freading.c (main): Remove file on success, and use
7736         ASSERT more liberally.
7737         Reported by Jim Meyering.
7738
7739 2009-11-16  Jim Meyering  <meyering@redhat.com>
7740
7741         avoid new AC_REQUIRE expanded-before-required warnings
7742         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7743         merely using it.
7744         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7745         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7746
7747 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7748
7749         * tests/test-xalloc-die.c: New file.
7750         * modules/xalloc-die-tests: New file.
7751         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7752         XFAIL_TESTS so it can be appended by modules.
7753
7754 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7755
7756         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7757         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7758
7759 2009-11-14  Eric Blake  <ebb9@byu.net>
7760
7761         fnmatch: avoid compiler warning
7762         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7763         to silence compiler warning about mismatch signedness in ?:.
7764         Reported by Robert Millan.
7765
7766         intprops: add double-inclusion guard
7767         * lib/intprops.h: Allow idempotent includes.
7768         Suggested by Bruce Korb.
7769
7770         openat: detect Solaris fchownat bug
7771         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7772         penalizing glibc chownat when only lchownat is broken.
7773         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7774         trailing slash bugs.
7775         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7776         * modules/openat-tests (Files): Include more files.
7777         (Depends-on): Add mgetgroups, sleep, stat-time.
7778         (configure.ac): Add additional checks.
7779         (Makefile.am): Build new test.
7780         * tests/test-fchownat.c: New file.
7781
7782         lchown: detect Solaris and FreeBSD bug
7783         * lib/lchown.c (rpl_lchown): Work around bug.
7784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7786         * modules/unistd (Makefile.am): Populate it.
7787         * lib/unistd.in.h (lchown): Update declaration.
7788         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7789         * modules/lchown-tests: New file.
7790         * tests/test-lchown.h (test_lchown): Likewise.
7791         * tests/test-lchown.c (main): Likewise.
7792
7793         chown: detect Solaris and FreeBSD bug
7794         * lib/chown.c (rpl_chown): Work around bug.
7795         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7796         (gl_PREREQ_CHOWN): Delete.
7797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7798         * modules/unistd (Makefile.am): Populate it.
7799         * lib/unistd.in.h (chown): Update declaration.
7800         * lib/lchown.c (chown): Update client.
7801         * modules/lchown (Depends-on): Add lstat.
7802         * doc/posix-functions/chown.texi (chown): Document the bug.
7803         * doc/posix-functions/getgroups.texi (getgroups): Document
7804         getgroups pitfall.
7805         * modules/chown-tests: New file.
7806         * tests/test-chown.h (test_chown): Likewise.
7807         * tests/test-chown.c (main): Likewise.
7808
7809 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7810
7811         gnulib-tool: correctly detect absence of m4 directories
7812         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7813
7814 2009-11-14  Jim Meyering  <meyering@redhat.com>
7815
7816         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7817         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7818
7819 2009-11-14  John W. Eaton  <jwe@gnu.org>
7820
7821         strftime.h: wrap funtion declaration in extern "C" block
7822         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7823
7824 2009-11-13  Eric Blake  <ebb9@byu.net>
7825
7826         getgroups: avoid compiler warning
7827         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7828
7829         getgroups: work around FreeBSD bug
7830         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7831         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7832         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7833         * tests/test-getgroups.c (main): Fix buffer overrun.
7834
7835         getgroups: avoid compilation failure
7836         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7837         * modules/getgroups (Depends-on): Add stdint.
7838
7839 2009-11-13  Jim Meyering  <meyering@redhat.com>
7840
7841         test-getgroups: avoid compilation failure
7842         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7843
7844 2009-11-13  Eric Blake  <ebb9@byu.net>
7845
7846         mgetgroups: new module, taken from coreutils
7847         * modules/mgetgroups: New file.
7848         * lib/mgetgroups.h: Likewise.
7849         * lib/mgetgroups.c (mgetgroups): Likewise.
7850         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7851         * MODULES.html.sh (Users and groups): Mention it.
7852
7853         getgroups: don't expose GETGROUPS_T to user
7854         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7855         an element at a time if GETGROUPS_T is wrong size.
7856         * lib/getugroups.h (getugroups): Change signature.
7857         * lib/unistd.in.h (getgroups): Likewise.
7858         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7859         signature needs fixing.
7860         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7861         AC_TYPE_GETGROUPS.
7862         * modules/group-member (Depends-on): Add getgroups.
7863         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7864         (group_member): Rely on getgroups replacement.
7865         * lib/getugroups.c (getugroups): Use gid_t.
7866         * tests/test-getgroups.c (main): Likewise.
7867         * NEWS: Mention the signature change.
7868         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7869         problem with signature.
7870         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7871         GETGROUPS_T is still useful for setgroups.
7872
7873         getgroups, getugroups: provide stubs for mingw
7874         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7875         * lib/getugroups.c (getugroups): Likewise.
7876         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7877         function.  Modernize replacement scheme.
7878         (gl_PREREQ_GETGROUPS): Delete.
7879         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7880         * modules/getgroups (configure.ac): Declare witness.
7881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7882         * modules/unistd (Depends-on): Substitute witness.
7883         * lib/unistd.in.h (getgroups): Declare replacement.
7884
7885         getgroups: avoid calling exit
7886         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7887         drop xalloc.
7888         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7889         dependencies.
7890         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7891         exiting, in the rare case of malloc failure.
7892
7893         getgroups: fix logic error
7894         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7895         has more than 20 groups.
7896         * modules/getgroups-tests: New test.
7897         * tests/test-getgroups.c: New file.
7898
7899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7900
7901         * tests/test-base64.c: Improve.
7902
7903 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7904
7905         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7906         Blake <ebb9@byu.net>.
7907
7908 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7909
7910         * tests/test-xvasprintf.c: Add %s%s related checks.
7911
7912 2009-11-12  Eric Blake  <ebb9@byu.net>
7913
7914         version-etc: match standards.texi style
7915         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7916         and use <> only for URLs.
7917
7918 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7919
7920         fts: do not fail on a submount during traversal
7921         * lib/fts.c (fts_build): Read the stat info again after opening
7922         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7923         Original report at http://bugzilla.redhat.com/501848.
7924
7925 2009-11-12  Jim Meyering  <meyering@redhat.com>
7926
7927         bootstrap: sync from coreutils
7928         * build-aux/bootstrap (bootstrap_epilogue): New function.
7929         Use git_modules_config in one more place.  This make bootstrap's
7930         --gnulib-srcdir option more useful for testing.
7931
7932         bootstrap: generalize autoheader check
7933         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7934         AC_CONFIG_HEADERS.
7935
7936 2009-11-11  Eric Blake  <ebb9@byu.net>
7937
7938         mkfifoat: use new modules for Solaris and BSD bugs
7939         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7940         * lib/mkfifoat.c (mknodat): Split...
7941         * lib/mknodat.c (mknodat): ...into new file.
7942         * modules/mkfifoat (Files): Ship new file.
7943         (Depends-on): Add mkfifo, mknod.
7944         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7945         (Depends-on): Add symlink.
7946         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7947         redundant with test_mkfifo.h.
7948         (do_mkfifoat, do_mknodat): New helpers.
7949
7950         mknod: new module
7951         * modules/mknod: New file.
7952         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7953         * lib/mknod.c (mknod): Likewise.
7954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7955         defaults.
7956         * modules/sys_stat (Makefile.am): Substitute them.
7957         * lib/sys_stat.in.h (mknod): Declare replacement.
7958         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7959         Document it.
7960         * doc/posix-functions/mknod.texi (mknod): Likewise.
7961         * modules/mknod-tests: New test.
7962         * tests/test-mknod.c: Likewise.
7963
7964         mkfifo: new module
7965         * modules/mkfifo: New file.
7966         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7967         * lib/mkfifo.c (mkfifo): Likewise.
7968         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7969         defaults.
7970         * modules/sys_stat (Makefile.am): Substitute them.
7971         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7972         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7973         Document it.
7974         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7975         * modules/mkfifo-tests: New test.
7976         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7977         from test-mkfifoat.c.
7978         * tests/test-mkfifo.c: New file.
7979
7980         readlink: detect FreeBSD bug
7981         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7982         slash on symlink.
7983         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7984         * tests/test-readlink.h (test_readlink): Enhance test.
7985
7986         symlink: detect FreeBSD bug
7987         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7988         slash on symlink.
7989         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7990         * tests/test-symlink.h (test_symlink): Enhance test.
7991
7992 2009-11-10  Eric Blake  <ebb9@byu.net>
7993
7994         link: detect FreeBSD bug
7995         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7996         symlink.
7997         * doc/posix-functions/link.texi (link): Document the bug.
7998         * tests/test-link.h (test_link): Enhance test.
7999         * tests/test-linkat.c (main): Update caller.
8000
8001         unlink, remove: detect FreeBSD bug
8002         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8003         slash on symlink.
8004         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8005         * doc/posix-functions/remove.texi (remove): Likewise.
8006         * tests/test-unlink.h (test_unlink): Enhance test.
8007         * tests/test-remove.c (main): Likewise.
8008
8009 2009-11-09  Eric Blake  <ebb9@byu.net>
8010
8011         rename: detect FreeBSD bug
8012         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8013         slash on symlink.
8014         * modules/renameat-tests (Depends-on): Add filenamecat.
8015         * tests/test-rename.h (test_rename): Allow one more errno.
8016         * tests/test-renameat.c (main): Likewise.
8017         * doc/posix-functions/rename.texi (rename): Document the bug.
8018
8019         open: detect FreeBSD bug
8020         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8021         symlink.
8022         * doc/posix-functions/open.texi (open): Document the bug.
8023         * doc/posix-functions/utimes.texi (utimes): Likewise.
8024         * tests/test-open.h (test_open): Add parameters, and test symlink
8025         handling.
8026         * tests/test-open.c (main): Adjust caller.
8027         * tests/test-fcntl-safer.c (main): Likewise.
8028         * modules/open-tests (Depends-on): Add stdbool, symlink.
8029         * modules/fcntl-safer-tests (Depends-on): Likewise.
8030         * tests/test-openat.c (main): Add test-open tests.
8031
8032         stat: detect FreeBSD bug
8033         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8034         symlink.
8035         * doc/posix-functions/stat.texi (stat): Document the bug.
8036         * tests/test-stat.h (test_stat_func): Add argument.
8037         * tests/test-stat.c (main): Adjust caller.
8038         * tests/test-fstatat.c (main): Likewise.
8039         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8040         Reported by Jim Meyering.
8041
8042 2009-11-09  James Youngman  <jay@gnu.org>
8043
8044         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8045         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8046
8047 2009-11-08  Jim Meyering  <meyering@redhat.com>
8048
8049         utimens: remove invalid futimesat call
8050         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8051         It used the file descriptor of the target file as the DIR_FD
8052         parameter and NULL as the file name.  That caused failure with
8053         errno == EFAULT on FreeBSD-8.0-rc2
8054
8055 2009-11-07  Eric Blake  <ebb9@byu.net>
8056
8057         fflush, freadseek: use fseeko, not fseek
8058         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8059         (clear_ungetc_buffer): Avoid potential problems on large files.
8060         * lib/freadseek.c (freadseek): Likewise.
8061         * modules/freadseek (Depends-on): Add fseeko.
8062         * modules/fseek (configure.ac): Set a witness.
8063         * tests/test-fflush.c (main): Use fseeko.
8064         * tests/test-fpurge.c (fseek): Disable link warning.
8065         * tests/test-freadable.c (fseek): Likewise.
8066         * tests/test-freading.c (fseek): Likewise.
8067         * tests/test-fseeko.c (fseek): Likewise.
8068         * tests/test-ftell.c (fseek): Likewise.
8069         * tests/test-ftello.c (fseek): Likewise.
8070         * tests/test-fwritable.c (fseek): Likewise.
8071         * tests/test-fwriting.c (fseek): Likewise.
8072
8073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8074
8075         * modules/memchr (Depends-on): Drop getpagesize dependency.
8076
8077 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8078
8079         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8080         Reported by Ludovic Courtès.
8081         * build-aux/pmccabe2html: Improve example usage.
8082         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8083
8084 2009-11-06  Jim Meyering  <meyering@redhat.com>
8085
8086         do-release-commit-and-tag: New module.
8087         Automate the release-commit and tag process.
8088         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8089         * modules/do-release-commit-and-tag: New file.
8090         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8091
8092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8093
8094         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8095         because test-select.c uses inet_pton.
8096
8097 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8098
8099         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8100         GETADDRINFO_LIB.  Bump serial number.
8101         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8102         Suggested by Eric Blake <ebb9@byu.net>.
8103
8104 2009-11-05  Eric Blake  <ebb9@byu.net>
8105
8106         strtod: detect darwin bug
8107         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8108         Reported by Leo Davis.
8109
8110         freopen-safer: new module
8111         * modules/freopen-safer: New module.
8112         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8113         * lib/freopen-safer.c (freopen_safer): New file.
8114         * lib/stdio-safer.h (freopen_safer): New declaration.
8115         * lib/stdio--.h (freopen): New override.
8116         * MODULES.html.sh (File stream based Input/Output): Mention it.
8117         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8118         freopen-safer module.
8119         * doc/posix-functions/stderr.texi (stderr): Likewise.
8120         * doc/posix-functions/stdin.texi (stdin): Likewise.
8121         * doc/posix-functions/stdout.texi (stdout): Likewise.
8122         * modules/freopen-safer-tests: New test.
8123         * tests/test-reopen-safer.c: New file.
8124
8125 2009-11-05  Jim Meyering  <meyering@redhat.com>
8126
8127         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8128         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8129
8130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8131
8132         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8133
8134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8135
8136         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8137
8138 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8139
8140         Fix link error.
8141         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8142         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8143
8144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8145
8146         * tests/test-func.c: Also test value of __func__.
8147
8148 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8149
8150         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8151         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8152
8153 2009-11-05  Bruno Haible  <bruno@clisp.org>
8154
8155         Fix link error.
8156         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8158         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8159
8160 2009-11-05  Bruno Haible  <bruno@clisp.org>
8161
8162         Tests for module 'inet_pton'.
8163         * modules/inet_pton-tests: New file.
8164         * tests/test-inet_pton.c: New file.
8165
8166 2009-11-05  Bruno Haible  <bruno@clisp.org>
8167
8168         Tests for module 'inet_ntop'.
8169         * modules/inet_ntop-tests: New file.
8170         * tests/test-inet_ntop.c: New file.
8171
8172 2009-11-04  Eric Blake  <ebb9@byu.net>
8173
8174         stdlib-safer: wrap all mkstemp variants
8175         * modules/mkostemp (configure.ac): Set witness.
8176         * modules/mkostemps (configure.ac): Likewise.
8177         * modules/mkstemps (configure.ac): Likewise.
8178         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8179         (mkstemps_safer): Wrap more functions.
8180         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8181         wrapping.
8182         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8183         (mkstemps_safer): Implement the wrappers.
8184
8185         mkstemps, mkostemps: new modules
8186         * modules/mkostemps: New module.
8187         * modules/mkstemps: Likewise.
8188         * lib/mkostemps.c (mkostemps): New file.
8189         * lib/mkstemps.c (mkstemps): Likewise.
8190         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8191         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8193         * modules/stdlib (Makefile.am): Substitute them.
8194         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8195         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8196         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8197         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8198         * MODULES.html.sh (File system functions): Mention them.
8199
8200         tempname: resync from glibc
8201         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8202         same values for __GT_FILE as glibc.  Abort even when assertions
8203         are disabled.
8204         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8205         match its value otherwise.  Allow idempotent inclusion.
8206         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8207         * lib/mkostemp.c (mkostemp): Likewise.
8208         * lib/mkstemp.c (mkstemp): Likewise.
8209         * lib/tmpfile.c (tmpfile): Likewise.
8210         * NEWS: Document this.
8211
8212         utimens: fix use of futimens on older Linux
8213         * lib/utimens.c (fdutimens): Use updated, rather than original,
8214         timespec to avoid bug in older Linux kernel.
8215         Reported by Simon Josefsson.
8216
8217 2009-11-04  Bruno Haible  <bruno@clisp.org>
8218
8219         Make num_processors more flexible and consistent.
8220         * lib/nproc.h (enum nproc_query): New type.
8221         (num_processors): Add a 'query' argument.
8222         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8223         (num_processors): Add a 'query' argument. Test the value of the
8224         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8225         mingw, count the number of CPUs available for the current process.
8226         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8227         Check for sched_getaffinity and sched_getaffinity_np.
8228         * modules/nproc (Depends-on): Add c-ctype, extensions.
8229         * NEWS: Mention the change.
8230
8231 2009-11-03  Bruno Haible  <bruno@clisp.org>
8232
8233         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8234
8235 2009-11-03  Jim Meyering  <meyering@redhat.com>
8236
8237         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8238         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8239         if it is defined.
8240
8241 2009-11-02  Eric Blake  <ebb9@byu.net>
8242
8243         mktime, timegm: share common declaration
8244         * lib/mktime-internal.h: New file.
8245         * lib/mktime.c: Use it rather than open-coding a declaration.
8246         * lib/timegm.c: Likewise.
8247         * modules/mktime (Files): Ship it.
8248         * modules/timegm (Files): Likewise.
8249         Suggested by Bruno Haible.
8250
8251         test-update-copyright: update test to match script changes
8252         * tests/test-update-copyright.sh: Avoid hard-coding perl
8253         location.  Don't update *.bak created by earlier runs.
8254
8255 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8256             Simon Josefsson  <simon@josefsson.org>
8257             Bruno Haible  <bruno@clisp.org>
8258
8259         Fix link error on Solaris 8.
8260         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8261         also in libnsl. Define also INET_PTON_LIB.
8262         * modules/inet_pton (Link): New section.
8263
8264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8265             Bruno Haible  <bruno@clisp.org>
8266
8267         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8268         * modules/inet_ntop (Link): New section.
8269         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8270
8271 2009-11-02  Eric Blake  <ebb9@byu.net>
8272
8273         maint: avoid compiler warnings in m4 macros
8274         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8276
8277 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8278
8279         * m4/pmccabe2html.m4: Remove file.
8280         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8281         function.  Change maintainer.
8282         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8283         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8284         Courtès).
8285
8286 2009-10-31  Eric Blake  <ebb9@byu.net>
8287
8288         fseeko: fix m4 regression
8289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8290         regression from 2009-10-27.
8291         Reported by Ralf Wildenhues.
8292
8293 2009-10-31  Jim Meyering  <meyering@redhat.com>
8294
8295         inttostr: aesthetics and improved (compile-time) safety
8296         Define inttype_is_signed rather than inttype_is_unsigned,
8297         since the sole use is via "#if inttype_is_signed".
8298         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8299         inttype_is_unsigned.
8300         * lib/offtostr.c (inttype_is_signed): Likewise.
8301         * lib/uinttostr.c (inttype_is_signed): Likewise.
8302         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8303         * lib/inttostr.c (inttostr): Use verify to cross-check the
8304         inttype_is_signed value and the signedness of the actual type.
8305         * modules/inttostr (Depends-on): Add verify.
8306
8307 2009-10-30  Eric Blake  <ebb9@byu.net>
8308
8309         build: avoid compiler warnings
8310         * lib/fchmodat.c (lchmod): Mark unused variables.
8311         * lib/getopt.c (_getopt_initialize): Likewise.
8312         * lib/mktime.c (__mktime_internal): Provide prototype.
8313         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8314         older gcc that do not understand #pragma GCC diagnostic.
8315         * lib/uinttostr.c (inttype_is_unsigned): Define.
8316         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8317
8318 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8319
8320         stat: fix compilation on AIX
8321         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8322         only see struct stat64.
8323
8324 2009-10-30  Eric Blake  <ebb9@byu.net>
8325
8326         exclude: make more robust
8327         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8328         rather than masking a coding bug.
8329         Suggested by Bruno Haible.
8330
8331 2009-10-30  Jim Meyering  <meyering@redhat.com>
8332
8333         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8334         Rather than putting #!/usr/bin/perl on the first line,
8335         start with a variant of what's recommended by "man perlrun" that
8336         invokes the first "perl" program from your shell's search path.
8337         * build-aux/gitlog-to-changelog: Replace #!... as above.
8338         Add a "Local Variables" perl mode setting.
8339         Prompted by a patch from Ludovic Courtès.
8340         Improved by Eric Blake.
8341         * build-aux/useless-if-before-free: Likewise.
8342         * build-aux/announce-gen: Likewise.
8343         * build-aux/update-copyright: Likewise.
8344
8345 2009-10-29  Eric Blake  <ebb9@byu.net>
8346
8347         filenamecat-lgpl: adjust clients
8348         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8349         filenamecat.
8350         * modules/renameat (Depends-on): Likewise.
8351
8352         filenamecat: split into filenamecat-lgpl
8353         * modules/filenamecat-lgpl: New module.
8354         * modules/filenamecat (Files): Move library-safe files into
8355         filenamecat-lgpl.
8356         (Depends-on): Add filenamecat-lgpl.
8357         (configure.ac): Declare witness.
8358         * lib/filenamecat.h (file_name_concat): Only declare when using
8359         GPL module.
8360         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8361         Move...
8362         * lib/filenamecat-lgpl.c: ...into new file.
8363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8364         (gl_FILE_NAME_CONCAT): Use it.
8365         * MODULES.html.sh (File system functions): Mention new module.
8366
8367         argp: avoid memory leak
8368         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8369         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8370         base_name, since the latter malloc()s and can call exit().
8371         Leak introduced 2006-07-03.
8372
8373         dirname-lgpl: adjust clients that don't need full dirname
8374         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8375         * modules/filenamecat (Depends-on): Likewise.
8376         * modules/linkat (Depends-on): Likewise.
8377         * modules/mkancesdirs (Depends-on): Likewise.
8378         * modules/mkdir (Depends-on): Likewise.
8379         * modules/openat (Depends-on): Likewise.
8380         * modules/savewd (Depends-on): Likewise.
8381         * modules/rename (Depends-on): Likewise.
8382         (License): Relax license.
8383         * modules/mkdir-tests (Depends-on): Drop progname.
8384         (Makefile.am): Delete unneeded LDADD.
8385         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8386
8387         dirname: split into dirname-lgpl
8388         * modules/dirname-lgpl: New module.
8389         * modules/dirname (Files): Move library-safe files into
8390         dirname-lgpl.
8391         (Depends-on): Add dirname-lgpl.
8392         (configure.ac): Declare witness.
8393         * modules/double-slash-root (License): Relax license.
8394         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8395         module.
8396         * lib/dirname.c (dir_len, mdir_name): Move...
8397         * lib/dirname-lgpl.c: ...into new file.
8398         * lib/basename.c (last_component, base_len): Move...
8399         * lib/basename-lgpl.c: ...into new file.
8400         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8401         (gl_DIRNAME): Use it.
8402         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8403         Mention new module.
8404         * modules/dirname-tests (Depends-on): Add progname.
8405         * tests/test-dirname.c (program_name): Delete.
8406
8407         mkdir: make safe for libraries
8408         * modules/mkdir (Depends-on): Drop xalloc.
8409         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8410         exit.
8411
8412         tests: avoid some compiler warnings
8413         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8414         literals.
8415         * tests/test-memchr.c (main): Avoid type mismatch.
8416         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8417         * tests/test-base64.c (main): Likewise.
8418         * tests/test-getdelim.c (main): Likewise.
8419         * tests/test-gethostname.c (main): Likewise.
8420         * tests/test-getline.c (main): Likewise.
8421         * tests/test-netinet_in.c (main): Likewise.
8422         * tests/test-select.c (open_server_socket, main): Likewise.
8423         * tests/test-select-stdin.c (main): Likewise.
8424         * tests/test-sockets.c (main): Likewise.
8425         * tests/test-strsignal.c (main): Likewise.
8426         * tests/test-sys_select.c (main): Likewise.
8427         * tests/test-sys_socket.c (main): Likewise.
8428         * tests/test-u64.c (main): Likewise.
8429         * tests/test-xfprintf-posix.c (main): Likewise.
8430         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8431
8432         sockets: avoid compiler warning
8433         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8434
8435         maint: detect usage(1) and other suspicious exits
8436         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8437
8438 2009-10-29  Jim Meyering  <meyering@redhat.com>
8439
8440         timespec: long-to-int truncation could make timespec_cmp malfunction
8441         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8442         a multiple of 2^32 nanoseconds as no difference.
8443
8444 2009-10-28  Jim Meyering  <meyering@redhat.com>
8445
8446         fprintftime: wrap macro code argument in "do {...} while(0)"
8447         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8448         cpy macro must be a statement that can be followed by a semicolon.
8449         Now that the else clause contains a comment and is hence longer
8450         than one line, I require curly braces.  That in turn requires
8451         that we wrap this code block in the standard do...while(0).
8452
8453         fprintftime: remove stray semicolon from previous change
8454         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8455
8456         fprintftime: avoid a warning about ignored fwrite return value
8457         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8458         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8459         that is unsafe.
8460         * modules/fprintftime (Depends-on): Add ignore-value.
8461
8462         exclude: avoid an unwarranted warning
8463         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8464
8465 2009-10-27  Eric Blake  <ebb9@byu.net>
8466
8467         fseek: avoid compilation failure when fflush is replaced
8468         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8469         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8470         module is in use.
8471         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8472         module is not in use; since REPLACE_FSEEK worked otherwise.
8473         (GNULIB_FTELLO): Likewise for ftell.
8474         Reported by Ian Beckwith and others.
8475
8476 2009-10-27  Bruno Haible  <bruno@clisp.org>
8477
8478         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8479         Reported by Jim Meyering.
8480
8481 2009-10-27  Jim Meyering  <jim@meyering.net>
8482             Bruno Haible  <bruno@clisp.org>
8483
8484         Avoid warning despite dropping the return value of fwrite.
8485         * lib/unicodeio.c: Include ignore-value.h.
8486         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8487         * modules/unicodeio (Depends-on): Add ignore-value.
8488
8489 2009-10-26  Eric Blake  <ebb9@byu.net>
8490
8491         areadlinkat: fix fallback path
8492         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8493         pointer and zero.
8494
8495 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8496
8497         Use a better IO block size for modern systems
8498         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8499         * lib/md2.c: Likewise.
8500         * lib/md4.c: Likewise.
8501         * lib/md5.c: Likewise.
8502         * lib/sha1.c: Likewise.
8503         * lib/sha256.c: Likewise.
8504         * lib/sha512.c: Likewise.
8505
8506 2009-10-22  Eric Blake  <ebb9@byu.net>
8507
8508         tests: avoid several compiler warnings
8509         * tests/test-getcwd.c (main): Avoid buffer underflow.
8510         * tests/test-getdate.c (main): String literals are not safe with
8511         putenv, so use setenv.  Declare unused argument.
8512         * modules/getdate-tests (Depends-on): Add setenv.
8513         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8514         problems with string literals in char *.
8515         * tests/test-hash.c (main): Avoid shadowing declaration.
8516         (insert_new): Treat string literals as char const *.
8517         * tests/test-getopt.h (test_getopt): Likewise.
8518         (getopt_loop): Alter types to minimize casting elsewhere.
8519         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8520         (test_getopt_long_posix): Likewise.
8521         (do_getopt_long): Add wrapper to minimize casting.
8522         * tests/test-atexit.c (clear_temp_file): Use void.
8523         * tests/test-areadlink-with-size.c (main): Declare unused
8524         arguments.
8525         * tests/test-areadlink.c (main): Likewise.
8526         * tests/test-areadlinkat-with-size.c (main): Likewise.
8527         * tests/test-areadlinkat.c (main): Likewise.
8528         * tests/test-canonicalize-lgpl.c (main): Likewise.
8529         * tests/test-canonicalize.c (main): Likewise.
8530         * tests/test-dirent-safer.c (main): Likewise.
8531         * tests/test-dirname.c (main): Likewise.
8532         * tests/test-dup2.c (main): Likewise.
8533         * tests/test-fchdir.c (main): Likewise.
8534         * tests/test-fcntl-h.c (main): Likewise.
8535         * tests/test-fcntl-safer.c (main): Likewise.
8536         * tests/test-fdopendir.c (main): Likewise.
8537         * tests/test-fdutimensat.c (main): Likewise.
8538         * tests/test-fflush.c (main): Likewise.
8539         * tests/test-filenamecat.c (main): Likewise.
8540         * tests/test-filevercmp.c (main): Likewise.
8541         * tests/test-fopen-safer.c (main): Likewise.
8542         * tests/test-fopen.c (main): Likewise.
8543         * tests/test-fpending.c (main): Likewise.
8544         * tests/test-fpurge.c (main): Likewise.
8545         * tests/test-freading.c (main): Likewise.
8546         * tests/test-fstatat.c (main): Likewise.
8547         * tests/test-fsync.c (main): Likewise.
8548         * tests/test-futimens.c (main): Likewise.
8549         * tests/test-getndelim2.c (main): Likewise.
8550         * tests/test-gettimeofday.c (main): Likewise.
8551         * tests/test-getopt.c (main): Likewise.
8552         * tests/test-i-ring.c (main): Likewise.
8553         * tests/test-inttypes.c (main): Likewise.
8554         * tests/test-link.c (main): Likewise.
8555         * tests/test-lstat.c (main): Likewise.
8556         * tests/test-math.c (main): Likewise.
8557         * tests/test-md5.c (main): Likewise.
8558         * tests/test-memchr2.c (main): Likewise.
8559         * tests/test-memrchr.c (main): Likewise.
8560         * tests/test-mkdir.c (main): Likewise.
8561         * tests/test-mkdirat.c (main): Likewise.
8562         * tests/test-mkfifoat.c (main): Likewise.
8563         * tests/test-open.c (main): Likewise.
8564         * tests/test-openat-safer.c (main): Likewise.
8565         * tests/test-openat.c (main): Likewise.
8566         * tests/test-quotearg.c (main): Likewise.
8567         * tests/test-rawmemchr.c (main): Likewise.
8568         * tests/test-readlink.c (main): Likewise.
8569         * tests/test-remove.c (main): Likewise.
8570         * tests/test-rename.c (main): Likewise.
8571         * tests/test-renameat.c (main): Likewise.
8572         * tests/test-rmdir.c (main): Likewise.
8573         * tests/test-sha1.c (main): Likewise.
8574         * tests/test-signal.c (main): Likewise.
8575         * tests/test-sigaction.c (main): Likewise.
8576         * tests/test-stat.c (main): Likewise.
8577         * tests/test-stat-time.c (main): Likewise.
8578         * tests/test-stddef.c (main): Likewise.
8579         * tests/test-stdint.c (main): Likewise.
8580         * tests/test-stdio.c (main): Likewise.
8581         * tests/test-stdlib.c (main): Likewise.
8582         * tests/test-strchrnul.c (main): Likewise.
8583         * tests/test-strerror.c (main): Likewise.
8584         * tests/test-string.c (main): Likewise.
8585         * tests/test-strtod.c (main): Likewise.
8586         * tests/test-strverscmp.c (main): Likewise.
8587         * tests/test-symlink.c (main): Likewise.
8588         * tests/test-symlinkat.c (main): Likewise.
8589         * tests/test-sys_stat.c (main): Likewise.
8590         * tests/test-sys_time.c (main): Likewise.
8591         * tests/test-time.c (main): Likewise.
8592         * tests/test-unistd.c (main): Likewise.
8593         * tests/test-unlink.c (main): Likewise.
8594         * tests/test-unlinkat.c (main): Likewise.
8595         * tests/test-utimens.c (main): Likewise.
8596         * tests/test-utimensat.c (main): Likewise.
8597         * tests/test-version-etc.c (main): Likewise.
8598         * tests/test-wchar.c (main): Likewise.
8599         * tests/test-wctype.c (main): Likewise.
8600         * tests/test-xprintf-posix.c (main): Likewise.
8601         * tests/test-posixtm.c (main): Likewise.
8602         (STREQ): Delete unused macro.
8603         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8604         shadowed variables.
8605         * tests/test-memchr.c (main): Likewise.
8606
8607 2009-10-21  Eric Blake  <ebb9@byu.net>
8608
8609         areadlinkat: avoid failure on older glibc
8610         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8611         rather than mis-comparing 0 against FUNC_RESULT of char*.
8612
8613 2009-10-21  Bruno Haible  <bruno@clisp.org>
8614
8615         * modules/stpncpy (License): Relicense under LGPLv2+.
8616         Reported by David Lutterkort <lutter@redhat.com>.
8617
8618 2009-10-20  Eric Blake  <ebb9@byu.net>
8619
8620         utimensat: work around Solaris 9 bug
8621         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8622         has trailing slash bugs.
8623         * tests/test-lutimens.h (test_lutimens): Enhance test.
8624         * tests/test-utimens.h (test_utimens): Likewise.
8625         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8626         * doc/posix-functions/utimes.texi (utimes): Likewise.
8627         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8628         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8629         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8630         * doc/posix-functions/futimens.texi (futimens): Likewise.
8631
8632         fdutimensat: new module
8633         * modules/fdutimensat: New file.
8634         * lib/fdutimensat.c (fdutimensat): Likewise.
8635         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8636         * MODULES.html.sh (File system functions): Mention module.
8637         * modules/fdutimensat-tests: New test.
8638         * tests/test-fdutimensat.c: Likewise.
8639
8640         doc: regenerate INSTALL
8641         * doc/INSTALL: Reflect recent autoconf update.
8642         * doc/INSTALL.ISO: Likewise.
8643         * doc/INSTALL.UTF-8: Likewise.
8644
8645 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8646
8647         acl: warn if ACL support is not detected
8648         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8649
8650 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8651
8652         * lib/nproc.h: Add extern "C" block for C++.
8653
8654 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8655             Bruno Haible  <bruno@clisp.org>
8656
8657         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8658         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8659         * doc/posix-functions/isalpha.texi: Likewise.
8660         * doc/posix-functions/isblank.texi: Likewise.
8661         * doc/posix-functions/iscntrl.texi: Likewise.
8662         * doc/posix-functions/isdigit.texi: Likewise.
8663         * doc/posix-functions/isgraph.texi: Likewise.
8664         * doc/posix-functions/islower.texi: Likewise.
8665         * doc/posix-functions/isprint.texi: Likewise.
8666         * doc/posix-functions/ispunct.texi: Likewise.
8667         * doc/posix-functions/isspace.texi: Likewise.
8668         * doc/posix-functions/isupper.texi: Likewise.
8669         * doc/posix-functions/isxdigit.texi: Likewise.
8670
8671 2009-10-18  Bruno Haible  <bruno@clisp.org>
8672
8673         Tests for module 'isblank'.
8674         * modules/isblank-tests: New file.
8675         * tests/test-isblank.c: New file.
8676
8677         New module 'isblank'.
8678         * lib/isblank.c: New file.
8679         * m4/isblank.m4: New file.
8680         * modules/isblank: New file.
8681         * doc/posix-functions/isblank.texi: Mention the new module.
8682
8683 2009-10-18  Bruno Haible  <bruno@clisp.org>
8684
8685         New module 'ctype'.
8686         * lib/ctype.in.h: New file.
8687         * m4/ctype.m4: New file.
8688         * modules/ctype: New file.
8689         * doc/posix-headers/ctype.texi: Mention the new module.
8690
8691 2009-10-18  Jim Meyering  <meyering@redhat.com>
8692
8693         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8694         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8695         right after its initialization, rather than farther down.
8696         Keeping these in close proximity makes it easier to ensure
8697         that each such variable is initialized.  E.g.,
8698
8699             LIB_CLOCK_GETTIME=
8700             AC_SUBST([LIB_CLOCK_GETTIME])
8701
8702         This change also increments these serial numbers.
8703         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8706
8707 2009-10-18  Bruno Haible  <bruno@clisp.org>
8708
8709         Don't let environment variables perturb build.
8710         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8711         (gl_PREREQ_GETHRXTIME): ... not here.
8712
8713 2009-10-18  Bruno Haible  <bruno@clisp.org>
8714
8715         Avoid symlink attack in localcharset module.
8716         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8717         (O_NOFOLLOW): Define fallback.
8718         (get_charset_aliases): Don't open the file if it is a symbolic link.
8719         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8720         gl_FCNTL_H.
8721         (gl_FCNTL_H): Require it.
8722         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8723         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8724         Reported by Fergal Glynn <fglynn@veracode.com>.
8725
8726 2009-10-18  Bruno Haible  <bruno@clisp.org>
8727
8728         Implement nproc for mingw.
8729         * lib/nproc.c: Include <windows.h>
8730         (num_processors): On native Windows platforms, try GetSystemInfo.
8731
8732 2009-10-18  Bruno Haible  <bruno@clisp.org>
8733
8734         Implement nproc for IRIX.
8735         * lib/nproc.c: Include <sys/sysmp.h>.
8736         (num_processors): On IRIX systems, try sysmp.
8737         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8738
8739 2009-10-18  Bruno Haible  <bruno@clisp.org>
8740
8741         Implement nproc for HP-UX.
8742         * lib/nproc.c: Include <sys/pstat.h>
8743         (num_processors): On HP-UX systems, try pstat_getdynamic.
8744         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8745         pstat_getdynamic.
8746
8747 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8748             Bruno Haible  <bruno@clisp.org>
8749
8750         Implement nproc for NetBSD, OpenBSD.
8751         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8752         (ARRAY_SIZE): New macro.
8753         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8754         * m4/nproc.m4: New file.
8755         * modules/nproc (Files): Add m4/nproc.m4.
8756         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8757         (Makefile.am): Instead, augment lib_SOURCES.
8758
8759 2009-10-18  Bruno Haible  <bruno@clisp.org>
8760
8761         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8762         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8763         sys/param.h.
8764
8765 2009-10-16  Eric Blake  <ebb9@byu.net>
8766
8767         utimensat: new module
8768         * modules/utimensat: New file.
8769         * lib/utimensat.c (utimensat): Likewise.
8770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8771         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8772         so we can work around Linux bugs.
8773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8774         * modules/sys_stat (Makefile.am): Substitute them.
8775         * lib/sys_stat.in.h (utimensat): Declare it.
8776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8778         * modules/utimensat-tests: New test.
8779         * tests/test-utimensat.c: Likewise.
8780
8781         utimens: let lutimens work on non-symlinks
8782         * lib/utimens.c (lutimens): Fall back to utimens rather than
8783         failing with ENOSYS, when file is not a symlink.
8784         (utimens): Reduce redirection.
8785         * tests/test-lutimens.h (test_lutimens): Update test to cover
8786         non-symlinks.
8787         * tests/test-utimens.h (test_utimens): Update test to cover
8788         symlinks.
8789         * tests/test-utimens.c (main): Update caller.
8790
8791         utimens: cache whether utimensat syscall works
8792         * lib/utimens.c (utimensat_works_really): New cache variable.
8793         (fdutimens, lutimens): Use it to avoid failing syscall.
8794
8795         test-stat-time, test-utimens: improve portability
8796         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8797         ext4 on alpha, and for cygwin.
8798         * tests/test-utimens-common.h: New file.
8799         (nap): Factor delays into single function.
8800         * tests/test-lutimens.h (test_lutimens): Use new header.
8801         * tests/test-futimens.h (test_futimens): Likewise.
8802         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8803         timestamps to occur from same machine, as was done previously for
8804         test_utimens.
8805         * modules/utimens-tests (Files): Ship new file.
8806         * modules/futimens-tests (Files): Likewise.
8807         Reported in part by Jim Meyering.
8808
8809         sys_stat: sort replacement declarations
8810         * lib/sys_stat.in.h: Sort declarations.
8811         * lib/futimens.c (futimens): Fix typo.
8812
8813 2009-10-15  Jim Meyering  <meyering@redhat.com>
8814
8815         don't let environment settings perturb build
8816         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8817         could cause a configure-time and/or build-time malfunction.
8818         Typically, a configure-time function-in-library test is performed
8819         via code like this:
8820
8821           LIB_VAR=
8822           AC_SUBST([LIB_VAR])
8823           prefix_saved_LIBS=$LIBS
8824             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8825                        [test "$ac_cv_search_FUNC" = "none required" ||
8826                         LIB_VAR=$ac_cv_search_FUNC])
8827           LIBS=$prefix_saved_LIBS
8828
8829         However, in each of the files affected by this change, the LIB_VAR=
8830         initialization was omitted.  Thus, when set in the environment, its
8831         value would propagate into generated Makefiles when FUNC is not found
8832         in LIB_NAME.
8833         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8834         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8836
8837 2009-10-14  Eric Blake  <ebb9@byu.net>
8838
8839         fchdir: avoid infinite recursion in mingw
8840         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8841         recursing.
8842
8843         test-stat-time: port to mingw
8844         * tests/test-stat-time.c (force_unlink): Return a value.
8845         (test_ctime) [W32]: Fix compilation error.
8846         (nap): Don't call usleep with too large an argument.  Use
8847         force_unlink.
8848         * doc/pastposix-functions/usleep.texi (usleep): Document the
8849         portability issue.
8850
8851 2009-10-13  Jim Meyering  <meyering@redhat.com>
8852
8853         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8854         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8855         * modules/pipe-filter-ii: Likewise.
8856         * modules/sys_socket-tests: Likewise.
8857         * modules/tsearch-tests: Likewise.
8858         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8859         (check): Depend on it.
8860
8861 2009-10-12  Eric Blake  <ebb9@byu.net>
8862
8863         utimens-tests: port to NFS file systems
8864         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8865         comparisons to avoid spurious failures from timestamp drift
8866         between NFS machines.
8867
8868 2009-10-12  Eric Blake  <ebb9@byu.net>
8869
8870         stat-time-tests: minor cleanups
8871         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8872         * tests/test-stat-time.c (nap): Separate assignment from call.
8873         Suggested by Paolo Bonzini and Bruno Haible.
8874
8875         sys_stat: guarantee struct timespec
8876         * lib/sys_stat.in.h (includes): Always include <time.h>
8877         * modules/sys_stat (Depends-on): Add time.
8878         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8879         mode_t permission values.
8880         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8881         get at subsecond timestamps.
8882
8883 2009-10-10  Eric Blake  <ebb9@byu.net>
8884
8885         futimens: new module
8886         * modules/futimens: New file.
8887         * lib/futimens.c (futimens): Likewise.
8888         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8889         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8890         we can work around Linux bugs.
8891         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8892         * modules/sys_stat (Makefile.am): Substitute them.
8893         * lib/sys_stat.in.h (futimens): Declare it.
8894         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8895         * doc/posix-functions/futimens.texi (futimens): Likewise.
8896         * modules/futimens-tests: New test.
8897         * tests/test-futimens.c: Likewise.
8898
8899         utimens: introduce fdutimens
8900         * lib/utimens.h (fdutimens): New prototype.
8901         * lib/utimens.c (gl_futimens): Move guts...
8902         (fdutimens): ...to new interface.
8903         * tests/test-utimens.c (do_fdutimens): Use it.
8904
8905         utimens: add UTIME_NOW and UTIME_OMIT support
8906         * lib/utimens.c (validate_timespec, update_timespec): New helper
8907         functions.
8908         (gl_futimens, lutimens): Use them.
8909         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8910         stdbool, sys_stat.
8911         (Link): Mention resulting library dependency.
8912         * modules/utimecmp (Link): Likewise.
8913         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8914         (Makefile.am): Pick up library dependency.
8915         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8916         definition.
8917         * tests/test-sys_stat.c: Test the definitions.
8918         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8919         * NEWS: Document library dependency.
8920
8921         utimecmp: support symlink timestamps
8922         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8923         hashing when possible.  Use pathconf when available.
8924         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8925         * modules/utimecmp (Depends-on): Add lstat.
8926
8927         utimens: add lutimens interface
8928         * lib/utimens.c (lutimens): New function.
8929         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8930         * lib/utimens.h (lutimens): Declare new interface.
8931         * tests/test-utimens.c (main): Enhance test.
8932         * tests/test-lutimens.h (test_lutimens): New file.
8933         * modules/utimens-tests (Files): Distribute it.
8934         (Depends-on): Add symlink.
8935         (configure.ac): Check for usleep.
8936
8937         utimens: validate futimens usage
8938         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8939         fewer syscalls on failure later on.  Avoid compiler warning on
8940         mingw.
8941         * modules/utimens (Depends-on): Add dup2.
8942
8943         utimens: add test
8944         * modules/utimens-tests: New test.
8945         * tests/test-utimens.h: New file.
8946         * tests/test-futimens.h: Likewise.
8947         * tests/test-utimens.c: Likewise.
8948
8949         doc: mention timestamp portability issues
8950         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8951         instead.
8952         * doc/posix-functions/utime.texi (utime): Likewise.
8953         * doc/posix-functions/utimes.texi (utimes): Likewise.
8954         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8955         instead.
8956         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8957         module.
8958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8959         Mention weakness with symlink timestamps.
8960         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8961         to utimensat/futimens instead.
8962         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8963
8964         test-dup2: enhance test
8965         * tests/test-dup2.c (main): Also check AT_FDCWD.
8966
8967         test-stat-time: avoid more spurious failures
8968         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8969         xfs; and avoid race if the two timestamps cross quantization edge.
8970
8971         relocatable: prefer 'file system' over 'filesystem'
8972         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8973         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8974         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8975         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8976         * lib/relocatable.c (compute_curr_prefix): Likewise.
8977
8978 2009-10-10  Jim Meyering  <meyering@redhat.com>
8979
8980         stat-time-tests: check for the usleep function
8981         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8982
8983 2009-10-10  Bruno Haible  <bruno@clisp.org>
8984
8985         * modules/xnanosleep: Put the Link section after the Include section.
8986
8987 2009-10-09  Eric Blake  <ebb9@byu.net>
8988
8989         dup2: work around FreeBSD 6.1 bug
8990         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8991         * doc/posix-functions/dup2.texi (dup2): Document it.
8992         Reported by Nelson H. F. Beebe and Jim Meyering.
8993
8994         test-stat-time: port to buggy NFS clients
8995         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8996         (test_ctime): Also skip test if mtime and ctime are skewed.
8997
8998         maint: prefer 'file system' over 'filesystem'
8999         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9000         * doc/posix-functions/lstat.texi (lstat): Likewise.
9001         * lib/file-has-acl.c (file_has_acl): Likewise.
9002         * lib/fwriteerror.c [TEST]: Likewise.
9003         * tests/test-areadlink.h (test_areadlink): Likewise.
9004         * tests/test-areadlinkat-with-size.c (main): Likewise.
9005         * tests/test-areadlinkat.c (main): Likewise.
9006         * tests/test-canonicalize-lgpl.c (main): Likewise.
9007         * tests/test-canonicalize.c (main): Likewise.
9008         * tests/test-fstatat.c (main): Likewise.
9009         * tests/test-linkat.c (main): Likewise.
9010         * tests/test-lstat.h (test_lstat_func): Likewise.
9011         * tests/test-mkdir.h (test_mkdir): Likewise.
9012         * tests/test-readlink.h (test_readlink): Likewise.
9013         * tests/test-remove.c (main): Likewise.
9014         * tests/test-rename.h (test_rename): Likewise.
9015         * tests/test-renameat.c (main): Likewise.
9016         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9017         * tests/test-symlink.h (test_symlink): Likewise.
9018         * tests/test-symlinkat.c (main): Likewise.
9019         * tests/test-unlink.h (test_unlink_func): Likewise.
9020         * tests/test-unlinkat.c (main): Likewise.
9021
9022         maint: make realtime library usage explicit
9023         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9024         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9025         * modules/settime (Link): Likewise.
9026         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9027
9028         test-stat-time: speed up execution
9029         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9030         warning on mingw.
9031         (nap): New helper function.
9032         (prepare_test): Use it to reduce sleep time.
9033         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9034         execution.
9035         * modules/stat-time-tests (configure.ac): Check for usleep.
9036
9037 2009-10-09  Jim Meyering  <meyering@redhat.com>
9038
9039         selinux-h: always use getfilecon wrappers
9040         * lib/getfilecon.c: New file.
9041         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9042         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9043         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9044         (fgetfilecon): Provide a stub.
9045         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9046         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9047         file unconditionally.
9048         When <selinux/selinux.h> is found, arrange to use wrappers.
9049         * modules/selinux-h (Files): Add getfilecon.c.
9050         (Makefile.am): Substitute include-next-related bits
9051         into the now-always-generated selinux/selinux.h file.
9052         * doc/glibc-functions/lgetfilecon.texi: New file.
9053         * doc/glibc-functions/fgetfilecon.texi: New file.
9054         * doc/glibc-functions/getfilecon.texi: New file.
9055         * doc/glibc-functions/getfilecon-desc.texi: New file.
9056         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9057         which to pull in the new files.
9058         * MODULES.html.sh (Misc): Add selinux-h.
9059
9060 2009-10-08  Jim Meyering  <meyering@redhat.com>
9061
9062         unistd: fix comment typo
9063         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9064
9065 2009-10-08  Eric Blake  <ebb9@byu.net>
9066
9067         areadlink: use SIZE_MAX consistently
9068         * modules/areadlink (Depends-on): Add stdint.
9069         * modules/areadlink-with-size (Depends-on): Likewise.
9070         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9071         gives NULL; drop sys/types, since unistd gives size_t; and add
9072         stdint for SIZE_MAX.
9073         (SIZE_MAX): Rely on headers.
9074         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9075         and add stdint.
9076         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9077         (SIZE_MAX): Likewise.
9078         (INITIAL_BUF_SIZE): Turn into enum.
9079         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9080
9081 2009-10-08  Jim Meyering  <meyering@redhat.com>
9082
9083         areadlinkat: avoid compilation failure
9084         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9085         Fix typo in comment.
9086
9087 2009-10-07  Eric Blake  <ebb9@byu.net>
9088
9089         areadlinkat-with-size: new module
9090         * modules/areadlinkat-with-size: New module.
9091         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9092         * lib/areadlink.h (areadlinkat): Declare it.
9093         * MODULES.html.sh (File system functions): Mention it.
9094         * modules/areadlinkat-with-size-tests: New test.
9095         * tests/test-areadlinkat-with-size.c: New file.
9096
9097         xreadlinkat: new module
9098         * modules/xreadlinkat: New module.
9099         * lib/xreadlinkat.c (xreadlinkat): New file.
9100         * lib/xreadlink.h (xreadlinkat): Declare it.
9101         * MODULES.html.sh (File system functions): Mention it.
9102
9103         areadlinkat: new module
9104         * lib/at-func.c (FUNC_FAIL): New define.
9105         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9106         * modules/areadlinkat: New module.
9107         * lib/linkat.c (areadlinkat): Move...
9108         * lib/areadlinkat.c (areadlinkat): ...to new file.
9109         * lib/areadlink.h (areadlinkat): Declare it.
9110         * modules/linkat (Depends-on): Add areadlinkat.
9111         * MODULES.html.sh (File system functions): Mention it.
9112         * modules/areadlinkat-tests: New test.
9113         * tests/test-areadlinkat.c: New file.
9114
9115         areadlink, areadlink-with-size: add tests
9116         * modules/areadlink-tests: New test.
9117         * modules/areadlink-with-size-tests: Likewise.
9118         * tests/test-areadlink.h: New file.
9119         * tests/test-areadlink.c: Likewise.
9120         * tests/test-areadlink-with-size.c: Likewise.
9121
9122         maint: minor cleanups
9123         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9124         _UNUSED_PARAMETER_ instead.
9125         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9126         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9127         * modules/linkat-tests (Files): Distribute test-link.h.
9128
9129         openat, utimens: whitespace cleanup
9130         * lib/openat.c: Prefer space throughout, rather than mix of 8
9131         spaces vs. tabs.
9132         * lib/at-func.c: Likewise.
9133         * lib/utimens.c: Likewise.
9134
9135         openat: avoid using wrong fd
9136         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9137         working directory chooses same fd.
9138         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9139
9140         mkdir, mkdirat: fix cygwin 1.5.x bug
9141         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9142         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9143         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9144         bug.
9145         (gl_PREREQ_MKDIR): Delete unused macro.
9146         * modules/mkdir (Files): Track file rename.
9147         (configure.ac): Update macro name.
9148         * modules/openat (Depends-on): Add mkdir.
9149         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9150
9151         mkdir, mkdirat: add tests
9152         * modules/mkdir-tests: New test.
9153         * tests/test-mkdir.h: New file.
9154         * tests/test-mkdir.c: Likewise.
9155         * tests/test-mkdirat.c: Likewise.
9156         * modules/openat-tests (Files): Add new files.
9157         (Makefile.am): Run new test.
9158
9159 2009-10-06  Eric Blake  <ebb9@byu.net>
9160
9161         doc: tweak *at function documentation
9162         * doc/posix-functions/faccessat.texi (faccessat): Mention
9163         known issue with replacement.
9164         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9165         * doc/posix-functions/linkat.texi (linkat): Likewise.
9166         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9167         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9168         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9169         * doc/posix-functions/renameat.texi (renameat): Likewise.
9170         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9171
9172         openat: fix GNU/Hurd bug in unlinkat
9173         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9174         broken.
9175         * doc/posix-functions/unlink.texi (unlink): Document this.
9176         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9177
9178         fdopendir: fix GNU/Hurd bug
9179         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9180         allowing non-directory fds.
9181         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9182         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9183         * modules/dirent (Makefile.am): Substitute it.
9184         * lib/dirent.in.h (fdopendir): Declare replacement.
9185         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9186         * tests/test-fdopendir.c (main): Test something other than
9187         /dev/null, since on Hurd that behaves like a directory.
9188
9189         test-symlink: port to GNU/Hurd
9190         * tests/test-symlink.h (test_symlink): Relax expected errno.
9191
9192         doc: tweak more cygwin information
9193         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9194         now compatible with glibc.
9195         * doc/posix-functions/getopt.texi (getopt): Likewise.
9196
9197         getopt-gnu: add another test
9198         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9199         guarantee behavior relied on by m4.
9200         * tests/test-getopt.c (main): Use it.
9201         * modules/getopt-posix-tests (Depends-on): Add setenv.
9202         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9203
9204         getopt: fix compilation on darwin
9205         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9206         include.
9207         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9208         Reported by Ludovic Courtès.
9209
9210 2009-10-06  Bruno Haible  <bruno@clisp.org>
9211
9212         * modules/size_max (Description): Discourage its use.
9213         Reported by Simon Josefsson.
9214
9215 2009-10-06  Jim Meyering  <meyering@redhat.com>
9216
9217         linkat: avoid compilation failure
9218         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9219
9220 2009-10-05  Eric Blake  <ebb9@byu.net>
9221
9222         linkat: support Linux 2.6.17
9223         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9224         linkat on Linux, but allow cache variable override.
9225         * lib/linkat.c (rpl_linkat): Define override.
9226         * modules/linkat (Depends-on): Add symlinkat.
9227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9228         * modules/unistd (Makefile.am): Substitute it.
9229         * lib/unistd.in.h (linkat): Declare replacement.
9230         Reported by Pádraig Brady.
9231
9232         quotearg: port test to systems with C.UTF-8 locale
9233         * tests/test-quotearg.c (struct result_strings): Add another
9234         member, differentiating between C.ASCII and C.UTF-8 handling.
9235         (compare_strings): Add parameter.
9236         (main): Adjust all callers.
9237
9238         getopt: avoid clash with FreeBSD _getopt_internal
9239         * lib/getopt.in.h (_getopt_internal): Override the name.
9240         * lib/getopt_int.h (includes): Pick up any overrides.
9241         Reported by Reuben Thomas.
9242
9243         hash: allow C89 compilation
9244         * lib/hash.c (check_tuning): Move declaration before statement.
9245         Reported by Reuben Thomas.
9246
9247 2009-10-05  Karl Berry  <karl@gnu.org>
9248
9249         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9250
9251 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9252             Bruno Haible  <bruno@clisp.org>
9253
9254         * lib/uname.c (uname): Use a table-driven algorithm to compute
9255         Windows NT versions.
9256
9257 2009-10-04  Bruno Haible  <bruno@clisp.org>
9258
9259         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9260         program_invocation_short_name.
9261         * modules/progname (configure.ac): Test for presence of
9262         program_invocation_short_name.
9263         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9264
9265 2009-10-04  Bruno Haible  <bruno@clisp.org>
9266
9267         * lib/progname.c (set_program_name): Fix comment.
9268         Reported by Jim Meyering.
9269
9270 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9271             Bruno Haible  <bruno@clisp.org>
9272
9273         * lib/uname.c: Include <string.h>.
9274         (uname): Do only one call to GetVersionEx in the common case.
9275
9276 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9277             Bruno Haible  <bruno@clisp.org>
9278
9279         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9280         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9281         (uname): Add support for Windows CE and various non-x86 CPU types.
9282
9283 2009-10-03  Bruno Haible  <bruno@clisp.org>
9284
9285         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9286         invocation to tests/configure.ac.
9287         Reported by Ian Beckwith <ianb@erislabs.net>.
9288
9289 2009-10-02  Eric Blake  <ebb9@byu.net>
9290
9291         fchdir: avoid compiler warning
9292         * lib/fchdir.c (canonicalize_file_name)
9293         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9294
9295         test-open: support mingw errno values
9296         * tests/test-open.h (test_open): Relax test.
9297         * tests/test-fopen.h (test_fopen): Likewise.
9298         * tests/test-openat-safer.c (main): Likewise.
9299
9300         open: fix opening directory on mingw
9301         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9302
9303         test-open: on GNU/Hurd, /dev/null is a directory
9304         * tests/test-fopen.h (main): Rename...
9305         (test_fopen): ...to this.  Use a guaranteed non-directory when
9306         confirming open behavior on trailing slash.
9307         * tests/test-openat-safer.c (main): Likewise.
9308         * tests/test-open.h (main): Likewise....
9309         (test_open): ...to this.
9310         * tests/test-fopen.c (main): Adjust caller.
9311         * tests/test-fopen-safer.c (main): Likewise.
9312         * tests/test-open.c (main): Likewise.
9313         * tests/test-fcntl-safer.c (main): Likewise.
9314         Reported by Samuel Thibault.
9315
9316         rename, fchdir: don't ignore chdir failure
9317         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9318         * lib/rename.c (rpl_rename) [W32]: Likewise.
9319         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9320         an empty destination directory if source cannot be renamed,
9321         although there is still possibility for failure.
9322         * doc/posix-functions/rename.texi (rename): Document the race.
9323         Reported by Jim Meyering.
9324
9325         maint: cleanup whitespace in recent commits
9326         * lib/rename.c (rpl_rename): Remove tabs.
9327         * tests/test-link.h (test_link): Likewise.
9328         * lib/fchdir.c (get_name): Likewise.
9329         Reported by Jim Meyering.
9330
9331 2009-10-02  Ben Pfaff  <blp@gnu.org>
9332
9333         relocatable-prog-wrapper: Add missing dependency on
9334         double-slash-root.
9335         * modules/relocatable-prog-wrapper: Add dependency.
9336         Reported by Ian Beckwith <ianb@erislabs.net>.
9337
9338 2009-10-02  Eric Blake  <ebb9@byu.net>
9339
9340         renameat: fix Solaris bugs
9341         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9342         needed fixing.
9343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9344         * modules/stdio (Makefile.am): Substitute it.
9345         * lib/stdio.in.h (renameat): Declare replacement.
9346         * lib/renameat.c (rpl_renameat): Implement fix.
9347
9348         renameat: new module
9349         * modules/renameat: New file.
9350         * lib/renameat.c (renameat): Likewise.
9351         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9353         * modules/stdio (Makefile.am): Substitute them.
9354         * lib/stdio.in.h (renameat): Declare it.
9355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9356         * doc/posix-functions/renameat.texi (renameat): Likewise.
9357         * modules/renameat-tests: New test.
9358         * tests/test-renameat.c: Likewise.
9359
9360         rename: fix mingw bugs
9361         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9362         directory overwrite bugs.
9363
9364         rename: fix another cygwin 1.5 bug
9365         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9366         checks.
9367         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9368         unnecessary cygwin workarounds.  Also work around bug with moving
9369         full directory onto an empty one.
9370         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9371
9372         rename-dest-slash: merge into rename module
9373         * modules/rename-dest-slash (Status): Mark obsolete.
9374         (Depends-on): Add rename.
9375         (Files): Let rename do it all.
9376         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9377         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9378         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9379         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9380         * lib/rename.c (rpl_rename): Update comments.
9381
9382         rename: fix cygwin 1.5.x bugs
9383         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9384         * lib/rename.c (rpl_rename): Work around them.
9385         * modules/rename (Depends-on): Add same-inode.
9386
9387         rename: fix Solaris 10 bug
9388         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9389         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9390         was the only bug.
9391
9392         rename: fix Solaris 9 bug
9393         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9394         on non-directory.  Avoid calling exit.
9395         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9396         strdup.
9397         * modules/rename-tests (Depends-on): Drop lstat.
9398         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9399         (gl_PREREQ_RENAME): Delete unused macro.
9400
9401         rename-dest-slash: fix NetBSD bug
9402         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9403         links.
9404         * modules/rename-dest-slash (Depends-on): Add same-inode.
9405
9406         rename-tests: new test, exposes several platform bugs
9407         * modules/rename-tests: New file.
9408         * tests/test-rename.h: Likewise.
9409         * tests/test-rename.c: Likewise.
9410         * doc/posix-functions/rename.texi (rename): Improve documentation,
9411         including bugs that will eventually be fixed in gnulib.
9412
9413 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9414
9415         * lib/uname.c: Include <stdlib.h>
9416         (uname): Assume version info is available.
9417
9418 2009-10-02  Jim Meyering  <meyering@redhat.com>
9419
9420         gnu-web-doc-update: correct --help output
9421         * build-aux/gnu-web-doc-update: Make --help output relevant.
9422
9423         gnu-web-doc-update: add standard options
9424         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9425
9426         gnu-web-doc-update: New module.
9427         Use this script to automatically update the on-line web documentation
9428         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9429         * modules/gnu-web-doc-update: New file, from coreutils.
9430         * build-aux/gnu-web-doc-update: New script.
9431
9432 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9433
9434         link: LoadLibrary is not needed.
9435         * lib/link.c: Use GetModuleHandle.
9436
9437 2009-10-01  Eric Blake  <ebb9@byu.net>
9438
9439         getopt: bump serial number
9440         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9441         change.
9442
9443         tests: tighten link, rmdir, and remove tests
9444         * tests/test-link.h (includes): No need to use <config.h> here.
9445         Clean up if directory hard link was created, otherwise test for
9446         trailing '.'.
9447         * tests/test-linkat.c (main): Simplify.
9448         * tests/test-remove.c (main): Enhance test for trailing '.'.
9449         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9450
9451 2009-10-01  Jim Meyering  <meyering@redhat.com>
9452
9453         maint.mk: requiring "make major" was annoying, for a "minor" release.
9454         What is intended is "stable", to contrast with alpha and beta,
9455         so require "make stable", not "make major".
9456         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9457         (get_tool_versions): Likewise.
9458         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9459
9460 2009-09-30  Ben Pfaff  <blp@gnu.org>
9461
9462         Fix broken build of replacement for Windows tmpfile().
9463         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9464         flags argument added along with the 'mkostemp' module.
9465
9466 2009-09-28  Bruno Haible  <bruno@clisp.org>
9467
9468         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9469         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9470         to 'remove_elt'.
9471         (gl_list_remove): Update.
9472         * lib/gl_list.c (gl_list_remove): Update.
9473         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9474         to 'remove_elt'.
9475         (gl_oset_remove): Update.
9476         * lib/gl_list.c (gl_oset_remove): Update.
9477         Reported by Eric Blake.
9478
9479 2009-09-28  Eric Blake  <ebb9@byu.net>
9480
9481         doc: mention yet more cygwin 1.7 status
9482         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9483         cygwin.
9484         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9485         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9486
9487         argp: fix test failure
9488         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9489         that are not upper-case.  Pass correct range to tolower.
9490
9491 2009-09-27  Jim Meyering  <meyering@redhat.com>
9492
9493         test-yesno: work around sparc-dash here-document infelicity
9494         Without this change, the literal \177 byte in a here document
9495         would make dash 0.5.5.1-3 access uninitialized memory.
9496         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9497         Instead, use a marker, "@", and filter through tr to create the desired
9498         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9499
9500 2009-09-27  Bruno Haible  <bruno@clisp.org>
9501
9502         Disable untested support for new flavours of ACLs on AIX.
9503         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9504         progress.
9505         * lib/set-mode-acl.c (qset_acl): Likewise.
9506
9507 2008-12-07  Bruno Haible  <bruno@clisp.org>
9508
9509         Add support for new flavours of ACLs on AIX. (Untested.)
9510         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9511         (file_has_acl): Add support for newer AIX.
9512         * lib/set-mode-acl.c (qset_acl): Likewise.
9513         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9514         Rainer Tammer <tammer@tammer.net>.
9515
9516 2009-09-26  Eric Blake  <ebb9@byu.net>
9517
9518         argp: fix compilation of getopt
9519         * lib/getopt.in.h (includes): Use different guard than glibc.
9520         Reported by Sergey Poznyakoff.
9521
9522         doc: mention more cygwin 1.7 status
9523         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9524         bug.
9525         * doc/posix-functions/execl.texi (execl): Likewise.
9526         * doc/posix-functions/execle.texi (execle): Likewise.
9527         * doc/posix-functions/execlp.texi (execlp): Likewise.
9528         * doc/posix-functions/execv.texi (execv): Likewise.
9529         * doc/posix-functions/execve.texi (execve): Likewise.
9530         * doc/posix-functions/execvp.texi (execvp): Likewise.
9531         * doc/glibc-functions/canonicalize_file_name.texi
9532         (canonicalize_file_name): Cygwin 1.7 now provides this.
9533         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9534         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9535         on AT_SYMLINK_NOFOLLOW.
9536
9537 2009-09-24  Eric Blake  <ebb9@byu.net>
9538
9539         test-linkat: make test more robust
9540         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9541
9542         getopt: fix inclusion guards for cygwin
9543         * modules/getopt-posix (Depends-on): Add include-next.
9544         (Makefile.am): Substitute more items in replacement header.
9545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9546         <getopt.h>.
9547         * lib/getopt.in.h (includes): Use split inclusion guard, and
9548         prefer <getopt.h> over include <unistd.h> when one is present.
9549         (option): Also override name of 'struct option'.
9550
9551         same-inode: revert prior change; it is not yet ready
9552         * NEWS: Undo mention of this change.
9553         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9554         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9555         * lib/cycle-check.c (cycle_check): Likewise.
9556         * lib/same.c (same_name): Likewise.
9557         * lib/at-func2.c (at_func2): Likewise.
9558
9559 2009-09-23  Eric Blake  <ebb9@byu.net>
9560
9561         linkat: new module
9562         * modules/linkat: New file.
9563         * lib/at-func2.c (at_func2): Likewise.
9564         * lib/linkat.c (linkat): Likewise.
9565         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9566         * lib/openat-priv.h (at_func2): Add declaration.
9567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9568         * modules/unistd (Makefile.am): Substitute them.
9569         * lib/unistd.in.h (linkat): Declare it.
9570         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9571         * doc/posix-functions/linkat.texi (linkat): Likewise.
9572         * doc/posix-functions/link.texi (link): Tweak wording.
9573         * tests/test-link.c (main): Move guts...
9574         * tests/test-link.h (test_link): ...into new file.
9575         * modules/linkat-tests: New test.
9576         * tests/test-linkat.c: Likewise.
9577         * modules/link-tests (Files): Ship new file.
9578         (Depends-on): Add stdbool.
9579
9580         dirname: add library-safe mdir_name
9581         * lib/dirname.h (mdir_name): New prototype.
9582         * lib/dirname.c (dir_name): Move guts...
9583         (mdir_name): ...to new function that avoids xalloc_die.
9584
9585         fchdir: another mingw fix
9586         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9587         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9588         on mingw (where it has not yet been ported), and make it optional
9589         elsewhere.
9590         (_gl_register_fd): Use it.
9591
9592         same-inode: make SAME_INODE tri-state, to port to mingw
9593         * NEWS: Mention this change.
9594         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9595         st_ino always being 0.
9596         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9597         * lib/cycle-check.c (cycle_check): Likewise.
9598         * lib/same.c (same_name): Likewise.
9599
9600         lstat: avoid mingw compilation error
9601         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9603         lstat ourselves.
9604         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9605         was adequate.
9606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9607         the checks for lstat.
9608         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9609
9610         link: fix test failure on Solaris 9
9611         * lib/link.c (rpl_link): Don't assume link will catch bogus
9612         trailing slash on source.
9613
9614         test-symlinkat: enhance test
9615         * tests/test-readlink.c (main): Move guts...
9616         * tests/test-readlink.h (test_readlink): ...into new file.
9617         * tests/test-symlink.c (main): Move guts...
9618         * tests/test-symlink.h (test_symlink): ...into new file.
9619         * tests/test-symlinkat.c (main): Use new files for further
9620         coverage.
9621         (do_symlink, do_readlink): New helper functions.
9622         * modules/symlink-tests (Files): Ship new file.
9623         (Depends-on): Add stdbool.
9624         * modules/readlink-tests (Files): Ship new file.
9625         (Depends-on): Add stdbool.
9626         * modules/symlinkat-tests (Files): Use new files.
9627
9628 2009-09-23  Eric Blake  <ebb9@byu.net>
9629
9630         readlink: document portability issue with symlink length
9631         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9632         systems have bogus st_size on symlinks, and mention the
9633         areadlink-with-size module.
9634         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9635         * doc/posix-functions/readlink.texi (readlink): Mention the
9636         areadlink module, and ERANGE failure.
9637         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9638         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9639
9640         readlink: fix Solaris 9 bug with trailing slash
9641         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9642         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9643         * doc/posix-functions/readlink.texi (readlink): Document this.
9644         * modules/readlink-tests: New test.
9645         * tests/test-readlink.c: Likewise.
9646
9647         readlink: fix cygwin 1.5.x bug with return type
9648         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9649         * lib/unistd.in.h (readlink): Use ssize_t.
9650         * lib/readlink.c (readlink): Likewise.
9651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9652         * modules/unistd (Makefile.am): Substitute it.
9653         * lib/unistd.in.h (readlink): Declare replacement.
9654         * doc/posix-functions/readlink.texi (readlink): Document this.
9655
9656         symlink: use throughout gnulib
9657         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9658         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9659         symlink is not used.
9660         * modules/symlinkat (Depends-on): Add symlink.
9661         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9662         * modules/canonicalize-tests (Depends-on): Likewise.
9663         * modules/lstat-tests (Depends-on): Likewise.
9664         * modules/openat-tests (Depends-on): Likewise.
9665         * modules/remove-tests (Depends-on): Likewise.
9666         * modules/rmdir-tests (Depends-on): Likewise.
9667         * modules/unlink-tests (Depends-on): Likewise.
9668         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9669         * tests/test-canonicalize.c (symlink): Likewise.
9670         * tests/test-fstatat.c (symlink): Likewise.
9671         * tests/test-lstat.c (symlink): Likewise.
9672         * tests/test-remove.c (symlink): Likewise.
9673         * tests/test-rmdir.c (symlink): Likewise.
9674         * tests/test-unlink.c (symlink): Likewise.
9675         * tests/test-unlinkat.c (symlink): Likewise.
9676
9677         symlink: new module, for Solaris 9 bug
9678         * modules/symlink: New file.
9679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9680         * lib/symlink.c: Likewise.
9681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9682         * modules/unistd (Makefile.am): Substitute them.
9683         * lib/unistd.in.h (symlink): Declare replacement.
9684         * MODULES.html.sh (File system functions): Mention it.
9685         * doc/posix-functions/symlink.texi (symlink): Likewise.
9686         * modules/symlink-tests: New test.
9687         * tests/test-symlink.c: Likewise.
9688
9689 2009-09-23  Bruno Haible  <bruno@clisp.org>
9690
9691         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9692         when needed.
9693         Test case: gnulib-tool --import --with-tests atexit inttypes.
9694         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9695
9696 2009-09-23  Bruno Haible  <bruno@clisp.org>
9697
9698         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9699         subcommand, not in a subshell.
9700
9701 2009-09-22  Eric Blake  <ebb9@byu.net>
9702
9703         unistd: sort replacement declarations
9704         * lib/unistd.in.h: Sort declarations.
9705
9706         open, openat: minor optimization
9707         * lib/open.c (open): If open succeeded, len is non-zero.
9708         * lib/openat.c (rpl_openat): Likewise.
9709
9710         link-follow: ensure correct result
9711         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9712         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9713         distinguish between possible failures.
9714
9715 2009-09-21  Eric Blake  <ebb9@byu.net>
9716
9717         fts: avoid compiler warning
9718         * lib/fts.c (dirent_inode_sort_may_be_useful)
9719         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9720
9721 2009-09-19  Bruno Haible  <bruno@clisp.org>
9722
9723         * lib/progreloc.c (canonicalize_file_name): New declaration.
9724
9725 2009-09-19  Eric Blake  <ebb9@byu.net>
9726
9727         link: fix quoting
9728         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9729
9730         openat: fix openat bugs on Solaris 9
9731         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9732         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9733         * modules/openat (Depends-on): Add open.
9734         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9735         * modules/fcntl-h (Makefile.am): Substitute it.
9736         * lib/fcntl.in.h (openat): Declare replacement.
9737         * doc/posix-functions/openat.texi (openat): Document this.
9738
9739         openat: move fstatat and unlinkat into correct files
9740         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9741         compiled.
9742         * lib/openat.c (fstatat, unlinkat): Move...
9743         * lib/fstatat.c (fstatat): ...into correct files.
9744         * lib/unlinkat.c (unlinkat): Likewise.
9745
9746         openat: fix unlinkat bugs on Solaris 9
9747         * lib/unlinkat.c (unlinkat): New file.
9748         * modules/openat (Depends-on): Add unlink.
9749         (Files): Distribute it.
9750         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9751         trailing slash behavior is broken.
9752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9753         * modules/unistd (Makefile.am): Substitute it.
9754         * lib/unistd.in.h (unlinkat): Declare replacement.
9755         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9756
9757         openat: fix fstatat bugs on Solaris 9
9758         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9759         stat.
9760         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9761
9762         test-unlinkat: enhance test, to expose Solaris 9 bug
9763         * tests/test-unlink.c (main): Factor guts...
9764         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9765         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9766         * tests/test-rmdir.c (main): Adjust caller.
9767         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9768         (unlinker): New helper function.
9769         (rmdirat): Enhance check.
9770         * modules/rmdir-tests (Depends-on): Add stdbool.
9771         * modules/unlink-tests (Depends-on): Likewise.
9772         (Files): Add test-unlink.h.
9773         * modules/openat-tests (Files): Likewise.
9774         (Depends-on): Add unlinkdir.
9775
9776         test-fstatat: new test, to expose Solaris 9 bugs
9777         * tests/test-stat.c (main): Factor guts...
9778         * tests/test-stat.h (test_stat_func): ...into new file.
9779         * tests/test-lstat.c (main): Factor guts...
9780         * tests/test-lstat.h (test_lstat_func): ...into new file.
9781         * tests/test-fstatat.c: New file.
9782         * modules/stat-tests (Files): Add test-stat.h.
9783         * modules/lstat-tests (Files): Add test-lstat.h.
9784         (Depends-on): Add stdbool.
9785         * modules/openat-tests (Depends-on): Add pathmax.
9786         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9787         (Makefile.am): Run new test.
9788
9789         remove: new module, for mingw and Solaris 9 bugs
9790         * modules/remove: New file.
9791         * lib/remove.c: Likewise.
9792         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9794         * modules/stdio (Makefile.am): Use them.
9795         * lib/stdio.in.h (remove): Declare replacement.
9796         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9797         * doc/posix-functions/remove.texi (remove): Likewise.
9798         * modules/remove-tests: New test.
9799         * tests/test-remove.c: Likewise.
9800
9801         unlink: new module, for Solaris 9 bug
9802         * modules/unlink: New file.
9803         * lib/unlink.c: Likewise.
9804         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9806         * modules/unistd (Makefile.am): Use them.
9807         * lib/unistd.in.h (stat): Declare replacement.
9808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9809         * doc/posix-functions/unlink.texi (unlink): Likewise.
9810         * modules/unlink-tests: New test.
9811         * tests/test-unlink.c: Likewise.
9812
9813         lstat: fix Solaris 9 bug
9814         * lib/lstat.c (lstat): Also check for trailing slash on
9815         non-symlink, non-directories.  Use stat module to simplify logic.
9816         * doc/posix-functions/lstat.texi (lstat): Document it.
9817         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9818         (configure.ac): Check for symlink.
9819         * tests/test-lstat.c (main): Add more tests.
9820
9821         stat: add as dependency to other modules
9822         * modules/chown (Depends-on): Add stat.
9823         * modules/euidaccess (Depends-on): Likewise.
9824         * modules/fchdir (Depends-on): Likewise.
9825         * modules/isdir (Depends-on): Likewise.
9826         * modules/link (Depends-on): Likewise.
9827         * modules/lstat (Depends-on): Likewise.
9828         * modules/mkdir-p (Depends-on): Likewise.
9829         * modules/modechange (Depends-on): Likewise.
9830         * modules/open (Depends-on): Likewise.
9831         * modules/readlink (Depends-on): Likewise.
9832         * modules/same (Depends-on): Likewise.
9833
9834         stat: fix Solaris 9 bug
9835         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9836         slash.
9837         * lib/stat.c (rpl_stat): Work around it.
9838         * doc/posix-functions/stat.texi (stat): Update documentation.
9839
9840         stat: new module, for mingw bug
9841         * modules/stat: New file.
9842         * lib/stat.c: Likewise.
9843         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9845         * modules/sys_stat (Makefile.am): Use them.
9846         * lib/sys_stat.in.h (stat): Declare replacement.
9847         * lib/openat.c (fstatat): Deal with lstat and stat being function
9848         macros.
9849         * modules/openat (Depends-on): Add inline.
9850         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9851         * doc/posix-functions/stat.texi (stat): Likewise.
9852         * modules/stat-tests: New test.
9853         * tests/test-stat.c: Likewise.
9854
9855 2009-09-19  Jim Meyering  <meyering@redhat.com>
9856
9857         syntax-check: detect unnecessary inclusion of canonicalize.h
9858         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9859
9860 2009-09-19  Eric Blake  <ebb9@byu.net>
9861
9862         canonicalize-lgpl: adjust clients to use correct header
9863         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9864         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9865         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9866         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9867         * lib/progreloc.c (includes): Likewise.
9868
9869 2009-09-19  Jim Meyering  <meyering@redhat.com>
9870
9871         test-posixtm.c: correct a comment
9872         * tests/test-posixtm.c: Correct first-line comment.
9873         Spotted by Eric Blake.
9874
9875 2009-09-16  Jim Meyering  <meyering@redhat.com>
9876
9877         posixtm-tests: make T const-correct; add a test case
9878         * tests/test-posixtm.c (T): Declare const.
9879         Add a test for -(2^31+1).
9880         Remove useless can-succeed-only-in-2002 test.
9881
9882         posixtm-tests: adjust the sole failing test
9883         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9884         expected output matches what mktime now produces.  Cross-checked via
9885         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9886
9887         posixtm: move #ifdef'd tests into a new module
9888         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9889         * tests/test-posixtm.c: ... this new file.
9890         * modules/posixtm-tests: New module.
9891
9892 2009-09-19  Eric Blake  <ebb9@byu.net>
9893
9894         openat: simplify use of at-func.c
9895         * lib/at-func.c (includes): Include prerequisites here, to
9896         simplify requirements on client files.
9897         * lib/openat-priv.h: Add double-inclusion guard.
9898         * lib/faccessat.c (includes): Simplify.
9899         * lib/fchmodat.c (includes): Likewise.
9900         * lib/fchownat.c (includes): Likewise.
9901         * lib/mkdirat.c (includes): Likewise.
9902         * lib/mkfifoat.c (includes): Likewise.
9903         * lib/symlinkat.c (includes): Likewise.
9904
9905         openat: allow return of fd 0
9906         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9907         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9908         unistd-safer.
9909         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9910         <fcntl.h>; this module does not leak fds.
9911         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9912         must be allowed to return 0, leaving openat_safer to add the
9913         safety.
9914         (openat_permissive): Avoid writing to just-opened fd 2 if
9915         restoring the current directory fails.
9916         * lib/openat-die.c (openat_restore_fail): Add comment.
9917         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9918         (save_cwd): Guarantee safe fd, but without use of open_safer.
9919         * tests/test-openat.c: New test.
9920         * modules/openat-tests (Files, Makefile.am): Distribute and build
9921         new file.
9922
9923         relocatable-prog-wrapper: fix build
9924         * modules/relocatable-prog-wrapper (Files): Update name of
9925         canonicalize m4 file, broken on 2009-09-17.
9926         Reported by emad hajjar <aleppos@hotmail.com>.
9927
9928 2009-09-19  Bruno Haible  <bruno@clisp.org>
9929
9930         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9931         * lib/safe-alloc.c: Likewise.
9932         Reported by Ian Beckwith <ianb@erislabs.net>.
9933
9934 2009-09-18  Bruno Haible  <bruno@clisp.org>
9935
9936         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9937         Reported by <erobles@sensacd.com.mx>.
9938
9939 2009-09-17  Eric Blake  <ebb9@byu.net>
9940
9941         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9942         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9943         slashes when checking if last component is missing.
9944         * tests/test-canonicalize.c (main): Test this.
9945
9946         canonicalize, canonicalize-lgpl: honor // if distinct from /
9947         * modules/canonicalize (Files): Add double-slash-root.m4.
9948         * modules/canonicalize-lgpl (Files): Likewise.
9949         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9950         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9951         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9952         fallback definition.
9953         (canonicalize_filename_mode): Use it to protect //.
9954         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9955         (__realpath): Likewise.
9956         * tests/test-canonicalize.c (main): Test this.
9957         * tests/test-canonicalize-lgpl.c (main): Likewise.
9958         * modules/canonicalize-tests (Depends-on): Add same-inode.
9959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9960
9961         canonicalize-lgpl: fix glibc bug with trailing slash
9962         * m4/canonicalize-lgpl.m4: Move contents...
9963         * m4/canonicalize.m4: ...here.
9964         (gl_CANONICALIZE_LGPL): Factor realpath check...
9965         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9966         glibc 2.3.5 bug, fixed 2005-04-27.
9967         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9968         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9969         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9970         * modules/canonicalize-lgpl (Files): Manage file rename.
9971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9972         * modules/stdlib (Makefile.am): Substitute witness.
9973         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9974         is needed.
9975         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9976         replacement is required.
9977         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9978         * doc/glibc-functions/canonicalize_file_name.texi
9979         (canonicalize_file_name): Document this.
9980         * doc/posix-functions/realpath.texi (realpath): Likewise.
9981
9982         canonicalize-lgpl: reject non-directory with trailing slash
9983         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9984         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9985         catches failures in glibc 2.3.5.
9986         * tests/test-canonicalize.c (main): Likewise.
9987
9988         canonicalize-lgpl: use native realpath if it works
9989         * lib/canonicalize-lgpl.c (realpath): Guard with
9990         FUNC_REALPATH_WORKS.
9991         * lib/stdlib.in.h (realpath): Make declaration optional based on
9992         HAVE_REALPATH.
9993         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9994         native realpath works.
9995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9996         * modules/stdlib (Makefile.am): Substitute witness.
9997
9998         canonicalize, canonicalize-lgpl: use <stdlib.h>
9999         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10000         (Include): Mention <stdlib.h>.
10001         (configure.ac): Mention functions we provide.
10002         * modules/canonicalize (configure.ac): Likewise.
10003         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10004         realpath if canonicalize_file_name is missing.
10005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10006         * modules/stdlib (Makefile.am): Substitute witnesses.
10007         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10008         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10009         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10010         * NEWS: Document this.
10011         * doc/glibc-functions/canonicalize_file_name.texi
10012         (canonicalize_file_name): Likewise.
10013         * doc/posix-functions/realpath.texi (realpath): Likewise.
10014         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10015
10016         test-canonicalize: consolidate into single C program
10017         * tests/test-canonicalize.sh: Delete; move setup into...
10018         * tests/test-canonicalize.c (main): ...the program, making it
10019         easier to run in debugger.  Add some tests.
10020         * modules/canonicalize-tests (Files): Remove unused file.
10021         (Depends-on): Add progname.
10022         (configure.ac, Makefile.am): Simplify.
10023
10024         test-canonicalize-lgpl: consolidate into single C program
10025         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10026         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10027         easier to run in debugger.  Add some tests.
10028         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10029         (configure.ac, Makefile.am): Simplify.
10030
10031         canonicalize: avoid resolvepath
10032         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10033         unnecessary checks.
10034         * lib/canonicalize.c (includes): Simplify.
10035         (canonicalize_file_name): Drop resolvepath implementation.
10036         * modules/canonicalize (Depends-on): Drop filenamecat.
10037
10038         canonicalize: don't lose errno
10039         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10040         over calls to free.
10041
10042         canonicalize: simplify errno handling
10043         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10044         assignment.
10045
10046         canonicalize, canonicalize-lgpl: update module dependencies
10047         * modules/canonicalize (Depends-on): Add extensions, lstat,
10048         pathmax, stdlib.
10049         (Files): Drop pathmax.h.
10050         (configure.ac): Adjust macro name.
10051         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10052         lstat, stdlib, sys_stat.
10053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10054         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10055         extensions.
10056         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10057         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10058         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10059         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10060         declaration, if available.
10061         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10062         we can rely on the readlink module.
10063         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10064         (includes): Use <unistd.h> unconditionally.
10065
10066 2009-09-17  Eric Blake  <ebb9@byu.net>
10067
10068         maint: make Include sections of modules consistent
10069         * modules/alloca: Use only header name; no need to list #include.
10070         * modules/alloca-opt: Likewise.
10071         * modules/arpa_inet: Likewise.
10072         * modules/canon-host: Likewise.
10073         * modules/configmake: Likewise.
10074         * modules/dirent: Likewise.
10075         * modules/eealloc: Likewise.
10076         * modules/environ: Likewise.
10077         * modules/fchdir: Likewise.
10078         * modules/fcntl: Likewise.
10079         * modules/fcntl-h: Likewise.
10080         * modules/gethrxtime: Likewise.
10081         * modules/gettime: Likewise.
10082         * modules/ignore-value: Likewise.
10083         * modules/inet_ntop: Likewise.
10084         * modules/inet_pton: Likewise.
10085         * modules/inttypes: Likewise.
10086         * modules/isnand-nolibm: Likewise.
10087         * modules/isnanf-nolibm: Likewise.
10088         * modules/mbchar: Likewise.
10089         * modules/mbfile: Likewise.
10090         * modules/mbiter: Likewise.
10091         * modules/mbuiter: Likewise.
10092         * modules/netdb: Likewise.
10093         * modules/netinet_in: Likewise.
10094         * modules/nproc: Likewise.
10095         * modules/pagealign_alloc: Likewise.
10096         * modules/poll: Likewise.
10097         * modules/printf-frexp: Likewise.
10098         * modules/pthread: Likewise.
10099         * modules/putenv: Likewise.
10100         * modules/random_r: Likewise.
10101         * modules/relocatable-prog: Likewise.
10102         * modules/search: Likewise.
10103         * modules/select: Likewise.
10104         * modules/selinux-h: Likewise.
10105         * modules/settime: Likewise.
10106         * modules/signal: Likewise.
10107         * modules/size_max: Likewise.
10108         * modules/socklen: Likewise.
10109         * modules/ssize_t: Likewise.
10110         * modules/stdarg: Likewise.
10111         * modules/stdbool: Likewise.
10112         * modules/stddef: Likewise.
10113         * modules/stdint: Likewise.
10114         * modules/stdio: Likewise.
10115         * modules/stdlib: Likewise.
10116         * modules/string: Likewise.
10117         * modules/strings: Likewise.
10118         * modules/sys_file: Likewise.
10119         * modules/sys_ioctl: Likewise.
10120         * modules/sys_select: Likewise.
10121         * modules/sys_socket: Likewise.
10122         * modules/sys_stat: Likewise.
10123         * modules/sys_time: Likewise.
10124         * modules/sys_times: Likewise.
10125         * modules/sys_utsname: Likewise.
10126         * modules/sys_wait: Likewise.
10127         * modules/sysexits: Likewise.
10128         * modules/time: Likewise.
10129         * modules/times: Likewise.
10130         * modules/tmpfile: Likewise.
10131         * modules/trim: Likewise.
10132         * modules/unistd: Likewise.
10133         * modules/wchar: Likewise.
10134         * modules/wctype: Likewise.
10135
10136 2009-09-17  Bruno Haible  <bruno@clisp.org>
10137
10138         Make getdate.y compile on QNX and NetBSD 5 / i386.
10139         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10140         TIME_T_FITS_IN_LONG_INT.
10141         * lib/getdate.y (long_time_t): New type.
10142         (relative_time): Change type of 'seconds' field to long_time_t.
10143         (get_date): Update types of local variables. Check against overflow
10144         during conversion from long_time_t to time_t.
10145         Reported by Matt Kraai <kraai@ftbfs.org>
10146         and Hasso Tepper <hasso@netbsd.org>.
10147
10148 2009-09-17  Bruno Haible  <bruno@clisp.org>
10149
10150         * modules/COPYING: Update copyright years.
10151         * modules/README: Likeiwse.
10152         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10153         Reported by Ian Beckwith <ianb@erislabs.net>.
10154
10155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10156
10157         * users.txt: Update references for gnuit package.
10158
10159 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10160
10161         * m4/getdelim.m4: Fix typo in copyright line.
10162
10163 2009-09-17  Bruno Haible  <bruno@clisp.org>
10164
10165         * lib/atoll.c: Use the standard header with GPL copyright.
10166         * lib/argz.in.h: Likewise.
10167         * lib/glob.c: Likewise.
10168         * lib/glob-libc.h: Likewise.
10169         * lib/random_r.c: Likewise.
10170         * lib/siglist.h: Likewise.
10171         * lib/strsignal.c: Likewise.
10172         Reported by Ian Beckwith <ianb@erislabs.net>.
10173
10174 2009-09-17  Eric Blake  <ebb9@byu.net>
10175
10176         rmdir: ensure correct dependency order
10177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10178
10179 2009-09-17  Bruno Haible  <bruno@clisp.org>
10180
10181         Disable assertion that fails on NetBSD 5 / i386.
10182         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10183         Reported by Sam Steingold <sds@gnu.org>
10184         and Hasso Tepper <hasso@netbsd.org>.
10185
10186 2009-09-16  Eric Blake  <ebb9@byu.net>
10187
10188         unlinkdir: port to mingw
10189         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10190         on which no one can unlink a directory.
10191
10192         stdlib: sort witness names
10193         * modules/stdlib (Makefile.am): Sort replacements.
10194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10195         * lib/stdlib.in.h: Likewise.
10196
10197         parse-duration-tests: avoid link failure
10198         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10199         LIBINTL.
10200         Reported by Tom G. Christensen.
10201
10202         openat-tests: ensure unlinkat behaves like rmdir
10203         * tests/test-rmdir.c (main): Factor guts...
10204         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10205         * modules/rmdir-tests (Files): Ship new file.
10206         * modules/openat-tests: New test.
10207         * tests/test-unlinkat.c: Likewise.
10208
10209         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10210         * modules/rmdir-errno (Status, Notice): Now obsolete.
10211
10212         rmdir: work around cygwin 1.5.x and mingw bugs
10213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10214         * lib/rmdir.c (rmdir): Work around it.
10215         * modules/rmdir (Status, Notice): No longer obsolete.
10216         (Files): Add dos.m4.
10217         (Depends-on): Add unistd.
10218         (configure.ac): Set witnesses.
10219         (License): Relax to LGPLv2+.
10220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10221         * modules/unistd (Makefile.am): Substitute witnesses.
10222         * lib/unistd.in.h (rmdir): Declare replacement.
10223         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10224         * modules/rmdir-tests: New tests.
10225         * tests/test-rmdir.c: Likewise.
10226
10227 2009-09-15  Eric Blake  <ebb9@byu.net>
10228
10229         fchdir: improve use of replacement functions
10230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10233         REPLACE_CLOSEDIR.
10234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10235         * modules/sys_stat (Makefile.am): Substitute correct witness.
10236         * modules/dirent (Makefile.am): Likewise.
10237         * modules/unistd (Makefile.am): Likewise.
10238         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10239         * lib/unistd.in.h (dup): Likewise.
10240         * lib/sys_stat.in.h (fstat): Likewise.
10241
10242         maint: ignore gnulib-tool temp files
10243         * .gitignore: Ignore files created during gnulib-tool --test.
10244
10245 2009-09-13  Jim Meyering  <meyering@redhat.com>
10246
10247         posixtm: don't reject a time that specify "60" as the number of seconds
10248         * lib/posixtm.c (posixtime): The code to reject invalid dates
10249         would also reject a time specified with the .60 suffix.
10250         But POSIX allows that, in order to accommodate leap seconds.
10251         So don't reject it.
10252         (main): Adjust tests accordingly.
10253         * modules/posixtm (Depends-on): Add stpcpy.
10254
10255 2009-09-11  Jim Meyering  <meyering@redhat.com>
10256
10257         announce-gen: include [$release_type] in emitted Subject:
10258         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10259         e.g., [stable] in the emitted Subject: line.
10260
10261 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10262
10263         Remove obsolete macros from several modules.
10264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10265         obsolete Autoconf macros with their modern counterparts.
10266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10267         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10271         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10274         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10275         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10276         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10278         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10279         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10280         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10281         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10282         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10283         * m4/time_r.m4 (gl_TIME_R): Likewise.
10284         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10285         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10286         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10287
10288         Fix copyright header in build-aux scripts.
10289         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10290         recommendation.
10291         * build-aux/ncftpput-ftp: Likewise.
10292         * build-aux/update-copyright: Likewise.
10293
10294 2009-09-09  Eric Blake  <ebb9@byu.net>
10295
10296         test-link: allow Linux choice of errno
10297         * tests/test-link.c (main): Relax test for alternate error.
10298
10299         strndup: fix improper m4 caching
10300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10301         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10302         (gl_PREREQ_STRNDUP): Delete.
10303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10304         * modules/string (Makefile.am): Substitute it.
10305         * lib/string.in.h (strndup): Modernize prototype.
10306
10307         getcwd: port to mingw
10308         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10309         different from the POSIX assumptions made throughout the getcwd
10310         module; fortunately, the mingw getcwd does not need replacement.
10311         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10312         * modules/getcwd-tests: New test.
10313         * tests/test-getcwd.c: Likewise.
10314
10315         link: fix platform bugs
10316         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10317         * lib/link.c (link): Work around them.  Fix related mingw bug.
10318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10319         * modules/unistd (Makefile.am): Substitute it.
10320         * lib/unistd.in.h (link): Declare replacement.
10321         * doc/posix-functions/link.texi (link): Document this.
10322         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10323
10324         test-link: consolidate into single C program, test more cases
10325         * tests/test-link.sh: Delete.
10326         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10327         at least Cygwin and Solaris.
10328         * modules/link-tests (Files): Remove unused file.
10329         (Depends-on): Add errno, sys_stat.
10330         (Makefile.am): Simplify.
10331
10332 2009-09-08  Bruno Haible  <bruno@clisp.org>
10333
10334         Work around towlower, towupper bug on mingw.
10335         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10336         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10337         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10338         * doc/posix-functions/towupper.texi: Likewise.
10339         Reported by Eric Blake.
10340
10341 2009-09-08  Jim Meyering  <meyering@redhat.com>
10342
10343         build: don't try to run autoheader if we don't use it
10344         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10345         is not used in configure.ac.
10346
10347 2009-09-08  Eric Blake  <ebb9@byu.net>
10348
10349         euidaccess: fix compilation error
10350         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10351
10352         rawmemchr: relax license
10353         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10354         okay.
10355         Reported by Jim Meyering.
10356
10357         mkfifoat: new module
10358         * modules/mkfifoat: New file.
10359         * lib/mkfifoat.c: Likewise.
10360         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10361         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10362         * modules/sys_stat (Makefile.am): Use them.
10363         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10364         * MODULES.html.sh (File system functions): Mention module.
10365         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10366         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10367         * modules/mkfifoat-tests: New test.
10368         * tests/test-mkfifoat.c: Likewise.
10369
10370         strchrnul: relax license
10371         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10372         okay.
10373         Reported by Jim Meyering.
10374
10375 2009-09-08  Eric Blake  <ebb9@byu.net>
10376
10377         fstatat: fix compilation on Solaris
10378         * lib/fstatat.c (includes): Add fcntl.h.
10379         Reported by Pádraig Brady.
10380
10381 2009-09-07  Eric Blake  <ebb9@byu.net>
10382
10383         rename: modernize replacement
10384         * modules/rename (Depends-on): Add stdio.
10385         (configure.ac): Declare witness.
10386         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10387         stdio take care of replacement.
10388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10389         * modules/stdio (Makefile.am): Substitute them.
10390         * lib/stdio.in.h (rename): Declare replacement.
10391         * lib/rename.c (includes): Allow cross-compilation to non-windows
10392         machines.
10393         * doc/posix-functions/rename.texi (rename): Improve
10394         documentation.
10395
10396         stdio: sort witness names
10397         * modules/stdio (Makefile.am): Sort replacements.
10398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10399         * lib/stdio.in.h: Likewise.
10400
10401         getcwd: minor cleanups
10402         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10403         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10404
10405         openat: provide more convenience names
10406         * modules/faccessat (configure.ac): Add C witness.
10407         * lib/unistd.in.h (readlinkat): Fix typo.
10408         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10409         convenience wrappers.
10410         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10411         wrappers in syntax checks.
10412
10413 2009-09-06  Eric Blake  <ebb9@byu.net>
10414
10415         doc: fix comments in recent patches
10416         * lib/faccessat.c: Mention correct function.
10417         * lib/fchmodat.c: Likewise.
10418         * lib/fchownat.c: Likewise.
10419         * lib/symlinkat.c: Likewise.
10420         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10421         constants.
10422
10423         faccessat, symlinkat: continue cleanup of previous patch
10424         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10425         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10426         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10428         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10429         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10430         set.
10431
10432 2009-09-06  Bruno Haible  <bruno@clisp.org>
10433
10434         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10435         (fstatat): Declare if GNULIB_FSTATAT is set.
10436         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10437         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10438         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10439         * modules/fcntl-h (Files): Remove m4/openat.m4.
10440         * modules/sys_stat (Files): Remove m4/openat.m4.
10441         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10442         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10443         * modules/unistd (Files): Remove m4/openat.m4.
10444         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10445         GNULIB_OPENAT.
10446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10447         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10449         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10450         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10451         gl_OPENAT_DEFAULTS.
10452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10453         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10454         Don't require gl_OPENAT_DEFAULTS.
10455         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10456         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10457         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10458         (gl_OPENAT_DEFAULTS): Remove macro.
10459
10460 2009-09-06  Bruno Haible  <bruno@clisp.org>
10461
10462         * modules/openat (configure.ac): Remove unneeded witness.
10463
10464 2009-09-06  Bruno Haible  <bruno@clisp.org>
10465
10466         Set errno to ENOSYS when a function is entirely unsupported.
10467         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10468         EOPNOTSUPP.
10469         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10470         * modules/chown (Depends-on): Remove errno.
10471
10472 2009-09-06  Bruno Haible  <bruno@clisp.org>
10473
10474         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10475
10476 2009-09-06  Bruno Haible  <bruno@clisp.org>
10477
10478         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10479
10480 2009-09-06  Ben Pfaff  <blp@gnu.org>
10481             Bruno Haible  <bruno@clisp.org>
10482
10483         Work around a glibc bug in strtok_r.
10484         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10485         Undefine if UNDEFINE_STRTOK_R is set.
10486         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10488         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10489         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10490         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10491         UNDEFINE_STRTOK_R.
10492         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10493
10494 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10495
10496         exclude: minor fix
10497         * lib/exclude.c: Include wctype.h
10498
10499 2009-09-06  Akim Demaille  <demaille@gostai.com>
10500
10501         bootstrap: improve error message
10502         * build-aux/bootstrap (find_tool): Upon failure, report the list
10503         of candidates.
10504         Honor the initial value of the envvar.
10505
10506 2009-09-05  Eric Blake  <ebb9@byu.net>
10507
10508         symlinkat: new module
10509         * modules/symlinkat: New file.
10510         * lib/symlinkat.c: Likewise.
10511         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10513         * modules/unistd (Makefile.am): Use them.
10514         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10515         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10516         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10517         * MODULES.html.sh (File system functions): Mention module.
10518         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10519         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10520         * modules/symlinkat-tests: New test.
10521         * tests/test-symlinkat.c: Likewise.
10522
10523         test-openat-safer: add more checks
10524         * tests/test-openat-safer.c (main): Check more code paths.
10525
10526 2009-09-05  Jim Meyering  <meyering@redhat.com>
10527
10528         syntax-check: detect unnecessary inclusion of openat.h
10529         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10530
10531 2009-09-05  Bruno Haible  <bruno@clisp.org>
10532
10533         Support towlower, towupper.
10534         * doc/posix-functions/towlower.texi: Mention module wctype.
10535         * doc/posix-functions/towupper.texi: Likewise.
10536         * lib/wctype.in.h (towlower, towupper): New functions.
10537         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10538         (ASSERT): New macro.
10539         (e): New variable.
10540         (main): Test also towlower, towupper. Test WEOF argument.
10541         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10542
10543 2009-09-05  Bruno Haible  <bruno@clisp.org>
10544
10545         Fix conversion behaviour when the input is invalid.
10546         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10547         mark occurring in first pass of indirect conversion.
10548         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10549         input.
10550         Found by clang's static analyzer.
10551
10552 2009-09-05  Bruno Haible  <bruno@clisp.org>
10553
10554         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10555         where direct conversion is possible.
10556
10557 2009-09-04  Eric Blake  <ebb9@byu.net>
10558
10559         openat: fail with ENOENT on empty name
10560         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10561         buffer.
10562
10563         link-follow: fix logic bug in prior patch
10564         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10565         reversed sense of yes and no in prior patch.  Avoid confusing
10566         compilation failure with desired semantics.
10567
10568         link-follow: accomodate mingw and cross-compilation
10569         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10570         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10571         cross-compilation results to -1, to make linkat easier to
10572         implement when cross-compiling.  Trivially support mingw.
10573         * modules/link-follow (configure.ac): Call new name.
10574         * NEWS: Mention this.
10575
10576 2009-09-03  Eric Blake  <ebb9@byu.net>
10577
10578         faccessat: compile replacement
10579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10580         needed.
10581
10582         fts: fix compilation error
10583         * lib/fts.c (includes): Re-add "openat.h", for
10584         openat_needs_fchdir.
10585
10586         faccessat: new module
10587         * modules/faccessat: New file.
10588         * lib/faccessat.c: Likewise.
10589         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10591         * modules/unistd (Makefile.am): Use it.
10592         * lib/unistd.in.h (faccessat): Declare it.
10593         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10594         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10595         * MODULES.html.sh (File system functions): Mention it.
10596         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10597         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10598
10599         euidaccess: prefer POSIX over non-standard implementation
10600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10601         * lib/euidaccess.c (euidaccess): Use it if available.
10602
10603         openat: make template easier to use
10604         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10605         AT_FUNC_F2 to be undefined.
10606         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10607         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10608         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10609         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10610         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10611         Likewise.
10612         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10613         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10614         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10615         Likewise.
10616
10617         openat: declare in POSIX headers
10618         * NEWS: Mention this.
10619         * modules/openat (configure.ac): Declare witnesses.
10620         (Depends-on): Add fcntl-h, sys_stat, unistd.
10621         (Include): Mention correct headers.
10622         * modules/fcntl-h (Depends-on): Add link-warning.
10623         (Files): Add openat.m4.
10624         (Makefile.am): Substitute witnesses.
10625         * modules/sys_stat (Files, Makefile.am): Likewise.
10626         * modules/unistd (Files, Makefile.am): Likewise.
10627         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10628         (gl_OPENAT_DEFAULTS): New macro.
10629         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10631         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10632         (SYS_STAT_H): Remove unused variable.
10633         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10634         * lib/fcntl--.h (includes): Remove unneeded header.
10635         * lib/openat-safer.c (includes): Likewise.
10636         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10637         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10638         appropriate headers.
10639         (__OPENAT_PREFIX): Delete.
10640         * lib/fcntl.in.h (openat): Provide declaration.
10641         (AT_FDCWD): Fix Solaris bug.
10642         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10643         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10644         * lib/fchmodat.c (includes):  Adjust to find declaration.
10645         * lib/fchownat.c (includes): Likewise.
10646         * lib/mkdirat.c (includes): Likewise.
10647         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10648         still visible.
10649
10650 2009-09-02  Eric Blake  <ebb9@byu.net>
10651
10652         errno: use consistently
10653         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10654         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10655         * lib/canonicalize.c (ELOOP): Likewise.
10656         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10657         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10658         * lib/lchown.c (EOPNOTSUPP): Likewise.
10659         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10660         * lib/savewd.c (ESTALE): Likewise.
10661         * lib/settime.c (ENOSYS): Likewise.
10662         * lib/utimens.c (ENOSYS): Likewise.
10663         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10664         * lib/chdir-safer.c (ELOOP): Likewise.
10665         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10666         * modules/c-stack (Depends-on): Add errno.
10667         * modules/canonicalize (Depends-on): Likewise.
10668         * modules/chdir-safer (Depends-on): Likewise.
10669         * modules/fdopendir (Depends-on): Likewise.
10670         * modules/inet_ntop (Depends-on): Likewise.
10671         * modules/inet_pton (Depends-on): Likewise.
10672         * modules/lchown (Depends-on): Likewise.
10673         * modules/openat (Depends-on): Likewise.
10674         * modules/savewd (Depends-on): Likewise.
10675         * modules/settime (Depends-on): Likewise.
10676         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10677
10678         fts: avoid leaking fds
10679         * modules/fts (Depends-on): Add cloexec.
10680         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10681         flag.
10682
10683         fts: make directory fds more robust
10684         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10685         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10686
10687         backupfile, chdir-long, fts, savedir: make safer
10688         * lib/backupfile.c (includes): Use "dirent--.h", since
10689         numbered_backup can write to stderr during readdir.
10690         * lib/savedir.c (includes): Likewise.
10691         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10692         emulation can write to stderr on failure.
10693         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10694         * lib/getcwd.c: Document why opendir_safer is unused.
10695         * lib/glob.c: Likewise.
10696         * lib/scandir.c: Likewise.
10697         * lib/openat-proc.c: Likewise, for open_safer.
10698         * modules/backupfile (Depends-on): Add dirent-safer.
10699         * modules/savedir (Depends-on): Likewise.
10700         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10701         * modules/chdir-long (Depends-on): Add openat-safer.
10702
10703         openat-safer: new module
10704         * modules/openat-safer: New file.
10705         * lib/openat-safer.c: Likewise.
10706         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10707         * lib/fcntl-safer.h (openat_safer): Declare.
10708         * lib/fcntl--.h (openat): Override.
10709         * MODULES.html.sh (File descriptor based I/O): Mention it.
10710         * lib/openat.h: Add double-inclusion guards.
10711         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10712         "fcntl--.h", so we can implement openat.
10713         * modules/openat-safer-tests: New test.
10714         * tests/test-openat-safer.c: New file.
10715
10716         dirent-safer: new module
10717         * modules/dirent-safer: New file.
10718         * lib/dirent--.h: Likewise.
10719         * lib/dirent-safer.h: Likewise.
10720         * lib/opendir-safer.c: Likewise.
10721         * m4/dirent-safer.m4: Likewise.
10722         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10723         * modules/dirent-safer-tests: New test.
10724         * tests/test-dirent-safer.c: New file.
10725         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10726
10727         fdopendir: optimize on mingw
10728         * lib/unistd.in.h (_gl_directory_name): New prototype.
10729         * lib/fchdir.c (_gl_directory_name): Implement it.
10730         (fchdir): Use it to simplify implementation.
10731         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10732         fchdir, when available, to avoid calling [f]chdir().
10733
10734         fdopendir: split into its own module
10735         * lib/openat.c (fdopendir): Move...
10736         * lib/fdopendir.c: ...into new file.
10737         * modules/fdopendir: New module.
10738         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10739         * modules/openat (Depends-on): Add fdopendir.
10740         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10741         fdopendir here.
10742         * modules/savedir (Depends-on): Only need fdopendir, not full
10743         openat.
10744         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10745         * lib/openat.h (fdopendir): Drop prototype.
10746         * lib/dirent.in.h (fdopendir): Provide prototype.
10747         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10748         * modules/dirent (Makefile.am): Substitute them.
10749         * MODULES.html.sh (File system functions): Mention it.
10750         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10751         * modules/fdopendir-tests: New file.
10752         * tests/test-fdopendir.c: Likewise.
10753
10754         fchdir: use more consistent macro convention
10755         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10756         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10757         REPLACE_FCHDIR, rather than relying on config.h macros.
10758         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10759         inside a single make-time REPLACE_FCHDIR block, rather than using
10760         the config.h FCHDIR_REPLACEMENT.
10761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10762         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10763         Manage fstat replacement.
10764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10765         REPLACE_FCHDIR.
10766         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10767         (Makefile.am): Substitute REPLACE_FCHDIR.
10768         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10769         FCHDIR_REPLACEMENT.
10770         * lib/dup-safer.c (dup_safer): Likewise.
10771         * lib/dup2.c (rpl_dup2): Likewise.
10772         * lib/dup3.c (rpl_dup3): Likewise.
10773         * lib/open.c (rpl_open): Likewise.
10774
10775         fchdir: simplify error handling, and support dup3
10776         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10777         stdbool, malloc-posix, realloc-posix.
10778         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10779         (ensure_dirs_slot): Return false on allocation failure.
10780         (rpl_dup2): Delete.
10781         (_gl_register_dup): New function.
10782         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10783         (_gl_register_fd): Close fd on allocation failure.
10784         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10785         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10786         prototype.
10787         (rpl_dup2_fchdir): Delete prototype.
10788         * lib/open.c (open): Update caller.
10789         * lib/dup2.c (dup2): Track fchdir metadata.
10790         * lib/dup3.c (dup3): Likewise.
10791         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10793
10794 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10795
10796         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10797         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10798         don't pass arguments to AC_OUTPUT.
10799
10800 2009-09-02  Bruno Haible  <bruno@clisp.org>
10801
10802         * modules/mkdtemp (License): Relicense under LGPLv2+.
10803         Reported by Paolo Bonzini.
10804
10805 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10806
10807         Replace uses of obsolete autoconf macros in Jim's modules.
10808         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10809         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10810         can evoke a warning from autoconf when run with -Wobsolete
10811         enabled.  They were declared obsolete for good reasons (see
10812         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10813         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10814         should not continue using the deprecated macros.
10815         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10816         obsolete Autoconf macros with modern counterparts.
10817         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10818         * m4/dos.m4 (gl_AC_DOS): Likewise.
10819         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10821         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10822         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10823         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10824         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10825         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10826         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10827         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10828         Likewise.
10829         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10831         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10832         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10834         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10835
10836 2009-09-01  Eric Blake  <ebb9@byu.net>
10837
10838         fchdir: fix off-by-one bug in previous patch
10839         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10840         (_gl_unregister_fd): Delete useless if.
10841
10842 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10843
10844         maint.mk: sort the list of syntax-check rules
10845         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10846         easier to get a sense of progress when the rules are run sequentially
10847         and take a long time.
10848
10849 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10850
10851         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10852         * modules/netinet_in: Likewise.
10853         * modules/sys_file: Likewise.
10854         * modules/sys_ioctl: Likewise.
10855         * modules/sys_select: Likewise.
10856         * modules/sys_socket: Likewise.
10857         * modules/sys_stat: Likewise.
10858         * modules/sys_time: Likewise.
10859         * modules/sys_times: Likewise.
10860         * modules/sys_utsname: Likewise.
10861         * modules/sys_wait: Likewise.
10862
10863 2009-09-01  Jim Meyering  <meyering@redhat.com>
10864
10865         fts: help ensure that return values are not ignored
10866         * lib/fts_.h (__GNUC_PREREQ): Define.
10867         (__attribute_warn_unused_result__): Define.
10868         (fts_children, fts_close, fts_open, fts_read): Declare with
10869         __attribute_warn_unused_result__.
10870
10871         fts: fts_close now fails also when closing a dir file descriptor fails
10872         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10873         and propagate to caller, along with errno.
10874
10875         announce-gen: correct formatting in --help output
10876         * build-aux/announce-gen (usage): Move the one-line description in
10877         --help output "up", to where it belongs, just after Usage:.
10878
10879 2009-08-31  Eric Blake  <ebb9@byu.net>
10880
10881         fchdir: port to mingw
10882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10883         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10884         opened, then use a substitute.
10885         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10886         replacement.
10887         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10888         (_gl_register_fd): No need to check stat if open already filters
10889         all directories.
10890         (fchdir): Fix error condition to match POSIX.
10891         * modules/fchdir (Depends-on): Add sys_stat.
10892         * doc/posix-functions/open.texi (open): Document the limitation.
10893         * modules/fchdir-tests: New file.
10894         * tests/test-fchdir.c: Likewise.
10895
10896         canonicalize: allow cross-testing from cygwin to mingw
10897         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10898         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10899         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10900         Likewise.
10901         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10902         target does not support symlinks.
10903         * tests/test-canonicalize-lgpl.sh: Likewise.
10904
10905         chown: avoid compilation warning on mingw
10906         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10907         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10908         mingw.
10909         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10910         * modules/chown (Depends-on): Add errno.
10911
10912 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10913
10914         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10915         command.
10916
10917 2009-08-31  Jim Meyering  <meyering@redhat.com>
10918
10919         canonicalize: remove useless initialization
10920         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10921         initialization of local, "end".
10922
10923 2009-08-30  Bruno Haible  <bruno@clisp.org>
10924
10925         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10926         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10927         ENOSYS.
10928
10929 2009-08-30  Bruno Haible  <bruno@clisp.org>
10930
10931         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10932         /usr/xpg4/bin/tr when it exists.
10933         * tests/test-pipe-filter-gi1.sh: Likewise.
10934
10935 2009-08-30  Bruno Haible  <bruno@clisp.org>
10936
10937         Work around deficient /usr/bin/id program on Solaris.
10938         * tests/test-file-has-acl.sh (ID): New variable.
10939         * tests/test-set-mode-acl.sh (ID): Likewise.
10940         * tests/test-copy-acl.sh (ID): Likewise.
10941         * tests/test-copy-file.sh (ID): Likewise.
10942
10943 2009-08-30  Bruno Haible  <bruno@clisp.org>
10944
10945         New module 'xstriconveh'.
10946         * lib/xstriconveh.h: New file.
10947         * lib/xstriconveh.c: New file.
10948         * modules/xstriconveh: New file.
10949
10950 2009-08-30  Bruno Haible  <bruno@clisp.org>
10951
10952         Make it easier to use mem_cd_iconveh.
10953         * lib/striconveh.h (iconveh_t): New type.
10954         (iconveh_open, iconveh_close): New declarations.
10955         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10956         with a single 'const iconveh_t *' argument.
10957         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10958         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10959         with a single 'const iconveh_t *' argument.
10960         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10961         * tests/test-striconveh.c (main): Update.
10962         * NEWS: Mention the change.
10963
10964 2009-08-30  Bruno Haible  <bruno@clisp.org>
10965
10966         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10967         problem.
10968
10969 2009-08-30  Bruno Haible  <bruno@clisp.org>
10970
10971         Work around iconv_open problem on Solaris.
10972         * lib/iconv_open-solaris.gperf: New file.
10973         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10974         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10975         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10976         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10977         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10978         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10979
10980 2009-08-29  Jim Meyering  <meyering@redhat.com>
10981
10982         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10983         * top/maint.mk (cvs-check): Remove target; it was just an alias
10984         to the better-named vc-diff-check.
10985         (maintainer-distcheck): Remove rule.  It was used only from
10986         the (alpha/beta/major) target, and all of its commands but one
10987         were coreutils-specific.
10988         (vc-dist): Remove rule.
10989         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10990         Run vc-diff-check, not vc-dist.
10991         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10992
10993 2009-08-27  Bruno Haible  <bruno@clisp.org>
10994
10995         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10996         of 0.
10997
10998 2009-08-27  Bruno Haible  <bruno@clisp.org>
10999
11000         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11001         compilers.
11002         * doc/func.texi: Document the SunPRO C bug.
11003
11004 2009-08-27  Bruno Haible  <bruno@clisp.org>
11005
11006         Fix link error on Solaris.
11007         * tests/test-parse-duration.c (xstrdup): Remove function.
11008
11009 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11010
11011         ignore-value: handle pointer types, too
11012         * lib/ignore-value.h (__attribute__): Remove definition.
11013         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11014         of a more concise and more-often effective "(void) i" statement.
11015         (ignore_ptr): New function to suppress warnings from functions that
11016         return pointers, and to make it explicit that one function doesn't
11017         handle all cases.
11018
11019 2009-08-25  Bruno Haible  <bruno@clisp.org>
11020
11021         dup2: work around a Linux bug.
11022         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11023         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11024         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11025         Reported by Simon Josefsson.
11026
11027 2009-08-25  Jim Meyering  <meyering@redhat.com>
11028
11029         libguestfs uses gnulib
11030         * users.txt: Add libguestfs.
11031
11032 2009-08-24  Eric Blake  <ebb9@byu.net>
11033
11034         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11035         * lib/pipe2.c (includes): Add binary-io.h.
11036         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11037
11038 2009-08-24  Bruno Haible  <bruno@clisp.org>
11039
11040         Tolerate declared but missing accept4 syscall.
11041         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11042         available.
11043         * lib/sys_socket.in.h (accept4): If the function is already present,
11044         override it.
11045         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11046         * modules/accept4 (Makefile.am): Compile accept4.c always.
11047         Reported by Paolo Bonzini and Eric Blake.
11048
11049 2009-08-23  Bruno Haible  <bruno@clisp.org>
11050
11051         New module 'accept4'.
11052         * lib/sys_socket.in.h (accept4): New declaration.
11053         * lib/accept4.c: New file.
11054         * m4/accept4.m4: New file.
11055         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11056         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11057         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11058         HAVE_ACCEPT4.
11059         * modules/accept4: New file.
11060         * doc/glibc-functions/accept4.texi: Mention the new module.
11061
11062 2009-08-24  Jim Meyering  <meyering@redhat.com>
11063
11064         progname: also set global program_invocation_name, when possible
11065         Before this change, a libtool-enabled program that calls glibc's
11066         error function would report the program name as
11067         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11068         * modules/progname (configure.ac): Check for a declaration of
11069         program_invocation_name.
11070         * lib/progname.c:  Include <errno.h>.
11071         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11072         Set program_invocation_name.
11073
11074 2009-08-23  Bruno Haible  <bruno@clisp.org>
11075
11076         * lib/dup3.c: Include <string.h>.
11077
11078 2009-08-23  Bruno Haible  <bruno@clisp.org>
11079
11080         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11081         * lib/pipe2.c (pipe2): Likewise.
11082         Suggested by Eric Blake.
11083
11084 2009-08-23  Bruno Haible  <bruno@clisp.org>
11085
11086         Tolerate declared but missing dup3 syscall.
11087         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11088         * lib/unistd.in.h (dup3): If the function is already present,
11089         override it.
11090         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11091         * modules/dup3 (Makefile.am): Compile dup3.c always.
11092         Reported by Paolo Bonzini.
11093
11094 2009-08-23  Bruno Haible  <bruno@clisp.org>
11095
11096         Tolerate declared but missing pipe2 syscall.
11097         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11098         available.
11099         * lib/unistd.in.h (pipe2): If the function is already present,
11100         override it.
11101         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11102         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11103         Reported by Paolo Bonzini.
11104
11105 2009-08-23  Bruno Haible  <bruno@clisp.org>
11106
11107         * lib/pipe2.c (pipe2): Move #ifs inside function.
11108
11109 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11110
11111         quotearg: document limitations of quote_these_too
11112         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11113         those limitations are created.
11114         * lib/quotearg.h (set_char_quoting): Document that digits and
11115         letters that are special after backslash are not permitted.
11116         (quotearg_char): Cross-reference set_char_quoting documentation.
11117
11118 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11119
11120         quotearg: implement custom_quoting_style
11121         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11122         right_quote fields.
11123         (set_custom_quoting): New public function.
11124         (quotearg_buffer_restyled): Add left_quote and right_quote
11125         arguments, handle them very much like locale quoting, and update
11126         all uses.
11127         (quotearg_n_custom): New public function.
11128         (quotearg_n_custom_mem): New public function.
11129         (quotearg_custom): New public function.
11130         (quotearg_custom_mem): New public function.
11131         * lib/quotearg.h: Prototype and document new public functions.
11132         (enum quoting_style): For escape_quoting_style and
11133         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11134         ignored even though they're otherwise like c_quoting_style.
11135         Add custom_quoting_style member and document with comparison to
11136         clocale_quoting_style.
11137         * tests/test-quotearg.c (custom_quotes): New array.
11138         (custom_results): New array.
11139         (main): Extend to test custom quoting.
11140
11141 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11142
11143         quotearg: fix right quote escaping when it's in quote_these_too
11144         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11145         quote, be sure to prepend only one backslash.
11146         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11147         (main): Test it.
11148
11149 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11150
11151         quotearg-tests: test escaping of embedded locale quotes
11152         * tests/test-quotearg.c (struct result_strings): Add member for
11153         new input.
11154         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11155         (inputs): Add new input.
11156         (results_g): Add expected results.
11157         (flag_results): Likewise.
11158         (locale_results): Likewise.
11159         (compare_strings): Check those.
11160
11161 2009-08-23  Bruno Haible  <bruno@clisp.org>
11162
11163         Tests for module 'dup3'.
11164         * modules/dup3-tests: New file.
11165         * tests/test-dup3.c: New file.
11166
11167         New module 'dup3'.
11168         * lib/unistd.in.h (dup3): New declaration.
11169         * lib/dup3.c: New file.
11170         * m4/dup3.m4: New file.
11171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11172         HAVE_DUP3.
11173         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11174         * modules/dup3: New file.
11175         * doc/glibc-functions/dup3.texi: Mention the new module.
11176
11177 2009-08-23  Bruno Haible  <bruno@clisp.org>
11178
11179         Tweak the dup2 test.
11180         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11181         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11182         the test file is still empty. Fix argument order of lseek.
11183
11184 2009-08-23  Bruno Haible  <bruno@clisp.org>
11185
11186         Avoid test link errors when the modules getopt-gnu, gettext are used.
11187         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11189
11190 2009-08-23  Bruno Haible  <bruno@clisp.org>
11191
11192         Fix getdtablesize() on mingw.
11193         * lib/getdtablesize.c (getdtablesize): Implement differently.
11194         * lib/unistd.in.h (getdtablesize): Improve comment.
11195
11196 2009-08-23  Bruno Haible  <bruno@clisp.org>
11197
11198         New module 'mkostemp'.
11199         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11200         * lib/stdlib.in.h (mksotemp): New declaration.
11201         * lib/mkostemp.c: New file, from glibc with modifications.
11202         * lib/tempname.h (GT_FILE): Remove outdated comment.
11203         (gen_tempname): Add flags argument.
11204         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11205         (__GT_FILE): Map to 1.
11206         (small_open, large_open): Remove macros.
11207         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11208         * lib/mkstemp.c (mkstemp): Update.
11209         * lib/mkdtemp.c (mkdtemp): Likewise.
11210         * m4/mkostemp.m4: New file.
11211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11212         HAVE_MKOSTEMP.
11213         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11214         HAVE_MKOSTEMP.
11215         * modules/mkostemp: New file, based on modules/mkstemp.
11216         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11217         * NEWS: Mention the change.
11218
11219 2009-08-23  Bruno Haible  <bruno@clisp.org>
11220
11221         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11222         Reported by Eric Blake.
11223
11224 2009-08-23  Bruno Haible  <bruno@clisp.org>
11225
11226         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11227         Reported by Eric Blake.
11228
11229 2009-08-23  Bruno Haible  <bruno@clisp.org>
11230
11231         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11232         * modules/pipe2 (Depends-on): Likewise.
11233
11234 2009-08-23  Eric Blake  <ebb9@byu.net>
11235
11236         fcntl-h: add O_TTY_INIT support
11237         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11238         * tests/test-fcntl-h.c (o): Test it.
11239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11240
11241         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11242         * modules/fcntl: Move <fcntl.h> header replacement...
11243         * modules/fcntl-h: ...to new name, so as not to collide with
11244         like-named function.
11245         * tests/test-fcntl.c: Rename...
11246         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11247         * modules/fcntl-tests: Rename...
11248         * modules/fcntl-h-tests: ...to this.  Update test file name.
11249         * modules/chdir-long (Depends-on): Update clients.
11250         * modules/chdir-safer (Depends-on): Likewise.
11251         * modules/fcntl-safer (Depends-on): Likewise.
11252         * modules/fts (Depends-on): Likewise.
11253         * modules/mkancesdirs (Depends-on): Likewise.
11254         * modules/mkdir-p (Depends-on): Likewise.
11255         * modules/open (Depends-on): Likewise.
11256         * modules/savewd (Depends-on): Likewise.
11257         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11259
11260 2009-08-22  Bruno Haible  <bruno@clisp.org>
11261
11262         * modules/binary-io (License): Relicense under LGPL.
11263         * modules/pipe2 (License): Likewise.
11264
11265 2009-08-22  Bruno Haible  <bruno@clisp.org>
11266
11267         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11268         return value.
11269         * lib/pipe-filter-gi.c (filter_init): Likewise.
11270         Reported by Eric Blake.
11271
11272 2009-08-22  Bruno Haible  <bruno@clisp.org>
11273
11274         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11275         * modules/pipe (Depends-on): Add pipe2.
11276
11277 2009-08-22  Bruno Haible  <bruno@clisp.org>
11278
11279         Tests for module 'pipe2'.
11280         * modules/pipe2-tests: New file.
11281         * tests/test-pipe2.c: New file.
11282
11283         New module 'pipe2'.
11284         * lib/unistd.in.h (pipe2): New declaration.
11285         * lib/pipe2.c: New file.
11286         * m4/pipe2.m4: New file.
11287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11288         HAVE_PIPE2.
11289         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11290         * modules/pipe2: New file.
11291         * doc/glibc-functions/pipe2.texi: Mention the new module.
11292
11293 2009-08-22  Bruno Haible  <bruno@clisp.org>
11294
11295         Reference some new glibc functions.
11296         * doc/glibc-functions/accept4.texi: New file.
11297         * doc/glibc-functions/dup3.texi: New file.
11298         * doc/glibc-functions/mkostemp.texi: New file.
11299         * doc/glibc-functions/pipe2.texi: New file.
11300         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11301         (Glibc sys/socket.h): Refer to accept4.
11302         (Glibc unistd.h): Refer to dup3, pipe2.
11303         Reported by Eric Blake.
11304
11305 2009-08-22  Jim Meyering  <meyering@redhat.com>
11306             Bruno Haible  <bruno@clisp.org>
11307
11308         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11309         This makes it so packages using automake-1.11's silent-rules option
11310         can print e.g., a single "GEN    configmake.h" line, rather than
11311         the 30+ statements that perform the job.  If you want to see the
11312         actual commands, you can still run "make V=1".
11313         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11314         so that make output is abbreviated when those variables are defined
11315         appropriately.
11316         * modules/argz: Likewise.
11317         * modules/arpa_inet: Likewise.
11318         * modules/byteswap: Likewise.
11319         * modules/configmake: Likewise.
11320         * modules/dirent: Likewise.
11321         * modules/errno: Likewise.
11322         * modules/fcntl: Likewise.
11323         * modules/float: Likewise.
11324         * modules/fnmatch: Likewise.
11325         * modules/getopt-posix: Likewise.
11326         * modules/glob: Likewise.
11327         * modules/iconv_open: Likewise.
11328         * modules/inttypes: Likewise.
11329         * modules/localcharset: Likewise.
11330         * modules/locale: Likewise.
11331         * modules/math: Likewise.
11332         * modules/netdb: Likewise.
11333         * modules/netinet_in: Likewise.
11334         * modules/poll: Likewise.
11335         * modules/posix_spawnp-tests: Likewise.
11336         * modules/sched: Likewise.
11337         * modules/search: Likewise.
11338         * modules/selinux-h: Likewise.
11339         * modules/signal: Likewise.
11340         * modules/spawn: Likewise.
11341         * modules/stdarg: Likewise.
11342         * modules/stdbool: Likewise.
11343         * modules/stddef: Likewise.
11344         * modules/stdint: Likewise.
11345         * modules/stdio: Likewise.
11346         * modules/stdlib: Likewise.
11347         * modules/string: Likewise.
11348         * modules/strings: Likewise.
11349         * modules/sys_file: Likewise.
11350         * modules/sys_ioctl: Likewise.
11351         * modules/sys_select: Likewise.
11352         * modules/sys_socket: Likewise.
11353         * modules/sys_stat: Likewise.
11354         * modules/sys_time: Likewise.
11355         * modules/sys_times: Likewise.
11356         * modules/sys_utsname: Likewise.
11357         * modules/sys_wait: Likewise.
11358         * modules/sysexits: Likewise.
11359         * modules/time: Likewise.
11360         * modules/unistd: Likewise.
11361         * modules/wchar: Likewise.
11362         * modules/wctype: Likewise.
11363
11364 2009-08-22  Jim Meyering  <meyering@redhat.com>
11365
11366         announce-gen: detect write failure
11367         * build-aux/announce-gen: Add Coda at end.
11368         Remove equivalent-but-more-verbose block at top.
11369
11370 2009-08-19  Akim Demaille  <demaille@gostai.com>
11371
11372         bootstrap: --help to stdout.
11373         * bootstrap (usage): Don't send --help to stderr.
11374         Use a here doc instead of a long string.
11375
11376 2009-08-21  Eric Blake  <ebb9@byu.net>
11377
11378         test-popen-safer: split from test-popen
11379         * tests/test-popen.c (main): Move...
11380         * tests/test-popen.h: ...into new file.
11381         * tests/test-popen-safer2.c: New file.
11382         * modules/popen-tests (Files): Add test-popen.h.
11383         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11384         Suggested by Bruno Haible.
11385
11386         test-fcntl-safer: split from test-open
11387         * tests/test-open.c (main): Move...
11388         * tests/test-open.h: ...into new file.
11389         * tests/test-fcntl-safer.c: New file.
11390         * modules/open-tests (Files): Add test-open.h.
11391         * modules/fcntl-safer-tests: New file.
11392         Suggested by Bruno Haible.
11393
11394         test-fopen-safer: split from test-fopen
11395         * tests/test-fopen.c (main): Move...
11396         * tests/test-fopen.h: ...into new file.
11397         * tests/test-fopen-safer.c: New file.
11398         * modules/fopen-tests (Files): Add test-fopen.h.
11399         * modules/fopen-safer-tests: New file.
11400         Suggested by Bruno Haible.
11401
11402 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11403
11404         popen-safer: test O_CLOEXEC at run-time.
11405         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11406
11407 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11408
11409         fcntl: move more flags to the header
11410         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11411         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11412         * lib/fcntl.in.h: Do both things here.
11413
11414 2009-08-21  Jim Meyering  <meyering@redhat.com>
11415
11416         consistently remove $@-t before redirecting to it
11417         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11418         * modules/alloca-opt: Likewise.
11419         * modules/byteswap: Likewise.
11420         * modules/fnmatch: Likewise.
11421         * modules/getopt-posix: Likewise.
11422         * modules/glob: Likewise.
11423         * modules/poll: Likewise.
11424         * modules/posix_spawnp-tests: Likewise.
11425         * modules/sys_socket: Likewise.
11426         * modules/sysexits: Likewise.
11427
11428 2009-08-21  Eric Blake  <ebb9@byu.net>
11429
11430         popen: simplify access to original popen
11431         * lib/popen.c (rpl_popen): No need to worry about popen being a
11432         macro.
11433         Reported by Bruno Haible.
11434
11435 2009-08-20  Eric Blake  <ebb9@byu.net>
11436
11437         build: avoid some compiler warnings
11438         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11439         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11440         type.
11441         (new_exclude_segment, excluded_file_pattern_p)
11442         (excluded_file_name_p): Reduce scope.
11443         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11444         old-style declaration.
11445
11446 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11447
11448         * tests/test-exclude1.sh: Handle Windows EOL.
11449         * tests/test-exclude2.sh: Likewise.
11450         * tests/test-exclude3.sh: Likewise.
11451         * tests/test-exclude4.sh: Likewise.
11452         * tests/test-exclude5.sh: Likewise.
11453         * tests/test-exclude6.sh: Likewise.
11454         * tests/test-exclude7.sh: Likewise.
11455
11456 2009-08-19  Akim Demaille  <demaille@gostai.com>
11457
11458         bootstrap: find sha1sum when named gsha1sum.
11459         * bootstrap (find_tool): New.
11460         ($SHA1SUM): New.
11461         Use it.
11462
11463 2009-08-20  Jim Meyering  <meyering@redhat.com>
11464
11465         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11466         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11467         expression that converts "." in a file name to "\." in the resulting
11468         regexp.  Start with a dummy statement, so that prior shell variable
11469         definitions are expanded portably.  Reported by Simon Josefsson.
11470
11471 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11472
11473         Fix polling for writeability of a screen buffer.
11474         * lib/poll.c: Distinguish input and screen buffers for the
11475         Win32 implementation.
11476         * lib/select.c: Likewise.
11477
11478 2009-08-19  Eric Blake  <ebb9@byu.net>
11479
11480         popen-safer: prevent popen from clobbering std descriptors
11481         * modules/popen-safer: New file.
11482         * lib/popen-safer.c: Likewise.
11483         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11484         * lib/stdio--.h (popen): Provide override.
11485         * lib/stdio-safer.h (popen_safer): Provide declaration.
11486         * tests/test-popen.c (includes): Partially test this.
11487         * modules/popen-safer-tests: New file, for more tests.
11488         * tests/test-popen-safer.c: Likewise.
11489         * MODULES.html.sh (file stream based Input/Output): Mention it.
11490
11491         tests: test some of the *-safer modules
11492         * modules/fopen-safer (Depends-on): Add fopen.
11493         * modules/fcntl-safer (Depends-on): Add fcntl.
11494         * modules/stdlib-safer (Depends-on): Add stdlib.
11495         (configure.ac): Set indicator.
11496         * modules/unistd-safer (configure.ac): Likewise.
11497         * modules/tmpfile-safer (configure.ac): Likewise.
11498         (Depends-on): Add tmpfile.
11499         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11500         active.
11501         * tests/test-fopen.c (includes): Test safer versions when they are
11502         in use.
11503         * tests/test-open.c (includes): Likewise.
11504
11505         popen: fix cygwin 1.5 bug when stdin closed
11506         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11507         * modules/popen: New file.
11508         * modules/popen-tests: Likewise.
11509         * tests/test-popen.c: Likewise.
11510         * m4/popen.m4: Likewise.
11511         * lib/popen.c: Likewise.
11512         * lib/stdio.in.h (popen): New declaration.
11513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11514         * modules/stdio (Makefile.am): Likewise.
11515         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11516
11517 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11518
11519         maint.mk: give full control over update-copyright exclusions
11520         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11521         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11522         (update-copyright): Don't force inclusion of top-level
11523         ChangeLog.  Don't force exclusion of all COPYING files, but make
11524         them the default exclusion instead.
11525
11526 2009-08-16  Bruno Haible  <bruno@clisp.org>
11527
11528         Fix test failures on Solaris 10.
11529         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11530         tests when Solaris iconv() is used.
11531         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11532         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11533         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11534         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11535         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11536
11537 2009-08-16  Bruno Haible  <bruno@clisp.org>
11538
11539         Fix test failures on Solaris 10.
11540         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11541         'tr' program and pass it as first argument.
11542         * tests/test-pipe-filter-gi1.sh: Likewise.
11543         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11544         program as first argument.
11545         * tests/test-pipe-filter-gi1.c (main): Likewise.
11546
11547 2009-08-16  Eric Blake  <ebb9@byu.net>
11548
11549         fpurge: fix previous commits
11550         * modules/fpurge (Makefile.am): Make replacement conditional,
11551         partially reverting 2007-04-29 change; missed in previous
11552         attempt.
11553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11554         is missing.
11555
11556 2009-08-16  Bruno Haible  <bruno@clisp.org>
11557
11558         Clarify fpurge's effect on the file position.
11559         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11560         * tests/test-fpurge.c (main): Make a second pass for checking the file
11561         position.
11562
11563 2009-08-16  Bruno Haible  <bruno@clisp.org>
11564
11565         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11566         declaration of fpurge is missing.
11567         * tests/test-fpurge.c (main): Check that the file has not more contents
11568         than expected. Close the file before removing it.
11569
11570 2009-08-15  Eric Blake  <ebb9@byu.net>
11571
11572         fpurge: don't wrap working cygwin implementation
11573         * lib/fpurge.c (fpurge): Fix comment typo.
11574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11575         1.7 to avoid replacement.
11576         * tests/test-fpurge.c (main): Enhance test.
11577
11578 2009-08-15  Eric Blake  <ebb9@byu.net>
11579         and Jim Meyering  <meyering@redhat.com>
11580
11581         test-update-copyright: skip if perl is insufficient
11582         * tests/test-update-copyright.sh: Failure to run maintainer tool
11583         should not cause testsuite failure on cygwin 1.5.
11584
11585 2009-08-14  Eric Blake  <ebb9@byu.net>
11586
11587         doc: mention more functions added in cygwin 1.7.0
11588         * doc/posix-headers/limits.texi (limits.h): Update for recent
11589         cygwin additions.
11590         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11591         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11592         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11593         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11594         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11595
11596 2009-08-14  Eric Blake  <ebb9@byu.net>
11597
11598         maint.mk: simplify update-copyright rule
11599         * top/maint.mk (update-copyright-local): Delete, and document how
11600         to do it in cfg.mk instead.
11601         (update-copyright-exclude-regexp): Delete, and document how to do
11602         it in .x-update-copyright instead.
11603         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11604         exclude ChangeLog.
11605
11606 2009-08-14  Bruno Haible  <bruno@clisp.org>
11607
11608         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11609
11610 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11611
11612         maint.mk: support update-copyright-env
11613         * top/maint.mk (update-copyright-env): Define place-holder.
11614         (update-copyright): Expand $(update-copyright-env) before
11615         invoking update-copyright.
11616
11617 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11618
11619         update-copyright: implement forced reformatting
11620         * build-aux/update-copyright: Implement and document
11621         UPDATE_COPYRIGHT_FORCE.
11622         * tests/test-update-copyright.sh: Test it.
11623
11624 2009-08-14  Eric Blake  <ebb9@byu.net>
11625         and Bruno Haible  <bruno@clisp.org>
11626
11627         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11628         * tests/test-locale.c: Revert previous patch related to NULL.
11629         * tests/test-stdio.c: Likewise.
11630         * tests/test-stdlib.c: Likewise.
11631         * tests/test-string.c: Likewise.
11632         * tests/test-unistd.c: Likewise.
11633         * modules/time-tests (Depends-on): Add verify.
11634         * modules/wchar-tests (Depends-on): Likewise.
11635         * tests/test-time.c: Test for NULL compliance.
11636         * tests/test-wchar.c: Likewise.
11637         * modules/locale (Depends-on): Add stddef.
11638         * modules/stdio (Depends-on): Likewise.
11639         * modules/stdlib (Depends-on): Likewise.
11640         * modules/string (Depends-on): Likewise.
11641         * modules/time (Depends-on): Likewise.
11642         * modules/unistd (Depends-on): Likewise.
11643         * modules/wchar (Depends-on): Likewise.
11644         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11645         * lib/stdlib.in.h (includes): Likewise.
11646         * lib/string.in.h (includes): Likewise.
11647         * lib/time.in.h (includes): Likewise.
11648         * lib/unistd.in.h (includes): Likewise.
11649         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11650         replaced.
11651         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11652         * m4/stddef_h.m4: New file.
11653         * modules/stddef: Likewise.
11654         * lib/stddef.in.h: Likewise.
11655         * modules/stddef-tests: Likewise.
11656         * tests/test-stddef.c: Likewise.
11657         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11658         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11659         * doc/posix-headers/locale.texi (locale.h): Likewise.
11660         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11661         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11662         * doc/posix-headers/string.texi (string.h): Likewise.
11663         * doc/posix-headers/time.texi (time.h): Likewise.
11664         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11665         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11666
11667 2009-08-14  Eric Blake  <ebb9@byu.net>
11668
11669         doc: improve git diff of texinfo files
11670         * .gitattributes: Add rule for *.texi files, with hint on how to
11671         use it.
11672         Copied from m4, and based on a report by Bruno Haible.
11673
11674 2009-08-14  Bruno Haible  <bruno@clisp.org>
11675
11676         Disable multithread support by default on Cygwin 1.5.x for real.
11677         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11678
11679 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11680
11681         update-copyright: much ado about intervals
11682         * build-aux/update-copyright: Implement and document
11683         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11684         of copyright year intervals.
11685         Also, document UPDATE_COPYRIGHT_YEAR.
11686         * tests/test-update-copyright.sh: Test it.
11687
11688         update-copyright: convert 2-digit to 4-digit years
11689         * build-aux/update-copyright: Implement and document.
11690         * tests/test-update-copyright.sh: Update.
11691
11692 2009-08-14  Jim Meyering  <meyering@redhat.com>
11693
11694         test-exclude: avoid coreutils "make check" failure
11695         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11696         just as in test-argmatch.c.
11697
11698 2009-08-13  Eric Blake  <ebb9@byu.net>
11699
11700         test-dup2: fix bad assumption
11701         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11702         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11703
11704         test-version-etc: fix CRLF portability issue
11705         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11706         recognize \r.
11707         * tests/test-argp-version-etc-1.sh: Likewise.
11708
11709         getopt: update client modules
11710         * modules/argp (Depends-on): Use getopt-gnu.
11711         * modules/git-merge-changelog (Depends-on): Likewise.
11712         * modules/long-options (Depends-on): Likewise.
11713         * modules/xstrtol (Depends-on): Likewise.
11714
11715 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11716
11717         * tests/test-version-etc.sh: Don't fail on different
11718         project/version.  Don't fail on CRLF differences.  Rewrite to use
11719         multiple -e instead of multiple sed forks, suggested by Eric Blake
11720         <ebb9@byu.net>.
11721         * tests/test-argp-version-etc-1.sh: Likewise.
11722
11723 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11724
11725         * tests/test-version-etc.sh: Don't fail on different
11726         project/version.
11727
11728 2009-08-12  Bruno Haible  <bruno@clisp.org>
11729
11730         Tests for modules 'getopt-posix', 'getopt-gnu'.
11731         * modules/getopt-posix-tests: New file.
11732         * tests/test-getopt.c: New file.
11733         * tests/test-getopt.h: New file.
11734         * tests/test-getopt_long.h: New file.
11735
11736         New modules 'getopt-posix', 'getopt-gnu'.
11737         * modules/getopt-gnu: New file, renamed from modules/getopt.
11738         * modules/getopt-posix: New file.
11739         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11740         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11741         (gl_GETOPT): Remove macro.
11742         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11743         Disable the test against BSD systems that declare optreset. Test
11744         against mingw bug. Test against lack of support of optional arguments
11745         on many platforms.
11746         * doc/glibc-headers/getopt.texi: Update module name and list of
11747         relevant platforms.
11748         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11749         'getopt-gnu' and more portability problems.
11750         * NEWS: Mention the changes.
11751
11752 2009-08-12  Bruno Haible  <bruno@clisp.org>
11753
11754         Ensure that optarg etc. get declared by <unistd.h>.
11755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11756         AC_USE_SYSTEM_EXTENSIONS.
11757         * modules/getopt (Depends-on): Add 'extensions'.
11758
11759 2009-08-12  Bruno Haible  <bruno@clisp.org>
11760
11761         Avoid test link errors.
11762         * modules/pipe-filter-ii-tests (Makefile.am): Define
11763         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11764         * modules/pipe-filter-gi-tests (Makefile.am): Define
11765         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11767
11768 2009-08-12  Bruno Haible  <bruno@clisp.org>
11769
11770         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11771         gl_GETOPT_SUBSTITUTE before.
11772         (gl_GETOPT): Use it.
11773         * m4/argp.m4 (gl_ARGP): Update.
11774         Reported by Sergey Poznyakoff.
11775
11776         * m4/getopt.m4: Reorder macros.
11777         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11778         (gl_GETOPT_SUBSTITUTE): Remove macro.
11779
11780 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11781
11782         Minor improvement in gitlog-to-changelog
11783
11784         * build-aux/gitlog-to-changelog: New option `--format' makes
11785         output format string configurable.
11786
11787 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11788
11789         Optimize exclude: use hash tables for non-wildcard patterns.
11790
11791         * lib/exclude.c: Include hash.h and mbuiter.h
11792         (struct exclude_pattern, exclude_segment): New data types.
11793         (struct exclude): Rewrite.
11794         (fnmatch_pattern_has_wildcards): New function.
11795         (new_exclude_segment, free_exclude_segment): New functions.
11796         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11797         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11798         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11799         * modules/exclude: Depend on hash and mbuiter.
11800
11801         * modules/exclude-tests: New file.
11802         * tests/test-exclude.c: New file.
11803         * tests/test-exclude1.sh: New file.
11804         * tests/test-exclude2.sh: New file.
11805         * tests/test-exclude3.sh: New file.
11806         * tests/test-exclude4.sh: New file.
11807         * tests/test-exclude5.sh: New file.
11808         * tests/test-exclude6.sh: New file.
11809         * tests/test-exclude7.sh: New file.
11810
11811 2009-08-12  Bruno Haible  <bruno@clisp.org>
11812
11813         Ensure that getopt() gets declared by <unistd.h>.
11814         * lib/unistd.in.h: Conditionally include getopt.h.
11815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11816         Set GNULIB_UNISTD_H_GETOPT.
11817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11818         GNULIB_UNISTD_H_GETOPT.
11819         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11820
11821 2009-08-12  Bruno Haible  <bruno@clisp.org>
11822
11823         Clarify logic.
11824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11825         gl_replace_getopt instead of GETOPT_H.
11826
11827 2009-08-12  Bruno Haible  <bruno@clisp.org>
11828
11829         * m4/getopt.m4: Add comments.
11830
11831 2009-08-12  Bruno Haible  <bruno@clisp.org>
11832
11833         Disable multithread support by default on Cygwin 1.5.x.
11834         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11835         set gl_use_threads=no if not specified otherwise.
11836
11837 2009-08-11  Bruno Haible  <bruno@clisp.org>
11838
11839         Avoid compilation error on NetBSD 5.0.
11840         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11841         * tests/test-stdio.c: Likewise.
11842         * tests/test-stdlib.c: Likewise.
11843         * tests/test-string.c: Likewise.
11844         * tests/test-unistd.c: Likewise.
11845         Reported by Greg Troxel <gdt@ir.bbn.com>
11846         at <https://savannah.gnu.org/support/?106973>.
11847
11848 2009-08-11  Bruno Haible  <bruno@clisp.org>
11849
11850         * modules/dup2-tests (Depends-on): Remove close.
11851
11852         Undo 2009-07-19 commit.
11853         * modules/acl-tests (Depends-on): Remove close.
11854         * modules/binary-io-tests (Depends-on): Likewise.
11855         * modules/closein-tests (Depends-on): Likewise.
11856         * modules/flock-tests (Depends-on): Likewise.
11857         * modules/fsync-tests (Depends-on): Likewise.
11858         * modules/lseek-tests (Depends-on): Likewise.
11859         * modules/pipe-tests (Depends-on): Likewise.
11860         * modules/posix_spawn-tests (Depends-on): Likewise.
11861         * modules/posix_spawnp-tests (Depends-on): Likewise.
11862         * modules/stat-time-tests (Depends-on): Likewise.
11863         * modules/yesno-tests (Depends-on): Likewise.
11864
11865 2009-08-10  Bruno Haible  <bruno@clisp.org>
11866
11867         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11868
11869 2009-08-10  Bruno Haible  <bruno@clisp.org>
11870
11871         Fix a gcc warning.
11872         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11873
11874 2009-08-10  Bruno Haible  <bruno@clisp.org>
11875
11876         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11877         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11878         not only the first time.
11879         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11880         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11881         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11882         is 1, not only the the first time.
11883
11884 2009-08-10  Bruno Haible  <bruno@clisp.org>
11885
11886         Make it possible to use module 'gethostname' without module 'close'.
11887         * lib/unistd.in.h (close): Evoke a link error only if
11888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11890         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11891         * modules/unistd (Makefile.am): Substitute
11892         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11893         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11895         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11896         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11897         * modules/sys_ioctl (Makefile.am): Substitute
11898         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11899         * modules/socket (configure.ac): On native Windows, set
11900         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11901         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11902         Reported by Sam Steingold <sds@gnu.org>.
11903
11904 2009-08-10  Bruno Haible  <bruno@clisp.org>
11905
11906         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11907         * modules/ioctl (configure.ac): Likewise.
11908
11909 2009-08-10  Bruno Haible  <bruno@clisp.org>
11910
11911         Avoid collision between gnulib wrapper and libintl wrapper.
11912         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11913         already defined in intl/printf.c.
11914         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11915         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11916
11917 2009-08-09  Bruno Haible  <bruno@clisp.org>
11918
11919         Make <sys/select.h> really self-contained, also on Solaris 10.
11920         * lib/sys_select.in.h: Include <string.h>.
11921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11922         Solaris 10 problem.
11923         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11924         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11925         Reported by Jim Meyering.
11926
11927 2009-08-09  Bruno Haible  <bruno@clisp.org>
11928
11929         Avoid warnings from 'aclocal' that are due to a use of macro name
11930         AM_XGETTEXT_OPTION that is not defined in automake.
11931         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11932         automake.
11933         * modules/error (configure.ac): Likewise.
11934         * modules/propername (configure.ac): Likewise.
11935         * modules/vasprintf (configure.ac): Likewise.
11936         * modules/verror (configure.ac): Likewise.
11937         * modules/xprintf (configure.ac): Likewise.
11938         * modules/xvasprintf (configure.ac): Likewise.
11939
11940 2009-08-08  Bruno Haible  <bruno@clisp.org>
11941
11942         Avoid compilation error in C++ mode.
11943         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11944         Reported by Sam Steingold <sds@gnu.org>.
11945
11946 2009-08-08  Bruno Haible  <bruno@clisp.org>
11947
11948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11949         for the various Unix platforms.
11950         * doc/posix-headers/limits.texi: Update platforms list regarding
11951         HOST_NAME_MAX.
11952         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11953
11954 2009-08-07  Jim Meyering  <meyering@redhat.com>
11955
11956         selinux-at: fix typo in a comment
11957         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11958         Spotted by Paolo Bonzini.
11959
11960         selinux-at: remove redundant m4 code, add documentation
11961         * modules/selinux-at (configure.ac): Remove redundant code.
11962         LIB_SELINUX is already set via the dependent module, selinux-h.
11963         (Include): Add quotes around selinux-at.h.
11964         * lib/selinux-at.h: Add documentation.
11965         Reported by Bruno Haible in
11966         http://marc.info/?l=gnulib-bug&m=124958988300749
11967
11968 2009-08-07  Bruno Haible  <bruno@clisp.org>
11969
11970         Avoid link error on MacOS X 10.3 and 10.4.
11971         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11972         on non-ELF systems.
11973         * lib/argp-pv.c (argp_program_version): Likewise.
11974         Reported by Simon Josefsson.
11975
11976 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11977
11978         * tests/test-version-etc.sh: Use $EXEEXT.
11979
11980 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11981
11982         update-copyright: update documentation to point to maint.mk
11983         * build-aux/update-copyright: Here.
11984
11985 2009-08-06  Jim Meyering  <meyering@redhat.com>
11986
11987         maint.mk: support update-copyright-local
11988         * top/maint.mk (update-copyright-local): Define place-holder.
11989         (update-copyright): Depend on $(update-copyright-local).
11990
11991 2009-08-06  Jim Meyering  <meyering@redhat.com>
11992
11993         selinux-at: new module
11994         Initially written for coreutils, this module will soon be
11995         used by findutils, too.
11996         * MODULES.html.sh [Misc]: Add selinux-at.
11997         * lib/selinux-at.h: New file, from coreutils.
11998         * lib/selinux-at.c: Likewise.
11999         * modules/selinux-at: Likewise.
12000         (License): Change from LGPL to GPL, since it depends
12001         on the GPL'd openat module.
12002
12003         doc: update README
12004         * README: Remove references to cogito.
12005         Remove cvs-repo-updating instructions from 2007.
12006         Don't imply that CVS is better if you have limited disk space.
12007
12008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12009
12010         update-copyright: support C-style comments
12011         * build-aux/update-copyright: Implement and document.
12012         * tests/test-update-copyright.sh: Test.
12013
12014 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12015
12016         update-copyright: support omitted "(C)"
12017         * build-aux/update-copyright: Implement and document.  Also,
12018         allow variable whitespace before "(C)".
12019         * tests/test-update-copyright.sh: Test.
12020
12021 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12022
12023         update-copyright: don't trip on non-FSF copyright statements
12024         * build-aux/update-copyright: Fix so that the first correctly
12025         formatted FSF copyright statement is recognized no matter what
12026         appears before it.  Update documentation.
12027         * tests/test-update-copyright.sh: Test that.
12028
12029 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12030
12031         update-copyright: clean up code a little
12032         * build-aux/update-copyright: Append "_re" to the name of any
12033         variable holding a regular expression.
12034         Replace "old" and "new" with "stmt" in variable names.
12035         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12036         handled correctly.
12037         Format code more consistently.
12038
12039 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12040
12041         update-copyright-tests: improve portability
12042         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12043         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12044
12045 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12046
12047         update-copyright: support @copyright{} and &copy;
12048         * build-aux/update-copyright: Implement and document.
12049         * tests/test-update-copyright.sh: Test.
12050
12051 2009-08-04  Jim Meyering  <meyering@redhat.com>
12052
12053         update-copyright-tests: correctly test EOL=\r\n handling
12054         * tests/test-update-copyright.sh: Put \r at the end of some lines
12055         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12056
12057         maint.mk: make update-copyright exclusion list more configurable
12058         * top/maint.mk (update-copyright): Default to excluding COPYING,
12059         but allow an override, in case someone does want to update that file.
12060
12061         maint.mk: don't update copyright date in COPYING
12062         * top/maint.mk (update-copyright): Exclude COPYING.
12063
12064         maint.mk: add a copyright-updating rule
12065         * top/maint.mk (update-copyright): New rule.
12066         Derived from coreutils/Makefile.am.
12067
12068         update-copyright: rename some variables
12069         * build-aux/update-copyright: Rename a few variables for clarity.
12070         Tweak syntax.  List Joel E. Denny as coauthor.
12071
12072 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12073
12074         update-copyright: fix bug for 2-digit last year and add tests
12075         * build-aux/update-copyright: Fix bug.
12076         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12077         specified.
12078         * modules/update-copyright-tests: New
12079         * tests/test-update-copyright.sh: New.
12080
12081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12082
12083         update-copyright: handle leading tabs in line prefix
12084         * build-aux/update-copyright: Count leading tabs as 8 spaces
12085         when computing margin.  This helps with the formatting of
12086         ChangeLogs, for example.
12087         Fix documentation a little.
12088
12089 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12090
12091         update-copyright: support EOL=\r\n
12092         * build-aux/update-copyright: Implement that.
12093
12094 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12095
12096         update-copyright: automatically format copyright statements
12097         * build-aux/update-copyright: Implement that.
12098         Also, be a little more predictable and safer by always failing
12099         when the full copyright format is not perfectly recognized as an
12100         unbroken whole.  Discussed at
12101         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12102         Rewrite documentation.
12103
12104 2009-08-03  Bruno Haible  <bruno@clisp.org>
12105
12106         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12107
12108 2009-08-02  Bruno Haible  <bruno@clisp.org>
12109
12110         Tests for module 'uname'.
12111         * modules/uname-tests: New file.
12112         * tests/test-uname.c: New file.
12113
12114         New module 'uname'.
12115         * lib/uname.c: New file.
12116         * m4/uname.m4: New file.
12117         * modules/uname: New file.
12118         * doc/posix-functions/uname.texi: Mention the new module.
12119
12120 2009-08-02  Bruno Haible  <bruno@clisp.org>
12121
12122         Tests for module 'sys_utsname'.
12123         * modules/sys_utsname-tests: New file.
12124         * tests/test-sys_utsname.c: New file.
12125
12126         New module 'sys_utsname'.
12127         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12128         * m4/sys_utsname_h.m4: New file.
12129         * modules/sys_utsname: New file.
12130         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12131
12132 2009-08-02  Bruno Haible  <bruno@clisp.org>
12133
12134         Implicitly initialize the sockets library.
12135         * lib/gethostname.c: Include sockets.h.
12136         (rpl_gethostname): Invoke gl_sockets_startup.
12137         * lib/socket.c: Include sockets.h.
12138         (rpl_socket): Invoke gl_sockets_startup.
12139         * modules/gethostname (Depends-on): Add sockets.
12140         * modules/socket (Depends-on): Likewise.
12141         * tests/test-poll.c: Don't include sockets.h.
12142         (main): Don't invoke gl_sockets_startup.
12143         * tests/test-select.c: Don't include sockets.h.
12144         (main): Don't invoke gl_sockets_startup.
12145
12146 2009-08-02  Bruno Haible  <bruno@clisp.org>
12147
12148         Allow multiple calls to gl_sockets_startup.
12149         * lib/sockets.c (initialized_sockets_version): New variable.
12150         (gl_sockets_startup): Do nothing if already called for this or a higher
12151         version.
12152         (gl_sockets_cleanup): Reset initialized_sockets_version.
12153
12154 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12155
12156         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12157         different project/version.
12158
12159 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12160             Bruno Haible  <bruno@clisp.org>
12161
12162         Tests for module 'pipe-filter-gi'.
12163         * modules/pipe-filter-gi-tests: New file.
12164         * tests/test-pipe-filter-gi1.sh: New file.
12165         * tests/test-pipe-filter-gi1.c: New file.
12166         * tests/test-pipe-filter-gi2.sh: New file.
12167         * tests/test-pipe-filter-gi2-main.c: New file.
12168         * tests/test-pipe-filter-gi2-child.c: New file.
12169
12170         New module 'pipe-filter-gi'.
12171         * lib/pipe-filter-gi.c: New file.
12172         * modules/pipe-filter-gi: New file.
12173
12174 2009-08-02  Bruno Haible  <bruno@clisp.org>
12175             Paolo Bonzini  <bonzini@gnu.org>
12176
12177         Tests for module 'pipe-filter-ii'.
12178         * modules/pipe-filter-ii-tests: New file.
12179         * tests/test-pipe-filter-ii1.sh: New file.
12180         * tests/test-pipe-filter-ii1.c: New file.
12181         * tests/test-pipe-filter-ii2.sh: New file.
12182         * tests/test-pipe-filter-ii2-main.c: New file.
12183         * tests/test-pipe-filter-ii2-child.c: New file.
12184
12185         New module 'pipe-filter-ii'.
12186         * lib/pipe-filter.h: New file.
12187         * lib/pipe-filter-ii.c: New file.
12188         * lib/pipe-filter-aux.h: New file.
12189         * modules/pipe-filter-ii: New file.
12190
12191 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12192
12193         * lib/gc-libgcrypt.c: Change copyright to FSF.
12194         * lib/gc-gnulib.c: Likewise.
12195
12196 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12197
12198         * lib/gethostname.c: Include limits.h.
12199
12200 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12201             Bruno Haible  <bruno@clisp.org>
12202
12203         Ensure HOST_NAME_MAX as part of the gethostname module.
12204         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12205         define also HOST_NAME_MAX.
12206         * tests/test-gethostname.c: Include <limits.h>.
12207         (main): Check also HOST_NAME_MAX.
12208         * doc/posix-headers/limits.texi: Document the mingw problem.
12209
12210 2009-08-02  Bruno Haible  <bruno@clisp.org>
12211
12212         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12213         Add comments.
12214
12215 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12216
12217         * lib/gethostname.c: Add Windows wrapper.
12218         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12219         * modules/gethostname: Depend on sys_socket & errno, for also
12220         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12221         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12222
12223 2009-07-31  Jim Meyering  <meyering@redhat.com>
12224
12225         getloadavg: fix symbol name in comment
12226         * lib/getloadavg.c: Correct a typo I introduced when adding
12227         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12228         Matt Kraai spotted the problem.
12229
12230 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12231
12232         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12233         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12234         code also if ! defined N_NAME_POINTER.
12235         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12236         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12237         but the n_name member is a 12-byte array.
12238
12239 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12240
12241         update-copyright: generalize comment handling
12242         * build-aux/update-copyright: Handle copyright statements
12243         within more comment styles.
12244         Document usage.
12245         Report any file with an external copyright holder or parse failure.
12246
12247 2009-07-29  Jim Meyering  <meyering@redhat.com>
12248
12249         mktime: correct setting of REPLACE_MKTIME
12250         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12251
12252         update-copyright: new module
12253         * modules/update-copyright: New file.
12254         * build-aux/update-copyright: New file.
12255         * MODULES.html.sh (maint+release support): Add update-copyright.
12256
12257 2009-07-27  Bruno Haible  <bruno@clisp.org>
12258
12259         Fix compilation error when <ctime> is used and mktime is replaced.
12260         * lib/time.in.h (mktime): New declaration.
12261         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12262         REPLACE_MKTIME instead of defining mktime in config.h.
12263         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12264         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12265         Reported by Ross McFarland <rwmcfa1@neces.com>.
12266
12267 2009-07-27  Bruno Haible  <bruno@clisp.org>
12268
12269         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12270         Reported by Matt Kraai <mkraai@beckman.com>.
12271
12272 2009-07-25  Jim Meyering  <meyering@redhat.com>
12273
12274         maint.mk: avoid warnings about missing files
12275         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12276         diagnostic when .prev-version does not exist.
12277         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12278         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12279         nonexistent cfg.mk.
12280         Suggestions from Simon Josefsson.
12281
12282 2009-07-25  Bruno Haible  <bruno@clisp.org>
12283
12284         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12285         defined as macros. Needed on QNX 6.4.1.
12286         Reported by Matt Kraai <mkraai@beckman.com>.
12287
12288 2009-07-23  Jim Meyering  <meyering@redhat.com>
12289
12290         maint.mk: invoke "make dist" with a working value of XZ_OPT
12291         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12292
12293 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12294
12295         Make fseeko.c compile on QNX.
12296         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12297
12298 2009-07-22  Peter Simons  <simons@cryp.to>
12299
12300         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12301         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12302         * lib/md4.h: Likewise.
12303         * lib/md5.h: Likewise.
12304         * lib/sha1.h: Likewise.
12305         * lib/sha256.h: Likewise.
12306         * lib/sha512.h: Likewise.
12307
12308         tests-sha1: don't assign literal string to 'char *' variable
12309         * tests/test-sha1.c (main): Declare locals with "const" to match
12310         attributes of the right hand side.
12311
12312 2009-07-21  Eric Blake  <ebb9@byu.net>
12313
12314         dup2: fix more mingw problems
12315         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12316         fd to itself.
12317         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12318         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12319         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12320         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12321         care of mingw bugs.
12322
12323 2009-07-21  Jim Meyering  <meyering@redhat.com>
12324
12325         vc-list-files: avoid failure when /bin/sh is dash
12326         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12327         On some Debian based systems, /bin/sh is a symlink to dash, and running
12328         this command would omit the "/" following each 'tests' prefix:
12329           dash -x build-aux/vc-list-files -C . tests
12330         That is because bash and dash work differently:
12331           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12332           bash ok
12333           dash odd
12334
12335 2009-07-21  Eric Blake  <ebb9@byu.net>
12336
12337         dup2-tests: test previous patch
12338         * modules/dup2-tests: New file.
12339         * tests/test-dup2.c: Likewise.
12340         * tests/test-open.c (main): Avoid unspecified behavior.
12341         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12342         test.
12343
12344         dup2: work around mingw and cygwin 1.5 bug
12345         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12347         * modules/unistd (Makefile.am): Substitute it.
12348         * lib/unistd.in.h (dup2): Declare the replacement.
12349         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12350         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12351         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12352         * modules/execute (Depends-on): Add dup2.
12353         * modules/fseterr (Depends-on): Likewise.
12354         * modules/pipe (Depends-on): Likewise.
12355         * modules/posix_spawn-internal (Depends-on): Likewise.
12356
12357 2009-07-21  Bruno Haible  <bruno@clisp.org>
12358
12359         * modules/.gitattributes: New file.
12360
12361 2009-07-20  Bruno Haible  <bruno@clisp.org>
12362
12363         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12364         (main): Use it.
12365
12366 2009-07-20  Eric Blake  <ebb9@byu.net>
12367
12368         test-pipe: make a bit more robust.
12369         * tests/test-pipe.c (myerr): Allow error messages regardless of
12370         what we do to stderr.
12371         (test_pipe): Rearrange to avoid deadlock.
12372         (child_main): Try a larger read, to ensure we avoided deadlock.
12373         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12374         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12375         if misused.
12376
12377 2009-07-19  Jim Meyering  <meyering@redhat.com>
12378
12379         fts: avoid false-positive cycle-detection
12380         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12381         for each new command line argument.
12382
12383 2009-07-19  Bruno Haible  <bruno@clisp.org>
12384
12385         Fix build error on mingw with the modules sys_select and unistd.
12386         * modules/acl-tests (Depends-on): Add close.
12387         * modules/binary-io-tests (Depends-on): Likewise.
12388         * modules/closein-tests (Depends-on): Likewise.
12389         * modules/flock-tests (Depends-on): Likewise.
12390         * modules/fsync-tests (Depends-on): Likewise.
12391         * modules/lseek-tests (Depends-on): Likewise.
12392         * modules/pipe-tests (Depends-on): Likewise.
12393         * modules/posix_spawn-tests (Depends-on): Likewise.
12394         * modules/posix_spawnp-tests (Depends-on): Likewise.
12395         * modules/stat-time-tests (Depends-on): Likewise.
12396         * modules/yesno-tests (Depends-on): Likewise.
12397
12398 2009-07-19  Bruno Haible  <bruno@clisp.org>
12399
12400         Unify conditionals.
12401         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12402         macros, not at the compiler macros.
12403         * lib/pipe.c: Likewise.
12404         * lib/execute.c: Likewise.
12405         * lib/spawni.c: Likewise.
12406
12407 2009-07-19  Bruno Haible  <bruno@clisp.org>
12408
12409         Fix handling of closed stdin/stdout/stderr on mingw.
12410         * lib/w32spawn.h: Include unistd.h.
12411         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12412         file descriptor with O_NOINHERIT flag.
12413         (fd_safer_noinherit): New function, based on fd-safer.c.
12414         (dup_safer_noinherit): New function, based on dup-safer.c.
12415         (undup_safer_noinherit): New function.
12416         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12417         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12418         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12419         instead of fd_safer.
12420         * tests/test-pipe.c: Include <windows.h>.
12421         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12422
12423         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12424         from main.
12425         (test_pipe): Pass an extra argument for disambiguation.
12426         (main): Invoke parent_main or child_main.
12427
12428         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12429         consistently.
12430
12431 2009-07-18  Eric Blake  <ebb9@byu.net>
12432
12433         test-pipe: fix mingw build
12434         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12435
12436 2009-07-18  Bruno Haible  <bruno@clisp.org>
12437
12438         * modules/pipe-tests (Makefile.am): Fix typo.
12439
12440 2009-07-18  Eric Blake  <ebb9@byu.net>
12441
12442         error: fix mingw build
12443         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12444         Reported by Bruno Haible.
12445
12446         error: avoid undefined use of stdout
12447         * lib/error.c (error, error_at_line): Check that fd 1 is open
12448         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12449         is handling faults and the close_stdout module wants to report the
12450         detection of closed stdout as an error.
12451
12452 2009-07-17  Eric Blake  <ebb9@byu.net>
12453
12454         pipe: be robust in face of closed fds
12455         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12456         should cause child to misbehave.
12457         * modules/pipe-tests: New module.
12458         * tests/test-pipe.c: New file.
12459         * tests/test-pipe.sh: New file.
12460         Reported by Akim Demaille.
12461
12462 2009-07-14  Bruno Haible  <bruno@clisp.org>
12463
12464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12465         Reported by anonymous kc.
12466
12467 2009-07-07  Jim Meyering  <meyering@redhat.com>
12468
12469         maint.mk: don't look for translatable strings in *.m4 or *.mk
12470         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12471         when searching for translatable strings.
12472
12473 2009-07-05  Jim Meyering  <meyering@redhat.com>
12474
12475         remove superfluous parentheses in STREQ definition
12476         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12477         * lib/getugroups.c (STREQ): Likewise.
12478         * lib/fnmatch.c (STREQ): Likewise.
12479         Spotted by Bruno Haible.
12480
12481 2009-07-04  Jim Meyering  <meyering@redhat.com>
12482
12483         argv-iter: new module
12484         * MODULES.html.sh: Add argv-iter.
12485         * lib/argv-iter.c, lib/argv-iter.h: New files.
12486         * modules/argv-iter: New file.
12487         * modules/argv-iter-tests: New file.
12488         * tests/test-argv-iter.c: Test it.
12489
12490 2009-07-04  Bruno Haible  <bruno@clisp.org>
12491
12492         Fix assertion.
12493         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12494         contains more exact copies of a given entry than file2, leave the extra
12495         copies unpaired rather than aborting.
12496         Reported by Eric Blake.
12497
12498 2009-07-02  Bruno Haible  <bruno@clisp.org>
12499
12500         Speedup git-merge-changelog for git cherry-pick.
12501         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12502         (entries_mapping_get): New function, extracted from compute_mapping.
12503         (entries_mapping_reverse_get): New function.
12504         (compute_mapping): Add a 'full' argument. Return the result in a
12505         'struct entries_mapping'.
12506         (main): Update. Access the mappings through entries_mapping_get.
12507         Reported by Eric Blake.
12508
12509 2009-07-02  Bruno Haible  <bruno@clisp.org>
12510
12511         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12512         best_i.
12513
12514 2009-07-02  Bruno Haible  <bruno@clisp.org>
12515
12516         Speed up approximate search for matching ChangeLog entries.
12517         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12518         argument. Call fstrcmp_bounded instead of fstrcmp.
12519         (compute_mapping, try_split_merged_entry, main): Update callers.
12520
12521 2009-07-02  Bruno Haible  <bruno@clisp.org>
12522
12523         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12524
12525 2009-06-30  Bruno Haible  <bruno@clisp.org>
12526
12527         Reduce the number of uc_is_cased calls.
12528         * lib/unicase.h (casing_suffix_context_t): Add
12529         'first_char_except_ignorable' field.
12530         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12531         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12532         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12533         Update initializer.
12534         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12535         case-ignorable characters.
12536         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12537         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12538         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12539         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12540         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12541
12542 2009-06-30  Bruno Haible  <bruno@clisp.org>
12543
12544         Tests for module 'unicase/ignorable'.
12545         * modules/unicase/ignorable-tests: New file.
12546         * tests/unicase/test-ignorable.c: New file, generated by
12547         gen-uni-tables.
12548
12549         Tests for module 'unicase/cased'.
12550         * modules/unicase/cased-tests: New file.
12551         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12552         * tests/unicase/test-predicate-part1.h: New file, derived from
12553         tests/unictype/test-predicate-part1.h.
12554         * tests/unicase/test-predicate-part2.h: New file, same as
12555         tests/unictype/test-predicate-part2.h.
12556
12557         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12558         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12559         (output_casing_properties): New function.
12560         (main): Call it.
12561         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12562         * lib/unicase/cased.c: Include unictype/bitmap.h.
12563         (uc_is_cased): Define through a bitmap lookup.
12564         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12565         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12566         (uc_is_case_ignorable): Define through a bitmap lookup.
12567         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12568         lib/unictype/bitmap.h.
12569         (Depends-on): Add inline. Clean up.
12570         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12571         lib/unictype/bitmap.h.
12572         (Depends-on): Add inline. Clean up.
12573         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12574         recognition.
12575         * tests/unicase/test-u16-tolower.c (main): Likewise.
12576         * tests/unicase/test-u32-tolower.c (main): Likewise.
12577
12578 2009-06-30  Bruno Haible  <bruno@clisp.org>
12579
12580         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12581         * lib/unicase/u16-casemap.c: Likewise.
12582         * lib/unicase/u32-casemap.c: Likewise.
12583
12584 2009-06-29  Bruno Haible  <bruno@clisp.org>
12585
12586         Define u32_casefold as a wrapper around u32_ct_casefold.
12587         * lib/unicase/u32-casefold.c: Update.
12588         * modules/unicase/u32-casefold (Depends-on): Add
12589         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12590         unicase/empty-suffix-context. Clean up.
12591
12592         Define u16_casefold as a wrapper around u16_ct_casefold.
12593         * lib/unicase/u16-casefold.c: Update.
12594         * modules/unicase/u16-casefold (Depends-on): Add
12595         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12596         unicase/empty-suffix-context. Clean up.
12597
12598         Define u8_casefold as a wrapper around u8_ct_casefold.
12599         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12600         * lib/unicase/u8-casefold.c: Update.
12601         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12602         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12603
12604         Define u32_totitle as a wrapper around u32_ct_totitle.
12605         * lib/unicase/u32-totitle.c: Update.
12606         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12607         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12608
12609         Define u16_totitle as a wrapper around u16_ct_totitle.
12610         * lib/unicase/u16-totitle.c: Update.
12611         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12612         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12613
12614         Define u8_totitle as a wrapper around u8_ct_totitle.
12615         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12616         functions.
12617         (FUNC): Delegate to U_CT_TOTITLE.
12618         * lib/unicase/u8-totitle.c: Update.
12619         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12620         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12621
12622         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12623         invocation.
12624         * modules/unicase/u32-tolower (Depends-on): Add
12625         unicase/empty-prefix-context, unicase/empty-suffix-context.
12626
12627         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12628         invocation.
12629         * modules/unicase/u16-tolower (Depends-on): Add
12630         unicase/empty-prefix-context, unicase/empty-suffix-context.
12631
12632         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12633         * modules/unicase/u8-tolower (Depends-on): Add
12634         unicase/empty-prefix-context, unicase/empty-suffix-context.
12635
12636         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12637         invocation.
12638         * modules/unicase/u32-toupper (Depends-on): Add
12639         unicase/empty-prefix-context, unicase/empty-suffix-context.
12640
12641         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12642         invocation.
12643         * modules/unicase/u16-toupper (Depends-on): Add
12644         unicase/empty-prefix-context, unicase/empty-suffix-context.
12645
12646         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12647         * modules/unicase/u8-toupper (Depends-on): Add
12648         unicase/empty-prefix-context, unicase/empty-suffix-context.
12649
12650         New module 'unicase/u32-ct-casefold'.
12651         * lib/unicase/u32-ct-casefold.c: New file.
12652         * modules/unicase/u32-ct-casefold: New file.
12653
12654         New module 'unicase/u16-ct-casefold'.
12655         * lib/unicase/u16-ct-casefold.c: New file.
12656         * modules/unicase/u16-ct-casefold: New file.
12657
12658         New module 'unicase/u8-ct-casefold'.
12659         * lib/unicase/u8-ct-casefold.c: New file.
12660         * lib/unicase/u-ct-casefold.h: New file, derived from
12661         lib/unicase/u-casefold.h.
12662         * modules/unicase/u8-ct-casefold: New file.
12663
12664         New module 'unicase/u32-ct-totitle'.
12665         * lib/unicase/u32-ct-totitle.c: New file.
12666         * modules/unicase/u32-ct-totitle: New file.
12667
12668         New module 'unicase/u16-ct-totitle'.
12669         * lib/unicase/u16-ct-totitle.c: New file.
12670         * modules/unicase/u16-ct-totitle: New file.
12671
12672         New module 'unicase/u8-ct-totitle'.
12673         * lib/unicase/u8-ct-totitle.c: New file.
12674         * lib/unicase/u-ct-totitle.h: New file, derived from
12675         lib/unicase/u-totitle.h.
12676         * modules/unicase/u8-ct-totitle: New file.
12677
12678         New module 'unicase/u32-ct-tolower'.
12679         * lib/unicase/u32-ct-tolower.c: New file.
12680         * modules/unicase/u32-ct-tolower: New file.
12681
12682         New module 'unicase/u16-ct-tolower'.
12683         * lib/unicase/u16-ct-tolower.c: New file.
12684         * modules/unicase/u16-ct-tolower: New file.
12685
12686         New module 'unicase/u8-ct-tolower'.
12687         * lib/unicase/u8-ct-tolower.c: New file.
12688         * modules/unicase/u8-ct-tolower: New file.
12689
12690         New module 'unicase/u32-ct-toupper'.
12691         * lib/unicase/u32-ct-toupper.c: New file.
12692         * modules/unicase/u32-ct-toupper: New file.
12693
12694         New module 'unicase/u16-ct-toupper'.
12695         * lib/unicase/u16-ct-toupper.c: New file.
12696         * modules/unicase/u16-ct-toupper: New file.
12697
12698         New module 'unicase/u8-ct-toupper'.
12699         * lib/unicase/u8-ct-toupper.c: New file.
12700         * modules/unicase/u8-ct-toupper: New file.
12701
12702         Add context arguments to u*_casemap functions.
12703         * lib/unicase/unicasemap.h: Include unicase.h.
12704         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12705         suffix_context arguments.
12706         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12707         functions.
12708         (FUNC): Add prefix_context and suffix_context arguments. Use
12709         uc_is_cased and uc_is_case_ignorable.
12710         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12711         * lib/unicase/u16-casemap.c: Likewise.
12712         * lib/unicase/u32-casemap.c: Likewise.
12713         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12714         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12715         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12716         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12717         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12718         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12719
12720         New module 'unicase/u32-suffix-context'.
12721         * lib/unicase/u32-suffix-context.c: New file.
12722         * modules/unicase/u32-suffix-context: New file.
12723
12724         New module 'unicase/u16-suffix-context'.
12725         * lib/unicase/u16-suffix-context.c: New file.
12726         * modules/unicase/u16-suffix-context: New file.
12727
12728         New module 'unicase/u8-suffix-context'.
12729         * lib/unicase/u8-suffix-context.c: New file.
12730         * lib/unicase/u-suffix-context.h: New file.
12731         * modules/unicase/u8-suffix-context: New file.
12732
12733         New module 'unicase/empty-suffix-context'.
12734         * lib/unicase/empty-suffix-context.c: New file.
12735         * modules/unicase/empty-suffix-context: New file.
12736
12737         New module 'unicase/u32-prefix-context'.
12738         * lib/unicase/u32-prefix-context.c: New file.
12739         * modules/unicase/u32-prefix-context: New file.
12740
12741         New module 'unicase/u16-prefix-context'.
12742         * lib/unicase/u16-prefix-context.c: New file.
12743         * modules/unicase/u16-prefix-context: New file.
12744
12745         New module 'unicase/u8-prefix-context'.
12746         * lib/unicase/u8-prefix-context.c: New file.
12747         * lib/unicase/u-prefix-context.h: New file.
12748         * lib/unicase/context.h: New file.
12749         * modules/unicase/u8-prefix-context: New file.
12750
12751         New module 'unicase/empty-prefix-context'.
12752         * lib/unicase/empty-prefix-context.c: New file.
12753         * modules/unicase/empty-prefix-context: New file.
12754
12755         New module 'unicase/ignorable'.
12756         * lib/unicase/ignorable.c: New file.
12757         * modules/unicase/ignorable: New file.
12758
12759         New module 'unicase/cased'.
12760         * lib/unicase/caseprop.h: New file.
12761         * lib/unicase/cased.c: New file.
12762         * modules/unicase/cased: New file.
12763
12764         New functions for case mapping of substrings.
12765         * lib/unicase.h (casing_prefix_context_t): New type.
12766         (unicase_empty_prefix_context): New variable.
12767         (u8_casing_prefix_context, u16_casing_prefix_context,
12768         u32_casing_prefix_context, u8_casing_prefixes_context,
12769         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12770         declarations.
12771         (casing_suffix_context_t): New type.
12772         (unicase_empty_suffix_context): New variable.
12773         (u8_casing_suffix_context, u16_casing_suffix_context,
12774         u32_casing_suffix_context, u8_casing_suffixes_context,
12775         u16_casing_suffixes_context, u32_casing_suffixes_context,
12776         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12777         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12778         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12779         declarations.
12780
12781 2009-06-28  Jim Meyering  <meyering@redhat.com>
12782
12783         boostrap: indent only with spaces
12784         * build-aux/bootstrap: Indent only with spaces, never TABs.
12785
12786         bootstrap: split long lines
12787         * build-aux/bootstrap: Keep line length < 80.
12788
12789         bootstrap: sync from coreutils
12790         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12791         just as autoreconf does.  Verify a list of prerequisite
12792         package-name,version-number pairs if defined in bootstrap.conf.
12793         Refer to README-prereq, if prerequisites are not satisfied.
12794
12795 2009-06-27  Eric Blake  <ebb9@byu.net>
12796
12797         tests: add test for bogus NULL definition
12798         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12799         * tests/test-stdlib.c: Likewise.
12800         * tests/test-string.c: Likewise.
12801         * tests/test-locale.c: Likewise.
12802         * tests/test-unistd.c: Likewise.
12803         * modules/stdio-tests (Depends-on): Add verify.
12804         * modules/stdlib-tests (Depends-on): Likewise.
12805         * modules/string-tests (Depends-on): Likewise.
12806         * modules/locale-tests (Depends-on): Likewise.
12807         * modules/unistd-tests (Depends-on): Likewise.
12808
12809 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12810
12811         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12812         self-explaining comment.
12813         * m4/selinux-selinux-h: Update serial.
12814         (gl_LIBSELINUX): New macro, adding a warning for missing development
12815         packages to code extracted from...
12816         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12817         Add warning for missing development packages here, too.
12818
12819 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12820
12821         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12822
12823 2009-06-25  Eric Blake  <ebb9@byu.net>
12824
12825         version-etc: fix regression
12826         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12827         gcc.
12828         (version_etc): Use it, to catch bugs with trailing NULL.
12829         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12830         (version_etc_va): Fix logic bug.
12831         * modules/version-etc-tests: Add test.
12832         * tests/test-version-etc.c: New file.
12833         * tests/test-version-etc.sh: Likewise.
12834
12835 2009-06-25  Sam Steingold  <sds@gnu.org>
12836
12837         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12838         mbtowc declaration.
12839
12840 2009-06-25  Eric Blake  <ebb9@byu.net>
12841
12842         fpurge: migrate into <stdio.h>
12843         * lib/fpurge.h: Delete...
12844         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12845         * lib/fpurge.c (fpurge): Change declaring header.
12846         * modules/fpurge (Files): Drop deleted file.
12847         (Depends-on): Add stdio.
12848         (configure.ac): Set witness.
12849         * modules/stdio (Makefile.am): Support fpurge macros.
12850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12852         * lib/fflush.c: Update client.
12853         * tests/test-fpurge.c: Likewise.
12854         * NEWS: Mention the change.
12855
12856 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12857
12858         * lib/argp-version-etc.c (program_authors): Add const
12859         qualifier.
12860         * lib/version-etc.c: Fix typos in the comments.
12861         * modules/argp-version-etc: Depends on version-etc.
12862
12863 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12864
12865         argp-version-etc: new module.
12866
12867         * lib/argp-version-etc.c: New file.
12868         * lib/argp-version-etc.h: New file.
12869         * modules/argp-version-etc: New file.
12870         * modules/argp-version-etc-tests: New file.
12871         * tests/test-argp-version-etc.c: New test.
12872         * tests/test-argp-version-etc-1.sh: New test.
12873
12874 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12875
12876         Provide additional interfaces and documentation for version-etc
12877         module.
12878
12879         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12880         interfaces.
12881         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12882         prototypes.
12883
12884 2009-06-24  Bruno Haible  <bruno@clisp.org>
12885
12886         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12887         HAVE_LIB${NAME} macro.
12888         Reported by Sam Steingold <sds@gnu.org>.
12889
12890 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12891
12892         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12893         needed.
12894
12895 2009-06-21  Bruno Haible  <bruno@clisp.org>
12896
12897         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12898         work.
12899         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12900         together with LIB${NAME}, LTLIB${NAME}.
12901         Reported by Sam Steingold <sds@gnu.org>.
12902
12903 2009-06-20  Jim Meyering  <meyering@redhat.com>
12904
12905         tests: make sc_require_test_exit_idiom more generic
12906         * top/maint.mk (Exit_witness_file): New overridable variable.
12907         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12908         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12909
12910 2009-06-19  Jim Meyering  <meyering@redhat.com>
12911
12912         hash: reverse order of src/dst parameters in an internal interface
12913         * lib/hash.c (transfer_entries): Reverse order of parameters to
12914         put DST before SRC.  Adjust callers.
12915
12916         tests: test-hash: avoid wholesale duplication
12917         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12918         Instead, use a loop and add a single conditional.
12919
12920         tests: test-hash: allow seed selection via a command line argument
12921         * tests/test-hash.c (get_seed): New function.
12922         (main): Use it.
12923
12924 2009-06-19  Eric Blake  <ebb9@byu.net>
12925
12926         hash: avoid memory leak on allocation failure
12927         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12928         failure.  Factor repeated algorithm...
12929         (transfer_entries): ...into new helper routine.
12930         (hash_delete): React to hash_rehash return value.
12931
12932         hash: reduce memory pressure in hash_rehash no-op case
12933         * lib/hash.c (next_prime): Avoid overflow.
12934         (hash_initialize): Factor bucket size computation...
12935         (compute_bucket_size): ...into new helper function.
12936         (hash_rehash): Use new function and open coding to reduce memory
12937         pressure, and avoid a memory leak in USE_OBSTACK code.
12938         Reported by Jim Meyering.
12939
12940 2009-06-18  Eric Blake  <ebb9@byu.net>
12941
12942         hash: make rotation more obvious
12943         * modules/hash (Depends-on): Add bitrotate and stdint.
12944         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12945         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12946         (SIZE_MAX): Rely on headers for definition.
12947         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12948         (raw_hasher): Use rotr_sz.
12949         Suggested by Jim Meyering.
12950
12951         hash: fix memory leak in last patch
12952         * lib/hash.c (hash_rehash): Avoid memory leak.
12953
12954         hash: avoid no-op rehashing
12955         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12956
12957         hash: provide default callback functions
12958         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12959         (hash_initialize): Use them as defaults.
12960         * tests/test-hash.c (main): Test this.
12961
12962         hash: minor optimization
12963         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12964         when possible.
12965         (hash_initialize): Document this promise.
12966         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12967         * tests/test-hash.c (hash_compare_strings): Test this.
12968
12969 2009-06-18  Bruno Haible  <bruno@clisp.org>
12970
12971         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12972         going to be replaced anyway.
12973
12974 2009-06-18  Bruno Haible  <bruno@clisp.org>
12975
12976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12977         in one place.
12978         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12979         be replaced anyway.
12980
12981 2009-06-18  Eric Blake  <ebb9@byu.net>
12982
12983         hash: check for resize before insertion
12984         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12985         threshold before insertion, so that a pathological hash_rehash
12986         that fills every bucket can still trigger another rehash.
12987
12988 2009-06-18  Jim Meyering  <meyering@redhat.com>
12989
12990         hash-tests: add a loop around the small tests
12991         * tests/test-hash.c (main): Repeat small tests with selected
12992         small initial table sizes.
12993
12994 2009-06-17  Eric Blake  <ebb9@byu.net>
12995
12996         hash: minor cleanups
12997         * lib/hash.h (hash_entry): Make opaque, by moving...
12998         * lib/hash.c (hash_entry): ...here.
12999         (hash_insert): Clarify restrictions on what can be inserted.
13000         (hash_get_next): Clarify when it is safe to remove an element
13001         during traversal.
13002         (check_tuning): Skip verification when tuning is known safe.
13003         (hash_initialize): Clarify restrictions on tuning.
13004
13005 2009-06-17  Jim Meyering  <jim@meyering.net>
13006         and Eric Blake  <ebb9@byu.net>
13007
13008         hash-tests: new module
13009         * modules/hash-tests: New file.
13010         * tests/test-hash.c: New file.
13011
13012 2009-06-17  Eric Blake  <ebb9@byu.net>
13013
13014         strstr-simple: document new module
13015         * MODULES.html.sh: Document new module.
13016
13017         strstr, strcasestr: replace on platforms with broken memchr
13018         * modules/strstr: Split into...
13019         * modules/strstr-simple: ...new module that does not care about
13020         performance, but does care about glibc bug.
13021         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13022         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13023         if platform memchr is broken, per Debian bug 521737.
13024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13025         memchr.
13026         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13027         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13028         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13029         * modules/mountlist (Depends-on): Add strstr-simple.
13030         * modules/gen-uni-tables (Depends-on): Likewise.
13031         * modules/argz (Depends-on): Add strstr.
13032
13033 2009-06-17  Bruno Haible  <bruno@clisp.org>
13034
13035         * modules/posix_spawn-internal (Depends-on): Add errno.
13036
13037 2009-06-17  Bruno Haible  <bruno@clisp.org>
13038
13039         Define missing ESTALE on Interix 3.5.
13040         * lib/errno.in.h (ESTALE): Assign a value if missing.
13041         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13043         missing.
13044         * doc/posix-headers/errno.texi: Mention the Interix bug.
13045         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13046
13047 2009-06-15  Eric Blake  <ebb9@byu.net>
13048
13049         memchr, memchr2: add valgrind exception
13050         * lib/memchr.valgrind: New file.
13051         * lib/memchr2.valgrind: New file.
13052         * modules/memchr (Files): Distribute valgrind file.
13053         * modules/memchr2 (Files): Likewise.
13054
13055         docs: memchr is no longer obsolete
13056         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13057         * lib/string.in.h (memchr): Simplify logic.
13058
13059 2009-06-14  Jim Meyering  <meyering@redhat.com>
13060
13061         link-follow: fix the "checking..." message to not mention trailing slash
13062         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13063         never considered trailing slashes.
13064
13065 2009-06-14  Bruno Haible  <bruno@clisp.org>
13066
13067         * m4/memchr.m4: Mention also the bug on IA-64.
13068         * doc/posix-functions/memchr.texi: Likewise.
13069
13070 2009-06-12  Eric Blake  <ebb9@byu.net>
13071
13072         memchr: detect broken x86_64 and alpha implementations
13073         * modules/memchr-tests (Depends-on): Move mmap detection...
13074         * modules/memchr (Depends-on): ...here.
13075         (configure.ac): Set indicator.
13076         * lib/string.in.h (memchr): Declare replacement.
13077         * modules/string (Makefile.am): Trigger replacement.
13078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13079         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13080         bugs.
13081         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13082         * modules/getpagesize (License): Relax license.
13083
13084 2009-06-11  Bruno Haible  <bruno@clisp.org>
13085
13086         * lib/idpriv.h: Add more references.
13087
13088 2009-06-08  Bruno Haible  <bruno@clisp.org>
13089
13090         Tests for module 'idpriv-droptemp'.
13091         * modules/idpriv-droptemp-tests: New file.
13092         * tests/test-idpriv-droptemp.sh: New file.
13093         * tests/test-idpriv-droptemp.su.sh: New file.
13094         * tests/test-idpriv-droptemp.c: New file.
13095
13096         New module 'idpriv-droptemp'.
13097         * lib/idpriv-droptemp.c: New file.
13098         * modules/idpriv-droptemp: New file.
13099
13100 2009-06-08  Bruno Haible  <bruno@clisp.org>
13101
13102         Tests for module 'idpriv-drop'.
13103         * modules/idpriv-drop-tests: New file.
13104         * tests/test-idpriv-drop.sh: New file.
13105         * tests/test-idpriv-drop.su.sh: New file.
13106         * tests/test-idpriv-drop.c: New file.
13107
13108         New module 'idpriv-drop'.
13109         * lib/idpriv.h: New file.
13110         * lib-idpriv-drop.c: New file.
13111         * m4/idpriv.m4: New file.
13112         * modules/idpriv-drop: New file.
13113
13114 2009-06-08  Bruno Haible  <bruno@clisp.org>
13115
13116         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13123
13124 2009-06-08  Eric Blake  <ebb9@byu.net>
13125
13126         test-strstr: use memory fence, when possible
13127         * tests/test-strstr.c (main): Use memory fence, in order to be
13128         more likely to trigger Debian bug 521737.
13129         * modules/strstr-tests (Files): Pull in additional files.
13130
13131         memchr: no longer obsolete, for wider field testing
13132         * modules/memchr (Status, Notice): Delete, this module is no
13133         longer obsolete.
13134         * modules/vasnprintf (Depends-on): Add memchr.
13135
13136 2009-06-07  Jim Meyering  <meyering@redhat.com>
13137
13138         hash: declare some functions with the warn_unused_result attribute
13139         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13140
13141 2009-06-07  Bruno Haible  <bruno@clisp.org>
13142
13143         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13144         Reported by Eric Blake.
13145
13146 2009-06-06  Eric Blake  <ebb9@byu.net>
13147
13148         test-alignof: fix typo with long double
13149         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13150         compiler error.
13151
13152 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13153
13154         Escape non-texinfo { and }s.
13155         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13156         markup error.
13157
13158 2009-06-04  Jim Meyering  <meyering@redhat.com>
13159
13160         gitlog-to-changelog: don't infloop on an empty commit log
13161         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13162         Reported by Boris Petersen <transacid@centerim.org>.
13163
13164 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13165
13166         version-etc: extend for packagers
13167         Add three new configure options, intended for packagers:
13168           --with-packager="packager name"
13169           --with-packager-version="packager-specific version"
13170           --with-packager-bug-reports="packager bug reporting"
13171         An example with coreutils:
13172           $ ./configure \
13173             --with-packager=Gentoo \
13174             --with-packager-bug-report=http://bugs.gentoo.org/ \
13175             --with-packager-version="patchset 1.6"
13176           $ ./src/ls --version | head -n2
13177           ls (GNU coreutils) 7.1-dirty
13178           Packaged by Gentoo (patchset 1.6)
13179         Note that the bug reporting info via --help doesn't show up because
13180         coreutils uses its own custom emit_bug_reporting_address() implementation
13181         in src/system.h.  If it didn't, it'd look like:
13182           $ ./src/ls --help | tail -n4
13183           Report bugs to <bug-coreutils@gnu.org>.
13184           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13185           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13186           General help using GNU software: <http://www.gnu.org/gethelp/>.
13187         * lib/version-etc.c: Print new information, if provided.
13188         * m4/version-etc.m4: New file.
13189         * modules/version-etc (Files): Add m4/version-etc.m4.
13190         (configure.ac): Add gl_VERSION_ETC.
13191
13192 2009-05-31  Bruno Haible  <bruno@clisp.org>
13193
13194         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13195         and 'int64_t'.
13196         * modules/alignof-tests (Dependencies): Add stdint.
13197         Reported by Eric Blake.
13198
13199 2009-05-31  Bruno Haible  <bruno@clisp.org>
13200
13201         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13202         restriction due to compiler bugs.
13203         Reported by Eric Blake.
13204
13205 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13206             Bruno Haible  <bruno@clisp.org>
13207
13208         Fix test-alignof failure.
13209         * lib/alignof.h (alignof_slot): New macro.
13210         (alignof_type): New macro, with the same semantics as the previous
13211         'alignof'.
13212         (alignof): Alias to alignof_slot.
13213         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13214         check that the results are usable as constant expressions.
13215
13216 2009-05-31  Bruno Haible  <bruno@clisp.org>
13217
13218         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13219         * tests/test-memchr.c (main): Check that memchr does not read past the
13220         first occurrence of the byte.
13221         * tests/test-strstr.c (main): Update comment.
13222         Suggested by Eric Blake.
13223
13224 2009-05-30  Bruno Haible  <bruno@clisp.org>
13225
13226         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13227         detail how to use dumpbin.
13228         Reported by David Byron <dbyron@dbyron.com>.
13229
13230 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13231
13232         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13233
13234 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13235
13236         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13237
13238 2009-05-28  Bruno Haible  <bruno@clisp.org>
13239
13240         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13241         build-aux/ files.
13242
13243 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13244
13245         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13246
13247 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13248
13249         * gnulib-tool (sed_transform_main_lib_file)
13250         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13251         regexps.
13252
13253 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13254
13255         * tests/test-strstr.c: Add another self-test.
13256         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13257         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13258
13259 2009-05-23  Bruno Haible  <bruno@clisp.org>
13260
13261         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13262         change.
13263
13264 2009-05-21  Bruno Haible  <bruno@clisp.org>
13265
13266         Simplify use of mode_t varargs.
13267         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13268         uses 'mode_t' or 'int'.
13269         * lib/openat.c (openat): Likewise.
13270         * lib/open-safer.c (open_safer): Likewise.
13271         * m4/mode_t.m4: New file.
13272         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13273         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13275         * modules/open (Files): Add m4/mode_t.m4.
13276         * modules/openat (Files): Likewise.
13277         * modules/fcntl-safer (Files): Likewise.
13278         Suggested by Eric Blake.
13279
13280 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13281
13282         * doc/glibc-functions/fallocate.texi: New file.
13283         * doc/gnulib.texi: Include it.
13284
13285 2009-05-21  Eric Blake  <ebb9@byu.net>
13286             Bruno Haible  <bruno@clisp.org>
13287
13288         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13289         invocations.
13290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13291
13292 2009-05-21  Eric Blake  <ebb9@byu.net>
13293             Bruno Haible  <bruno@clisp.org>
13294
13295         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13296         include_next. Fix of 2008-11-20 commit.
13297         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13298         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13299         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13300         NEXT_MATH_H.
13301         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13302         instead of NEXT_MATH_H.
13303
13304 2009-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         Avoid redefinition warnings for SIZE_MAX.
13307         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13308         Reported by Simon Josefsson.
13309
13310 2009-05-21  Bruno Haible  <bruno@clisp.org>
13311
13312         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13313         AC_CACHE_VAL.
13314
13315 2009-05-20  Bruno Haible  <bruno@clisp.org>
13316
13317         Make zeroptr.h work on mingw.
13318         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13319         mprotect.
13320         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13321         * modules/memchr2-tests (configure.ac): Likewise.
13322         * modules/memcmp-tests (configure.ac): Likewise.
13323         * modules/memmem-tests (configure.ac): Likewise.
13324         * modules/memrchr-tests (configure.ac): Likewise.
13325         Reported by Simon Josefsson.
13326
13327 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13328
13329         * tests/test-glob.c: Include string.h for strcmp prototype.
13330
13331 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13332
13333         * modules/getdelim (Depends-on): Add explicit stdint, although it
13334         was implicitly already pulled in via realloc-posix.
13335         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13336
13337 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13338
13339         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13340         G. Christensen" <tgc@jupiterrise.com>.
13341         * m4/sys_socket_h.m4: Check for sa_family_t.
13342         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13343         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13344         * tests/test-sys_socket.c: Check that sa_family_t works.
13345
13346 2009-05-18  Eric Blake  <ebb9@byu.net>
13347
13348         maint.mk: allow gnulib_dir in VPATH build
13349         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13350
13351 2009-05-15  Jim Meyering  <meyering@redhat.com>
13352
13353         maint.mk: Give gnulib_dir a default definition.
13354         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13355         Thus, most packages no longer need to specify this variable in cfg.mk
13356
13357 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13358
13359         rename.m4: fix typos that would make non-mingw cross-configure fail
13360         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13361
13362 2009-05-13  Eric Blake  <ebb9@byu.net>
13363
13364         mmap-anon: avoid out-of-order autoconf expansion
13365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13366         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13367         * modules/memchr-tests (Depends-on): Add extensions.
13368         * modules/memchr2-tests (Depends-on): Add extensions.
13369         * modules/memcmp-tests (Depends-on): Add extensions.
13370         * modules/memmem-tests (Depends-on): Add extensions.
13371         * modules/memrchr-tests (Depends-on): Add extensions.
13372
13373 2009-05-13  Bruno Haible  <bruno@clisp.org>
13374
13375         Make some tests ISO C 99 compliant.
13376         * tests/zerosize-ptr.h: New file.
13377         * tests/test-memchr.c: Include zerosize-ptr.h.
13378         (main): Use a zero-size object pointer instead of NULL.
13379         * tests/test-memchr2.c: Include zerosize-ptr.h.
13380         (main): Use a zero-size object pointer instead of NULL.
13381         * tests/test-memcmp.c: Include zerosize-ptr.h.
13382         (main): Use a zero-size object pointer instead of NULL.
13383         * tests/test-memmem.c: Include zerosize-ptr.h.
13384         (main): Use a zero-size object pointer instead of NULL.
13385         * tests/test-memrchr.c: Include zerosize-ptr.h.
13386         (main): Use a zero-size object pointer instead of NULL.
13387         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13388         m4/mmap-anon.m4.
13389         (Depends-on): Add getpagesize.
13390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13391         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13392         m4/mmap-anon.m4.
13393         (Depends-on): Add getpagesize.
13394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13395         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13396         m4/mmap-anon.m4.
13397         (Depends-on): Add getpagesize.
13398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13399         * modules/memmem-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/memrchr-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
13408 2009-05-12  Bruno Haible  <bruno@clisp.org>
13409
13410         Tests for module 'alignof'.
13411         * modules/alignof-tests: New file.
13412         * tests/test-alignof.c: New file.
13413
13414 2009-05-12  Bruno Haible  <bruno@clisp.org>
13415
13416         Fix alignof macro.
13417         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13418         vendor compilers that are always correct.
13419
13420 2009-05-12  Bruno Haible  <bruno@clisp.org>
13421
13422         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13423         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13424         not whether its fully works.
13425
13426 2009-05-12  Bruno Haible  <bruno@clisp.org>
13427
13428         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13429
13430 2009-05-12  Jim Meyering  <meyering@redhat.com>
13431
13432         * top/maint.mk: Adjust backslash alignment.
13433
13434 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13435
13436         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13437
13438 2009-05-11  Eric Blake  <ebb9@byu.net>
13439
13440         argp: avoid undefined behavior
13441         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13442         macros.
13443
13444 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13445
13446         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13447         user.name to prevent git commit from complaining.
13448
13449 2009-05-10  Bruno Haible  <bruno@clisp.org>
13450
13451         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13452         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13453         it rewrites every file name only once.
13454         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13455
13456 2009-05-08  Bruno Haible  <bruno@clisp.org>
13457
13458         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13459         instead of 'max'.
13460
13461 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13462
13463         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13464         sockaddr_storage test.
13465
13466 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13467
13468         * modules/sys_socket (Makefile.am): Substitute
13469         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13470         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13471         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13472         * tests/test-sys_socket.c: Check sockaddr_storage.
13473
13474 2009-05-08  Bruno Haible  <bruno@clisp.org>
13475
13476         New module 'alignof'.
13477         * lib/alignof.h: New file.
13478         * modules/alignof: New file.
13479
13480 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13481             Bruno Haible  <bruno@clisp.org>
13482
13483         Fix test-file-has-acl on FreeBSD.
13484         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13485         mask is implicitly added.
13486         * tests/test-file-has-acl.c: Include <signal.h>.
13487         (main): Terminate the test after 5 seconds.
13488         * modules/acl-tests (configure.ac): Check for alarm function.
13489
13490 2009-05-04  Bruno Haible  <bruno@clisp.org>
13491
13492         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13493         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13494         * modules/errno (configure.ac): Drop AC_REQUIRE.
13495         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13496         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13497
13498 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13499
13500         * modules/glob-tests: New module.
13501         * tests/test-glob.c: Add.
13502
13503 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13504
13505         * modules/fnmatch-tests: New module.
13506         * tests/test-fnmatch.c: Add.
13507
13508 2009-05-04  Eric Blake  <ebb9@byu.net>
13509
13510         maint: make the new no-submodule-changes rule VPATH-safe
13511         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13512
13513 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13514             Bruno Haible  <bruno@clisp.org>
13515
13516         acl: Fix infinite loop on FreeBSD.
13517         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13518         of return value from acl_get_entry.
13519         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13520         Likewise.
13521
13522 2009-05-03  Bruno Haible  <bruno@clisp.org>
13523
13524         * lib/acl-internal.h (acl_entries): Clarify return value.
13525         * lib/acl_entries.c (acl_entries): Likewise.
13526
13527 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13528
13529         Bug fix in acl module.
13530         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13531
13532 2009-05-03  Bruno Haible  <bruno@clisp.org>
13533
13534         Create gperf-generated file in the source dir, not in the build dir.
13535         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13536         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13537         * modules/unicase/locale-language (unicase/locale-languages.h):
13538         Likewise.
13539         * modules/unicase/special-casing (unicase/special-casing-table.h):
13540         Likewise.
13541         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13542         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13543         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13544         Reported by Ralf Wildenhues.
13545
13546 2009-05-03  Bruno Haible  <bruno@clisp.org>
13547
13548         * modules/fnmatch (Description, configure.ac): Taken from
13549         fnmatch-posix.
13550         * modules/fnmatch-posix: Turn into a symbolic reference to the
13551         'fnmatch' module, and deprecate.
13552         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13553
13554 2009-05-03  Bruno Haible  <bruno@clisp.org>
13555
13556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13557         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13558         Reported by Ralf Wildenhues.
13559
13560 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13561
13562         * m4/fnmatch.m4: Fix fnmatch re-define.
13563
13564 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13565
13566         priv-set: new module and tests; adapt write-any-file
13567         * lib/priv-set.c: New file.
13568         * lib/priv-set.h: New file.
13569         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13570         * lib/write-any-file.c: Simplify by using priv-set module.
13571         * m4/priv-set.m4: New file.
13572         * modules/priv-set: New file.
13573         * modules/unlinkdir: Add dependency on priv-set module.
13574         * modules/write-any-file: Likewise.
13575
13576         Tests for module 'priv-set'.
13577         * modules/priv-set-tests: New file.
13578         * tests/test-priv-set.c: New file.
13579
13580 2009-05-03  Jim Meyering  <meyering@redhat.com>
13581             Bruno Haible  <bruno@clisp.org>
13582
13583         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13584         use the converted UTF-8 variant of the name instead.
13585
13586 2009-05-03  Jim Meyering  <meyering@redhat.com>
13587
13588         tests: tighten some getdate tests
13589         * tests/test-getdate.c (main): Tighten tests: require equality,
13590         not just greater than.  Set TZ envvar to UTC0.
13591
13592 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13593
13594         getdate: correctly interpret "next monday" when run on a Monday
13595         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13596         that e.g., "next tues" (when run on a tuesday) results in a date
13597         that is one week in the future, and not today's date.
13598         I.e., add a week when the wday is the same as the current one.
13599         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13600         and earlier by Martin Bernreuther and Jan Minář.
13601         * tests/test-getdate.c (main): Check that "next DAY" is always in
13602         the future and that "last DAY" is always in the past.
13603
13604 2009-05-02  Jim Meyering  <meyering@redhat.com>
13605
13606         build: ensure that a release build fails when a submodule is unclean
13607         * top/maint.mk (no-submodule-changes): New rule.
13608         (alpha beta major): Depend on it.
13609
13610 2009-05-02  Bruno Haible  <bruno@clisp.org>
13611
13612         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13614         shell variable gl_fnmatch_required to detect which variant is
13615         requested.
13616         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13617         gl_FUNC_FNMATCH_POSIX.
13618         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13619         exclude fnmatch-posix.
13620
13621 2009-05-02  Bruno Haible  <bruno@clisp.org>
13622
13623         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13624         * modules/mbsrtowcs (License): Change to LGPLv2+.
13625         * modules/strnlen1 (License): Likewise.
13626         Reported by Simon Josefsson.
13627
13628 2009-05-02  Bruno Haible  <bruno@clisp.org>
13629
13630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13631         "cross".
13632         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13633         gnulib-tool was called with option --source-base=lib.
13634
13635 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13636
13637         Use automake *-local hooks without commands, for extensibility.
13638         * modules/localcharset (Makefile.am): Rename install-exec-local
13639         rule to install-exec-localcharset, and make it a prerequisite of
13640         install-exec-local.  Likewise, rename the uninstall-local rule to
13641         uninstall-localcharset, and make it a prerequisite of the former.
13642
13643 2009-05-01  Bruno Haible  <bruno@clisp.org>
13644
13645         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13646         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13647         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13649         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13650         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13651         m4/locale-zh.m4, m4/codeset.m4.
13652
13653         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13654         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13655         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13656         m4/locale-zh.m4.
13657
13658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13659         REPLACE_WCRTOMB if mbstate_t must be replaced.
13660         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13661         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13662
13663 2009-05-01  Bruno Haible  <bruno@clisp.org>
13664
13665         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13666         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13667         dngettext, dcngettext, textdomain, bindtextdomain,
13668         bind_textdomain_codeset): Undefine before redefining.
13669
13670 2009-04-30  Bruno Haible  <bruno@clisp.org>
13671
13672         Fix bug introduced on 2009-04-25.
13673         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13674         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13675         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13676         is defined.
13677         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13678         is defined.
13679         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13680         is defined.
13681         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13682
13683 2009-04-28  Bruno Haible  <bruno@clisp.org>
13684
13685         Comment tweaks.
13686         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13687         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13688         * lib/unicase.h (u*_casexfrm): Likewise.
13689         Reported by Paolo Bonzini.
13690
13691 2009-04-28  Bruno Haible  <bruno@clisp.org>
13692
13693         Fix a compilation error.
13694         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13695         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13696         Reported by Jim Meyering.
13697
13698 2009-04-27  Bruno Haible  <bruno@clisp.org>
13699
13700         New module 'libunistring'.
13701         * modules/libunistring: New file.
13702         * m4/libunistring.m4: New file.
13703         * MODULES.html.sh (Unicode string functions): Add it.
13704
13705 2009-04-27  Eric Blake  <ebb9@byu.net>
13706
13707         maint.mk: allow package-specific header to provide <config.h>
13708         * top/maint.mk (sc_require_config_h): New variable.
13709         (sc_require_config_h, sc_require_config_h_first): Use it.
13710
13711 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13712
13713         * top/maint.mk (sc_avoid_if_before_free): Except
13714         useless-if-before-free script.
13715
13716 2009-04-27  Eric Blake  <ebb9@byu.net>
13717
13718         maintainer-makefile: depend on all required helper scripts
13719         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13720         useless-if-before-free.
13721         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13722         version, rather than assuming gnulib checkout is available.
13723         Reported by Simen Josefsson.
13724
13725 2009-04-26  Bruno Haible  <bruno@clisp.org>
13726
13727         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13728         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13729         "../" or "..".
13730
13731 2009-04-26  Bruno Haible  <bruno@clisp.org>
13732
13733         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13734         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13735         AC_LIB_HAVE_LINKFLAGS.
13736
13737 2009-04-26  Bruno Haible  <bruno@clisp.org>
13738
13739         Simplify calling convention of u*_conv_from_encoding.
13740         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13741         u32_conv_from_encoding): Expect a resultbuf argument and return the
13742         result directly as a pointer.
13743         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13744         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13745         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13746         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13747         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13748         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13749         Update.
13750         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13751         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13752         * lib/vasnprintf.c (VASNPRINTF): Update.
13753         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13754         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13755         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13756         * NEWS: Mention the change.
13757
13758 2009-04-26  Bruno Haible  <bruno@clisp.org>
13759
13760         Simplify calling convention of u*_conv_to_encoding.
13761         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13762         u32_conv_to_encoding): Expect a resultbuf argument and return the
13763         result directly as a pointer.
13764         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13765         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13766         freeing scaled_offsets if mem_iconveha failed.
13767         * lib/unicase/u-casexfrm.h (FUNC): Update.
13768         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13769         * lib/vasnprintf.c (VASNPRINTF): Update.
13770         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13771         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13772         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13773         * NEWS: Mention the change.
13774
13775 2009-04-26  Bruno Haible  <bruno@clisp.org>
13776
13777         Avoid test failures on AIX and OSF/1.
13778         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13779         malloc(0).
13780         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13781         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13782         Likewise.
13783         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13784         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13785         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13786         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13787         * doc/posix-functions/malloc.texi: Document the portability problem
13788         related to malloc(0).
13789
13790 2009-04-26  Bruno Haible  <bruno@clisp.org>
13791
13792         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13793         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13794         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13795
13796 2009-04-25  Bruno Haible  <bruno@clisp.org>
13797
13798         Avoid link error when creating a namespace clean library.
13799         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13800         as macro with arguments if already defined as an alias.
13801         * lib/signbitf.c (gl_signbitf): Don't undefine.
13802         * lib/signbitd.c (gl_signbitd): Don't undefine.
13803         * lib/signbitl.c (gl_signbitl): Don't undefine.
13804
13805 2009-04-25  Jim Meyering  <meyering@redhat.com>
13806
13807         vc-list-files: fix another quoting bug
13808         * build-aux/vc-list-files: Avoid sed backslash expansion
13809         of pathological directory names.
13810
13811 2009-04-25  Eric Blake  <ebb9@byu.net>
13812
13813         vc-list-files: fix shell quoting error
13814         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13815         timestamp.
13816
13817 2009-04-25  Jim Meyering  <meyering@redhat.com>
13818
13819         vc-list-files: restore lost functionality with subdir argument
13820         * build-aux/vc-list-files: When given a non-"." sub-directory
13821         argument, substitute the $dir/ prefix back onto each resulting name.
13822         Otherwise, coreutils' root_tests check would fail.
13823
13824 2009-04-24  Eric Blake  <ebb9@byu.net>
13825
13826         vc-list-files: ignore git symlinks
13827         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13828         than ls-files, to ignore git symlinks.
13829
13830         maint.mk: import improvements from m4
13831         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13832         (move_if_change): Delete unused macro.
13833         (news-date-check, vc-diff-check): Support VPATH builds.
13834         (announcement): Likewise.  Split --bootstrap-tools list...
13835         (boostrap-tools): ...into separate list, which can be overridden
13836         in cfg.mk.
13837         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13838         requiring dependency on useless-if-before-free module.
13839         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13840         Support VPATH builds.
13841
13842 2009-04-24  Jim Meyering  <meyering@redhat.com>
13843
13844         maint.mk: remove coreutils-specific rules and variables
13845         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13846         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13847         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13848
13849         maint.mk: remove obsolete rule
13850         * top/maint.mk (rel-check): Remove rule.
13851         (WGET, WGETFLAGS): Remove now-unused variables.
13852
13853 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13854
13855         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13856         consistency.
13857
13858         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13859         '$(PATH_SEPARATOR)' instead of ':'.
13860
13861 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13862
13863         * lib/getopt1.c (main): Use 'const' for static array.
13864
13865 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13866
13867         * top/maint.mk: Sync with coreutils.
13868         * NEWS: Explain incompatibilities.
13869
13870 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13871             Bruno Haible  <bruno@clisp.org>
13872
13873         Fix cross-compilation results.
13874         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13875         statement, as third argument of AC_TRY_RUN.
13876         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13877         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13878         Likewise.
13879         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13880         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13881         Likewise.
13882         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13884         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13885
13886 2009-04-20  Bruno Haible  <bruno@clisp.org>
13887
13888         Avoid test failure on mingw.
13889         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13890
13891 2009-04-20  Bruno Haible  <bruno@clisp.org>
13892
13893         Avoid compilation error on mingw.
13894         * modules/localename-tests (Depends-on): Add locale.
13895
13896 2009-04-19  Bruno Haible  <bruno@clisp.org>
13897
13898         Support for building a shared library on Windows platforms.
13899         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13900         (main): Test the presence of UNINORM_NFC here.
13901         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13902         (main): Test the presence of UNINORM_NFD here.
13903         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13904         (main): Test the presence of UNINORM_NFKC here.
13905         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13906         (main): Test the presence of UNINORM_NFKD here.
13907
13908 2009-04-19  Bruno Haible  <bruno@clisp.org>
13909
13910         Avoid a compiler warning.
13911         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13912         Change type of variable 'sequence'.
13913
13914 2009-04-19  Bruno Haible  <bruno@clisp.org>
13915
13916         * modules/configmake (Makefile.am): When the contents of configmake.h
13917         does not change, arrange to preserve its modification time.
13918
13919 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13920
13921         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13922         gettext domain.
13923
13924 2009-04-16  Jim Meyering  <meyering@redhat.com>
13925
13926         useless-if-before-free: improve conversion code
13927         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13928         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13929
13930 2009-04-14  Bruno Haible  <bruno@clisp.org>
13931
13932         * modules/fcntl (Depends-on): Add extensions.
13933         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13934
13935 2009-04-12  Ben Pfaff  <blp@gnu.org>
13936
13937         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13938         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13939
13940 2009-03-20  Ben Pfaff  <blp@gnu.org>
13941
13942         Make rename replace existing destinations on Windows.
13943         * m4/rename.m4: Add test for Mingw.
13944         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13945         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13946         * doc/posix-functions/rename.texi: Document.
13947
13948 2009-04-10  Bruno Haible  <bruno@clisp.org>
13949
13950         New include file "iconveh.h".
13951         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13952         * lib/striconveh.h: Include it.
13953         (enum iconv_ilseq_handler): Remove definition.
13954         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13955         striconveh.h.
13956         * lib/striconveha.c: Include striconveh.h.
13957         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13958         * modules/striconveh (Files): Add lib/iconveh.h.
13959         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13960         lib/striconveh.h.
13961
13962 2009-04-10  Bruno Haible  <bruno@clisp.org>
13963
13964         * lib/uniconv.h: Update comment.
13965
13966 2009-04-10  Bruno Haible  <bruno@clisp.org>
13967
13968         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13969         always.
13970         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13971         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13972         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13973         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13974         "unistring-notinline.h", so that the function gets defined always.
13975         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13976         * lib/unistr/u8-uctomb.c: Likewise.
13977         * lib/unistr/u16-mbtouc.c: Likewise.
13978         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13979         * lib/unistr/u16-uctomb.c: Likewise.
13980         * lib/unistr/u32-mbtouc.c: Likewise.
13981         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13982         * lib/unistr/u32-uctomb.c: Likewise.
13983
13984 2009-04-10  Bruno Haible  <bruno@clisp.org>
13985
13986         Mark 'utime' obsolete.
13987         * modules/utime (Status, Notice): New sections.
13988         Suggested by Jim Meyering.
13989
13990         Fix cross-compile guess for utime test.
13991         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13992         autoconf.
13993         * doc/posix-functions/utime.texi: Give more precisions.
13994         Reported by Jan <ipif@ymail.com>.
13995
13996 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13997
13998         filevercmp: correct today's change
13999         * lib/filevercmp.c: Also handle coreutils' test inputs.
14000         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14001
14002         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14003         for reporting it.
14004         * lib/filevercmp.c: Special handle for "", "." and "..".
14005         * tests/test-filevercmp.c: Enlarge the set suite.
14006
14007 2009-04-07  Jim Meyering  <meyering@redhat.com>
14008
14009         useless-if-before-free: show how to remove braced useless free, too
14010         * build-aux/useless-if-before-free: still only in a comment, though.
14011
14012 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14013
14014         maint.mk: import changes to syntax-check macros from coreutils
14015         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14016         Use them in the relevant macros.
14017
14018 2009-04-06  Bruno Haible  <bruno@clisp.org>
14019
14020         Fix unportable use of bit-fields.
14021         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14022         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14023         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14024
14025 2009-04-06  Bruno Haible  <bruno@clisp.org>
14026
14027         Avoid test failures on AIX and OSF/1.
14028         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14029         that malloc(0) = NULL.
14030         * tests/unicase/test-u8-tolower.c (check): Likewise.
14031         * tests/unicase/test-u8-totitle.c (check): Likewise.
14032         * tests/unicase/test-u8-toupper.c (check): Likewise.
14033         * tests/unicase/test-u16-casefold.c (check): Likewise.
14034         * tests/unicase/test-u16-tolower.c (check): Likewise.
14035         * tests/unicase/test-u16-totitle.c (check): Likewise.
14036         * tests/unicase/test-u16-toupper.c (check): Likewise.
14037         * tests/unicase/test-u32-casefold.c (check): Likewise.
14038         * tests/unicase/test-u32-tolower.c (check): Likewise.
14039         * tests/unicase/test-u32-totitle.c (check): Likewise.
14040         * tests/unicase/test-u32-toupper.c (check): Likewise.
14041         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14042         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14043         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14044         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14045         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14046         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14047         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14048         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14049         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14050         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14051         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14052         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14053
14054 2009-04-05  Bruno Haible  <bruno@clisp.org>
14055
14056         Work around an autoconf limitation.
14057         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14058         comment line if it would be longer than 3 KB.
14059
14060 2009-04-05  Bruno Haible  <bruno@clisp.org>
14061
14062         Avoid test failure with libiconv-1.13.
14063         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14064         of the expected test results.
14065
14066 2009-04-05  Bruno Haible  <bruno@clisp.org>
14067
14068         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14069         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14070         that it should be installed.
14071
14072 2009-04-05  Bruno Haible  <bruno@clisp.org>
14073
14074         * gnulib-tool: New option --copy-file.
14075         (func_usage): Document it.
14076         (func_dest_tmpfilename): Moved out of func_import.
14077         (func_add_file, func_update_file): New functions, extracted from
14078         func_import.
14079         (func_import): Update.
14080
14081 2009-04-05  Karl Berry  <karl@gnu.org>
14082
14083         * README: prominently mention gnulib-tool.
14084         Rearrange sections so getting the code is near the top.
14085
14086 2009-04-05  Bruno Haible  <bruno@clisp.org>
14087
14088         * lib/unicase.h: Mention u*_cmp2.
14089         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14090         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14091         * lib/unicase/ulc-casecmp.c: Likewise.
14092         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14093         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14094         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14095         unistr/u8-cmp.
14096         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14097         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14098         unistr/u16-cmp.
14099         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14100         unistr/u32-cmp.
14101
14102         * lib/uninorm.h: Mention u*_cmp2.
14103         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14104         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14105         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14106         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14107         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14108         unistr/u8-cmp.
14109         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14110         unistr/u16-cmp.
14111         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14112         unistr/u32-cmp.
14113
14114         New module 'unistr/u32-cmp2'.
14115         * lib/unistr/u32-cmp2.c: New file.
14116         * modules/unistr/u32-cmp2: New file.
14117
14118         New module 'unistr/u16-cmp2'.
14119         * lib/unistr/u16-cmp2.c: New file.
14120         * modules/unistr/u16-cmp2: New file.
14121
14122         New module 'unistr/u8-cmp2'.
14123         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14124         * lib/unistr/u8-cmp2.c: New file.
14125         * lib/unistr/u-cmp2.h: New file.
14126         * modules/unistr/u8-cmp2: New file.
14127
14128 2009-04-05  Bruno Haible  <bruno@clisp.org>
14129
14130         * lib/unictype.h (uc_property_is_valid): New macro.
14131         * tests/unictype/test-pr_byname.c (main): Use it.
14132
14133         * lib/unistr.h: Doc fixes.
14134         * lib/uniconv.h: Doc fixes.
14135         * lib/unictype.h: Doc fixes.
14136
14137 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14138
14139         Port coreutils 7.2 to Solaris 8.
14140
14141         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14142         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14143         for Solaris 8.  This is a bit of a hack, as it means it's the
14144         caller's responsibility to add -lnsl if needed, but most likely it
14145         won't be needed since only getaddrinfo uses this and getaddrinfo
14146         isn't needed on Solaris 8.
14147
14148         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14149         problem to Solaris 8 encountered with coreutils 7.2, which
14150         resulted in a message "fnmatch.c:292: warning: passing argument 4
14151         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14152         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14153
14154 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14155
14156         * m4/ld-version-script.m4: Add FIXME comment.
14157
14158 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14159
14160         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14161         SOVERSION variable.
14162
14163 2009-04-02  Bruno Haible  <bruno@clisp.org>
14164
14165         * Makefile (info, html, dvi, pdf): Combine the rules.
14166         Suggested by Jim Meyering.
14167
14168 2009-04-01  Bruno Haible  <bruno@clisp.org>
14169
14170         * Makefile (info, html, dvi, pdf): New targets.
14171         Reported by Reuben Thomas <rrt@sc3d.org>.
14172
14173 2009-04-01  Bruno Haible  <bruno@clisp.org>
14174
14175         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14176         can be put into PATH.
14177         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14178
14179 2009-04-01  Bruno Haible  <bruno@clisp.org>
14180
14181         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14182
14183 2009-04-01  Bruno Haible  <bruno@clisp.org>
14184
14185         Rename module 'visibility'.
14186         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14187         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14188         * doc/gnulib.texi: Update.
14189         * MODULES.html.sh (Misc): Update.
14190         * NEWS: Mention the change.
14191
14192 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14193
14194         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14195         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14196         Eric Blake <ebb9@byu.net> for review.
14197         * MODULES.html.sh: Add lib-msvc-compat.
14198         * doc/gnulib.texi: Link to new section.
14199         * m4/ld-output-def.m4: New file.
14200         * doc/ld-output-def.texi: New file.
14201
14202 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14203
14204         Rename ld-version-script to lib-symbol-versions.  Suggested by
14205         Bruno Haible <bruno@clisp.org>.
14206         * modules/ld-version-script: Renamed to lib-symbol-versions.
14207         * doc/ld-version-script.texi: Fix module name.
14208         * MODULES.html.sh: Add lib-symbol-versions.
14209
14210 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14211
14212         * modules/u64-tests: New file.
14213         * tests/test-u64.c: New file.
14214
14215 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14216
14217         * MODULES.html.sh: Mention u64.
14218         * modules/u64: New module.
14219         * modules/crypto/sha512: Depend on u64 module instead of providing
14220         u64.h.
14221
14222 2009-03-27  Eric Blake  <ebb9@byu.net>
14223
14224         test-strerror: make debugging EAI_SYSTEM easier
14225         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14226         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14227         failure was EAI_SYSTEM.
14228
14229 2009-03-25  Bruno Haible  <bruno@clisp.org>
14230
14231         Fix a problem with --enable-relocatable on Solaris 7.
14232         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14233         since 2008-02-24.
14234
14235 2009-03-25  Eric Blake  <ebb9@byu.net>
14236
14237         test-sockets: avoid gcc warning
14238         * tests/test-sockets.c (main): Silence compiler warning.
14239
14240 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14241
14242         New modules nproc, pthread, contributed by Glen Lenker.
14243
14244         * MODULES.html.sh: Add pthread, nproc.
14245         * lib/nproc.c: New file.
14246         * lib/nproc.h: New file.
14247         * lib/pthread.in.h: New file.
14248         * m4/pthread.m4: New file.
14249         * modules/nproc: New file.
14250         * modules/pthread: New file.
14251
14252 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14253
14254         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14255         New variable.
14256
14257 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14258
14259         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14260         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14261         * tests/test-filevercmp.c: Add tests for backup suffixes.
14262
14263 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14264
14265         * modules/stdlib (Depends-on): Add stdint, needed when defining
14266         struct random_data on, for example, HP-UX 10.20.  Reported by
14267         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14268
14269 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14270
14271         * lib/readline.c (readline): Call fflush on stdout after printing
14272         prompt.
14273
14274 2009-03-20  Bruno Haible  <bruno@clisp.org>
14275
14276         Remove dependency from 'close' module to -lws2_32 on native Windows.
14277         * lib/close-hook.h: New file.
14278         * lib/close-hook.c: New file.
14279         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14280         w32sock.h.
14281         (_gl_close_fd_maybe_socket): Remove function.
14282         (rpl_close): Invoke execute_all_close_hooks instead of
14283         _gl_close_fd_maybe_socket.
14284         * lib/sockets.c: Include close-hook.h, w32sock.h.
14285         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14286         (close_sockets_hook): New variable.
14287         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14288         (gl_sockets_cleanup): Unregister it.
14289         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14290         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14291         * modules/close-hook: New file.
14292         * modules/close (Files): Remove lib/w32sock.h.
14293         (Depends-on): Add close-hook.
14294         (Link): Remove section.
14295         * modules/sockets (Files): Add lib/w32sock.h.
14296         (Depends-on): Add close-hook.
14297         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14298         invocation.
14299         * NEWS: Mention that LIB_CLOSE is gone.
14300
14301 2009-03-23  Eric Blake  <ebb9@byu.net>
14302
14303         signal-tests: test previous patch
14304         * tests/test-signal.c: New file.
14305         * modules/signal-tests: Likewise.
14306
14307         signal.h: always support 'volatile sig_atomic_t'
14308         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14309         (gl_SIGNAL_H_DEFAULTS): Add a default.
14310         * modules/signal (Makefile.am): Substitute if needed.
14311         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14312         users can blindly add volatile.
14313         * doc/posix-headers/signal.texi (signal.h): Document it.
14314         Reported by Matthew Woehlke.
14315
14316 2009-03-23  Jim Meyering  <meyering@redhat.com>
14317
14318         pathmax: PATH_MAX: use pathconf only when available
14319         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14320         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14321         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14322         This avoids a link failure in a PSP cross-compilation environment
14323         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14324
14325         * lib/vasnprintf.c (divide): Fix typo in comment.
14326
14327 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14328
14329         * gnulib-tool (func_filter_filelist): Fix comment.
14330
14331 2009-03-20  Bruno Haible  <bruno@clisp.org>
14332
14333         Make sockets.h self-contained.
14334         * lib/sockets.c: Include sockets.h first.
14335         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14336
14337 2009-03-19  Eric Blake  <ebb9@byu.net>
14338
14339         doc: mention more functions added in cygwin 1.7.0
14340         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14341         addition.
14342         * doc/posix-functions/log2f.texi: Likewise.
14343
14344 2009-03-19  Jim Meyering  <meyering@redhat.com>
14345
14346         fsusage: avoid syntax error due to statement-before-declaration
14347         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14348         after all declarations.  Reported by Matthew Woehlke in
14349         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14350
14351 2009-03-18  Eric Blake  <ebb9@byu.net>
14352
14353         build-aux/compile: sync from automake
14354         * build-aux/compile: New file, from automake.
14355         * config/srclist.txt: Mention build-aux/compile.
14356
14357 2009-03-17  Bruno Haible  <bruno@clisp.org>
14358
14359         * lib/git-merge-changelog.c: Fix typo in comment.
14360         Reported by Reuben Thomas <rrt@sc3d.org>.
14361
14362 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14363
14364         * m4/regex.m4: update and improve help for
14365         --without-included-regex.
14366
14367 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14368
14369         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14370         failure on missing include files.
14371
14372 2009-03-17  Eric Blake  <ebb9@byu.net>
14373
14374         doc: mention more functions added in cygwin 1.7.0
14375         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14376         addition.
14377         * doc/posix-functions/fwscanf.texi: Likewise.
14378         * doc/posix-functions/swprintf.texi: Likewise.
14379         * doc/posix-functions/swscanf.texi: Likewise.
14380         * doc/posix-functions/vfwprintf.texi: Likewise.
14381         * doc/posix-functions/vfwscanf.texi: Likewise.
14382         * doc/posix-functions/vswprintf.texi: Likewise.
14383         * doc/posix-functions/vswscanf.texi: Likewise.
14384         * doc/posix-functions/vwprintf.texi: Likewise.
14385         * doc/posix-functions/vwscanf.texi: Likewise.
14386         * doc/posix-functions/wcscasecmp.texi: Likewise.
14387         * doc/posix-functions/wcsdup.texi: Likewise.
14388         * doc/posix-functions/wcsftime.texi: Likewise.
14389         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14390         * doc/posix-functions/wprintf.texi: Likewise.
14391         * doc/posix-functions/wscanf.texi: Likewise.
14392         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14393
14394 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14395
14396         maint.mk: really add $(AM_MAKEFLAGS)
14397         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14398         was inadvertently omitted in the last commit.
14399         Spotted by Bruno Haible.
14400
14401         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14402         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14403         $(AM_MAKEFLAGS)' rather than plain `make'.
14404
14405         gnulib-tool: execute $MAKE not make
14406         * gnulib-tool: Default $MAKE to 'make'.
14407         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14408         than make.  Initialize $MAKE in the do-autobuild script.
14409
14410         gnulib-tool: use $MAKE not make in generated files
14411         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14412         make, in generated files.  Initialize $MAKE in the do-autobuild
14413         script.
14414
14415         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14416
14417         GNUmakefile: disable parallelism only for multiple, recursive targets
14418         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14419         additions in the Makefile.
14420         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14421         by Automake.
14422         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14423         are listed on the command line and at least one of them is
14424         listed in $(ALL_RECURSIVE_TARGETS).
14425
14426 2009-03-14  Bruno Haible  <bruno@clisp.org>
14427
14428         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14429         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14430         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14431         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14432         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14433         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14434         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14435         unistr/u8-uctomb.
14436         * modules/unistr/u8-strchr (Depends-on): Likewise.
14437         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14438         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14439         unistr/u16-uctomb.
14440         * modules/unistr/u16-strchr (Depends-on): Likewise.
14441         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14442
14443 2009-03-12  Bruno Haible  <bruno@clisp.org>
14444
14445         Work around select() bug on Interix 3.5.
14446         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14447         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14448         * m4/select.m4: New file.
14449         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14450         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14451         * modules/select (Files): Add m4/select.m4.
14452         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14453         * modules/nanosleep (Depends-on): Add select.
14454         * modules/poll (Depends-on): Likewise.
14455         * doc/posix-functions/select.texi: Mention the Interix bug.
14456         Reported by Markus Duft <mduft@gentoo.org>.
14457
14458         * lib/select.c: Renamed from lib/winsock-select.c.
14459         * modules/select (Files): Add lib/select.c, remove
14460         lib/winsock-select.c.
14461         (configure.ac): Update.
14462
14463 2009-03-12  Jim Meyering  <meyering@redhat.com>
14464
14465         avoid gcc warnings about unused macro definitions
14466         * lib/readtokens.c (STREQ): Remove unused definition.
14467         * lib/xmalloc.c (SIZE_MAX): Likewise.
14468         * lib/openat-die.c (N_): Likewise.
14469         * lib/mountlist.c (SIZE_MAX): Remove definition.
14470         Instead, include <stdint.h>.
14471         * lib/readutmp.c: Likewise.
14472         * modules/readutmp (Depends-on): Add stdint.
14473         * modules/mountlist (Depends-on): Add stdint.
14474         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14475
14476 2009-03-10  Bruno Haible  <bruno@clisp.org>
14477
14478         Tests for module 'mbmemcasecoll'.
14479         * modules/mbmemcasecoll-tests: New file.
14480         * tests/test-mbmemcasecoll1.sh: New file.
14481         * tests/test-mbmemcasecoll2.sh: New file.
14482         * tests/test-mbmemcasecoll3.sh: New file.
14483         * tests/test-mbmemcasecoll.c: New file.
14484
14485         New module 'mbmemcasecoll'.
14486         * lib/mbmemcasecoll.h: New file.
14487         * lib/mbmemcasecoll.c: New file.
14488         * modules/mbmemcasecoll: New file.
14489
14490         * tests/test-mbmemcasecmp.h: New file, extracted from
14491         tests/test-mbmemcasecmp.c.
14492         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14493         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14494         (main): Update.
14495         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14496
14497 2009-03-09  Bruno Haible  <bruno@clisp.org>
14498
14499         Tests for module 'mbmemcasecmp'.
14500         * modules/mbmemcasecmp-tests: New file.
14501         * tests/test-mbmemcasecmp1.sh: New file.
14502         * tests/test-mbmemcasecmp2.sh: New file.
14503         * tests/test-mbmemcasecmp3.sh: New file.
14504         * tests/test-mbmemcasecmp.c: New file.
14505
14506         New module 'mbmemcasecmp'.
14507         * lib/mbmemcasecmp.h: New file.
14508         * lib/mbmemcasecmp.c: New file.
14509         * modules/mbmemcasecmp: New file.
14510
14511 2009-03-09  Bruno Haible  <bruno@clisp.org>
14512
14513         Tests for module 'unicase/ulc-casecoll'.
14514         * modules/unicase/ulc-casecoll-tests: New file.
14515         * tests/unicase/test-ulc-casecoll1.sh: New file.
14516         * tests/unicase/test-ulc-casecoll2.sh: New file.
14517         * tests/unicase/test-ulc-casecoll.c: New file.
14518
14519         New module 'unicase/ulc-casecoll'.
14520         * lib/unicase.h (ulc_casecoll): New declaration.
14521         * lib/unicase/ulc-casecoll.c: New file.
14522         * modules/unicase/ulc-casecoll: New file.
14523
14524         New module 'unicase/ulc-casexfrm'.
14525         * lib/unicase.h (ulc_casexfrm): New declaration.
14526         * lib/unicase/ulc-casexfrm.c: New file.
14527         * modules/unicase/ulc-casexfrm: New file.
14528
14529 2009-03-09  Bruno Haible  <bruno@clisp.org>
14530
14531         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14532         invocations.
14533
14534         * m4/mbscasecmp.m4: Remove file.
14535         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14536         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14537
14538         * m4/mbscasestr.m4: Remove file.
14539         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14540         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14541
14542         * m4/mbschr.m4: Remove file.
14543         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14544         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14545
14546         * m4/mbscspn.m4: Remove file.
14547         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14548         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14549
14550         * m4/mbslen.m4: Remove file.
14551         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14552         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14553
14554         * m4/mbsncasecmp.m4: Remove file.
14555         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14556         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14557
14558         * m4/mbsnlen.m4: Remove file.
14559         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14560         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14561
14562         * m4/mbspbrk.m4: Remove file.
14563         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14564         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14565
14566         * m4/mbspcasecmp.m4: Remove file.
14567         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14568         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14569
14570         * m4/mbsrchr.m4: Remove file.
14571         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14572         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14573
14574         * m4/mbssep.m4: Remove file.
14575         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14576         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14577
14578         * m4/mbsspn.m4: Remove file.
14579         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14580         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14581
14582         * m4/mbsstr.m4: Remove file.
14583         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14584         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14585
14586         * m4/mbstok_r.m4: Remove file.
14587         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14588         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14589
14590         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14591
14592         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14593         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14594
14595         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14596
14597 2009-03-08  Bruno Haible  <bruno@clisp.org>
14598
14599         Tests for module 'unicase/ulc-casecmp'.
14600         * modules/unicase/ulc-casecmp-tests: New file.
14601         * tests/unicase/test-ulc-casecmp1.sh: New file.
14602         * tests/unicase/test-ulc-casecmp2.sh: New file.
14603         * tests/unicase/test-ulc-casecmp.c: New file.
14604
14605         New module 'unicase/ulc-casecmp'.
14606         * lib/unicase.h (ulc_casecmp): New declaration.
14607         * lib/unicase/ulc-casecmp.c: New file.
14608         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14609         'const SRC_UNIT *'.
14610         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14611         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14612         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14613         * modules/unicase/ulc-casecmp: New file.
14614
14615         Tests for module 'unicase/u32-is-cased'.
14616         * modules/unicase/u32-is-cased-tests: New file.
14617         * tests/unicase/test-u32-is-cased.c: New file.
14618
14619         Tests for module 'unicase/u16-is-cased'.
14620         * modules/unicase/u16-is-cased-tests: New file.
14621         * tests/unicase/test-u16-is-cased.c: New file.
14622
14623         Tests for module 'unicase/u8-is-cased'.
14624         * modules/unicase/u8-is-cased-tests: New file.
14625         * tests/unicase/test-u8-is-cased.c: New file.
14626         * tests/unicase/test-is-cased.h: New file.
14627
14628         New module 'unicase/u32-is-cased'.
14629         * lib/unicase/u32-is-cased.c: New file.
14630         * modules/unicase/u32-is-cased: New file.
14631
14632         New module 'unicase/u16-is-cased'.
14633         * lib/unicase/u16-is-cased.c: New file.
14634         * modules/unicase/u16-is-cased: New file.
14635
14636         New module 'unicase/u8-is-cased'.
14637         * lib/unicase/u8-is-cased.c: New file.
14638         * lib/unicase/u-is-cased.h: New file.
14639         * modules/unicase/u8-is-cased: New file.
14640
14641         Tests for module 'unicase/u32-is-casefolded'.
14642         * modules/unicase/u32-is-casefolded-tests: New file.
14643         * tests/unicase/test-u32-is-casefolded.c: New file.
14644
14645         Tests for module 'unicase/u16-is-casefolded'.
14646         * modules/unicase/u16-is-casefolded-tests: New file.
14647         * tests/unicase/test-u16-is-casefolded.c: New file.
14648
14649         Tests for module 'unicase/u8-is-casefolded'.
14650         * modules/unicase/u8-is-casefolded-tests: New file.
14651         * tests/unicase/test-u8-is-casefolded.c: New file.
14652         * tests/unicase/test-is-casefolded.h: New file.
14653
14654         New module 'unicase/u32-is-casefolded'.
14655         * lib/unicase/u32-is-casefolded.c: New file.
14656         * modules/unicase/u32-is-casefolded: New file.
14657
14658         New module 'unicase/u16-is-casefolded'.
14659         * lib/unicase/u16-is-casefolded.c: New file.
14660         * modules/unicase/u16-is-casefolded: New file.
14661
14662         New module 'unicase/u8-is-casefolded'.
14663         * lib/unicase/u8-is-casefolded.c: New file.
14664         * modules/unicase/u8-is-casefolded: New file.
14665
14666         Tests for module 'unicase/u32-is-titlecase'.
14667         * modules/unicase/u32-is-titlecase-tests: New file.
14668         * tests/unicase/test-u32-is-titlecase.c: New file.
14669
14670         Tests for module 'unicase/u16-is-titlecase'.
14671         * modules/unicase/u16-is-titlecase-tests: New file.
14672         * tests/unicase/test-u16-is-titlecase.c: New file.
14673
14674         Tests for module 'unicase/u8-is-titlecase'.
14675         * modules/unicase/u8-is-titlecase-tests: New file.
14676         * tests/unicase/test-u8-is-titlecase.c: New file.
14677         * tests/unicase/test-is-titlecase.h: New file.
14678
14679         New module 'unicase/u32-is-titlecase'.
14680         * lib/unicase/u32-is-titlecase.c: New file.
14681         * modules/unicase/u32-is-titlecase: New file.
14682
14683         New module 'unicase/u16-is-titlecase'.
14684         * lib/unicase/u16-is-titlecase.c: New file.
14685         * modules/unicase/u16-is-titlecase: New file.
14686
14687         New module 'unicase/u8-is-titlecase'.
14688         * lib/unicase/u8-is-titlecase.c: New file.
14689         * modules/unicase/u8-is-titlecase: New file.
14690
14691         Tests for module 'unicase/u32-is-lowercase'.
14692         * modules/unicase/u32-is-lowercase-tests: New file.
14693         * tests/unicase/test-u32-is-lowercase.c: New file.
14694
14695         Tests for module 'unicase/u16-is-lowercase'.
14696         * modules/unicase/u16-is-lowercase-tests: New file.
14697         * tests/unicase/test-u16-is-lowercase.c: New file.
14698
14699         Tests for module 'unicase/u8-is-lowercase'.
14700         * modules/unicase/u8-is-lowercase-tests: New file.
14701         * tests/unicase/test-u8-is-lowercase.c: New file.
14702         * tests/unicase/test-is-lowercase.h: New file.
14703
14704         New module 'unicase/u32-is-lowercase'.
14705         * lib/unicase/u32-is-lowercase.c: New file.
14706         * modules/unicase/u32-is-lowercase: New file.
14707
14708         New module 'unicase/u16-is-lowercase'.
14709         * lib/unicase/u16-is-lowercase.c: New file.
14710         * modules/unicase/u16-is-lowercase: New file.
14711
14712         New module 'unicase/u8-is-lowercase'.
14713         * lib/unicase/u8-is-lowercase.c: New file.
14714         * modules/unicase/u8-is-lowercase: New file.
14715
14716         Tests for module 'unicase/u32-is-uppercase'.
14717         * modules/unicase/u32-is-uppercase-tests: New file.
14718         * tests/unicase/test-u32-is-uppercase.c: New file.
14719
14720         Tests for module 'unicase/u16-is-uppercase'.
14721         * modules/unicase/u16-is-uppercase-tests: New file.
14722         * tests/unicase/test-u16-is-uppercase.c: New file.
14723
14724         Tests for module 'unicase/u8-is-uppercase'.
14725         * modules/unicase/u8-is-uppercase-tests: New file.
14726         * tests/unicase/test-u8-is-uppercase.c: New file.
14727         * tests/unicase/test-is-uppercase.h: New file.
14728
14729         New module 'unicase/u32-is-uppercase'.
14730         * lib/unicase/u32-is-uppercase.c: New file.
14731         * modules/unicase/u32-is-uppercase: New file.
14732
14733         New module 'unicase/u16-is-uppercase'.
14734         * lib/unicase/u16-is-uppercase.c: New file.
14735         * modules/unicase/u16-is-uppercase: New file.
14736
14737         New module 'unicase/u8-is-uppercase'.
14738         * lib/unicase/u8-is-uppercase.c: New file.
14739         * modules/unicase/u8-is-uppercase: New file.
14740
14741         New module 'unicase/u32-is-invariant'.
14742         * lib/unicase/u32-is-invariant.c: New file.
14743         * modules/unicase/u32-is-invariant: New file.
14744
14745         New module 'unicase/u16-is-invariant'.
14746         * lib/unicase/u16-is-invariant.c: New file.
14747         * modules/unicase/u16-is-invariant: New file.
14748
14749         New module 'unicase/u8-is-invariant'.
14750         * lib/unicase/u8-is-invariant.c: New file.
14751         * lib/unicase/invariant.h: New file.
14752         * lib/unicase/u-is-invariant.h: New file.
14753         * modules/unicase/u8-is-invariant: New file.
14754
14755         Tests for module 'unicase/u32-casecoll'.
14756         * modules/unicase/u32-casecoll-tests: New file.
14757         * tests/unicase/test-u32-casecoll.c: New file.
14758
14759         Tests for module 'unicase/u16-casecoll'.
14760         * modules/unicase/u16-casecoll-tests: New file.
14761         * tests/unicase/test-u16-casecoll.c: New file.
14762
14763         Tests for module 'unicase/u8-casecoll'.
14764         * modules/unicase/u8-casecoll-tests: New file.
14765         * tests/unicase/test-u8-casecoll.c: New file.
14766
14767         New module 'unicase/u32-casecoll'.
14768         * lib/unicase/u32-casecoll.c: New file.
14769         * modules/unicase/u32-casecoll: New file.
14770
14771         New module 'unicase/u16-casecoll'.
14772         * lib/unicase/u16-casecoll.c: New file.
14773         * modules/unicase/u16-casecoll: New file.
14774
14775         New module 'unicase/u8-casecoll'.
14776         * lib/unicase/u8-casecoll.c: New file.
14777         * lib/unicase/u-casecoll.h: New file.
14778         * modules/unicase/u8-casecoll: New file.
14779
14780         New module 'unicase/u32-casexfrm'.
14781         * lib/unicase/u32-casexfrm.c: New file.
14782         * modules/unicase/u32-casexfrm: New file.
14783
14784         New module 'unicase/u16-casexfrm'.
14785         * lib/unicase/u16-casexfrm.c: New file.
14786         * modules/unicase/u16-casexfrm: New file.
14787
14788         New module 'unicase/u8-casexfrm'.
14789         * lib/unicase/u8-casexfrm.c: New file.
14790         * lib/unicase/u-casexfrm.h: New file.
14791         * modules/unicase/u8-casexfrm: New file.
14792
14793         Tests for module 'unicase/u32-casecmp'.
14794         * modules/unicase/u32-casecmp-tests: New file.
14795         * tests/unicase/test-u32-casecmp.c: New file.
14796
14797         Tests for module 'unicase/u16-casecmp'.
14798         * modules/unicase/u16-casecmp-tests: New file.
14799         * tests/unicase/test-u16-casecmp.c: New file.
14800
14801         Tests for module 'unicase/u8-casecmp'.
14802         * modules/unicase/u8-casecmp-tests: New file.
14803         * tests/unicase/test-u8-casecmp.c: New file.
14804         * tests/unicase/test-casecmp.h: New file.
14805
14806         New module 'unicase/u32-casecmp'.
14807         * lib/unicase/u32-casecmp.c: New file.
14808         * modules/unicase/u32-casecmp: New file.
14809
14810         New module 'unicase/u16-casecmp'.
14811         * lib/unicase/u16-casecmp.c: New file.
14812         * modules/unicase/u16-casecmp: New file.
14813
14814         New module 'unicase/u8-casecmp'.
14815         * lib/unicase/u8-casecmp.c: New file.
14816         * lib/unicase/u-casecmp.h: New file.
14817         * modules/unicase/u8-casecmp: New file.
14818
14819         Tests for module 'unicase/u32-casefold'.
14820         * modules/unicase/u32-casefold-tests: New file.
14821         * tests/unicase/test-u32-casefold.c: New file.
14822
14823         Tests for module 'unicase/u16-casefold'.
14824         * modules/unicase/u16-casefold-tests: New file.
14825         * tests/unicase/test-u16-casefold.c: New file.
14826
14827         Tests for module 'unicase/u8-casefold'.
14828         * modules/unicase/u8-casefold-tests: New file.
14829         * tests/unicase/test-u8-casefold.c: New file.
14830
14831         New module 'unicase/u32-casefold'.
14832         * lib/unicase/u32-casefold.c: New file.
14833         * modules/unicase/u32-casefold: New file.
14834
14835         New module 'unicase/u16-casefold'.
14836         * lib/unicase/u16-casefold.c: New file.
14837         * modules/unicase/u16-casefold: New file.
14838
14839         New module 'unicase/u8-casefold'.
14840         * lib/unicase/u8-casefold.c: New file.
14841         * lib/unicase/u-casefold.h: New file.
14842         * modules/unicase/u8-casefold: New file.
14843
14844         New module 'unicase/tocasefold'.
14845         * lib/unicase/casefold.h: New file.
14846         * lib/unicase/tocasefold.c: New file.
14847         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14848         * modules/unicase/tocasefold: New file.
14849
14850         Tests for module 'unicase/u32-totitle'.
14851         * modules/unicase/u32-totitle-tests: New file.
14852         * tests/unicase/test-u32-totitle.c: New file.
14853
14854         Tests for module 'unicase/u16-totitle'.
14855         * modules/unicase/u16-totitle-tests: New file.
14856         * tests/unicase/test-u16-totitle.c: New file.
14857
14858         Tests for module 'unicase/u8-totitle'.
14859         * modules/unicase/u8-totitle-tests: New file.
14860         * tests/unicase/test-u8-totitle.c: New file.
14861
14862         New module 'unicase/u32-totitle'.
14863         * lib/unicase/u32-totitle.c: New file.
14864         * modules/unicase/u32-totitle: New file.
14865
14866         New module 'unicase/u16-totitle'.
14867         * lib/unicase/u16-totitle.c: New file.
14868         * modules/unicase/u16-totitle: New file.
14869
14870         New module 'unicase/u8-totitle'.
14871         * lib/unicase/u8-totitle.c: New file.
14872         * lib/unicase/u-totitle.h: New file.
14873         * modules/unicase/u8-totitle: New file.
14874
14875         Tests for module 'unicase/u32-tolower'.
14876         * modules/unicase/u32-tolower-tests: New file.
14877         * tests/unicase/test-u32-tolower.c: New file.
14878
14879         Tests for module 'unicase/u16-tolower'.
14880         * modules/unicase/u16-tolower-tests: New file.
14881         * tests/unicase/test-u16-tolower.c: New file.
14882
14883         Tests for module 'unicase/u8-tolower'.
14884         * modules/unicase/u8-tolower-tests: New file.
14885         * tests/unicase/test-u8-tolower.c: New file.
14886
14887         New module 'unicase/u32-tolower'.
14888         * lib/unicase/u32-tolower.c: New file.
14889         * modules/unicase/u32-tolower: New file.
14890
14891         New module 'unicase/u16-tolower'.
14892         * lib/unicase/u16-tolower.c: New file.
14893         * modules/unicase/u16-tolower: New file.
14894
14895         New module 'unicase/u8-tolower'.
14896         * lib/unicase/u8-tolower.c: New file.
14897         * modules/unicase/u8-tolower: New file.
14898
14899         Tests for module 'unicase/u32-toupper'.
14900         * modules/unicase/u32-toupper-tests: New file.
14901         * tests/unicase/test-u32-toupper.c: New file.
14902
14903         Tests for module 'unicase/u16-toupper'.
14904         * modules/unicase/u16-toupper-tests: New file.
14905         * tests/unicase/test-u16-toupper.c: New file.
14906
14907         Tests for module 'unicase/u8-toupper'.
14908         * modules/unicase/u8-toupper-tests: New file.
14909         * tests/unicase/test-u8-toupper.c: New file.
14910
14911         New module 'unicase/u32-toupper'.
14912         * lib/unicase/u32-toupper.c: New file.
14913         * modules/unicase/u32-toupper: New file.
14914
14915         New module 'unicase/u16-toupper'.
14916         * lib/unicase/u16-toupper.c: New file.
14917         * modules/unicase/u16-toupper: New file.
14918
14919         New module 'unicase/u8-toupper'.
14920         * lib/unicase/u8-toupper.c: New file.
14921         * modules/unicase/u8-toupper: New file.
14922
14923         New module 'unicase/u32-casemap'.
14924         * lib/unicase/u32-casemap.c: New file.
14925         * modules/unicase/u32-casemap: New file.
14926
14927         New module 'unicase/u16-casemap'.
14928         * lib/unicase/u16-casemap.c: New file.
14929         * modules/unicase/u16-casemap: New file.
14930
14931         New module 'unicase/u8-casemap'.
14932         * lib/unicase/unicasemap.h: New file.
14933         * lib/unicase/u8-casemap.c: New file.
14934         * lib/unicase/u-casemap.h: New file.
14935         * modules/unicase/u8-casemap: New file.
14936
14937         New module 'unicase/special-casing'.
14938         * lib/unicase/special-casing.h: New file.
14939         * lib/unicase/special-casing.c: New file.
14940         * lib/unicase/special-casing-table.gperf: New file, generated by
14941         gen-uni-tables.c.
14942         * modules/unicase/special-casing: New file.
14943
14944         Tests for module 'unicase/locale-language'.
14945         * modules/unicase/locale-language-tests: New file.
14946         * tests/unicase/test-locale-language.sh: New file.
14947         * tests/unicase/test-locale-language.c: New file.
14948
14949         New module 'unicase/locale-language'.
14950         * lib/unicase/locale-language.c: New file.
14951         * lib/unicase/locale-languages.gperf: New file.
14952         * modules/unicase/locale-language: New file.
14953
14954         Generate more tables for case conversion and case folding.
14955         * lib/gen-uni-tables.c (SCC_*): New enum items.
14956         (struct special_casing_rule): New type.
14957         (casing_rules, num_casing_rules, allocated_casing_rules): New
14958         variables.
14959         (add_casing_rule, fill_casing_rules): New functions.
14960         (struct casefold_rule): New type.
14961         (casefolding_rules, num_casefolding_rules,
14962         allocated_casefolding_rules): New variables.
14963         (fill_casefolding_rules): New function.
14964         (unicode_casefold): New variable.
14965         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14966         sort_casing_rules, output_casing_rules): New functions.
14967         (main): Accept to more arguments: SpecialCasing.txt and
14968         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14969         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14970         Output mapping for casefolding.
14971
14972         * lib/unicase.h: Include stdbool.h, uninorm.h.
14973         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14974         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14975         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14976         arguments.
14977         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14978         resultp arguments.
14979         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14980         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14981         resultp arguments.
14982         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14983         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14984         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14985         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14986         declarations.
14987         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14988
14989 2009-03-08  Bruno Haible  <bruno@clisp.org>
14990
14991         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14992         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14993         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14994         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14995
14996 2009-03-07  Bruno Haible  <bruno@clisp.org>
14997
14998         Adjust u*_normcmp, u*_normcoll API.
14999         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15000         u16_normcoll, u32_normcoll): Change failure conventions.
15001         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15002         errno and return -1.
15003         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15004
15005 2009-03-07  Bruno Haible  <bruno@clisp.org>
15006
15007         Tests for module 'uninorm/u32-normcoll'.
15008         * modules/uninorm/u32-normcoll-tests: New file.
15009         * tests/uninorm/test-u32-normcoll.c: New file.
15010
15011         Tests for module 'uninorm/u16-normcoll'.
15012         * modules/uninorm/u16-normcoll-tests: New file.
15013         * tests/uninorm/test-u16-normcoll.c: New file.
15014
15015         Tests for module 'uninorm/u8-normcoll'.
15016         * modules/uninorm/u8-normcoll-tests: New file.
15017         * tests/uninorm/test-u8-normcoll.c: New file.
15018
15019 2009-03-07  Bruno Haible  <bruno@clisp.org>
15020
15021         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15022         tests/uninorm/test-u32-normcmp.c.
15023         * tests/uninorm/test-u32-normcmp.c: Include it.
15024         (test_nonascii): New function, extracted from main. Add some more
15025         tests.
15026         (main): Invoke test_ascii and test_nonascii.
15027         * modules/uninorm/u32-normcmp-tests (Files): Add
15028         tests/uninorm/test-u32-normcmp.h.
15029         (Depends-on): Remove uninorm/u32-normcmp.
15030
15031         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15032         tests/uninorm/test-u16-normcmp.c.
15033         * tests/uninorm/test-u16-normcmp.c: Include it.
15034         (test_nonascii): New function, extracted from main. Add some more
15035         tests.
15036         (main): Invoke test_ascii and test_nonascii.
15037         * modules/uninorm/u16-normcmp-tests (Files): Add
15038         tests/uninorm/test-u16-normcmp.h.
15039         (Depends-on): Remove uninorm/u16-normcmp.
15040
15041         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15042         tests/uninorm/test-u8-normcmp.c.
15043         * tests/uninorm/test-u8-normcmp.c: Include it.
15044         (test_nonascii): New function, extracted from main. Add some more
15045         tests.
15046         (main): Invoke test_ascii and test_nonascii.
15047         * modules/uninorm/u8-normcmp-tests (Files): Add
15048         tests/uninorm/test-u8-normcmp.h.
15049         (Depends-on): Remove uninorm/u8-normcmp.
15050
15051 2009-03-07  Bruno Haible  <bruno@clisp.org>
15052
15053         New module 'uninorm/u32-normcoll'.
15054         * lib/uninorm/u32-normcoll.c: New file.
15055         * modules/uninorm/u32-normcoll: New file.
15056
15057         New module 'uninorm/u16-normcoll'.
15058         * lib/uninorm/u16-normcoll.c: New file.
15059         * modules/uninorm/u16-normcoll: New file.
15060
15061         New module 'uninorm/u8-normcoll'.
15062         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15063         declarations.
15064         * lib/uninorm/u8-normcoll.c: New file.
15065         * lib/uninorm/u-normcoll.h: New file.
15066         * modules/uninorm/u8-normcoll: New file.
15067
15068         New module 'uninorm/u32-normxfrm'.
15069         * lib/uninorm/u32-normxfrm.c: New file.
15070         * modules/uninorm/u32-normxfrm: New file.
15071
15072         New module 'uninorm/u16-normxfrm'.
15073         * lib/uninorm/u16-normxfrm.c: New file.
15074         * modules/uninorm/u16-normxfrm: New file.
15075
15076         New module 'uninorm/u8-normxfrm'.
15077         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15078         declarations.
15079         * lib/uninorm/u8-normxfrm.c: New file.
15080         * lib/uninorm/u-normxfrm.h: New file.
15081         * modules/uninorm/u8-normxfrm: New file.
15082
15083 2009-03-07  Bruno Haible  <bruno@clisp.org>
15084
15085         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15086         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15087         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15088
15089 2009-03-07  Bruno Haible  <bruno@clisp.org>
15090
15091         New module 'memxfrm'.
15092         * lib/memxfrm.h: New file.
15093         * lib/memxfrm.c: New file.
15094         * modules/memxfrm: New file.
15095
15096 2009-03-07  Bruno Haible  <bruno@clisp.org>
15097
15098         New module 'memcmp2'.
15099         * lib/memcmp2.h: New file.
15100         * lib/memcmp2.c: New file.
15101         * modules/memcmp2: New file.
15102
15103 2009-03-07  Bruno Haible  <bruno@clisp.org>
15104
15105         Tests for module 'uninorm/decomposing-form'.
15106         * modules/uninorm/decomposing-form-tests: New file.
15107         * tests/uninorm/test-decomposing-form.c: New file.
15108
15109         New module 'uninorm/decomposing-form'.
15110         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15111         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15112         Add 'decomposing_variant' field.
15113         * lib/uninorm/decomposing-form.c: New file.
15114         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15115         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15116         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15117         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15118         * modules/uninorm/decomposing-form: New file.
15119         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15120         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15121
15122 2009-03-07  Bruno Haible  <bruno@clisp.org>
15123
15124         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15125         strings.
15126
15127 2009-03-06  Bruno Haible  <bruno@clisp.org>
15128
15129         Tests for module 'uninorm/u32-normcmp'.
15130         * tests/uninorm/test-u32-normcmp.c: New file.
15131         * modules/uninorm/u32-normcmp-tests: New file.
15132
15133         Tests for module 'uninorm/u16-normcmp'.
15134         * tests/uninorm/test-u16-normcmp.c: New file.
15135         * modules/uninorm/u16-normcmp-tests: New file.
15136
15137         Tests for module 'uninorm/u8-normcmp'.
15138         * tests/uninorm/test-u8-normcmp.c: New file.
15139         * modules/uninorm/u8-normcmp-tests: New file.
15140
15141         New module 'uninorm/u32-normcmp'.
15142         * lib/uninorm/u32-normcmp.c: New file.
15143         * modules/uninorm/u32-normcmp: New file.
15144
15145         New module 'uninorm/u16-normcmp'.
15146         * lib/uninorm/u16-normcmp.c: New file.
15147         * modules/uninorm/u16-normcmp: New file.
15148
15149         New module 'uninorm/u8-normcmp'.
15150         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15151         declarations.
15152         * lib/uninorm/u8-normcmp.c: New file.
15153         * lib/uninorm/u-normcmp.h: New file.
15154         * modules/uninorm/u8-normcmp: New file.
15155
15156 2009-03-06  Bruno Haible  <bruno@clisp.org>
15157
15158         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15159         Reported by Eric Blake.
15160
15161 2009-03-06  Eric Blake  <ebb9@byu.net>
15162             Bruno Haible  <bruno@clisp.org>
15163
15164         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15165         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15166         condition.
15167         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15168         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15169         condition.
15170         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15171
15172 2009-03-06  Eric Blake  <ebb9@byu.net>
15173
15174         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15175         to avoid compiler warnings.
15176         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15177
15178 2009-03-05  Bruno Haible  <bruno@clisp.org>
15179
15180         * tests/test-ftell.c (main): Disable test beyond end of file on
15181         FreeMiNT.
15182         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15183
15184 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15185
15186         * lib/filevercmp.c: Move hidden files up in ordering.
15187         * tests/test-filevercmp.c: Add tests for hidden files.
15188
15189 2009-03-04  Bruno Haible  <bruno@clisp.org>
15190
15191         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15192         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15193         AM_CFLAGS.
15194         Reported by Simon Josefsson.
15195
15196 2009-03-03  Bruno Haible  <bruno@clisp.org>
15197
15198         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15199         Reported by Simon Josefsson.
15200
15201         * doc/ld-version-script.texi: Update node reference.
15202
15203 2009-03-03  Bruno Haible  <bruno@clisp.org>
15204
15205         * modules/visibility (License): Change to 'unlimited'.
15206         Suggested by Simon Josefsson.
15207
15208 2009-03-03  Jim Meyering  <meyering@redhat.com>
15209
15210         unlinkdir: cannot_unlink_dir may modify process state
15211         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15212         it's neither thread-safe nor appropriate for use in a library.
15213
15214 2009-03-03  Eric Blake  <ebb9@byu.net>
15215
15216         test-closein: silence test under Darwin
15217         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15218         care if it dies from EPIPE or EBADF.
15219
15220 2009-03-03  Bruno Haible  <bruno@clisp.org>
15221
15222         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15223         earlier.
15224         * doc/visibility.texi: Fix @node and @section.
15225
15226 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15227
15228         * doc/gnulib.texi: Link to sections for ld version script and
15229         visibility.
15230         * doc/visibility.texi: Add @node and @section.
15231         * modules/ld-version-script: New module.
15232         * m4/ld-version-script.m4: New file.
15233         * doc/ld-version-script.texi: New file.
15234
15235 2009-03-02  David Lutterkort  <lutter@redhat.com>
15236
15237         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15239
15240 2009-03-02  Bruno Haible  <bruno@clisp.org>
15241
15242         * doc/visibility.texi: Mention libtool's -export-symbols option.
15243
15244 2009-03-02  Jim Meyering  <meyering@redhat.com>
15245
15246         announce-gen: new option: --no-print-checksums
15247         * build-aux/announce-gen (usage): Describe it.
15248         (print_checksums): Print a newline here, not in the [*] footnote.
15249         (main): Honor it.
15250
15251 2009-03-01  Bruno Haible  <bruno@clisp.org>
15252
15253         Use socklen_t in the native Windows replacements prototypes.
15254         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15255         instead of 'int'.
15256         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15257         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15258         * modules/getsockopt (Depends-on): Add socklen.
15259         * modules/setsockopt (Depends-on): Add socklen.
15260
15261 2009-03-01  Bruno Haible  <bruno@clisp.org>
15262
15263         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15264         least 4.2.
15265
15266 2009-03-01  Eric Blake  <ebb9@byu.net>
15267             Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15270         error messages.
15271         * lib/wait-process.c (wait_subprocess): Omit error message about
15272         deadly signal sent to the child of termsigp != NULL.
15273
15274 2009-03-01  Eric Blake  <ebb9@byu.net>
15275
15276         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15277
15278 2009-03-01  Bruno Haible  <bruno@clisp.org>
15279
15280         Avoid a gcc warning.
15281         * tests/test-sched.c (b): Make global.
15282         Reported by Eric Blake.
15283
15284 2009-01-19  Martin Lambers  <marlam@marlam.de>
15285
15286         Provide POSIX semantics for socket timeout options on W32.
15287         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15288         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15289         * modules/setsockopt: Depend on sys_time module for struct timeval.
15290         * modules/getsockopt: Depend on sys_time module for struct timeval.
15291
15292 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15293
15294         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15295         __USE_GNU, for consistency with netdb.in.h.
15296         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15297
15298 2009-03-01  Bruno Haible  <bruno@clisp.org>
15299
15300         More support for FreeMiNT.
15301         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15302         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15303
15304 2009-03-01  Bruno Haible  <bruno@clisp.org>
15305
15306         More support for FreeMiNT.
15307         * lib/fpurge.c (fpurge): Correct last commit.
15308         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15309
15310 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15311
15312         Fix unportable awk script in vc-list-files.
15313         * build-aux/vc-list-files: In the replacement awk script, use
15314         substr with a second argument of 1, not zero.
15315         Report by Simon Josefsson.
15316
15317 2009-02-28  Bruno Haible  <bruno@clisp.org>
15318
15319         More support for FreeMiNT.
15320         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15321         to FreeMiNT today.
15322         * lib/fwriting.c (fwriting): Likewise.
15323         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15324
15325 2009-02-28  Bruno Haible  <bruno@clisp.org>
15326
15327         * tests/test-freadseek.c (main): Disable test beyond end of file on
15328         FreeMiNT.
15329         * tests/test-ftello.c (main): Likewise.
15330         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15331
15332 2009-02-28  Bruno Haible  <bruno@clisp.org>
15333
15334         Add tentative support for FreeMiNT.
15335         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15336         * lib/fpurge.c (fpurge): Likewise.
15337         * lib/freadable.c (freadable): Likewise.
15338         * lib/freading.c (freading): Likewise.
15339         * lib/freadptr.c (freadptr): Likewise.
15340         * lib/freadseek.c (freadptrinc): Likewise.
15341         * lib/fseeko.c (rpl_fseeko): Likewise.
15342         * lib/fseterr.c (fseterr): Likewise.
15343         * lib/fwritable.c (fwritable): Likewise.
15344         * lib/fwriting.c (fwriting): Likewise.
15345         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15346         Hourihane.
15347         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15348
15349 2009-02-28  Bruno Haible  <bruno@clisp.org>
15350
15351         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15352         SIGCHLD.
15353         Reported by Jim Meyering.
15354
15355 2009-02-28  Bruno Haible  <bruno@clisp.org>
15356
15357         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15358         Mention the results of these tests on various platforms.
15359         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15360         order.
15361         * doc/posix-functions/printf.texi: Likewise.
15362         * doc/posix-functions/snprintf.texi: Likewise.
15363         * doc/posix-functions/sprintf.texi: Likewise.
15364         * doc/posix-functions/vfprintf.texi: Likewise.
15365         * doc/posix-functions/vprintf.texi: Likewise.
15366         * doc/posix-functions/vsnprintf.texi: Likewise.
15367         * doc/posix-functions/vsprintf.texi: Likewise.
15368         * doc/glibc-functions/obstack_printf.texi: Likewise.
15369         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15370
15371 2009-02-28  Bruno Haible  <bruno@clisp.org>
15372
15373         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15374         Reported by Loïc Minier <lool@dooz.org>.
15375
15376 2009-02-27  Bruno Haible  <bruno@clisp.org>
15377
15378         * gnulib-tool (func_import): Make the sed expression used to create the
15379         sed script for updating the .gitignore file POSIX compliant.
15380         Reported by Eric Blake.
15381
15382 2009-02-27  Bruno Haible  <bruno@clisp.org>
15383
15384         * gnulib-tool (sed): Don't alias as "sed --posix".
15385         Reported by Eric Blake.
15386
15387 2009-02-27  Bruno Haible  <bruno@clisp.org>
15388
15389         Avoid test link errors.
15390         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15391         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15392         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15393         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15395
15396 2009-02-27  Bruno Haible  <bruno@clisp.org>
15397
15398         Avoid spurious "(cached)" in configure output.
15399         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15400         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15401         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15402         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15403         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15404         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15405         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15406         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15407         Reported by Eric Blake.
15408
15409 2009-02-27  Eric Blake  <ebb9@byu.net>
15410
15411         printf: fix regression in previous patch
15412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15413
15414 2009-02-27  Bruno Haible  <bruno@clisp.org>
15415
15416         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15417         value.
15418         * lib/stdint.in.h: Likewise.
15419         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15420
15421 2009-02-27  Eric Blake  <ebb9@byu.net>
15422
15423         doc: mention more functions added in cygwin 1.7.0
15424         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15425         addition.
15426         * doc/posix-functions/open_wmemstream.texi: Likewise.
15427         * doc/posix-functions/wcsnlen.texi: Likewise.
15428         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15429         * doc/posix-functions/wcstod.texi: Likewise.
15430         * doc/posix-functions/wcstof.texi: Likewise.
15431         * doc/posix-functions/wcstoimax.texi: Likewise.
15432         * doc/posix-functions/wcstok.texi: Likewise.
15433         * doc/posix-functions/wcstoumax.texi: Likewise.
15434
15435         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15436         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15437         * doc/posix-functions/fprintf.texi: Update.
15438         * doc/posix-functions/printf.texi: Update.
15439         * doc/posix-functions/snprintf.texi: Update.
15440         * doc/posix-functions/sprintf.texi: Update.
15441         * doc/posix-functions/vfprintf.texi: Update.
15442         * doc/posix-functions/vprintf.texi: Update.
15443         * doc/posix-functions/vsnprintf.texi: Update.
15444         * doc/posix-functions/vsprintf.texi: Update.
15445         * doc/glibc-functions/obstack_printf.texi: Update.
15446         * doc/glibc-functions/obstack_vprintf.texi: Update.
15447
15448 2009-02-26  Eric Blake  <ebb9@byu.net>
15449
15450         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15451         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15452         compilation bug by using runtime conversion.
15453         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15454         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15455         * modules/ceill-tests (Files): Use nan.h.
15456         * modules/floorl-tests (Files): Likewise.
15457         * modules/frexpl-tests (Files): Likewise.
15458         * modules/isnanl-tests (Files): Likewise.
15459         * modules/ldexpl-tests (Files): Likewise.
15460         * modules/roundl-tests (Files): Likewise.
15461         * modules/truncl-tests (Files): Likewise.
15462         * tests/test-ceill.c (main): Use a working NaN.
15463         * tests/test-floorl.c (main): Likewise.
15464         * tests/test-frexpl.c (main): Likewise.
15465         * tests/test-isnan.c (test_long_double): Likewise.
15466         * tests/test-isnanl.h (main): Likewise.
15467         * tests/test-ldexpl.h (main): Likewise.
15468         * tests/test-roundl.h (main): Likewise.
15469         * tests/test-truncl.h (main): Likewise.
15470         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15471
15472 2009-02-26  Eric Blake  <ebb9@byu.net>
15473             Bruno Haible  <bruno@clisp.org>
15474
15475         Work around a *printf bug with %ls on Solaris.
15476         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15477         precision is specified, sprintf stops converting the wide string
15478         argument when the number of bytes that have been produced by this
15479         conversion equals or exceeds the precision.
15480         * doc/posix-functions/fprintf.texi: Update.
15481         * doc/posix-functions/printf.texi: Update.
15482         * doc/posix-functions/snprintf.texi: Update.
15483         * doc/posix-functions/sprintf.texi: Update.
15484         * doc/posix-functions/vfprintf.texi: Update.
15485         * doc/posix-functions/vprintf.texi: Update.
15486         * doc/posix-functions/vsnprintf.texi: Update.
15487         * doc/posix-functions/vsprintf.texi: Update.
15488         * doc/glibc-functions/obstack_printf.texi: Update.
15489         * doc/glibc-functions/obstack_vprintf.texi: Update.
15490
15491 2009-02-26  Eric Blake  <ebb9@byu.net>
15492
15493         stdlib: favor compiler check of random.h
15494         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15495         to avoid an ObjC random.h installed by Swarm.
15496
15497 2009-02-26  Bruno Haible  <bruno@clisp.org>
15498
15499         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15500         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15501         Reported by Gary V. Vaughan <gary@gnu.org>.
15502
15503 2009-02-26  Bruno Haible  <bruno@clisp.org>
15504
15505         Fix *printf behaviour regarding the %ls directive.
15506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15507         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15508         NEED_PRINTF_DIRECTIVE_LS.
15509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15510         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15512         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15513         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15514         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15515         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15518         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15519         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15520         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15524         * doc/posix-functions/fprintf.texi: Update.
15525         * doc/posix-functions/printf.texi: Update.
15526         * doc/posix-functions/snprintf.texi: Update.
15527         * doc/posix-functions/sprintf.texi: Update.
15528         * doc/posix-functions/vfprintf.texi: Update.
15529         * doc/posix-functions/vprintf.texi: Update.
15530         * doc/posix-functions/vsnprintf.texi: Update.
15531         * doc/posix-functions/vsprintf.texi: Update.
15532         * doc/glibc-functions/obstack_printf.texi: Update.
15533         * doc/glibc-functions/obstack_vprintf.texi: Update.
15534         Reported by Eric Blake.
15535
15536 2009-02-25  Bruno Haible  <bruno@clisp.org>
15537
15538         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15539         with known value.
15540         Reported by Gary V. Vaughan <gary@gnu.org>.
15541
15542 2009-02-25  Bruno Haible  <bruno@clisp.org>
15543
15544         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15545         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15546         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15547         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15548         Reported by Gary V. Vaughan <gary@gnu.org>.
15549
15550 2009-02-25  Bruno Haible  <bruno@clisp.org>
15551
15552         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15553         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15554         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15555         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15556         Reported by Gary V. Vaughan <gary@gnu.org>.
15557
15558 2009-02-25  Eric Blake  <ebb9@byu.net>
15559
15560         tests: skip fseek/ftell tests if ungetc is broken
15561         * m4/ungetc.m4: New file.
15562         * modules/fseek-tests: Split test, so ungetc dependency is
15563         separate from rest of test.
15564         * modules/fseeko-tests: Likewise.
15565         * modules/ftell-tests: Likewise.
15566         * modules/ftello-tests: Likewise.
15567         * tests/test-fseek.c (main): Isolate ungetc dependency.
15568         * tests/test-fseeko.c (main): Likewise.
15569         * tests/test-ftell.c (main): Likewise.
15570         * tests/test-ftello.c (main): Likewise.
15571         * tests/test-fseek2.sh: New file.
15572         * tests/test-fseeko2.sh: Likewise.
15573         * tests/test-ftell2.sh: Likewise.
15574         * tests/test-ftello2.sh: Likewise.
15575
15576 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15577
15578         test-getaddrinfo: fix usage of skip return code 77
15579         * tests/test-gettaddrinfo.c: Return skip code 77 only
15580         for first occurance of skip (4x77 is not 77)
15581
15582 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15583
15584         strtod: avoid C99 decl-after-statement
15585         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15586
15587 2009-02-24  Eric Blake  <ebb9@byu.net>
15588
15589         strtod: detect HP-UX 11.31 bug
15590         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15591         Reported by Gary V. Vaughan.
15592
15593 2009-02-23  Bruno Haible  <bruno@clisp.org>
15594
15595         Fix invalid read past end of memory block.
15596         * lib/vasnprintf.c (DCHAR_SET): Define.
15597         (local_wcslen): Define only when needed.
15598         (local_strnlen, local_wcsnlen): New functions.
15599         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15600         directives that involve a conversion ourselves.
15601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15602         wcsnlen, mbrtowc, wcrtomb.
15603         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15604         * tests/test-vasprintf-posix.c (test_function): Likewise.
15605         * tests/test-snprintf-posix.h (test_function): Likewise.
15606         * tests/test-sprintf-posix.h (test_function): Likewise.
15607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15608
15609 2009-02-22  Bruno Haible  <bruno@clisp.org>
15610
15611         Implement new clarified decomposition of Hangul syllables.
15612         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15613         of type LTV, return only a pairwise decomposition.
15614         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15615         Likewise.
15616         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15617         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15618         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15619
15620 2009-02-22  Bruno Haible  <bruno@clisp.org>
15621
15622         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15623         zero-length results and shrink excess allocated memory.
15624         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15625         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15626         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15627         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15628         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15629         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15630         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15631         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15632         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15633         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15634         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15635         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15636
15637 2009-02-21  Bruno Haible  <bruno@clisp.org>
15638
15639         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15640         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15641         spaces after a period. Put a space between a macro name and its
15642         argument list. Trivial rewordings.
15643         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15644         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15645         (main): Return 0 explicitly.
15646
15647 2009-02-21  Bruno Haible  <bruno@clisp.org>
15648
15649         Tests for module 'uninorm/filter'.
15650         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15651         * modules/uninorm/filter-tests: New file.
15652
15653         New module 'uninorm/filter'.
15654         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15655         uninorm_filter_flush, uninorm_filter_free): New declarations.
15656         * lib/uninorm/uninorm-filter.c: New file.
15657         * modules/uninorm/filter: New file.
15658
15659 2009-02-21  Bruno Haible  <bruno@clisp.org>
15660
15661         Tests for module 'uninorm/nfkc'.
15662         * tests/uninorm/test-nfkc.c: New file.
15663         * tests/uninorm/test-u8-nfkc.c: New file.
15664         * tests/uninorm/test-u16-nfkc.c: New file.
15665         * tests/uninorm/test-u32-nfkc.c: New file.
15666         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15667         * tests/uninorm/test-u32-nfkc-big.c: New file.
15668         * modules/uninorm/nfkc-tests: New file.
15669
15670         New module 'uninorm/nfkc'.
15671         * lib/uninorm/nfkc.c: New file.
15672         * modules/uninorm/nfkc: New file.
15673
15674         Tests for module 'uninorm/nfkd'.
15675         * tests/uninorm/test-nfkd.c: New file.
15676         * tests/uninorm/test-u8-nfkd.c: New file.
15677         * tests/uninorm/test-u16-nfkd.c: New file.
15678         * tests/uninorm/test-u32-nfkd.c: New file.
15679         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15680         * tests/uninorm/test-u32-nfkd-big.c: New file.
15681         * modules/uninorm/nfkd-tests: New file.
15682
15683         New module 'uninorm/nfkd'.
15684         * lib/uninorm/nfkd.c: New file.
15685         * modules/uninorm/nfkd: New file.
15686
15687         Tests for module 'uninorm/nfc'.
15688         * tests/uninorm/test-nfc.c: New file.
15689         * tests/uninorm/test-u8-nfc.c: New file.
15690         * tests/uninorm/test-u16-nfc.c: New file.
15691         * tests/uninorm/test-u32-nfc.c: New file.
15692         * tests/uninorm/test-u32-nfc-big.sh: New file.
15693         * tests/uninorm/test-u32-nfc-big.c: New file.
15694         * modules/uninorm/nfc-tests: New file.
15695
15696         New module 'uninorm/nfc'.
15697         * lib/uninorm/nfc.c: New file.
15698         * modules/uninorm/nfc: New file.
15699
15700         Tests for module 'uninorm/nfd'.
15701         * tests/uninorm/test-nfd.c: New file.
15702         * tests/uninorm/test-u8-nfd.c: New file.
15703         * tests/uninorm/test-u16-nfd.c: New file.
15704         * tests/uninorm/test-u32-nfd.c: New file.
15705         * tests/uninorm/test-u32-nfd-big.sh: New file.
15706         * tests/uninorm/test-u32-nfd-big.c: New file.
15707         * tests/uninorm/test-u32-normalize-big.h: New file.
15708         * tests/uninorm/test-u32-normalize-big.c: New file.
15709         * tests/uninorm/NormalizationTest.txt: New file, created from
15710         Unicode 5.1.0 NormalizationTest.txt.
15711         * modules/uninorm/nfd-tests: New file.
15712
15713         New module 'uninorm/nfd'.
15714         * lib/uninorm/nfd.c: New file.
15715         * modules/uninorm/nfd: New file.
15716
15717         New module 'uninorm/u32-normalize'.
15718         * lib/uninorm/u32-normalize.c: New file.
15719         * modules/uninorm/u32-normalize: New file.
15720
15721         New module 'uninorm/u16-normalize'.
15722         * lib/uninorm/u16-normalize.c: New file.
15723         * modules/uninorm/u16-normalize: New file.
15724
15725         New module 'uninorm/u8-normalize'.
15726         * lib/uninorm/u8-normalize.c: New file.
15727         * lib/uninorm/normalize-internal.h: New file.
15728         * lib/uninorm/u-normalize-internal.h: New file.
15729         * modules/uninorm/u8-normalize: New file.
15730
15731         New module 'uninorm/decompose-internal'.
15732         * lib/uninorm/decompose-internal.c: New file.
15733         * modules/uninorm/decompose-internal: New file.
15734
15735         Tests for module 'uninorm/composition'.
15736         * tests/uninorm/test-composition.c: New file.
15737         * modules/uninorm/composition-tests: New file.
15738
15739         New module 'uninorm/composition'.
15740         * lib/uninorm/composition.c: New file.
15741         * lib/uninorm/composition-table.gperf: New file, generated by
15742         gen-uni-tables.
15743         * modules/uninorm/composition: New file.
15744
15745         Tests for module 'uninorm/compat-decomposition'.
15746         * tests/uninorm/test-compat-decomposition.c: New file.
15747         * modules/uninorm/compat-decomposition-tests: New file.
15748
15749         New module 'uninorm/compat-decomposition'.
15750         * lib/uninorm/decompose-internal.h: New file.
15751         * lib/uninorm/compat-decomposition.c: New file.
15752         * modules/uninorm/compat-decomposition: New file.
15753
15754         Tests for module 'uninorm/canonical-decomposition'.
15755         * tests/uninorm/test-canonical-decomposition.c: New file.
15756         * modules/uninorm/canonical-decomposition-tests: New file.
15757
15758         New module 'uninorm/canonical-decomposition'.
15759         * lib/uninorm/canonical-decomposition.c: New file.
15760         * modules/uninorm/canonical-decomposition: New file.
15761
15762         Tests for module 'uninorm/decomposition'.
15763         * tests/uninorm/test-decomposition.c: New file.
15764         * modules/uninorm/decomposition-tests: New file.
15765
15766         New module 'uninorm/decomposition'.
15767         * lib/uninorm/decomposition.c: New file.
15768         * modules/uninorm/decomposition: New file.
15769
15770         New module 'uninorm/decomposition-table'.
15771         * lib/uninorm/decomposition-table.h: New file.
15772         * lib/uninorm/decomposition-table.c: New file.
15773         * lib/uninorm/decomposition-table1.h: New file, generated by
15774         gen-uni-tables.
15775         * lib/uninorm/decomposition-table2.h: New file, generated by
15776         gen-uni-tables.
15777         * modules/uninorm/decomposition-table: New file.
15778
15779         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15780         (UC_DECOMP_*): New enumeration items.
15781         (get_decomposition): New function.
15782         (struct decomp_table): New type.
15783         (output_decomposition, output_decomposition_tables): New functions.
15784         (unicode_composition_exclusions): New variable.
15785         (fill_composition_exclusions, debug_output_composition_tables): New
15786         functions.
15787         (main): Accept one more argument. Invoke fill_composition_exclusions.
15788         Output decomposition and composition tables.
15789
15790         New module 'uninorm/base'.
15791         * lib/uninorm.h: New file.
15792         * lib/unictype.h: Update comment.
15793         * modules/uninorm/base: New file.
15794
15795 2009-02-21  David Lutterkort  <lutter@redhat.com>
15796
15797         Tests for module 'safe-alloc'.
15798         * tests/test-safe-alloc.c: New file.
15799         * modules/safe-alloc-tests: New file.
15800
15801         New module 'safe-alloc'.
15802         * lib/safe-alloc.h: New file.
15803         * lib/safe-alloc.c: New file.
15804         * m4/safe-alloc.m4: New file.
15805         * modules/safe-alloc: New file.
15806         * doc/safe-alloc.texi: New file.
15807         * doc/gnulib.texi: Include it.
15808         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15809         safe-alloc.
15810
15811 2009-02-18  Bruno Haible  <bruno@clisp.org>
15812
15813         Fix link error on non-glibc systems.
15814         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15815         variable.
15816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15817
15818 2009-02-18  Jim Meyering  <meyering@redhat.com>
15819
15820         fts: avoid used-uninitialized error due to recent change
15821         * lib/fts.c (fts_read): Guard uses of the new member,
15822         parent->fts_n_dirs_remaining, since it's not relevant for
15823         the parent of a directory specified on the command-line.
15824
15825 2009-02-17  James Youngman  <jay@gnu.org>
15826             Bruno Haible  <bruno@clisp.org>
15827
15828         * m4/include_next.m4: Reformulate comment.
15829
15830 2009-02-16  Jim Meyering  <meyering@redhat.com>
15831
15832         fts: add #if guards so that the fts_lgpl module still builds
15833         * lib/fts.c: Guard just-added hash-table-using parts with
15834         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15835         Reported by Simon Josefsson.
15836
15837 2009-02-15  Bruno Haible  <bruno@clisp.org>
15838
15839         * modules/array-mergesort-tests: New file.
15840         * tests/test-array-mergesort.c: New file.
15841
15842         New module 'array-mergesort'.
15843         * modules/array-mergesort: New file.
15844         * lib/array-mergesort.h: New file.
15845
15846 2009-02-15  Bruno Haible  <bruno@clisp.org>
15847
15848         Fix 2009-02-07 commit.
15849         * lib/gen-uni-tables.c (output_predicate, output_category,
15850         output_combclass, output_bidi_category, output_decimal_digit,
15851         output_digit, output_numeric, output_mirror, output_scripts,
15852         output_ident_category, output_simple_mapping): Fix format directives.
15853         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15854
15855 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15856
15857         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15858         fixes are available from IBM.
15859
15860 2009-02-13  Jim Meyering  <meyering@redhat.com>
15861
15862         fts: arrange not to stat non-directories in more cases
15863         This makes GNU find (when it doesn't need to stat each file)
15864         *much* more efficient at traversing reiserfs file systems.
15865         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15866         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15867         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15868         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15869         (leaf_optimization_applies): New function.
15870         (LCO_hash, LCO_compare): New helper functions.
15871         (link_count_optimize_ok): New function.
15872         (fts_stat): Initialize new member (if dir).
15873         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15874         we've just stat'ed a directory.  Skip the stat call when possible.
15875         ---
15876         Note this AFS-related exchange:
15877         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15878         and note find's pioctl call in find/fstype.c.
15879         But that is necessary only if you want to enable the
15880         optimization for AFS, and for now, I don't.
15881
15882         fts: move a function definition "up" (no semantic change)
15883         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15884         "up" to precede upcoming use of a related function.
15885
15886 2009-02-11  Jim Meyering  <meyering@redhat.com>
15887
15888         fts: correct internal computation of nlinks (optimization-related)
15889         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15890         whether the current entry is a directory, so don't test it.
15891
15892 2009-02-10  Bruno Haible  <bruno@clisp.org>
15893
15894         Tests for module 'uniwbrk/ulc-wordbreaks'.
15895         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15896         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15897         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15898
15899         Tests for module 'uniwbrk/u32-wordbreaks'.
15900         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15901         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15902
15903         Tests for module 'uniwbrk/u16-wordbreaks'.
15904         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15905         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15906
15907         Tests for module 'uniwbrk/u8-wordbreaks'.
15908         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15909         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15910
15911 2009-02-10  Bruno Haible  <bruno@clisp.org>
15912
15913         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15914         property.
15915         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15916         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15917         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15918
15919 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15920
15921         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15922         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15923
15924 2009-02-10  Bruno Haible  <bruno@clisp.org>
15925
15926         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15927         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15928         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15929         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15930         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15931         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15932
15933 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15934
15935         * lib/sockets.h (gl_fd_to_handle): New function.
15936
15937         * tests/test-sockets.c: Call gl_fd_to_handle.
15938
15939 2009-02-09  Bruno Haible  <bruno@clisp.org>
15940
15941         * doc/havelib.texi: Document the conventions on bi-arch systems.
15942
15943 2009-02-08  Bruno Haible  <bruno@clisp.org>
15944
15945         Document the AC_LIB_LINKFLAGS macro.
15946         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15947         * doc/gnulib.texi: Include it.
15948
15949 2009-02-08  Bruno Haible  <bruno@clisp.org>
15950
15951         Fix wrong order of sections, compared to TOC.
15952         * doc/gnulib.texi: Include relocatable-maint.texi after the
15953         "Regular expressions" node, not before.
15954
15955 2009-02-08  Bruno Haible  <bruno@clisp.org>
15956
15957         Tests for module 'unicase/totitle'.
15958         * modules/unicase/totitle-tests: New file.
15959
15960         Tests for module 'unicase/tolower'.
15961         * modules/unicase/tolower-tests: New file.
15962
15963         Tests for module 'unicase/toupper'.
15964         * modules/unicase/toupper-tests: New file.
15965         * tests/unicase/test-mapping-part1.h: New file.
15966         * tests/unicase/test-mapping-part2.h: New file.
15967
15968         New module 'unicase/totitle'.
15969         * modules/unicase/totitle: New file.
15970         * lib/unicase/totitle.c: New file.
15971
15972         New module 'unicase/tolower'.
15973         * modules/unicase/tolower: New file.
15974         * lib/unicase/tolower.c: New file.
15975
15976         New module 'unicase/toupper'.
15977         * modules/unicase/toupper: New file.
15978         * lib/unicase/toupper.c: New file.
15979         * lib/unicase/simple-mapping.h: New file.
15980
15981         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15982         (mapping_table): New structure.
15983         (output_simple_mapping): New function.
15984         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15985         * modules/gen-uni-tables (Description): Update.
15986         * lib/unicase/toupper.h: New file, automatically generated by
15987         gen-uni-tables.
15988         * lib/unicase/tolower.h: New file, automatically generated by
15989         gen-uni-tables.
15990         * lib/unicase/totitle.h: New file, automatically generated by
15991         gen-uni-tables.
15992         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15993         gen-uni-tables.
15994         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15995         gen-uni-tables.
15996         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15997         gen-uni-tables.
15998
15999         New module 'unicase/base'.
16000         * modules/unicase/base: New file.
16001         * lib/unicase.h: New file.
16002
16003 2009-02-08  Bruno Haible  <bruno@clisp.org>
16004
16005         New module 'uniwbrk/ulc-wordbreaks'.
16006         * modules/uniwbrk/ulc-wordbreaks: New file.
16007         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16008
16009         New module 'uniwbrk/u32-wordbreaks'.
16010         * modules/uniwbrk/u32-wordbreaks: New file.
16011         * lib/uniwbrk/u32-wordbreaks.c: New file.
16012
16013         New module 'uniwbrk/u16-wordbreaks'.
16014         * modules/uniwbrk/u16-wordbreaks: New file.
16015         * lib/uniwbrk/u16-wordbreaks.c: New file.
16016
16017         New module 'uniwbrk/u8-wordbreaks'.
16018         * modules/uniwbrk/u8-wordbreaks: New file.
16019         * lib/uniwbrk/u8-wordbreaks.c: New file.
16020         * lib/uniwbrk/u-wordbreaks.h: New file.
16021
16022         New module 'uniwbrk/table'.
16023         * modules/uniwbrk/table: New file.
16024         * lib/uniwbrk/wbrktable.h: New file.
16025         * lib/uniwbrk/wbrktable.c: New file.
16026
16027         New module 'uniwbrk/wordbreak-property'.
16028         * modules/uniwbrk/wordbreak-property: New file.
16029         * lib/uniwbrk/wordbreak-property.c: New file.
16030
16031         * lib/gen-uni-tables.c (WBP_*): New enum items.
16032         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16033         (unicode_org_wbp): New variable.
16034         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16035         New functions.
16036         (wbp_table): New structure.
16037         (output_wbp, output_wbrk_tables): New functions.
16038         (main): Accept additional argument. Invoke fill_org_wbp,
16039         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16040         output_wbrk_tables.
16041         * modules/gen-uni-tables (Description): Update.
16042         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16043         gen-uni-tables.
16044
16045         New module 'uniwbrk/base'.
16046         * modules/uniwbrk/base: New file.
16047         * lib/uniwbrk.h: New file.
16048
16049 2009-02-08  Bruno Haible  <bruno@clisp.org>
16050
16051         Update to Unicode 5.1.0.
16052         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16053         U+2185..U+2188.
16054         (is_property_default_ignorable_code_point): Don't include characters
16055         of category Cc or Cs and not-a-characters.
16056         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16057         U+0D79, U+109E, U+109F, U+A60C.
16058         * lib/unictype/bidi_of.h: Regenerated.
16059         * lib/unictype/blocks.h: Regenerated.
16060         * lib/unictype/categ_C.h: Regenerated.
16061         * lib/unictype/categ_Cf.h: Regenerated.
16062         * lib/unictype/categ_Cn.h: Regenerated.
16063         * lib/unictype/categ_L.h: Regenerated.
16064         * lib/unictype/categ_Ll.h: Regenerated.
16065         * lib/unictype/categ_Lm.h: Regenerated.
16066         * lib/unictype/categ_Lo.h: Regenerated.
16067         * lib/unictype/categ_Lu.h: Regenerated.
16068         * lib/unictype/categ_M.h: Regenerated.
16069         * lib/unictype/categ_Mc.h: Regenerated.
16070         * lib/unictype/categ_Me.h: Regenerated.
16071         * lib/unictype/categ_Mn.h: Regenerated.
16072         * lib/unictype/categ_N.h: Regenerated.
16073         * lib/unictype/categ_Nd.h: Regenerated.
16074         * lib/unictype/categ_Nl.h: Regenerated.
16075         * lib/unictype/categ_No.h: Regenerated.
16076         * lib/unictype/categ_P.h: Regenerated.
16077         * lib/unictype/categ_Pd.h: Regenerated.
16078         * lib/unictype/categ_Pe.h: Regenerated.
16079         * lib/unictype/categ_Pf.h: Regenerated.
16080         * lib/unictype/categ_Pi.h: Regenerated.
16081         * lib/unictype/categ_Po.h: Regenerated.
16082         * lib/unictype/categ_Ps.h: Regenerated.
16083         * lib/unictype/categ_S.h: Regenerated.
16084         * lib/unictype/categ_Sk.h: Regenerated.
16085         * lib/unictype/categ_Sm.h: Regenerated.
16086         * lib/unictype/categ_So.h: Regenerated.
16087         * lib/unictype/categ_of.h: Regenerated.
16088         * lib/unictype/combining.h: Regenerated.
16089         * lib/unictype/ctype_alnum.h: Regenerated.
16090         * lib/unictype/ctype_alpha.h: Regenerated.
16091         * lib/unictype/ctype_graph.h: Regenerated.
16092         * lib/unictype/ctype_lower.h: Regenerated.
16093         * lib/unictype/ctype_print.h: Regenerated.
16094         * lib/unictype/ctype_punct.h: Regenerated.
16095         * lib/unictype/ctype_upper.h: Regenerated.
16096         * lib/unictype/decdigit.h: Regenerated.
16097         * lib/unictype/digit.h: Regenerated.
16098         * lib/unictype/mirror.h: Regenerated.
16099         * lib/unictype/numeric.h: Regenerated.
16100         * lib/unictype/pr_alphabetic.h: Regenerated.
16101         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16102         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16103         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16104         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16105         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16106         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16107         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16108         * lib/unictype/pr_combining.h: Regenerated.
16109         * lib/unictype/pr_dash.h: Regenerated.
16110         * lib/unictype/pr_decimal_digit.h: Regenerated.
16111         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16112         * lib/unictype/pr_deprecated.h: Regenerated.
16113         * lib/unictype/pr_diacritic.h: Regenerated.
16114         * lib/unictype/pr_extender.h: Regenerated.
16115         * lib/unictype/pr_format_control.h: Regenerated.
16116         * lib/unictype/pr_grapheme_base.h: Regenerated.
16117         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16118         * lib/unictype/pr_grapheme_link.h: Regenerated.
16119         * lib/unictype/pr_id_continue.h: Regenerated.
16120         * lib/unictype/pr_id_start.h: Regenerated.
16121         * lib/unictype/pr_ideographic.h: Regenerated.
16122         * lib/unictype/pr_ignorable_control.h: Regenerated.
16123         * lib/unictype/pr_lowercase.h: Regenerated.
16124         * lib/unictype/pr_math.h: Regenerated.
16125         * lib/unictype/pr_numeric.h: Regenerated.
16126         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16127         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16128         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16129         * lib/unictype/pr_other_id_continue.h: Regenerated.
16130         * lib/unictype/pr_other_lowercase.h: Regenerated.
16131         * lib/unictype/pr_other_math.h: Regenerated.
16132         * lib/unictype/pr_punctuation.h: Regenerated.
16133         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16134         * lib/unictype/pr_soft_dotted.h: Regenerated.
16135         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16136         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16137         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16138         * lib/unictype/pr_uppercase.h: Regenerated.
16139         * lib/unictype/pr_xid_continue.h: Regenerated.
16140         * lib/unictype/pr_xid_start.h: Regenerated.
16141         * lib/unictype/pr_zero_width.h: Regenerated.
16142         * lib/unictype/scripts.h: Regenerated.
16143         * lib/unictype/scripts_byname.gperf: Regenerated.
16144         * lib/unictype/sy_java_ident.h: Regenerated.
16145         * lib/unilbrk/lbrkprop1.h: Regenerated.
16146         * lib/unilbrk/lbrkprop2.h: Regenerated.
16147         * tests/unictype/test-categ_C.c: Regenerated.
16148         * tests/unictype/test-categ_Cf.c: Regenerated.
16149         * tests/unictype/test-categ_Cn.c: Regenerated.
16150         * tests/unictype/test-categ_L.c: Regenerated.
16151         * tests/unictype/test-categ_Ll.c: Regenerated.
16152         * tests/unictype/test-categ_Lm.c: Regenerated.
16153         * tests/unictype/test-categ_Lo.c: Regenerated.
16154         * tests/unictype/test-categ_Lu.c: Regenerated.
16155         * tests/unictype/test-categ_M.c: Regenerated.
16156         * tests/unictype/test-categ_Mc.c: Regenerated.
16157         * tests/unictype/test-categ_Me.c: Regenerated.
16158         * tests/unictype/test-categ_Mn.c: Regenerated.
16159         * tests/unictype/test-categ_N.c: Regenerated.
16160         * tests/unictype/test-categ_Nd.c: Regenerated.
16161         * tests/unictype/test-categ_Nl.c: Regenerated.
16162         * tests/unictype/test-categ_No.c: Regenerated.
16163         * tests/unictype/test-categ_P.c: Regenerated.
16164         * tests/unictype/test-categ_Pd.c: Regenerated.
16165         * tests/unictype/test-categ_Pe.c: Regenerated.
16166         * tests/unictype/test-categ_Pf.c: Regenerated.
16167         * tests/unictype/test-categ_Pi.c: Regenerated.
16168         * tests/unictype/test-categ_Po.c: Regenerated.
16169         * tests/unictype/test-categ_Ps.c: Regenerated.
16170         * tests/unictype/test-categ_S.c: Regenerated.
16171         * tests/unictype/test-categ_Sk.c: Regenerated.
16172         * tests/unictype/test-categ_Sm.c: Regenerated.
16173         * tests/unictype/test-categ_So.c: Regenerated.
16174         * tests/unictype/test-ctype_alnum.c: Regenerated.
16175         * tests/unictype/test-ctype_alpha.c: Regenerated.
16176         * tests/unictype/test-ctype_graph.c: Regenerated.
16177         * tests/unictype/test-ctype_lower.c: Regenerated.
16178         * tests/unictype/test-ctype_print.c: Regenerated.
16179         * tests/unictype/test-ctype_punct.c: Regenerated.
16180         * tests/unictype/test-ctype_upper.c: Regenerated.
16181         * tests/unictype/test-decdigit.h: Regenerated.
16182         * tests/unictype/test-digit.h: Regenerated.
16183         * tests/unictype/test-numeric.h: Regenerated.
16184         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16185         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16186         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16188         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16189         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16190         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16191         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16192         * tests/unictype/test-pr_combining.c: Regenerated.
16193         * tests/unictype/test-pr_dash.c: Regenerated.
16194         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16195         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16196         * tests/unictype/test-pr_deprecated.c: Regenerated.
16197         * tests/unictype/test-pr_diacritic.c: Regenerated.
16198         * tests/unictype/test-pr_extender.c: Regenerated.
16199         * tests/unictype/test-pr_format_control.c: Regenerated.
16200         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16201         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16202         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16203         * tests/unictype/test-pr_id_continue.c: Regenerated.
16204         * tests/unictype/test-pr_id_start.c: Regenerated.
16205         * tests/unictype/test-pr_ideographic.c: Regenerated.
16206         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16207         * tests/unictype/test-pr_lowercase.c: Regenerated.
16208         * tests/unictype/test-pr_math.c: Regenerated.
16209         * tests/unictype/test-pr_numeric.c: Regenerated.
16210         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16211         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16212         Regenerated.
16213         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16214         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16215         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16216         * tests/unictype/test-pr_other_math.c: Regenerated.
16217         * tests/unictype/test-pr_punctuation.c: Regenerated.
16218         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16219         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16220         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16221         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16222         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16223         * tests/unictype/test-pr_uppercase.c: Regenerated.
16224         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16225         * tests/unictype/test-pr_xid_start.c: Regenerated.
16226         * tests/unictype/test-pr_zero_width.c: Regenerated.
16227
16228         Update to Unicode 5.1.0.
16229         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16230         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16231         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16232         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16233         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16234         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16235         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16236         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16237         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16238         (nonspacing_table_ind): Update.
16239         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16240
16241         Update to Unicode 5.1.0.
16242         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16243         code transform.
16244         * lib/uniname/uniname.c (unicode_character_name,
16245         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16246         * lib/uniname/uninames.h: Regenerated.
16247         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16248
16249 2009-02-07  Bruno Haible  <bruno@clisp.org>
16250
16251         Merge gen-ctype and gen-lbrk into a single program.
16252         * lib/gen-uni-tables.c: New file, incorporating
16253         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16254         Add directory prefixes to the names of the generated files.
16255         * lib/unictype/gen-ctype.c: Remove file.
16256         * lib/unilbrk/gen-lbrk.c: Remove file.
16257         * modules/gen-uni-tables: New file.
16258         * modules/unictype/gen-ctype: Remove file.
16259         * modules/unilbrk/gen-lbrk: Remove file.
16260
16261 2009-02-07  Bruno Haible  <bruno@clisp.org>
16262
16263         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16264
16265         New module 'unistr/u32-strcoll'.
16266         * modules/unistr/u32-strcoll: New file.
16267         * lib/unistr/u32-strcoll.c: New file.
16268
16269         New module 'unistr/u16-strcoll'.
16270         * modules/unistr/u16-strcoll: New file.
16271         * lib/unistr/u16-strcoll.c: New file.
16272
16273         New module 'unistr/u8-strcoll'.
16274         * modules/unistr/u8-strcoll: New file.
16275         * lib/unistr/u8-strcoll.c: New file.
16276         * lib/unistr/u-strcoll.h: New file.
16277
16278 2009-02-07  Bruno Haible  <bruno@clisp.org>
16279
16280         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16281         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16282         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16283         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16284         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16285         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16286
16287 2009-02-07  Bruno Haible  <bruno@clisp.org>
16288
16289         Make 64-bit clean.
16290         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16291         output_combclass, output_bidi_category, output_decimal_digit,
16292         output_digit, output_numeric, output_mirror, output_scripts,
16293         output_ident_category): Use proper width specifier in format strings.
16294
16295 2009-02-07  Bruno Haible  <bruno@clisp.org>
16296
16297         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16298         failure behaviour.
16299
16300 2009-02-07  Jim Meyering  <meyering@redhat.com>
16301
16302         regex: avoid compilation failure with upcoming gcc-4.4
16303         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16304         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16305         "... error: integer overflow in preprocessor expression".
16306
16307 2009-02-05  Ben Pfaff  <blp@gnu.org>
16308
16309         Fix link errors on Windows when close module is used.
16310         * modules/close: Add $(LIB_CLOSE) to Link section.
16311         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16312         $(LIB_CLOSE) on Windows.
16313
16314 2009-02-05  Jim Meyering  <meyering@redhat.com>
16315
16316         still avoid unused-parameter warnings, but do it cleanly
16317         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16318         (get_fs_usage): Cast to void instead.
16319         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16320         (dev_from_mount_options, read_file_system_list): Cast to void.
16321         Prompted by Bruno Haible.
16322
16323 2009-02-04  Jim Meyering  <meyering@redhat.com>
16324
16325         fsusage.c: correct copyright year
16326         * lib/fsusage.c: Reflect year in which the change is pushed into
16327
16328         avoid misc. warnings
16329         * lib/fsusage.c (UNUSED_PARAM): Define.
16330         (get_fs_usage): Mark parameter "disk" as unused.
16331         * lib/getugroups.c (getgrent): Use "void" in prototype.
16332         * lib/mountlist.c: Mark unused parameters.
16333         (read_file_system_list): Declare a local with "const".
16334         * lib/nanosleep.c (getnow): Declare static.
16335         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16336
16337         dirfd: set errno upon failure
16338         * lib/dirfd.c: Include <errno.h>.
16339         Set errno to ENOTSUP when returning -1.
16340         * modules/dirfd (Depends-on): Add errno.
16341         Suggested by John Kodis <kodis@comcast.net>.
16342
16343 2009-02-01  Bruno Haible  <bruno@clisp.org>
16344
16345         Don't assume sizeof (long) >= sizeof (void *).
16346         * lib/memcmp.c: Include stdint.h.
16347         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16348         srcp2 to 'const byte *'.
16349         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16350         types to uintptr_t.
16351         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16352         * modules/memcmp (Depends-on): Add stdint.
16353         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16354
16355 2009-01-30  Eric Blake  <ebb9@byu.net>
16356
16357         fix more require-before-expand issues
16358         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16359         expand, AC_PROG_AWK.
16360         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16361
16362 2009-01-28  Eric Blake  <ebb9@byu.net>
16363
16364         version-etc: use consistent URL formatting
16365         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16366         Improve formatting.  Use fputs for string without %.
16367
16368 2009-01-28  Jim Meyering  <meyering@redhat.com>
16369
16370         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16371         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16372         "underquoted definition of NAME" from autoconf-2.59.
16373
16374 2009-01-28  Bruno Haible  <bruno@clisp.org>
16375
16376         * doc/gnulib.texi: Add "Obsolete modules" to index.
16377
16378 2009-01-28  Jim Meyering  <meyering@redhat.com>
16379
16380         useless-if-before-free: recognize more variants
16381         * build-aux/useless-if-before-free: Also recognize e.g.,
16382         if (NULL != p) free (p);
16383
16384 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16385
16386         test-getaddrinfo: skip (don't fail) this test when there's no network
16387         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16388         on the presumption that it means you lack network access.
16389
16390 2009-01-26  Jim Meyering  <meyering@redhat.com>
16391
16392         fflush: avoid warnings on modern systems
16393         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16394         pos and result, into scopes where they're used.
16395
16396 2009-01-26  Eric Blake  <ebb9@byu.net>
16397
16398         Silence warning reintroduced by recent extensions patch.
16399         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16400         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16401         autoconf.
16402
16403         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16404         * m4/00gnulib.m4: New file.
16405         * gnulib-tool (func_get_filelist): Always use it.
16406         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16407         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16408
16409 2009-01-25  Bruno Haible  <bruno@clisp.org>
16410
16411         Make test-quotearg work on MacOS X and AIX.
16412         * tests/test-quotearg.sh: New file.
16413         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16414         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16415         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16416         include <libintl.h>.
16417         (fake_locale): Remove variable.
16418         (gettext, dgettext, dcgettext): Remove functions.
16419         (main): Instead of setting a fake locale, set a real locale. Call
16420         textdomain and bindtextdomain.
16421         * modules/quotearg-tests (Files): Add the new files.
16422         (Depends-on): Add gettext, setenv, unsetenv.
16423         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16424         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16425         Augment TESTS_ENVIRONMENT.
16426
16427 2009-01-25  Bruno Haible  <bruno@clisp.org>
16428
16429         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16430         fr_FR.ISO8859-1 locale on MacOS X.
16431         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16432         ja_JP.eucJP locale on MacOS X.
16433         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16434         zh_CN.GB18030 locale on MacOS X.
16435
16436 2009-01-25  Bruno Haible  <bruno@clisp.org>
16437
16438         Avoid link errors on MacOS X 10.3.
16439         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16440         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16441
16442 2009-01-25  Bruno Haible  <bruno@clisp.org>
16443
16444         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16445         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16446         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16447         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16448         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16449         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16450         posix_spawnattr_init, posix_spawnattr_setsigmask,
16451         posix_spawnattr_setflags, posix_spawnattr_destroy.
16452
16453         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16454         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16455         * modules/execute (Files): Remove m4/posix_spawn.m4.
16456         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16457         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16458         posix_spawnattr_init, posix_spawnattr_setsigmask,
16459         posix_spawnattr_setflags, posix_spawnattr_destroy.
16460
16461 2009-01-25  Bruno Haible  <bruno@clisp.org>
16462
16463         * lib/glthread/threadlib.c: Include <stdlib.h>.
16464
16465 2009-01-25  Bruno Haible  <bruno@clisp.org>
16466
16467         * lib/glthread/threadlib.c (dummy): New declaration.
16468
16469 2009-01-25  Bruno Haible  <bruno@clisp.org>
16470
16471         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16472         multibyte characters also for the GB18030 encoding. Don't crash when
16473         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16474
16475 2009-01-25  Bruno Haible  <bruno@clisp.org>
16476
16477         Avoid redefining 'struct random_data' on OSF/1 5.1.
16478         * lib/stdlib.in.h: Include <random.h> if it exists.
16479         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16480         HAVE_RANDOM_H. Include <random.h> when testing whether
16481         'struct random_data' exists.
16482         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16483
16484 2009-01-25  Bruno Haible  <bruno@clisp.org>
16485
16486         Don't install charset.alias on MacOS X >= 10.3.
16487         * lib/localcharset.c (DARWIN7): New macro.
16488         (get_charset_aliases): Hardcode the result for Darwin7.
16489         * modules/localcharset (install-exec-local): Don't install
16490         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16491
16492 2009-01-25  Bruno Haible  <bruno@clisp.org>
16493
16494         Don't install charset.alias on mingw and Cygwin.
16495         * modules/localcharset (install-exec-local): Don't install
16496         charset.alias on mingw and Cygwin, if the file does not yet exist.
16497         The result for these platforms is hardcoded in localcharset.c.
16498
16499 2009-01-25  Bruno Haible  <bruno@clisp.org>
16500
16501         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16502         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16503         before requiring AC_USE_SYSTEM_EXTENSIONS.
16504
16505 2009-01-25  Jim Meyering  <meyering@redhat.com>
16506
16507         c-strtod: avoid warnings
16508         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16509         "assignment discards qualifiers from pointer target type" warnings.
16510
16511 2009-01-24  Bruno Haible  <bruno@clisp.org>
16512
16513         Add support for non-UTF-8 locales on MacOS X.
16514         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16515         canonical encodings. For Darwin 7 and newer, don't map traditional
16516         encodings to UTF-8.
16517         Reported by Vincent Lefevre <vincent@vinc17.org>
16518         at <http://savannah.gnu.org/bugs/?25235>.
16519
16520 2009-01-24  Bruno Haible  <bruno@clisp.org>
16521
16522         * doc/gnulib.texi (Obsolete modules): New section.
16523         Reported by Mike Frysinger <vapier@gentoo.org>.
16524
16525 2009-01-24  Bruno Haible  <bruno@clisp.org>
16526
16527         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16528         (%.dvi): New rule.
16529
16530 2009-01-24  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16533         Reported by Eric Blake.
16534
16535 2009-01-24  Bruno Haible  <bruno@clisp.org>
16536
16537         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16538         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16539         Reported by Gary V. Vaughan <gary@gnu.org>.
16540
16541 2009-01-24  Bruno Haible  <bruno@clisp.org>
16542
16543         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16544
16545 2009-01-23  Bruno Haible  <bruno@clisp.org>
16546
16547         Make c-strtod, c-strtold usable in libraries.
16548         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16549         (C_STRTOD): Call strdup instead of xstrdup.
16550         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16551         * modules/c-strtold (Depends-on): Likewise.
16552         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16553         * NEWS: Mention the change.
16554         Reported by Michael Gold <mgold@ncf.ca>.
16555
16556 2009-01-23  Jim Meyering  <meyering@redhat.com>
16557
16558         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16559         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16560         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16561
16562 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16563
16564         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16565         GNU CoreUtils.
16566         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16567         * modules/version-etc (Description): Update.
16568
16569 2009-01-22  Bruno Haible  <bruno@clisp.org>
16570
16571         Cache the C locale object.
16572         * lib/c-strtod.c (c_locale_cache): New variable.
16573         (c_locale): New function.
16574         (C_STRTOD): Use it, and don't call freelocale.
16575         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16576         Suggested by Paolo Bonzini.
16577
16578 2009-01-21  Bruno Haible  <bruno@clisp.org>
16579
16580         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16581         conditions other than overflow.
16582
16583 2009-01-21  Bruno Haible  <bruno@clisp.org>
16584
16585         * lib/c-strtod.c: Include errno.h.
16586         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16587         value from STRTOD_L and STRTOD.
16588
16589 2009-01-21  Bruno Haible  <bruno@clisp.org>
16590         and Jim Meyering  <meyering@redhat.com>
16591
16592         nanosleep: skip configure test (fail it) for apple universal builds
16593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16594         universal builds, assume that nanosleep does not work.
16595         * modules/nanosleep (Depends-on): Add multiarch.
16596
16597         mktime: skip configure test (fail it) for apple universal builds
16598         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16599         universal builds, assume that mktime does not work.
16600         * modules/mktime (Depends-on): Add multiarch.
16601
16602 2009-01-21  Eric Blake  <ebb9@byu.net>
16603
16604         multiarch: avoid expand-before-require warning
16605         * modules/multiarch (configure.ac): Require, rather than expand,
16606         gl_MULTIARCH.
16607         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16608         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16609         enforce that all clients require it.  Partial reversion of
16610         2008-12-29 patch.
16611
16612         error: avoid expand-before-require warning
16613         * modules/errno (configure.ac): Require, rather than expand,
16614         gl_HEADER_ERRNO_H.
16615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16616         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16617         enforce that all clients require it.
16618
16619         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16620         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16621         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16622         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16623
16624 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16625
16626         Revert:
16627         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16628
16629         regex: do not depend on obsolete modules.
16630         * modules/regex: Remove memcmp and memmove.
16631
16632 2009-01-20  Bruno Haible  <bruno@clisp.org>
16633
16634         Make the 'link' module link on Windows NT 4.
16635         * lib/link.c (_WIN32_WINNT): Don't define.
16636         (CreateHardLinkFuncType): New type.
16637         (CreateHardLinkFunc, initialized): New variables.
16638         (initialize): New function.
16639         (link): Invoke CreateHardLink indirectly through the function pointer.
16640
16641 2009-01-20  Bruno Haible  <bruno@clisp.org>
16642
16643         Fix compilation failure on mingw.
16644         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16645
16646 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16647
16648         * doc/c-strtod.texi: Mention a couple of restrictions.
16649
16650 2009-01-20  Jim Meyering  <meyering@redhat.com>
16651
16652         gettimeofday: move more declarations out of functions
16653         * lib/gettimeofday.c: Move extern declarations of tzset and
16654         gmtime out of containing functions.  Prompted by Bruno Haible.
16655
16656 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16657
16658         regex: do not depend on obsolete modules.
16659         * modules/regex: Remove memcmp and memmove.
16660
16661 2009-01-19  Bruno Haible  <bruno@clisp.org>
16662
16663         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16664         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16665         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16666         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16667         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16668
16669 2009-01-19  Bruno Haible  <bruno@clisp.org>
16670
16671         * tests/test-link.c: Include <errno.h>.
16672         (main): Exit with code 77 when a hard link cannot be created due to
16673         the file system.
16674         * tests/test-link.sh: Skip test when a hard link cannot be created due
16675         to the file system.
16676         Suggested by Eric Blake.
16677
16678 2009-01-19  Martin Lambers  <marlam@marlam.de>
16679
16680         * modules/link-tests: New file.
16681         * tests/test-link.sh: New file.
16682         * tests/test-link.c: New file.
16683
16684 2009-01-19  Eric Blake  <ebb9@byu.net>
16685
16686         doc: mention another function added in cygwin 1.7.0
16687         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16688         Another new function in cygwin 1.7.
16689
16690 2009-01-19  Bruno Haible  <bruno@clisp.org>
16691
16692         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16693         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16694         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16695         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16696         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16697         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16698         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16699         * m4/md4.m4 (gl_MD4): Likewise.
16700         * m4/md5.m4 (gl_MD5): Likewise.
16701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16702         * m4/sha1.m4 (gl_SHA1): Likewise.
16703         * m4/sha256.m4 (gl_SHA256): Likewise.
16704         * m4/sha512.m4 (gl_SHA512): Likewise.
16705
16706 2009-01-19  Bruno Haible  <bruno@clisp.org>
16707
16708         * modules/uniname/uniname-tests (Depends-on): Add progname.
16709         * tests/uniname/test-uninames.c: Include progname.h.
16710         (main): Call set_program_name.
16711
16712         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16713         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16714         (main): Call set_program_name.
16715
16716         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16717         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16718         (main): Call set_program_name.
16719
16720         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16721         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16722         (main): Call set_program_name.
16723
16724         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16725         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16726         (main): Call set_program_name.
16727
16728         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16729         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16730         (main): Call set_program_name.
16731
16732         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16733         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16734         (main): Call set_program_name.
16735
16736         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16737         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16738         (main): Call set_program_name.
16739
16740         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16741         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16742         (main): Call set_program_name.
16743
16744 2009-01-19  Eric Blake  <ebb9@byu.net>
16745
16746         test-unistd: test previous patch
16747         * tests/test-unistd.c: Test *_FILENO macros.
16748
16749         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16750         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16751         Guarantee a definition.
16752         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16753         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16754         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16755         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16756         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16757         Likewise.
16758         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16759         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16760         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16761         Likewise.
16762         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16763         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16764         (STDERR_FILENO): Likewise.
16765         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16766         (STDERR_FILENO): Likewise.
16767         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16768         (STDERR_FILENO): Likewise.
16769         Reported by Elbert Pol.
16770
16771 2009-01-19  Eric Blake  <ebb9@byu.net>
16772
16773         doc: mention more functions added in cygwin 1.7.0
16774         * doc/posix-functions/abort.texi (abort): Update wording related
16775         to cygwin.
16776         * doc/posix-functions/daylight.texi (daylight): Likewise.
16777         * doc/posix-functions/optarg.texi (optarg): Likewise.
16778         * doc/posix-functions/optarg.texi (opterr): Likewise.
16779         * doc/posix-functions/optarg.texi (optind): Likewise.
16780         * doc/posix-functions/optarg.texi (optopt): Likewise.
16781         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16782         worked in 1.5.x, and was withdrawn in 1.7.
16783         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16784         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16785         cygwin versions.
16786         * doc/posix-functions/perror.texi (perror): Likewise.
16787         * doc/posix-functions/printf.texi (printf): Likewise.
16788         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16789         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16790         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16791         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16792         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16793         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16794         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16795         Likewise.
16796         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16797         Likewise.
16798         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16799         this function.
16800         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16801         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16802         Likewise.
16803         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16804         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16805         * doc/posix-functions/confstr.texi (confstr): Likewise.
16806         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16807         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16808         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16809         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16810         * doc/posix-functions/fputws.texi (fputws): Likewise.
16811         * doc/posix-functions/fwide.texi (fwide): Likewise.
16812         * doc/posix-functions/getwc.texi (getwc): Likewise.
16813         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16814         * doc/posix-functions/putwc.texi (putwc): Likewise.
16815         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16816         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16817         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16818         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16819         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16820         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16821         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16822         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16823         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16824         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16825         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16826
16827 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16828
16829         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16830         * lib/ioctl.c: Include <sys/ioctl.h>.
16831
16832 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16833
16834         * modules/getdate-tests (Depends-on): Add progname.
16835         * tests/test-getdate.c: Use progname module, to avoid link errors
16836         on non-glibc systems.
16837
16838 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16839
16840         * modules/filenamecat-tests (Depends-on): Add progname.
16841         * modules/fstrcmp-tests (Depends-on): Likewise.
16842
16843         * tests/test-filenamecat.c: Use progname module, to avoid link
16844         errors on non-glibc systems.
16845         * tests/test-fstrcmp.c: Likewise.
16846
16847 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16848
16849         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16850         * lib/gettimeofday.c: Move extern declaration out of function.
16851
16852 2009-01-18  Bruno Haible  <bruno@clisp.org>
16853
16854         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16855         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16856         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16857
16858 2009-01-18  Bruno Haible  <bruno@clisp.org>
16859
16860         * lib/strftime.c (MEMPCPY): Remove unused macro.
16861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16862
16863 2009-01-18  Martin Lambers  <marlam@marlam.de>
16864
16865         New module 'link'.
16866         * lib/unistd.in.h (link): New declaration.
16867         * lib/link.c: New file.
16868         * m4/link.m4: New file.
16869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16870         HAVE_LINK.
16871         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16872         * modules/link: New file.
16873         * doc/posix-functions/link.texi: Mention the new module.
16874
16875 2009-01-18  Bruno Haible  <bruno@clisp.org>
16876
16877         * tests/test-avltree_list.c (main): Call set_program_name.
16878         * tests/test-avltree_oset.c (main): Likewise.
16879         * tests/test-obstack-printf.c: Include progname.h.
16880         (main): Call set_program_name.
16881         * tests/test-quotearg.c: Include progname.h.
16882         (main): Call set_program_name.
16883         * tests/test-xmemdup0.c: Include progname.h.
16884         (main): Call set_program_name.
16885
16886 2009-01-18  Bruno Haible  <bruno@clisp.org>
16887
16888         New module 'alphasort'.
16889         * lib/dirent.in.h (alphasort): New declaration.
16890         * lib/alphasort.c: New file, from glibc with modifications.
16891         * m4/alphasort.m4: New file.
16892         * modules/alphasort: New file.
16893         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16894         HAVE_ALPHASORT.
16895         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16896         HAVE_ALPHASORT.
16897         * doc/posix-functions/alphasort.texi: Mention the new module and the
16898         portability problems.
16899
16900 2009-01-18  Bruno Haible  <bruno@clisp.org>
16901
16902         New module 'scandir'.
16903         * lib/dirent.in.h (scandir): New declaration.
16904         * lib/scandir.c: New file, from glibc with modifications.
16905         * m4/scandir.m4: New file.
16906         * modules/scandir: New file.
16907         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16908         HAVE_SCANDIR.
16909         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16910         HAVE_SCANDIR.
16911         * doc/posix-functions/scandir.texi: Mention the new module and the
16912         portability problems.
16913
16914 2009-01-17  Bruno Haible  <bruno@clisp.org>
16915
16916         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16917         Update documentation.
16918         (func_remove_suffix): Escape all dots in the suffix. Update
16919         documentation.
16920         (func_filter_filelist): Update documentation.
16921         Reported by Ralf Wildenhues.
16922
16923 2009-01-17  Bruno Haible  <bruno@clisp.org>
16924
16925         * modules/dprintf-posix-tests: New file.
16926         * tests/test-dprintf-posix.sh: New file.
16927         * tests/test-dprintf-posix.c: New file.
16928
16929         New modules 'dprintf', 'dprintf-posix'.
16930         * lib/stdio.in.h (dprintf): New declaration.
16931         * lib/dprintf.c: New file.
16932         * m4/dprintf.m4: New file.
16933         * m4/dprintf-posix.m4: New file.
16934         * modules/dprintf: New file.
16935         * modules/dprintf-posix: New file.
16936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16937         HAVE_DPRINTF, REPLACE_DPRINTF.
16938         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16939         HAVE_DPRINTF, REPLACE_DPRINTF.
16940         * doc/posix-functions/dprintf.texi: Mention the new modules.
16941
16942 2009-01-17  Bruno Haible  <bruno@clisp.org>
16943
16944         * modules/vdprintf-posix-tests: New file.
16945         * tests/test-vdprintf-posix.sh: New file.
16946         * tests/test-vdprintf-posix.c: New file.
16947
16948         New modules 'vdprintf', 'vdprintf-posix'.
16949         * lib/stdio.in.h (vdprintf): New declaration.
16950         * lib/vdprintf.c: New file.
16951         * m4/vdprintf.m4: New file.
16952         * m4/vdprintf-posix.m4: New file.
16953         * modules/vdprintf: New file.
16954         * modules/vdprintf-posix: New file.
16955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16956         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16957         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16958         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16959         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16960
16961 2009-01-17  Bruno Haible  <bruno@clisp.org>
16962
16963         Fix replacement of fopen on mingw.
16964         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16965         mingw.
16966
16967 2009-01-17  Bruno Haible  <bruno@clisp.org>
16968
16969         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16970         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16971
16972 2009-01-17  Bruno Haible  <bruno@clisp.org>
16973
16974         Avoid test-fflush2.sh failure on mingw.
16975         * tests/test-fflush2.c: Include binary-io.h.
16976         (main): Put standard input into binary mode.
16977         * modules/fflush-tests (Depends-on): Add binary-io.
16978
16979 2009-01-17  Bruno Haible  <bruno@clisp.org>
16980
16981         * lib/wchar.in.h: In another particular situation, include only the
16982         system's <wchar.h> file.
16983         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16984         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16985         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16986
16987 2009-01-17  Bruno Haible  <bruno@clisp.org>
16988
16989         Support for stripping executables in --enable-relocatable.
16990         * build-aux/install-reloc: Expect one more argument, or an environment
16991         variable RELOC_STRIP_PROG. If set, strip the destination program and
16992         its wrapper.
16993         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16994         RELOC_STRIP_PROG.
16995         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16996         to set RELOCATABLE_STRIP.
16997         * NEWS: Mention the new Makefile requirement.
16998
16999 2009-01-17  Bruno Haible  <bruno@clisp.org>
17000
17001         * build-aux/install-reloc: Remove debugging information left over by
17002         C compiler on MacOS X.
17003
17004 2009-01-17  Bruno Haible  <bruno@clisp.org>
17005
17006         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17007         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17008         _NSGetExecutablePath.
17009
17010 2009-01-16  Jim Meyering  <meyering@redhat.com>
17011
17012         strerror: avoid warnings about discarding "const"
17013         * lib/strerror.c (rpl_strerror): Instead of returning a const
17014         string from each and every "case", use a variable, and add a single
17015         cast after the switch.
17016
17017 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17018
17019         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17020
17021 2009-01-16  Bruno Haible  <bruno@clisp.org>
17022
17023         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17024         array initializer syntax that also works in C++ mode.
17025         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17026
17027 2009-01-16  Jim Meyering  <meyering@redhat.com>
17028
17029         poll: suppress a warning
17030         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17031         to ignore "...unsigned expression < 0 is always false" warnings.
17032
17033 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17034
17035         poll: remove declarations of unused variables
17036         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17037         sockbuf and optlen.
17038
17039 2009-01-15  Bruno Haible  <bruno@clisp.org>
17040
17041         Make fflush-after-ungetc POSIX compliant on BSD systems.
17042         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17043         (clear_ungetc_buffer): Implement also for other systems.
17044         (rpl_fflush): On glibc systems, invoke
17045         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17046         clear_ungetc_buffer after fetching the stream's position, not before.
17047
17048 2009-01-15  Bruno Haible  <bruno@clisp.org>
17049
17050         Make fflush-after-ungetc POSIX compliant on glibc systems.
17051         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17052         after ungetc.
17053         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17054         (rpl_fflush): On glibc systems, simply call the system's fflush
17055         function after clearing the ungetc buffer.
17056         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17057         Instead, lseek only to the end of file, then use the system's fseeko
17058         for the rest. On glibc systems, reset the EOF indicator bit.
17059
17060 2009-01-15  Jim Meyering  <meyering@redhat.com>
17061
17062         openmp.m4: revert quote-adding change, for portability to older autoconf
17063         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17064         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17065         Simon Josefsson noticed the problem when using autoconf-2.61.
17066
17067 2009-01-15  Bruno Haible  <bruno@clisp.org>
17068
17069         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17070         * tests/test-fflush2.c (ASSERT): Always fail.
17071         (main): Add two tests for fflush() after ungetc(), taking into account
17072         the Austin Group's clarification.
17073         Suggested by Eric Blake.
17074
17075 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17076
17077         mktime.m4: remove K&R-style function prototypes
17078         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17079         for the Sun C++ compiler.
17080
17081 2009-01-14  Bruno Haible  <bruno@clisp.org>
17082
17083         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17084         while including <wchar.h>.
17085         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17086         the system's <wchar.h> file.
17087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17088
17089 2009-01-14  Bruno Haible  <bruno@clisp.org>
17090
17091         * m4/csharp.m4: Don't mention gettext on the serial number line.
17092         * m4/csharpexec.m4: Likewise.
17093         * m4/eaccess.m4: Likewise.
17094         * m4/javaexec.m4: Likewise.
17095         * m4/sig_atomic_t.m4: Likewise.
17096         * m4/tmpdir.m4: Likewise.
17097         * m4/intldir.m4: Bump gettext version.
17098         * m4/lib-ld.m4: Likewise.
17099
17100 2009-01-14  Bruno Haible  <bruno@clisp.org>
17101
17102         * lib/progname.c (set_program_name): Add more comments.
17103         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17104
17105 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17106
17107         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17108         were sys/stat.h does not define it.
17109
17110 2009-01-14  Jim Meyering  <meyering@redhat.com>
17111
17112         many *.m4 files: improve m4 quoting
17113         99% of this change was performed by running the following commands:
17114         git ls-files | grep '\.m4$' | xargs perl -pi \
17115           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17116           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17117           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17118           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17119         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17120         The remainder were to add Copyright dates, increment serial numbers,
17121         undo some changes in comments, exclude m4/intl.m4, and add quotes
17122         around the "1" in ",1" where the unusual spacing prohibited the
17123         above regexps from doing the job.  For more details, see
17124         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17125         * m4/acl.m4: Modified.
17126         * m4/afs.m4: Likewise.
17127         * m4/alloca.m4: Likewise.
17128         * m4/argp.m4: Likewise.
17129         * m4/argz.m4: Likewise.
17130         * m4/atexit.m4: Likewise.
17131         * m4/bison-i18n.m4: Likewise.
17132         * m4/bison.m4: Likewise.
17133         * m4/byteswap.m4: Likewise.
17134         * m4/c-stack.m4: Likewise.
17135         * m4/c-strtod.m4: Likewise.
17136         * m4/calloc.m4: Likewise.
17137         * m4/canonicalize-lgpl.m4: Likewise.
17138         * m4/chown.m4: Likewise.
17139         * m4/clock_time.m4: Likewise.
17140         * m4/codeset.m4: Likewise.
17141         * m4/copy-file.m4: Likewise.
17142         * m4/csharp.m4: Likewise.
17143         * m4/csharpcomp.m4: Likewise.
17144         * m4/csharpexec.m4: Likewise.
17145         * m4/d-ino.m4: Likewise.
17146         * m4/d-type.m4: Likewise.
17147         * m4/dirfd.m4: Likewise.
17148         * m4/double-slash-root.m4: Likewise.
17149         * m4/eaccess.m4: Likewise.
17150         * m4/eealloc.m4: Likewise.
17151         * m4/environ.m4: Likewise.
17152         * m4/errno_h.m4: Likewise.
17153         * m4/euidaccess.m4: Likewise.
17154         * m4/execute.m4: Likewise.
17155         * m4/fatal-signal.m4: Likewise.
17156         * m4/fchdir.m4: Likewise.
17157         * m4/fcntl_h.m4: Likewise.
17158         * m4/fileblocks.m4: Likewise.
17159         * m4/filenamecat.m4: Likewise.
17160         * m4/findprog.m4: Likewise.
17161         * m4/flexmember.m4: Likewise.
17162         * m4/fnmatch.m4: Likewise.
17163         * m4/fopen.m4: Likewise.
17164         * m4/fpending.m4: Likewise.
17165         * m4/fprintf-posix.m4: Likewise.
17166         * m4/free.m4: Likewise.
17167         * m4/frexp.m4: Likewise.
17168         * m4/frexpl.m4: Likewise.
17169         * m4/fsusage.m4: Likewise.
17170         * m4/ftruncate.m4: Likewise.
17171         * m4/gc-camellia.m4: Likewise.
17172         * m4/gc-random.m4: Likewise.
17173         * m4/gc.m4: Likewise.
17174         * m4/getaddrinfo.m4: Likewise.
17175         * m4/getcwd-abort-bug.m4: Likewise.
17176         * m4/getcwd-path-max.m4: Likewise.
17177         * m4/getdate.m4: Likewise.
17178         * m4/getdomainname.m4: Likewise.
17179         * m4/getgroups.m4: Likewise.
17180         * m4/gethostname.m4: Likewise.
17181         * m4/gethrxtime.m4: Likewise.
17182         * m4/getline.m4: Likewise.
17183         * m4/getloadavg.m4: Likewise.
17184         * m4/getndelim2.m4: Likewise.
17185         * m4/getpass.m4: Likewise.
17186         * m4/gettext.m4: Likewise.
17187         * m4/gettime.m4: Likewise.
17188         * m4/gettimeofday.m4: Likewise.
17189         * m4/gnulib-common.m4: Likewise.
17190         * m4/group-member.m4: Likewise.
17191         * m4/host-os.m4: Likewise.
17192         * m4/iconv.m4: Likewise.
17193         * m4/iconv_open.m4: Likewise.
17194         * m4/inet_ntop.m4: Likewise.
17195         * m4/inet_pton.m4: Likewise.
17196         * m4/inline.m4: Likewise.
17197         * m4/intldir.m4: Likewise.
17198         * m4/intlmacosx.m4: Likewise.
17199         * m4/intmax.m4: Likewise.
17200         * m4/intmax_t.m4: Likewise.
17201         * m4/inttypes.m4: Likewise.
17202         * m4/inttypes_h.m4: Likewise.
17203         * m4/inttypes-pri.m4: Likewise.
17204         * m4/isapipe.m4: Likewise.
17205         * m4/isnand.m4: Likewise.
17206         * m4/isnanf.m4: Likewise.
17207         * m4/isnanl.m4: Likewise.
17208         * m4/javacomp.m4: Likewise.
17209         * m4/javaexec.m4: Likewise.
17210         * m4/jm-winsz1.m4: Likewise.
17211         * m4/jm-winsz2.m4: Likewise.
17212         * m4/lchown.m4: Likewise.
17213         * m4/lcmessage.m4: Likewise.
17214         * m4/ldexpl.m4: Likewise.
17215         * m4/lib-ld.m4: Likewise.
17216         * m4/lib-link.m4: Likewise.
17217         * m4/libsigsegv.m4: Likewise.
17218         * m4/link-follow.m4: Likewise.
17219         * m4/localcharset.m4: Likewise.
17220         * m4/locale-fr.m4: Likewise.
17221         * m4/locale-ja.m4: Likewise.
17222         * m4/locale-tr.m4: Likewise.
17223         * m4/locale-zh.m4: Likewise.
17224         * m4/lock.m4: Likewise.
17225         * m4/longlong.m4: Likewise.
17226         * m4/ls-mntd-fs.m4: Likewise.
17227         * m4/lstat.m4: Likewise.
17228         * m4/malloc.m4: Likewise.
17229         * m4/mathl.m4: Likewise.
17230         * m4/mbrtowc.m4: Likewise.
17231         * m4/mbstate_t.m4: Likewise.
17232         * m4/mbswidth.m4: Likewise.
17233         * m4/memchr.m4: Likewise.
17234         * m4/memcmp.m4: Likewise.
17235         * m4/memcpy.m4: Likewise.
17236         * m4/memmem.m4: Likewise.
17237         * m4/memmove.m4: Likewise.
17238         * m4/mempcpy.m4: Likewise.
17239         * m4/memrchr.m4: Likewise.
17240         * m4/memset.m4: Likewise.
17241         * m4/minmax.m4: Likewise.
17242         * m4/mkdir-slash.m4: Likewise.
17243         * m4/mkdtemp.m4: Likewise.
17244         * m4/mktime.m4: Likewise.
17245         * m4/mmap-anon.m4: Likewise.
17246         * m4/mountlist.m4: Likewise.
17247         * m4/nanosleep.m4: Likewise.
17248         * m4/nls.m4: Likewise.
17249         * m4/nocrash.m4: Likewise.
17250         * m4/open.m4: Likewise.
17251         * m4/openat.m4: Likewise.
17252         * m4/openmp.m4: Likewise.
17253         * m4/pathmax.m4: Likewise.
17254         * m4/perl.m4: Likewise.
17255         * m4/physmem.m4: Likewise.
17256         * m4/pipe.m4: Likewise.
17257         * m4/po.m4: Likewise.
17258         * m4/poll.m4: Likewise.
17259         * m4/posixtm.m4: Likewise.
17260         * m4/posixver.m4: Likewise.
17261         * m4/printf-frexp.m4: Likewise.
17262         * m4/printf-frexpl.m4: Likewise.
17263         * m4/printf-posix.m4: Likewise.
17264         * m4/printf-posix-rpl.m4: Likewise.
17265         * m4/printf.m4: Likewise.
17266         * m4/progtest.m4: Likewise.
17267         * m4/putenv.m4: Likewise.
17268         * m4/readline.m4: Likewise.
17269         * m4/readlink.m4: Likewise.
17270         * m4/readutmp.m4: Likewise.
17271         * m4/realloc.m4: Likewise.
17272         * m4/regex.m4: Likewise.
17273         * m4/relocatable.m4: Likewise.
17274         * m4/relocatable-lib.m4: Likewise.
17275         * m4/rename-dest-slash.m4: Likewise.
17276         * m4/rename.m4: Likewise.
17277         * m4/rmdir-errno.m4: Likewise.
17278         * m4/rmdir.m4: Likewise.
17279         * m4/roundf.m4: Likewise.
17280         * m4/roundl.m4: Likewise.
17281         * m4/rpmatch.m4: Likewise.
17282         * m4/save-cwd.m4: Likewise.
17283         * m4/selinux-selinux-h.m4: Likewise.
17284         * m4/setenv.m4: Likewise.
17285         * m4/settime.m4: Likewise.
17286         * m4/sig2str.m4: Likewise.
17287         * m4/sig_atomic_t.m4: Likewise.
17288         * m4/signalblocking.m4: Likewise.
17289         * m4/signbit.m4: Likewise.
17290         * m4/sigpipe.m4: Likewise.
17291         * m4/sockets.m4: Likewise.
17292         * m4/sockpfaf.m4: Likewise.
17293         * m4/st_dm_mode.m4: Likewise.
17294         * m4/stat-time.m4: Likewise.
17295         * m4/stdbool.m4: Likewise.
17296         * m4/stdint.m4: Likewise.
17297         * m4/stdint_h.m4: Likewise.
17298         * m4/stpcpy.m4: Likewise.
17299         * m4/stpncpy.m4: Likewise.
17300         * m4/strcase.m4: Likewise.
17301         * m4/strchrnul.m4: Likewise.
17302         * m4/strcspn.m4: Likewise.
17303         * m4/strdup.m4: Likewise.
17304         * m4/strftime.m4: Likewise.
17305         * m4/strndup.m4: Likewise.
17306         * m4/strnlen.m4: Likewise.
17307         * m4/strpbrk.m4: Likewise.
17308         * m4/strptime.m4: Likewise.
17309         * m4/strsep.m4: Likewise.
17310         * m4/strtod.m4: Likewise.
17311         * m4/strtoimax.m4: Likewise.
17312         * m4/strtok_r.m4: Likewise.
17313         * m4/strtol.m4: Likewise.
17314         * m4/strtoll.m4: Likewise.
17315         * m4/strtoul.m4: Likewise.
17316         * m4/strtoull.m4: Likewise.
17317         * m4/strtoumax.m4: Likewise.
17318         * m4/strverscmp.m4: Likewise.
17319         * m4/threadlib.m4: Likewise.
17320         * m4/timegm.m4: Likewise.
17321         * m4/tm_gmtoff.m4: Likewise.
17322         * m4/tmpdir.m4: Likewise.
17323         * m4/tmpfile.m4: Likewise.
17324         * m4/tzset.m4: Likewise.
17325         * m4/uintmax_t.m4: Likewise.
17326         * m4/unlinkdir.m4: Likewise.
17327         * m4/unlocked-io.m4: Likewise.
17328         * m4/uptime.m4: Likewise.
17329         * m4/userspec.m4: Likewise.
17330         * m4/utimbuf.m4: Likewise.
17331         * m4/utime.m4: Likewise.
17332         * m4/utimes-null.m4: Likewise.
17333         * m4/utimes.m4: Likewise.
17334         * m4/vararrays.m4: Likewise.
17335         * m4/vasnprintf.m4: Likewise.
17336         * m4/vfprintf-posix.m4: Likewise.
17337         * m4/vprintf-posix.m4: Likewise.
17338         * m4/wait-process.m4: Likewise.
17339         * m4/wchar_t.m4: Likewise.
17340         * m4/wint_t.m4: Likewise.
17341         * m4/write-any-file.m4: Likewise.
17342         * m4/yield.m4: Likewise.
17343
17344 2009-01-13  Bruno Haible  <bruno@clisp.org>
17345
17346         Avoid test-copy-file.sh failures when ACL support insufficient.
17347         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17348         TESTS_ENVIRONMENT.
17349         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17350         Reported by Jim Meyering.
17351
17352 2009-01-13  Bruno Haible  <bruno@clisp.org>
17353
17354         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17355         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17356         * modules/unistdio/u8-printf-parse (Files): Likewise.
17357         * modules/unistdio/u32-printf-parse (Files): Likewise.
17358         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17359
17360 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17361
17362         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17363         and m4/inttypes_h.m4 too.
17364
17365 2009-01-12  Eric Blake  <ebb9@byu.net>
17366
17367         tests: IRIX 6.2 cc can't compile -0.0 into .data
17368         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17369         rather than at compile-time.
17370         * tests/test-floorl.c (minus_zero): Likewise.
17371         * tests/test-frexpl.c (minus_zero): Likewise.
17372         * tests/test-isnan.c (minus_zerol): Likewise.
17373         * tests/test-isnanl.h (minus_zero): Likewise.
17374         * tests/test-ldexpl.c (minus_zero): Likewise.
17375         * tests/test-roundl.c (minus_zero): Likewise.
17376         * tests/test-signbit.c (minus_zerol): Likewise.
17377         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17378         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17379         * tests/test-truncl.c (minus_zero): Likewise.
17380         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17381         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17382         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17383
17384 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17385
17386         regex: fix glibc bug 9697
17387         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17388         handling.
17389
17390 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17391
17392         regex: fix glibc bug 697
17393         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17394         being NULL also if there are no backreferences.
17395
17396 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17397
17398         regex: merge glibc changes
17399         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17400         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17401         re_string_skip_chars, re_string_reconstruct): Likewise.
17402         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17403
17404 2009-01-07  Jim Meyering  <meyering@redhat.com>
17405
17406         poll: filter through cppi
17407         * lib/poll.c: Indent cpp directives to reflect nesting.
17408
17409 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17410
17411         poll: don't return uninitialized
17412         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17413
17414 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17415
17416         avoid compile failure on AIX 6.1
17417         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17418         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17419
17420 2009-01-04  Jim Meyering  <meyering@redhat.com>
17421
17422         remove duplicate inclusion of <stdio.h>
17423         * tests/test-fprintf-posix.c: Likewise.
17424         * tests/test-printf-posix.c: Likewise.
17425         * tests/test-snprintf-posix.c: Likewise.
17426         * tests/test-sprintf-posix.c: Likewise.
17427         * tests/test-vasprintf-posix.c: Likewise.
17428         * tests/test-vfprintf-posix.c: Likewise.
17429         * tests/test-vprintf-posix.c: Likewise.
17430         * tests/test-vsnprintf-posix.c: Likewise.
17431         * tests/test-vsprintf-posix.c: Likewise.
17432
17433 2009-01-03  Jim Meyering  <meyering@redhat.com>
17434
17435         gnulib-tool: fix sed-based filtering
17436         * gnulib-tool (func_filter_filelist): Remove extra backslash
17437         in sed_fff_filter definition.
17438
17439 2009-01-02  Jim Meyering  <meyering@redhat.com>
17440
17441         strftime: avoid compilation failure on Solaris 2.6
17442         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17443         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17444         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17445         be available.  Reported by Tom G. Christensen.  Details in
17446         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17447
17448 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17449             Bruno Haible  <bruno@clisp.org>
17450
17451         Speed up gnulib-tool by doing more string processing through shell
17452         built-ins.
17453         * gnulib-tool (fast_func_append): New variable.
17454         (func_remove_prefix, func_remove_suffix): New functions.
17455         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17456         (func_filter_filelist): New function.
17457         (func_get_dependencies): Use func_remove_suffix instead of sed.
17458         (func_get_automake_snippet): Use func_filter_filelist instead of a
17459         subshell and sed invocation.
17460
17461 2009-01-01  Bruno Haible  <bruno@clisp.org>
17462
17463         Fix a security bug.
17464         * gnulib-tool (func_import, import, update): Don't allow the characters
17465         '"', '$', '`', '\' in macro arguments that become part of commands that
17466         are evaluated.
17467
17468 2009-01-01  Bruno Haible  <bruno@clisp.org>
17469
17470         * gnulib-tool (func_reset_sigpipe): Add more comments.
17471
17472 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17473
17474         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17475         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17476         already know the answer.
17477
17478 2009-01-01  Jim Meyering  <meyering@redhat.com>
17479
17480         * lib/version-etc.c (version_etc_va): Update copyright year.
17481
17482 2008-12-30  Bruno Haible  <bruno@clisp.org>
17483
17484         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17485         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17486         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17487
17488 2008-12-29  Eric Blake  <ebb9@byu.net>
17489
17490         multiarch: avoid autoconf AC_REQUIRE bug
17491         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17492         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17493         2.63 and older.
17494         Reported by Bruno Haible, and analyzed in
17495         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17496
17497 2008-12-29  Bruno Haible  <bruno@clisp.org>
17498
17499         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17500         files in subdirectories correctly.
17501         Reported by Ralf Wildenhues.
17502
17503 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17504
17505         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17506         rather than 'join FILE -', for Solaris join.
17507
17508 2008-12-29  Bruno Haible  <bruno@clisp.org>
17509
17510         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17511         quoting.
17512         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17513         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17514         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17515         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17516         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17517         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17518         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17519         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17520         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17521         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17522         * m4/nls.m4 (AM_NLS): Likewise.
17523         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17524         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17525         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17526         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17527         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17528         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17529         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17530         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17531         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17532         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17533         * m4/xsize.m4 (gl_XSIZE): Likewise.
17534         Suggested by Jim Meyering.
17535
17536 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17537
17538         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17539         * lib/parse-duration.c: use a switch instead of cascading if's.
17540
17541 2008-12-29  Eric Blake  <ebb9@byu.net>
17542
17543         wchar.h: supply WEOF on Irix 5.3
17544         * lib/wchar.in.h (wint_t): Also supply WEOF.
17545         * lib/wctype.in.h (wint_t): Likewise.
17546         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17547         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17548         Reported by Tom G. Christensen.
17549
17550 2008-12-26  Bruno Haible  <bruno@clisp.org>
17551
17552         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17553         i486, i586, i686.
17554
17555 2008-12-26  Bruno Haible  <bruno@clisp.org>
17556
17557         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17558
17559 2008-12-26  Bruno Haible  <bruno@clisp.org>
17560
17561         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17562         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17563         not __STDC_CONSTANT_MACROS.
17564         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17565
17566 2008-12-25  Bruno Haible  <bruno@clisp.org>
17567
17568         Add support for universal builds to vasnprintf.
17569         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17570         universal builds, guess no.
17571         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17572         * modules/vasprintf-posix (Depends-on): Likewise.
17573         * modules/fprintf-posix (Depends-on): Likewise.
17574         * modules/vfprintf-posix (Depends-on): Likewise.
17575         * modules/snprintf-posix (Depends-on): Likewise.
17576         * modules/vsnprintf-posix (Depends-on): Likewise.
17577         * modules/sprintf-posix (Depends-on): Likewise.
17578         * modules/vsprintf-posix (Depends-on): Likewise.
17579         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17580         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17581         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17582         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17583         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17584         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17585         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17586
17587         Add support for universal builds to <inttypes.h>.
17588         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17589         _SCNu64_PREFIX): In Apple
17590         universal builds, define directly, using _LP64.
17591         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17592         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17593         * modules/inttypes (Depends-on): Add multiarch.
17594         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17595
17596         Add support for universal builds to <stdint.h>.
17597         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17598         universal builds, define directly, using _LP64.
17599         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17600         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17601         and size_t.
17602         * modules/stdint (Depends-on): Add multiarch.
17603         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17604
17605         New module 'multiarch'.
17606         * modules/multiarch: New file.
17607         * m4/multiarch.m4: New file.
17608
17609 2008-12-25  Bruno Haible  <bruno@clisp.org>
17610
17611         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17612
17613 2008-12-25  Bruno Haible  <bruno@clisp.org>
17614
17615         * modules/btowc (License): Relicense under LGPLv2+.
17616         * modules/mbsinit (License): Likewise.
17617         * modules/mbrtowc (License): Likewise.
17618         * modules/wcrtomb (License): Likewise.
17619         * modules/streq (License): Likewise.
17620         Reported by David Lutterkort <lutter@redhat.com>.
17621
17622 2008-12-23  Bruno Haible  <bruno@clisp.org>
17623
17624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17625
17626 2008-12-23  Bruno Haible  <bruno@clisp.org>
17627
17628         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17630         GETADDRINFO_LIB, not in LIBS.
17631         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17632         * modules/canon-host (Link): Likewise.
17633         * NEWS: Mention the change.
17634         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17635         GETADDRINFO_LIB.
17636
17637 2008-12-22  Bruno Haible  <bruno@clisp.org>
17638
17639         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17640         * doc/posix-functions/iswalpha_l.texi: Likewise.
17641         * doc/posix-functions/iswblank_l.texi: Likewise.
17642         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17643         * doc/posix-functions/iswctype_l.texi: Likewise.
17644         * doc/posix-functions/iswdigit_l.texi: Likewise.
17645         * doc/posix-functions/iswgraph_l.texi: Likewise.
17646         * doc/posix-functions/iswlower_l.texi: Likewise.
17647         * doc/posix-functions/iswprint_l.texi: Likewise.
17648         * doc/posix-functions/iswpunct_l.texi: Likewise.
17649         * doc/posix-functions/iswspace_l.texi: Likewise.
17650         * doc/posix-functions/iswupper_l.texi: Likewise.
17651         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17652         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17653         * doc/posix-functions/open_wmemstream.texi: Likewise.
17654         * doc/posix-functions/swscanf.texi: Likewise.
17655         * doc/posix-functions/towctrans_l.texi: Likewise.
17656         * doc/posix-functions/towlower.texi: Likewise.
17657         * doc/posix-functions/towlower_l.texi: Likewise.
17658         * doc/posix-functions/towupper.texi: Likewise.
17659         * doc/posix-functions/towupper_l.texi: Likewise.
17660         * doc/posix-functions/vfwprintf.texi: Likewise.
17661         * doc/posix-functions/vfwscanf.texi: Likewise.
17662         * doc/posix-functions/vswscanf.texi: Likewise.
17663         * doc/posix-functions/vwprintf.texi: Likewise.
17664         * doc/posix-functions/vwscanf.texi: Likewise.
17665         * doc/posix-functions/wcpcpy.texi: Likewise.
17666         * doc/posix-functions/wcpncpy.texi: Likewise.
17667         * doc/posix-functions/wcscasecmp.texi: Likewise.
17668         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17669         * doc/posix-functions/wcscoll_l.texi: Likewise.
17670         * doc/posix-functions/wcsdup.texi: Likewise.
17671         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17672         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17673         * doc/posix-functions/wcsnlen.texi: Likewise.
17674         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17675         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17676         * doc/posix-functions/wctrans_l.texi: Likewise.
17677         * doc/posix-functions/wctype_l.texi: Likewise.
17678         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17679         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17680         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17681         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17682         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17683         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17684         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17685         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17686         * doc/glibc-functions/wcschrnul.texi: Likewise.
17687         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17688         * doc/glibc-functions/wcstod_l.texi: Likewise.
17689         * doc/glibc-functions/wcstof_l.texi: Likewise.
17690         * doc/glibc-functions/wcstol_l.texi: Likewise.
17691         * doc/glibc-functions/wcstold_l.texi: Likewise.
17692         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17693         * doc/glibc-functions/wcstoq.texi: Likewise.
17694         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17695         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17696         * doc/glibc-functions/wcstouq.texi: Likewise.
17697         * doc/glibc-functions/wmempcpy.texi: Likewise.
17698
17699 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17700             Eric Blake  <ebb9@byu.net>
17701             Paolo Bonzini  <bonzini@gnu.org>
17702             Bruno Haible  <bruno@clisp.org>
17703
17704         Make c-stack work on Haiku.
17705         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17706         (c_stack_action): Use SA_ONSTACK flag.
17707
17708 2008-12-22  Bruno Haible  <bruno@clisp.org>
17709
17710         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17711
17712 2008-12-22  Bruno Haible  <bruno@clisp.org>
17713
17714         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17715         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17716         being overridden.
17717         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17718         New macros.
17719         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17721         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17722         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17723
17724 2008-12-22  Bruno Haible  <bruno@clisp.org>
17725
17726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17727         from test code.
17728
17729 2008-12-22  Eric Blake  <ebb9@byu.net>
17730
17731         Avoid gcc warnings on cygwin.
17732         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17733         Avoid unused variable.
17734         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17735         Likewise.
17736
17737 2008-12-22  Bruno Haible  <bruno@clisp.org>
17738
17739         Remove HAVE_MBRTOWC conditionals.
17740         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17741         (mbscasecmp): Assume mbrtowc function.
17742         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17743         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17744         * lib/mbschr.c: Include mbuiter.h unconditionally.
17745         (mbschr): Assume mbrtowc function.
17746         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17747         (mbscspn): Assume mbrtowc function.
17748         * lib/mbslen.c: Include mbuiter.h unconditionally.
17749         (mbslen): Assume mbrtowc function.
17750         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17751         (mbsncasecmp): Assume mbrtowc function.
17752         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17753         (mbsnlen): Assume mbrtowc function.
17754         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17755         (mbspbrk): Assume mbrtowc function.
17756         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17757         (mbspcasecmp): Assume mbrtowc function.
17758         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17759         (mbsrchr): Assume mbrtowc function.
17760         * lib/mbssep.c: Include mbuiter.h unconditionally.
17761         (mbssep): Assume mbrtowc function.
17762         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17763         (mbsspn): Assume mbrtowc function.
17764         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17765         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17766         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17767         (mbstok_r): Assume mbrtowc function.
17768         * lib/propername.c: Include mbuiter.h unconditionally.
17769         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17770         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17771         (trim2): Assume mbrtowc function.
17772         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17773         (mbsnwidth): Assume mbrtowc function.
17774         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17775         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17776         fallback definitions.
17777         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17778
17779 2008-12-22  Bruno Haible  <bruno@clisp.org>
17780
17781         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17782
17783 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17784
17785         * modules/regex: Request emulations for the mb*/wc* functions we need.
17786         * m4/regex.m4: Don't look for those functions here.
17787         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17788
17789 2008-12-22  Bruno Haible  <bruno@clisp.org>
17790
17791         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17792
17793 2008-12-21  Bruno Haible  <bruno@clisp.org>
17794
17795         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17796         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17797         (Include): Remove conditionalization.
17798         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17799         (Include): Remove conditionalization.
17800         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17801         (Include): Remove conditionalization.
17802         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17803         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17804         * NEWS: Mention the change.
17805         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17806         via Sergey Poznyakoff <gray@gnu.org.ua>.
17807
17808 2008-12-21  Bruno Haible  <bruno@clisp.org>
17809
17810         * MODULES.html.sh (Extended multibyte and wide character utilities
17811         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17812         wcrtomb, wcsrtombs.
17813         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17814         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17815         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17816         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17817
17818 2008-12-21  Bruno Haible  <bruno@clisp.org>
17819
17820         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17821
17822 2008-12-21  Bruno Haible  <bruno@clisp.org>
17823
17824         * modules/wcsnrtombs-tests: New file.
17825         * tests/test-wcsnrtombs1.sh: New file.
17826         * tests/test-wcsnrtombs2.sh: New file.
17827         * tests/test-wcsnrtombs3.sh: New file.
17828         * tests/test-wcsnrtombs4.sh: New file.
17829         * tests/test-wcsnrtombs.c: New file.
17830
17831         New module 'wcsnrtombs'.
17832         * lib/wchar.in.h (wcsnrtombs): New declaration.
17833         * lib/wcsnrtombs.c: New file.
17834         * lib/wcsrtombs-state.c: New file.
17835         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17836         (internal_state): Remove variable.
17837         * m4/wcsnrtombs.m4: New file.
17838         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17839         compilation units.
17840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17841         HAVE_WCSNRTOMBS.
17842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17843         HAVE_WCSNRTOMBS.
17844         * modules/wcsnrtombs: New file.
17845         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17846         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17847
17848 2008-12-21  Bruno Haible  <bruno@clisp.org>
17849
17850         * modules/wcsrtombs-tests: New file.
17851         * tests/test-wcsrtombs1.sh: New file.
17852         * tests/test-wcsrtombs2.sh: New file.
17853         * tests/test-wcsrtombs3.sh: New file.
17854         * tests/test-wcsrtombs4.sh: New file.
17855         * tests/test-wcsrtombs.c: New file.
17856
17857         New module 'wcsrtombs'.
17858         * lib/wchar.in.h (wcsrtombs): New declaration.
17859         * lib/wcsrtombs.c: New file.
17860         * m4/wcsrtombs.m4: New file.
17861         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17862         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17864         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17865         * modules/wcsrtombs: New file.
17866         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17867         bugs.
17868
17869 2008-12-21  Bruno Haible  <bruno@clisp.org>
17870
17871         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17872         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17873         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17874         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17875         if not correct.
17876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17877         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17878         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17879         m4/locale-zh.m4, m4/codeset.m4.
17880         * doc/posix-functions/wcrtomb.texi: Document the bug.
17881
17882 2008-12-21  Bruno Haible  <bruno@clisp.org>
17883
17884         Work around a btowc() bug on IRIX 6.5.
17885         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17886         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17887         REPLACE_WTOBC if not.
17888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17889         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17890         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17891
17892 2008-12-21  Bruno Haible  <bruno@clisp.org>
17893
17894         * modules/wcrtomb-tests: New file.
17895         * tests/test-wcrtomb.sh: New file.
17896         * tests/test-wcrtomb.c: New file.
17897
17898         New module 'wcrtomb'.
17899         * lib/wchar.in.h (wcrtomb): New declaration.
17900         * lib/wcrtomb.c: New file.
17901         * m4/wcrtomb.m4: New file.
17902         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17903         HAVE_WCRTOMB.
17904         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17905         HAVE_WCRTOMB.
17906         * modules/wcrtomb: New file.
17907         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17908
17909 2008-12-21  Bruno Haible  <bruno@clisp.org>
17910
17911         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17912         * modules/mbsrtowcs (Files): Likewise.
17913         * modules/wctob (Files): Likewise.
17914         * modules/c-strcase-tests (Files): Likewise.
17915         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17916         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17917         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17918         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17919         * modules/vasnprintf-posix-tests (Files): Likewise.
17920
17921 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17922
17923         gitlog-to-changelog: pass all command-line arguments to git-log
17924         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17925         it is sometimes convenient to filter the commits in various ways.
17926         gitlog-to-changelog only allows --since to specify a start date,
17927         but git-log itself supports many other filtering mechanisms.
17928         At the moment, I want to filter by branch name.  Rather than
17929         adding a --branch option to gitlog-to-changelog, it seems more
17930         flexible to simply pass all options directly to git-log and let
17931         git do the work.  Notice that this effectively makes --since a
17932         redundant option for gitlog-to-changelog, but removing it would
17933         require current usage to change since calls would then require
17934         an additional '--'.
17935
17936 2008-12-21  Bruno Haible  <bruno@clisp.org>
17937
17938         * modules/mbsnrtowcs-tests: New file.
17939         * tests/test-mbsnrtowcs1.sh: New file.
17940         * tests/test-mbsnrtowcs2.sh: New file.
17941         * tests/test-mbsnrtowcs3.sh: New file.
17942         * tests/test-mbsnrtowcs4.sh: New file.
17943         * tests/test-mbsnrtowcs.c: New file.
17944
17945         New module 'mbsnrtowcs'.
17946         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17947         * lib/mbsnrtowcs.c: New file.
17948         * lib/mbsrtowcs-state.c: New file.
17949         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17950         (internal_state): Remove variable.
17951         * m4/mbsnrtowcs.m4: New file.
17952         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17953         compilation units.
17954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17955         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17956         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17957         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17958         * modules/mbsnrtowcs: New file.
17959         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17960         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17961         portability problem.
17962
17963 2008-12-21  Bruno Haible  <bruno@clisp.org>
17964
17965         Work around mbsrtowcs bug.
17966         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17967         (gl_FUNC_MBSRTOWCS): Invoke it.
17968         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17969         m4/locale-zh.m4.
17970         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17971
17972 2008-12-21  Bruno Haible  <bruno@clisp.org>
17973
17974         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17975
17976 2008-12-21  Bruno Haible  <bruno@clisp.org>
17977
17978         Update doc for AIX.
17979         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17980         16-bit wchar_t type.
17981         * doc/posix-functions/btowc.texi: Likewise.
17982         * doc/posix-functions/fgetwc.texi: Likewise.
17983         * doc/posix-functions/fgetws.texi: Likewise.
17984         * doc/posix-functions/fputwc.texi: Likewise.
17985         * doc/posix-functions/fputws.texi: Likewise.
17986         * doc/posix-functions/fwide.texi: Likewise.
17987         * doc/posix-functions/fwprintf.texi: Likewise.
17988         * doc/posix-functions/fwscanf.texi: Likewise.
17989         * doc/posix-functions/getwchar.texi: Likewise.
17990         * doc/posix-functions/getwc.texi: Likewise.
17991         * doc/posix-functions/iswalnum.texi: Likewise.
17992         * doc/posix-functions/iswalpha.texi: Likewise.
17993         * doc/posix-functions/iswblank.texi: Likewise.
17994         * doc/posix-functions/iswcntrl.texi: Likewise.
17995         * doc/posix-functions/iswctype.texi: Likewise.
17996         * doc/posix-functions/iswdigit.texi: Likewise.
17997         * doc/posix-functions/iswgraph.texi: Likewise.
17998         * doc/posix-functions/iswlower.texi: Likewise.
17999         * doc/posix-functions/iswprint.texi: Likewise.
18000         * doc/posix-functions/iswpunct.texi: Likewise.
18001         * doc/posix-functions/iswspace.texi: Likewise.
18002         * doc/posix-functions/iswupper.texi: Likewise.
18003         * doc/posix-functions/iswxdigit.texi: Likewise.
18004         * doc/posix-functions/mbrtowc.texi: Likewise.
18005         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18006         * doc/posix-functions/mbstowcs.texi: Likewise.
18007         * doc/posix-functions/mbtowc.texi: Likewise.
18008         * doc/posix-functions/putwchar.texi: Likewise.
18009         * doc/posix-functions/putwc.texi: Likewise.
18010         * doc/posix-functions/swprintf.texi: Likewise.
18011         * doc/posix-functions/tolower.texi: Likewise.
18012         * doc/posix-functions/toupper.texi: Likewise.
18013         * doc/posix-functions/towctrans.texi: Likewise.
18014         * doc/posix-functions/ungetwc.texi: Likewise.
18015         * doc/posix-functions/vswprintf.texi: Likewise.
18016         * doc/posix-functions/wcrtomb.texi: Likewise.
18017         * doc/posix-functions/wcscat.texi: Likewise.
18018         * doc/posix-functions/wcschr.texi: Likewise.
18019         * doc/posix-functions/wcscmp.texi: Likewise.
18020         * doc/posix-functions/wcscoll.texi: Likewise.
18021         * doc/posix-functions/wcscpy.texi: Likewise.
18022         * doc/posix-functions/wcscspn.texi: Likewise.
18023         * doc/posix-functions/wcsftime.texi: Likewise.
18024         * doc/posix-functions/wcslen.texi: Likewise.
18025         * doc/posix-functions/wcsncat.texi: Likewise.
18026         * doc/posix-functions/wcsncmp.texi: Likewise.
18027         * doc/posix-functions/wcsncpy.texi: Likewise.
18028         * doc/posix-functions/wcspbrk.texi: Likewise.
18029         * doc/posix-functions/wcsrchr.texi: Likewise.
18030         * doc/posix-functions/wcsrtombs.texi: Likewise.
18031         * doc/posix-functions/wcsspn.texi: Likewise.
18032         * doc/posix-functions/wcsstr.texi: Likewise.
18033         * doc/posix-functions/wcstod.texi: Likewise.
18034         * doc/posix-functions/wcstof.texi: Likewise.
18035         * doc/posix-functions/wcstoimax.texi: Likewise.
18036         * doc/posix-functions/wcstok.texi: Likewise.
18037         * doc/posix-functions/wcstold.texi: Likewise.
18038         * doc/posix-functions/wcstoll.texi: Likewise.
18039         * doc/posix-functions/wcstol.texi: Likewise.
18040         * doc/posix-functions/wcstombs.texi: Likewise.
18041         * doc/posix-functions/wcstoull.texi: Likewise.
18042         * doc/posix-functions/wcstoul.texi: Likewise.
18043         * doc/posix-functions/wcstoumax.texi: Likewise.
18044         * doc/posix-functions/wcswidth.texi: Likewise.
18045         * doc/posix-functions/wcsxfrm.texi: Likewise.
18046         * doc/posix-functions/wctob.texi: Likewise.
18047         * doc/posix-functions/wctomb.texi: Likewise.
18048         * doc/posix-functions/wctrans.texi: Likewise.
18049         * doc/posix-functions/wctype.texi: Likewise.
18050         * doc/posix-functions/wcwidth.texi: Likewise.
18051         * doc/posix-functions/wmemchr.texi: Likewise.
18052         * doc/posix-functions/wmemcmp.texi: Likewise.
18053         * doc/posix-functions/wmemcpy.texi: Likewise.
18054         * doc/posix-functions/wmemmove.texi: Likewise.
18055         * doc/posix-functions/wmemset.texi: Likewise.
18056         * doc/posix-functions/wprintf.texi: Likewise.
18057         * doc/posix-functions/wscanf.texi: Likewise.
18058
18059 2008-12-21  Bruno Haible  <bruno@clisp.org>
18060
18061         Update doc for HP-UX 11.11.
18062         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18063         in HP-UX version 11.00, not in all versions of HP-UX 11.
18064         * doc/posix-functions/fwide.texi: Likewise.
18065         * doc/posix-functions/fwprintf.texi: Likewise.
18066         * doc/posix-functions/fwscanf.texi: Likewise.
18067         * doc/posix-functions/inet_ntop.texi: Likewise.
18068         * doc/posix-functions/inet_pton.texi: Likewise.
18069         * doc/posix-functions/mbrlen.texi: Likewise.
18070         * doc/posix-functions/mbrtowc.texi: Likewise.
18071         * doc/posix-functions/mbsinit.texi: Likewise.
18072         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18073         * doc/posix-functions/swprintf.texi: Likewise.
18074         * doc/posix-functions/swscanf.texi: Likewise.
18075         * doc/posix-functions/towctrans.texi: Likewise.
18076         * doc/posix-functions/vfwprintf.texi: Likewise.
18077         * doc/posix-functions/vswprintf.texi: Likewise.
18078         * doc/posix-functions/vwprintf.texi: Likewise.
18079         * doc/posix-functions/wcrtomb.texi: Likewise.
18080         * doc/posix-functions/wcsrtombs.texi: Likewise.
18081         * doc/posix-functions/wcsstr.texi: Likewise.
18082         * doc/posix-functions/wctob.texi: Likewise.
18083         * doc/posix-functions/wctrans.texi: Likewise.
18084         * doc/posix-functions/wmemchr.texi: Likewise.
18085         * doc/posix-functions/wmemcmp.texi: Likewise.
18086         * doc/posix-functions/wmemcpy.texi: Likewise.
18087         * doc/posix-functions/wmemmove.texi: Likewise.
18088         * doc/posix-functions/wmemset.texi: Likewise.
18089         * doc/posix-functions/wprintf.texi: Likewise.
18090         * doc/posix-functions/wscanf.texi: Likewise.
18091
18092 2008-12-21  Bruno Haible  <bruno@clisp.org>
18093
18094         Work around a portability problem.
18095         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18096         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18097
18098 2008-12-20  Bruno Haible  <bruno@clisp.org>
18099
18100         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18101         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18102         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18104         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18105
18106         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18107         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18108         set.
18109         (GNULIB_defined_mbstate_t): New macro.
18110         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18111         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18112         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18113         reuses the system's mbrtowc function but works around the bugs.
18114         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18115         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18116         macros.
18117         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18118         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18119         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18121         REPLACE_MBSINIT if mbsinit needs to be overridden.
18122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18123         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18124         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18125         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18126         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18127         m4/locale-zh.m4.
18128         (Depends): Add mbsinit.
18129         * modules/mbsinit (Depends): Add mbrtowc.
18130         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18131
18132 2008-12-20  Bruno Haible  <bruno@clisp.org>
18133
18134         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18135         so that there are no conversion errors on AIX.
18136         * tests/test-mbsrtowcs.c (main): LIkewise.
18137
18138 2008-12-20  Bruno Haible  <bruno@clisp.org>
18139
18140         Work around wctob bug on Solaris <= 9.
18141         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18142         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18144         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18145         * modules/wctob (Files): Add m4/locale-fr.m4.
18146         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18147
18148 2008-12-20  Bruno Haible  <bruno@clisp.org>
18149
18150         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18151         /dev/null.
18152         * tests/test-select-in.sh: Likewise.
18153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18154
18155 2008-12-20  Bruno Haible  <bruno@clisp.org>
18156
18157         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18158         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18159         Cygwin 1.5.x.
18160
18161 2008-12-20  Bruno Haible  <bruno@clisp.org>
18162
18163         Ensure mbstate_t is defined on HP-UX 11.11.
18164         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18165         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18166         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18167         AC_USE_SYSTEM_EXTENSIONS.
18168         * modules/fnmatch (Depends-on): Add extensions.
18169         * modules/mbrlen (Depends-on): Likewise.
18170         * modules/mbrtowc (Depends-on): Likewise.
18171         * modules/mbsinit (Depends-on): Likewise.
18172         * modules/mbsrtowcs (Depends-on): Likewise.
18173         * modules/mbswidth (Depends-on): Likewise.
18174         * modules/quotearg (Depends-on): Likewise.
18175         * modules/strftime (Depends-on): Likewise.
18176
18177 2008-12-20  Bruno Haible  <bruno@clisp.org>
18178
18179         Ensure wctob is declared on IRIX 6.5.
18180         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18181         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18182         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18184         of HAVE_WCTOB.
18185         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18186         HAVE_WCTOB.
18187         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18188
18189 2008-12-19  Bruno Haible  <bruno@clisp.org>
18190
18191         * modules/mbsrtowcs-tests: New file.
18192         * tests/test-mbsrtowcs1.sh: New file.
18193         * tests/test-mbsrtowcs2.sh: New file.
18194         * tests/test-mbsrtowcs3.sh: New file.
18195         * tests/test-mbsrtowcs4.sh: New file.
18196         * tests/test-mbsrtowcs.c: New file.
18197
18198         New module 'mbsrtowcs'.
18199         * lib/wchar.in.h (mbsrtowcs): New declaration.
18200         * lib/mbsrtowcs.c: New file.
18201         * m4/mbsrtowcs.m4: New file.
18202         * modules/mbsrtowcs: New file.
18203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18204         HAVE_MBSRTOWCS.
18205         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18206         HAVE_MBSRTOWCS.
18207         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18208
18209 2008-12-19  Bruno Haible  <bruno@clisp.org>
18210
18211         New module 'mbrlen'.
18212         * lib/wchar.in.h (mbrlen): New declaration.
18213         * lib/mbrlen.c: New file.
18214         * m4/mbrlen.m4: New file.
18215         * modules/mbrlen: New file.
18216         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18217         HAVE_MBRLEN.
18218         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18219         HAVE_MBRLEN.
18220         * doc/posix-functions/mbrlen.texi: Document the new module.
18221
18222 2008-12-19  Bruno Haible  <bruno@clisp.org>
18223
18224         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18225         * modules/mbrtowc (Depends-on): Add verify.
18226         Suggested by Paul Eggert.
18227
18228 2008-12-18  Bruno Haible  <bruno@clisp.org>
18229
18230         * modules/mbsinit-tests: New file.
18231         * tests/test-mbsinit.sh: New file.
18232         * tests/test-mbsinit.c: New file.
18233
18234 2008-12-18  Bruno Haible  <bruno@clisp.org>
18235
18236         * modules/mbrtowc-tests: New file.
18237         * tests/test-mbrtowc1.sh: New file.
18238         * tests/test-mbrtowc2.sh: New file.
18239         * tests/test-mbrtowc3.sh: New file.
18240         * tests/test-mbrtowc4.sh: New file.
18241         * tests/test-mbrtowc.c: New file.
18242
18243         New module 'mbrtowc'.
18244         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18245         mbsinit and mbrtowc.
18246         (mbrtowc): New declaration.
18247         * lib/mbrtowc.c: New file.
18248         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18249         * modules/mbrtowc: New file.
18250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18251         HAVE_MBRTOWC.
18252         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18253         HAVE_MBRTOWC.
18254         * doc/posix-functions/mbrtowc.texi: Document the new module.
18255
18256 2008-12-18  Bruno Haible  <bruno@clisp.org>
18257
18258         New module 'wctob'.
18259         * lib/wchar.in.h (wctob): New declaration.
18260         * lib/wctob.c: New file.
18261         * m4/wctob.m4: New file.
18262         * modules/wctob: New file.
18263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18264         HAVE_WCTOB.
18265         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18266         * doc/posix-functions/wctob.texi: Document the new module.
18267
18268 2008-12-18  Bruno Haible  <bruno@clisp.org>
18269
18270         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18271         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18272
18273 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18274
18275         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18276         G. Christensen" <tgc@jupiterrise.com>.
18277
18278         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18279         G. Christensen" <tgc@jupiterrise.com>.
18280
18281         * lib/flock.c: Need to include string.h.  Reported by "Tom
18282         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18283         <ebb9@byu.net>.
18284
18285 2008-12-18  Bruno Haible  <bruno@clisp.org>
18286
18287         * m4/locale-ja.m4: New file, from GNU gettext.
18288
18289 2008-12-17  Bruno Haible  <bruno@clisp.org>
18290
18291         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18292         Suggested by Eric Blake.
18293
18294 2008-12-17  Bruno Haible  <bruno@clisp.org>
18295
18296         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18297
18298 2008-12-17  Bruno Haible  <bruno@clisp.org>
18299
18300         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18301         * modules/mbsinit (Depends-on): Add verify.
18302         Suggested by Paul Eggert.
18303
18304 2008-12-17  Bruno Haible  <bruno@clisp.org>
18305
18306         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18307         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18308         gl_FUNC_MBRTOWC.
18309         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18310         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18311         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18312         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18313         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18314         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18315         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18316         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18317         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18318         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18319         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18320         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18321         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18322         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18323         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18324         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18325         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18326         * modules/trim (configure.ac): Likewise.
18327
18328 2008-12-17  Bruno Haible  <bruno@clisp.org>
18329
18330         * modules/btowc-tests: New file.
18331         * tests/test-btowc1.sh: New file.
18332         * tests/test-btowc2.sh: New file.
18333         * tests/test-btowc.c: New file.
18334
18335         New module 'btowc'.
18336         * lib/wchar.in.h (btowc): New declaration.
18337         * lib/btowc.c: New file.
18338         * m4/btowc.m4: New file.
18339         * modules/btowc: New file.
18340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18341         HAVE_BTOWC.
18342         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18343         * doc/posix-functions/btowc.texi: Document the new module.
18344
18345 2008-12-17  Bruno Haible  <bruno@clisp.org>
18346
18347         New module 'mbsinit'.
18348         * lib/wchar.in.h (mbsinit): New declaration.
18349         * lib/mbsinit.c: New file.
18350         * m4/mbsinit.m4: New file.
18351         * modules/mbsinit: New file.
18352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18353         HAVE_MBSINIT.
18354         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18355         HAVE_MBSINIT.
18356         * doc/posix-functions/mbsinit.texi: Document the new module.
18357
18358 2008-12-16  Bruno Haible  <bruno@clisp.org>
18359
18360         * lib/unistd.in.h: Add comment.
18361         * tests/test-environ.c: Don't include <stdlib.h>.
18362
18363 2008-12-16  Bruno Haible  <bruno@clisp.org>
18364
18365         * lib/parse-duration.h (parse_duration): Document return value
18366         convention.
18367         * lib/parse-duration.c: Include specification header first. Add
18368         comments.
18369         (_): Remove macro.
18370         (parse_year_month_day, parse_hour_minute_second): Move side effects
18371         outside of strchr call.
18372         (parse_non_iso8601): Move side effects outside of isspace call.
18373         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18374         call.
18375
18376 2008-12-16  Bruno Haible  <bruno@clisp.org>
18377
18378         * tests/test-parse-duration.sh: Produce no output when the test
18379         succeeds.
18380
18381 2008-12-16  Bruno Haible  <bruno@clisp.org>
18382
18383         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18384         expressions.
18385
18386 2008-12-15  Bruno Haible  <bruno@clisp.org>
18387
18388         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18389         * doc/glibc-functions/flistxattr.texi: Likewise.
18390         * doc/glibc-functions/fopencookie.texi: Likewise.
18391         * doc/glibc-functions/fremovexattr.texi: Likewise.
18392         * doc/glibc-functions/fsetxattr.texi: Likewise.
18393         * doc/glibc-functions/getxattr.texi: Likewise.
18394         * doc/glibc-functions/lgetxattr.texi: Likewise.
18395         * doc/glibc-functions/listxattr.texi: Likewise.
18396         * doc/glibc-functions/llistxattr.texi: Likewise.
18397         * doc/glibc-functions/lremovexattr.texi: Likewise.
18398         * doc/glibc-functions/lsetxattr.texi: Likewise.
18399         * doc/glibc-functions/removexattr.texi: Likewise.
18400         * doc/glibc-functions/setxattr.texi: Likewise.
18401         * doc/posix-functions/open_memstream.texi: Likewise.
18402
18403 2008-12-15  Eric Blake  <ebb9@byu.net>
18404
18405         Update doc for cygwin 1.7.
18406         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18407         functions.
18408         * doc/posix-functions/fchmodat.texi: Likewise.
18409         * doc/posix-functions/fchownat.texi: Likewise.
18410         * doc/posix-functions/fdopendir.texi: Likewise.
18411         * doc/posix-functions/fmemopen.texi: Likewise.
18412         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18413         * doc/posix-functions/fstatat.texi: Likewise.
18414         * doc/posix-functions/futimens.texi: Likewise.
18415         * doc/posix-functions/gai_strerror.texi: Likewise.
18416         * doc/posix-functions/getaddrinfo.texi: Likewise.
18417         * doc/posix-functions/getnameinfo.texi: Likewise.
18418         * doc/posix-functions/if_freenameindex.texi: Likewise.
18419         * doc/posix-functions/if_indextoname.texi: Likewise.
18420         * doc/posix-functions/if_nameindex.texi: Likewise.
18421         * doc/posix-functions/if_nametoindex.texi: Likewise.
18422         * doc/posix-functions/insque.texi: Likewise.
18423         * doc/posix-functions/linkat.texi: Likewise.
18424         * doc/posix-functions/llrint.texi: Likewise.
18425         * doc/posix-functions/llrintf.texi: Likewise.
18426         * doc/posix-functions/llrintl.texi: Likewise.
18427         * doc/posix-functions/lockf.texi: Likewise.
18428         * doc/posix-functions/lrintl.texi: Likewise.
18429         * doc/posix-functions/mkdirat.texi: Likewise.
18430         * doc/posix-functions/mkfifoat.texi: Likewise.
18431         * doc/posix-functions/mknodat.texi: Likewise.
18432         * doc/posix-functions/mq_close.texi: Likewise.
18433         * doc/posix-functions/mq_getattr.texi: Likewise.
18434         * doc/posix-functions/mq_notify.texi: Likewise.
18435         * doc/posix-functions/mq_open.texi: Likewise.
18436         * doc/posix-functions/mq_receive.texi: Likewise.
18437         * doc/posix-functions/mq_send.texi: Likewise.
18438         * doc/posix-functions/mq_setattr.texi: Likewise.
18439         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18440         * doc/posix-functions/mq_timedsend.texi: Likewise.
18441         * doc/posix-functions/mq_unlink.texi: Likewise.
18442         * doc/posix-functions/open_memstream.texi: Likewise.
18443         * doc/posix-functions/openat.texi: Likewise.
18444         * doc/posix-functions/posix_fadvise.texi: Likewise.
18445         * doc/posix-functions/posix_fallocate.texi: Likewise.
18446         * doc/posix-functions/posix_madvise.texi: Likewise.
18447         * doc/posix-functions/posix_memalign.texi: Likewise.
18448         * doc/posix-functions/posix_openpt.texi: Likewise.
18449         * doc/posix-functions/readlinkat.texi: Likewise.
18450         * doc/posix-functions/remque.texi: Likewise.
18451         * doc/posix-functions/renameat.texi: Likewise.
18452         * doc/posix-functions/rintl.texi: Likewise.
18453         * doc/posix-functions/sem_unlink.texi: Likewise.
18454         * doc/posix-functions/shm_open.texi: Likewise.
18455         * doc/posix-functions/shm_unlink.texi: Likewise.
18456         * doc/posix-functions/signgam.texi: Likewise.
18457         * doc/posix-functions/sigset.texi: Likewise.
18458         * doc/posix-functions/stpcpy.texi: Likewise.
18459         * doc/posix-functions/stpncpy.texi: Likewise.
18460         * doc/posix-functions/strerror.texi: Likewise.
18461         * doc/posix-functions/strtod.texi: Likewise.
18462         * doc/posix-functions/symlinkat.texi: Likewise.
18463         * doc/posix-functions/unlinkat.texi: Likewise.
18464         * doc/posix-functions/utimensat.texi: Likewise.
18465         * doc/glibc-functions/bindresvport.texi: Likewise.
18466         * doc/glibc-functions/dn_expand.texi: Likewise.
18467         * doc/glibc-functions/exp10.texi: Likewise.
18468         * doc/glibc-functions/exp10f.texi: Likewise.
18469         * doc/glibc-functions/fgetxattr.texi: Likewise.
18470         * doc/glibc-functions/flistxattr.texi: Likewise.
18471         * doc/glibc-functions/fopencookie.texi: Likewise.
18472         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18473         * doc/glibc-functions/fremovexattr.texi: Likewise.
18474         * doc/glibc-functions/fsetxattr.texi: Likewise.
18475         * doc/glibc-functions/getifaddrs.texi: Likewise.
18476         * doc/glibc-functions/getxattr.texi: Likewise.
18477         * doc/glibc-functions/lgetxattr.texi: Likewise.
18478         * doc/glibc-functions/listxattr.texi: Likewise.
18479         * doc/glibc-functions/llistxattr.texi: Likewise.
18480         * doc/glibc-functions/lremovexattr.texi: Likewise.
18481         * doc/glibc-functions/lsetxattr.texi: Likewise.
18482         * doc/glibc-functions/pow10.texi: Likewise.
18483         * doc/glibc-functions/pow10f.texi: Likewise.
18484         * doc/glibc-functions/rcmd_af.texi: Likewise.
18485         * doc/glibc-functions/removexattr.texi: Likewise.
18486         * doc/glibc-functions/res_init.texi: Likewise.
18487         * doc/glibc-functions/res_mkquery.texi: Likewise.
18488         * doc/glibc-functions/res_query.texi: Likewise.
18489         * doc/glibc-functions/res_querydomain.texi: Likewise.
18490         * doc/glibc-functions/res_send.texi: Likewise.
18491         * doc/glibc-functions/rresvport_af.texi: Likewise.
18492         * doc/glibc-functions/setxattr.texi: Likewise.
18493         * doc/glibc-functions/strcasestr.texi: Likewise.
18494
18495 2008-12-15  Bruno Haible  <bruno@clisp.org>
18496
18497         Fix compilation error on OSF/1 4.0.
18498         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18499         <sys/time.h>, simply delegate to the system header.
18500         Reported by Daniel Richard G. <oss@teragram.com>.
18501
18502 2008-12-15  Bruno Haible  <bruno@clisp.org>
18503
18504         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18505         * doc/posix-functions/fchmodat.texi: Likewise.
18506         * doc/posix-functions/fchownat.texi: Likewise.
18507         * doc/posix-functions/fdopendir.texi: Likewise.
18508         * doc/posix-functions/fstatat.texi: Likewise.
18509         * doc/posix-functions/mkdirat.texi: Likewise.
18510         * doc/posix-functions/unlinkat.texi: Likewise.
18511
18512 2008-12-14  Bruno Haible  <bruno@clisp.org>
18513
18514         Update doc for POSIX:2008.
18515         * doc/posix-functions/faccessat.texi: New file.
18516         * doc/posix-functions/fchmodat.texi: New file.
18517         * doc/posix-functions/fchownat.texi: New file.
18518         * doc/posix-functions/fdopendir.texi: New file.
18519         * doc/posix-functions/fstatat.texi: New file.
18520         * doc/posix-functions/futimens.texi: New file.
18521         * doc/posix-functions/linkat.texi: New file.
18522         * doc/posix-functions/mkdirat.texi: New file.
18523         * doc/posix-functions/mkfifoat.texi: New file.
18524         * doc/posix-functions/mknodat.texi: New file.
18525         * doc/posix-functions/open_wmemstream.texi: New file.
18526         * doc/posix-functions/openat.texi: New file.
18527         * doc/posix-functions/psiginfo.texi: New file.
18528         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18529         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18530         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18531         * doc/posix-functions/readlinkat.texi: New file.
18532         * doc/posix-functions/renameat.texi: New file.
18533         * doc/posix-functions/strerror_l.texi: New file.
18534         * doc/posix-functions/symlinkat.texi: New file.
18535         * doc/posix-functions/unlinkat.texi: New file.
18536         * doc/posix-functions/utimensat.texi: New file.
18537         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18538
18539 2008-12-14  Bruno Haible  <bruno@clisp.org>
18540
18541         Update doc for POSIX:2008.
18542         * doc/posix-functions/alphasort.texi: Renamed from
18543         doc/glibc-functions/alphasort.texi.
18544         * doc/posix-functions/dirfd.texi: Renamed from
18545         doc/glibc-functions/dirfd.texi.
18546         * doc/posix-functions/dprintf.texi: Renamed from
18547         doc/glibc-functions/dprintf.texi.
18548         * doc/posix-functions/duplocale.texi: Renamed from
18549         doc/glibc-functions/duplocale.texi.
18550         * doc/posix-functions/fexecve.texi: Renamed from
18551         doc/glibc-functions/fexecve.texi.
18552         * doc/posix-functions/fmemopen.texi: Renamed from
18553         doc/glibc-functions/fmemopen.texi.
18554         * doc/posix-functions/freelocale.texi: Renamed from
18555         doc/glibc-functions/freelocale.texi.
18556         * doc/posix-functions/getdate_err.texi: Renamed from
18557         doc/glibc-functions/getdate_err.texi.
18558         * doc/posix-functions/isalnum_l.texi: Renamed from
18559         doc/glibc-functions/isalnum_l.texi.
18560         * doc/posix-functions/isalpha_l.texi: Renamed from
18561         doc/glibc-functions/isalpha_l.texi.
18562         * doc/posix-functions/isblank_l.texi: Renamed from
18563         doc/glibc-functions/isblank_l.texi.
18564         * doc/posix-functions/iscntrl_l.texi: Renamed from
18565         doc/glibc-functions/iscntrl_l.texi.
18566         * doc/posix-functions/isdigit_l.texi: Renamed from
18567         doc/glibc-functions/isdigit_l.texi.
18568         * doc/posix-functions/isgraph_l.texi: Renamed from
18569         doc/glibc-functions/isgraph_l.texi.
18570         * doc/posix-functions/islower_l.texi: Renamed from
18571         doc/glibc-functions/islower_l.texi.
18572         * doc/posix-functions/isprint_l.texi: Renamed from
18573         doc/glibc-functions/isprint_l.texi.
18574         * doc/posix-functions/ispunct_l.texi: Renamed from
18575         doc/glibc-functions/ispunct_l.texi.
18576         * doc/posix-functions/isspace_l.texi: Renamed from
18577         doc/glibc-functions/isspace_l.texi.
18578         * doc/posix-functions/isupper_l.texi: Renamed from
18579         doc/glibc-functions/isupper_l.texi.
18580         * doc/posix-functions/iswalnum_l.texi: Renamed from
18581         doc/glibc-functions/iswalnum_l.texi.
18582         * doc/posix-functions/iswalpha_l.texi: Renamed from
18583         doc/glibc-functions/iswalpha_l.texi.
18584         * doc/posix-functions/iswblank_l.texi: Renamed from
18585         doc/glibc-functions/iswblank_l.texi.
18586         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18587         doc/glibc-functions/iswcntrl_l.texi.
18588         * doc/posix-functions/iswctype_l.texi: Renamed from
18589         doc/glibc-functions/iswctype_l.texi.
18590         * doc/posix-functions/iswdigit_l.texi: Renamed from
18591         doc/glibc-functions/iswdigit_l.texi.
18592         * doc/posix-functions/iswgraph_l.texi: Renamed from
18593         doc/glibc-functions/iswgraph_l.texi.
18594         * doc/posix-functions/iswlower_l.texi: Renamed from
18595         doc/glibc-functions/iswlower_l.texi.
18596         * doc/posix-functions/iswprint_l.texi: Renamed from
18597         doc/glibc-functions/iswprint_l.texi.
18598         * doc/posix-functions/iswpunct_l.texi: Renamed from
18599         doc/glibc-functions/iswpunct_l.texi.
18600         * doc/posix-functions/iswspace_l.texi: Renamed from
18601         doc/glibc-functions/iswspace_l.texi.
18602         * doc/posix-functions/iswupper_l.texi: Renamed from
18603         doc/glibc-functions/iswupper_l.texi.
18604         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18605         doc/glibc-functions/iswxdigit_l.texi.
18606         * doc/posix-functions/isxdigit_l.texi: Renamed from
18607         doc/glibc-functions/isxdigit_l.texi.
18608         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18609         doc/glibc-functions/mbsnrtowcs.texi.
18610         * doc/posix-functions/mkdtemp.texi: Renamed from
18611         doc/glibc-functions/mkdtemp.texi.
18612         * doc/posix-functions/newlocale.texi: Renamed from
18613         doc/glibc-functions/newlocale.texi.
18614         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18615         doc/glibc-functions/nl_langinfo_l.texi.
18616         * doc/posix-functions/open_memstream.texi: Renamed from
18617         doc/glibc-functions/open_memstream.texi.
18618         * doc/posix-functions/opterr.texi: Renamed from
18619         doc/glibc-functions/opterr.texi.
18620         * doc/posix-functions/optind.texi: Renamed from
18621         doc/glibc-functions/optind.texi.
18622         * doc/posix-functions/optopt.texi: Renamed from
18623         doc/glibc-functions/optopt.texi.
18624         * doc/posix-functions/psignal.texi: Renamed from
18625         doc/glibc-functions/psignal.texi.
18626         * doc/posix-functions/scandir.texi: Renamed from
18627         doc/glibc-functions/scandir.texi.
18628         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18629         doc/glibc-functions/sched_get_priority_min.texi.
18630         * doc/posix-functions/signgam.texi: Renamed from
18631         doc/glibc-functions/signgam.texi.
18632         * doc/posix-functions/stpcpy.texi: Renamed from
18633         doc/glibc-functions/stpcpy.texi.
18634         * doc/posix-functions/stpncpy.texi: Renamed from
18635         doc/glibc-functions/stpncpy.texi.
18636         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18637         doc/glibc-functions/strcasecmp_l.texi.
18638         * doc/posix-functions/strcoll_l.texi: Renamed from
18639         doc/glibc-functions/strcoll_l.texi.
18640         * doc/posix-functions/strfmon_l.texi: Renamed from
18641         doc/glibc-functions/strfmon_l.texi.
18642         * doc/posix-functions/strftime_l.texi: Renamed from
18643         doc/glibc-functions/strftime_l.texi.
18644         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18645         doc/glibc-functions/strncasecmp_l.texi.
18646         * doc/posix-functions/strndup.texi: Renamed from
18647         doc/glibc-functions/strndup.texi.
18648         * doc/posix-functions/strnlen.texi: Renamed from
18649         doc/glibc-functions/strnlen.texi.
18650         * doc/posix-functions/strsignal.texi: Renamed from
18651         doc/glibc-functions/strsignal.texi.
18652         * doc/posix-functions/strxfrm_l.texi: Renamed from
18653         doc/glibc-functions/strxfrm_l.texi.
18654         * doc/posix-functions/timer_gettime.texi: Renamed from
18655         doc/glibc-functions/timer_gettime.texi.
18656         * doc/posix-functions/tolower_l.texi: Renamed from
18657         doc/glibc-functions/tolower_l.texi.
18658         * doc/posix-functions/toupper_l.texi: Renamed from
18659         doc/glibc-functions/toupper_l.texi.
18660         * doc/posix-functions/towctrans_l.texi: Renamed from
18661         doc/glibc-functions/towctrans_l.texi.
18662         * doc/posix-functions/towlower_l.texi: Renamed from
18663         doc/glibc-functions/towlower_l.texi.
18664         * doc/posix-functions/towupper_l.texi: Renamed from
18665         doc/glibc-functions/towupper_l.texi.
18666         * doc/posix-functions/uselocale.texi: Renamed from
18667         doc/glibc-functions/uselocale.texi.
18668         * doc/posix-functions/vdprintf.texi: Renamed from
18669         doc/glibc-functions/vdprintf.texi.
18670         * doc/posix-functions/wcpcpy.texi:
18671         Renamed from doc/glibc-functions/wcpcpy.texi.
18672         * doc/posix-functions/wcpncpy.texi: Renamed from
18673         doc/glibc-functions/wcpncpy.texi.
18674         * doc/posix-functions/wcscasecmp.texi: Renamed from
18675         doc/glibc-functions/wcscasecmp.texi.
18676         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18677         doc/glibc-functions/wcscasecmp_l.texi.
18678         * doc/posix-functions/wcscoll_l.texi: Renamed from
18679         doc/glibc-functions/wcscoll_l.texi.
18680         * doc/posix-functions/wcsdup.texi: Renamed from
18681         doc/glibc-functions/wcsdup.texi.
18682         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18683         doc/glibc-functions/wcsncasecmp.texi.
18684         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18685         doc/glibc-functions/wcsncasecmp_l.texi.
18686         * doc/posix-functions/wcsnlen.texi: Renamed from
18687         doc/glibc-functions/wcsnlen.texi.
18688         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18689         doc/glibc-functions/wcsnrtombs.texi.
18690         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18691         doc/glibc-functions/wcsxfrm_l.texi.
18692         * doc/posix-functions/wctrans_l.texi: Renamed from
18693         doc/glibc-functions/wctrans_l.texi.
18694         * doc/posix-functions/wctype_l.texi: Renamed from
18695         doc/glibc-functions/wctype_l.texi.
18696         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18697         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18698         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18699         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18700         these subsections.
18701         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18702         Remove sections.
18703
18704 2008-12-14  Bruno Haible  <bruno@clisp.org>
18705
18706         Update doc for POSIX:2008.
18707         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18708
18709 2008-12-14  Bruno Haible  <bruno@clisp.org>
18710
18711         Update doc for POSIX:2008.
18712         * doc/pastposix-functions/bcmp.texi: Renamed from
18713         doc/posix-functions/bcmp.texi.
18714         * doc/pastposix-functions/bcopy.texi: Renamed from
18715         doc/posix-functions/bcopy.texi.
18716         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18717         doc/posix-functions/bsd_signal.texi.
18718         * doc/pastposix-functions/bzero.texi: Renamed from
18719         doc/posix-functions/bzero.texi.
18720         * doc/pastposix-functions/ecvt.texi: Renamed from
18721         doc/posix-functions/ecvt.texi.
18722         * doc/pastposix-functions/fcvt.texi: Renamed from
18723         doc/posix-functions/fcvt.texi.
18724         * doc/pastposix-functions/ftime.texi: Renamed from
18725         doc/posix-functions/ftime.texi.
18726         * doc/pastposix-functions/gcvt.texi: Renamed from
18727         doc/posix-functions/gcvt.texi.
18728         * doc/pastposix-functions/getcontext.texi: Renamed from
18729         doc/posix-functions/getcontext.texi.
18730         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18731         doc/posix-functions/gethostbyaddr.texi.
18732         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18733         doc/posix-functions/gethostbyname.texi.
18734         * doc/pastposix-functions/getwd.texi: Renamed from
18735         doc/posix-functions/getwd.texi.
18736         * doc/pastposix-functions/h_errno.texi: Renamed from
18737         doc/posix-functions/h_errno.texi.
18738         * doc/pastposix-functions/index.texi: Renamed from
18739         doc/posix-functions/index.texi.
18740         * doc/pastposix-functions/makecontext.texi: Renamed from
18741         doc/posix-functions/makecontext.texi.
18742         * doc/pastposix-functions/mktemp.texi: Renamed from
18743         doc/posix-functions/mktemp.texi.
18744         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18745         doc/posix-functions/pthread_attr_getstackaddr.texi.
18746         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18747         doc/posix-functions/pthread_attr_setstackaddr.texi.
18748         * doc/pastposix-functions/rindex.texi: Renamed from
18749         doc/posix-functions/rindex.texi.
18750         * doc/pastposix-functions/scalb.texi: Renamed from
18751         doc/posix-functions/scalb.texi.
18752         * doc/pastposix-functions/setcontext.texi: Renamed from
18753         doc/posix-functions/setcontext.texi.
18754         * doc/pastposix-functions/swapcontext.texi: Renamed from
18755         doc/posix-functions/swapcontext.texi.
18756         * doc/pastposix-functions/ualarm.texi: Renamed from
18757         doc/posix-functions/ualarm.texi.
18758         * doc/pastposix-functions/usleep.texi: Renamed from
18759         doc/posix-functions/usleep.texi.
18760         * doc/pastposix-functions/vfork.texi: Renamed from
18761         doc/posix-functions/vfork.texi.
18762         * doc/pastposix-functions/wcswcs.texi: Renamed from
18763         doc/posix-functions/wcswcs.texi.
18764         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18765         (Function Substitutes): Update.
18766
18767 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18768
18769         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18770         m4/strerror.m4.
18771
18772 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18773             Bruno Haible  <bruno@clisp.org>
18774
18775         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18776
18777 2008-12-13  Bruno Haible  <bruno@clisp.org>
18778
18779         * modules/strtoull (Depends-on): Remove unistd.
18780
18781 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18782
18783         * modules/strtoull (Depends-on): Add stdlib.
18784
18785 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18786
18787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18788
18789 2008-12-10  Jim Meyering  <meyering@redhat.com>
18790
18791         gl_ASSERT: don't say assertions are disabled when they're not
18792         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18793         "checking whether to enable assertions... no", when they are in
18794         fact enabled.  This is solely a bug in the output of configure.
18795         In spite of saying "no", NDEBUG was not defined in that case.
18796         Also, as noted by Eric Blake, leave assertions enabled upon
18797         --enable-assert=INVALID.
18798
18799 2008-12-10  Bruno Haible  <bruno@clisp.org>
18800
18801         Change MODULES.html to refer to POSIX:2008 where possible.
18802         * MODULES.html.sh (POSIX2008_URL): New variable.
18803         (posix_headers): Remove sys/timeb, ucontext.
18804         (posix2001_headers): New variable.
18805         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18806         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18807         index, makecontext, mktemp, pthread_attr_getstackaddr,
18808         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18809         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18810         (posix2001_functions): New variable.
18811         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18812         otherwise.
18813
18814 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815
18816         add missing include to parse-duration.c
18817         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18818         * modules/parse-duration (Depends-on): Add xalloc.
18819
18820         fix sed script reading maint.mk
18821         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18822         (syntax-check-rules): Use it.
18823
18824 2008-12-09  Bruno Haible  <bruno@clisp.org>
18825
18826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18827         MacOS X 10.4/PowerPC.
18828         Reported by Simon Josefsson.
18829
18830 2008-12-08  Jim Meyering  <meyering@redhat.com>
18831
18832         work around mingw's lack of some S_IF definitions
18833         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18834         Reported by Simon Josefsson.
18835
18836 2008-12-08  Bruno Haible  <bruno@clisp.org>
18837
18838         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18839         applied to variables. Needed on MacOS X 10.4/PowerPC.
18840         Reported by Simon Josefsson.
18841
18842 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18843         and Eric Blake  <ebb9@byu.net>
18844
18845         assert: honor --enable-assert
18846         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18847         order to honor --enable-assert, rather than treating it as a
18848         synonym for --disable-assert.
18849
18850 2008-12-08  Jim Meyering  <meyering@redhat.com>
18851
18852         * lib/posixtm.c: Remove now-useless declaration of mktime.
18853
18854         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18855
18856 2008-12-07  Bruno Haible  <bruno@clisp.org>
18857
18858         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18859         test_once): Mark functions as static.
18860         * tests/test-tls.c (test_tls): Likewise.
18861
18862 2008-12-07  Bruno Haible  <bruno@clisp.org>
18863
18864         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18865         iconv_register_autodetect.
18866
18867 2008-12-07  Jim Meyering  <meyering@redhat.com>
18868
18869         posixtm.c: avoid a warning
18870         * lib/posixtm.c (posixtime): Don't initialize tm0.
18871         It's no longer needed to placate gcc4's -Wuninitialized,
18872         and the attempt to placate would elicit a new warning.
18873
18874         unicodeio.c: mark unused parameters
18875         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18876         (fallback_failure_callback): Likewise.
18877
18878 2008-12-07  Bruno Haible  <bruno@clisp.org>
18879
18880         * gnulib-tool (func_create_testdir): When building the tests
18881         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18882         Reported by Simon Josefsson.
18883
18884 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18885
18886         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18887
18888 2008-12-06  Bruno Haible  <bruno@clisp.org>
18889
18890         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18891         Suggested by Eric Blake.
18892
18893 2008-12-06  Bruno Haible  <bruno@clisp.org>
18894
18895         Fix a c-stack test failure on MacOS X.
18896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18897         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18898         handler for SIGBUS as well.
18899         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18900         install a signal handler for SIGBUS as well.
18901         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18902
18903 2008-12-06  Bruno Haible  <bruno@clisp.org>
18904
18905         Advocacy documentation.
18906         * doc/gnulib-intro.texi (Benefits): New section.
18907         * doc/gnulib.texi: Update.
18908
18909 2008-12-06  Bruno Haible  <bruno@clisp.org>
18910
18911         Document the 'manywarnings' module.
18912         * doc/manywarnings.texi: New file.
18913         * doc/gnulib.texi: Include it.
18914
18915 2008-12-05  Eric Blake  <ebb9@byu.net>
18916
18917         tests: silence some gcc warnings
18918         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18919         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18920         type mismatches.
18921
18922 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18923             Bruno Haible  <bruno@clisp.org>
18924
18925         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18926
18927 2008-11-29  Jim Meyering  <meyering@redhat.com>
18928
18929         unicodeio.c: mark unused parameters
18930         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18931         (fallback_failure_callback): Likewise.
18932
18933         fts: fix a thinko
18934         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18935         (set_stat_type): Return S_IF*-valued "type" directly.
18936         Prompted by James Youngman's spotting a related bug.
18937         Confirmed by further testing through find.
18938
18939         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18940         * lib/fts.c (D_TYPE): Define.
18941         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18942         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18943         (s_ifmt_shift_bits): New function.
18944         (set_stat_type): New function.
18945         (fts_build): When not calling fts_stat, call set_stat_type
18946         to propagate dirent.d_type info to fts_read caller.
18947         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18948         fts_statp->st_mode type information may be valid.
18949
18950 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18951
18952         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18953         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18954         <sds@gnu.org>.
18955
18956 2008-11-20  Bruno Haible  <bruno@clisp.org>
18957
18958         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18959         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18960         INCLUDE_NEXT.
18961         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18962         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18963         * modules/math (Makefile.am): Substitute
18964         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18966
18967 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18968             Bruno Haible  <bruno@clisp.org>
18969
18970         * lib/stdint.in.h: Define all type macros so that their expansion is
18971         a single typedef'ed token. Fixes a compilation failure in Boost which
18972         does "using ::int8_t;".
18973
18974 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18975
18976         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18977         gl_MANYWARN_ALL_GCC.
18978         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18979         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18980         * modules/manywarnings: New file.
18981         * MODULES.html.sh: Mention manywarnings module.
18982
18983 2008-11-18  Bruno Haible  <bruno@clisp.org>
18984
18985         * doc/gnulib-tool.texi (Unit tests): New section.
18986
18987 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18988
18989         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18990         paths like 'lib/po/foo.po'.
18991
18992 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18993
18994         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18995         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18996
18997 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18998
18999         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19000         parameter works.
19001
19002 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19003
19004         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19005
19006 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19007
19008         * modules/parse-duration-tests: New file.
19009         * tests/test-parse-duration.sh: New file.
19010         * tests/test-parse-duration.c: New file.
19011
19012         New module 'parse-duration'.
19013         * lib/parse-duration.h: New file.
19014         * lib/parse-duration.c: New file.
19015         * modules/parse-duration: New file.
19016
19017 2008-11-17  Bruno Haible  <bruno@clisp.org>
19018
19019         * tests/test-select-out.sh: Comment out the first pipe test.
19020         Reported by Simon Josefsson.
19021
19022 2008-11-17  Bruno Haible  <bruno@clisp.org>
19023
19024         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19026         gl_HOSTENT.
19027
19028 2008-11-17  Bruno Haible  <bruno@clisp.org>
19029
19030         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19031         -lnetwork and -lnet. Needed for Haiku and BeOS.
19032
19033 2008-11-16  Bruno Haible  <bruno@clisp.org>
19034
19035         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19036
19037 2008-11-16  Bruno Haible  <bruno@clisp.org>
19038
19039         Avoid test failure on Haiku.
19040         * tests/test-fsync.c: Include <errno.h>.
19041         (main): Don't require that fsync (0) fails.
19042
19043 2008-11-15  Bruno Haible  <bruno@clisp.org>
19044
19045         New module 'hostent'.
19046         * modules/hostent: New file.
19047         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19048
19049 2008-11-15  Bruno Haible  <bruno@clisp.org>
19050
19051         New module 'servent'.
19052         * modules/servent: New file.
19053         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19054
19055 2008-11-15  Bruno Haible  <bruno@clisp.org>
19056
19057         Avoid generating same test program with two different rules.
19058         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19059         test-frexp to test-frexp-nolibm.
19060         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19061         test-frexpl to test-frexpl-nolibm.
19062
19063 2008-11-15  Bruno Haible  <bruno@clisp.org>
19064
19065         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19066         $(FREXPL_LIBM).
19067
19068 2008-11-15  Bruno Haible  <bruno@clisp.org>
19069
19070         * lib/netdb.in.h: Activate the definitions also when the system's
19071         <netdb.h> has 'struct addrinfo'.
19072         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19073         EAI_OVERFLOW or AI_NUMERICSERV.
19074         * doc/posix-headers/netdb.texi: Document the problem.
19075
19076 2008-11-15  Bruno Haible  <bruno@clisp.org>
19077
19078         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19079
19080         Make the 'sched' module work on platforms where <sched.h> exists but
19081         is incomplete (such as Haiku).
19082         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19083         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19084         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19085         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19086         HAVE_STRUCT_SCHED_PARAM.
19087         * modules/sched (Depends-on): Add include_next.
19088         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19089         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19090         * doc/posix-headers/sched.texi: Document the issue.
19091
19092 2008-11-13  Jim Meyering  <meyering@redhat.com>
19093
19094         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19095         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19096         test would fail due to the difference in the Report bugs to ...
19097         line.  The expected address is empty, "<>", while the actual
19098         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19099
19100 2008-11-12  Bruno Haible  <bruno@clisp.org>
19101
19102         lstat: don't compile lstat.c on systems lacking lstat
19103         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19104         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19105         Reported by Daniel P. Berrange via Jim Meyering.
19106
19107 2008-11-12  Jim Meyering  <meyering@redhat.com>
19108
19109         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19110
19111 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19112
19113         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19114         instead.
19115
19116 2008-11-12  Bruno Haible  <bruno@clisp.org>
19117
19118         * lib/unicodeio.c: Include unistr.h.
19119         (utf8_wctomb): Remove function.
19120         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19121
19122 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19123
19124         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19125         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19126         <bruno@clisp.org>.
19127         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19128
19129 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19130
19131         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19132         * doc/gnulib.texi: Add section for warnings.
19133
19134 2008-11-11  Bruno Haible  <bruno@clisp.org>
19135
19136         * lib/sockets.h: Add a comment.
19137
19138 2008-11-11  Karl Berry  <karl@gnu.org>
19139
19140         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19141
19142 2008-11-11  Eric Blake  <ebb9@byu.net>
19143
19144         fdl.texi: avoid git symlinks
19145         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19146
19147 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19148
19149         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19150
19151 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19152
19153         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19154         (gl_WARN_ADD): Substitute $2 if literal.
19155
19156 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19157
19158         * m4/warning.m4: Remove.
19159
19160 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19161
19162         * m4/warnings.m4: Almost complete rewrite. :-)
19163
19164 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19165
19166         * modules/warnings: New module.
19167         * m4/warnings.m4: New file.
19168         * MODULES.html.sh: Mention warnings module.
19169         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19170         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19171
19172 2008-11-10  Eric Blake  <ebb9@byu.net>
19173
19174         fdl.texi: make a symlink to the latest version
19175         * doc/standards.texi: Revert today's earlier change.
19176         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19177         * doc/fdl.texi: ...and replace this with a symlink to the newer
19178         fdl-1.3.texi.
19179
19180 2008-11-10  Bruno Haible  <bruno@clisp.org>
19181
19182         * tests/test-select-fd.c (main): Accept the result file name as fourth
19183         argument.
19184         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19185         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19186
19187 2008-11-10  Bruno Haible  <bruno@clisp.org>
19188
19189         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19190         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19191         as autoconf-substituted macros.
19192         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19194         gl_NETDB_H_DEFAULTS. Set these variables.
19195         * modules/netdb (Makefile.am): Substitute these variables.
19196
19197 2008-11-10  Eric Blake  <ebb9@byu.net>
19198
19199         standards.texi: include correct file for FDL 1.3
19200         * doc/standards.texi (GNU Free Documentation License): Change
19201         include file to pull in FDL 1.3, not 1.2.
19202
19203         fdl.texi: revert accidental change to license
19204         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19205
19206 2008-11-10  Bruno Haible  <bruno@clisp.org>
19207
19208         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19209         cross-compiling guesses also when the native compile gives no result.
19210
19211 2008-11-10  Bruno Haible  <bruno@clisp.org>
19212
19213         * lib/spawni.c (__spawni): Force variable into the stack.
19214
19215 2008-11-10  Bruno Haible  <bruno@clisp.org>
19216
19217         Add support for Haiku.
19218         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19219         glibc and BeOS, but also on Haiku.
19220         * lib/fpurge.c (fpurge): Likewise.
19221         * lib/freadable.c (freadable): Likewise.
19222         * lib/freadahead.c (freadahead): Likewise.
19223         * lib/freading.c (freading): Likewise.
19224         * lib/freadptr.c (freadptr): Likewise.
19225         * lib/freadseek.c (freadptrinc): Likewise.
19226         * lib/fseeko.c (rpl_fseeko): Likewise.
19227         * lib/fseterr.c (fseterr): Likewise.
19228         * lib/fwritable.c (fwritable): Likewise.
19229         * lib/fwriting.c (fwriting): Likewise.
19230         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19231
19232 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19233
19234         * lib/config.charset: Treat Haiku like BeOS.
19235
19236 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19237
19238         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19239         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19240
19241 2008-11-08  Bruno Haible  <bruno@clisp.org>
19242
19243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19244         AC_CACHE_CHECK.
19245
19246 2008-11-08  Bruno Haible  <bruno@clisp.org>
19247
19248         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19249
19250 2008-11-08  Bruno Haible  <bruno@clisp.org>
19251
19252         * tests/test-select-fd.c: New file.
19253         * tests/test-select-in.sh: New file.
19254         * tests/test-select-out.sh: New file.
19255         * tests/test-select-stdin.c: New file.
19256         * modules/select-tests (Files): Add the new files.
19257         (Depends-on): Add gettimeofday.
19258         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19259         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19260         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19261
19262 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19263             Bruno Haible  <bruno@clisp.org>
19264
19265         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19266
19267 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19268
19269         * build-aux/pmccabe2html: Added support for C++ source files.
19270
19271 2008-11-05  Ben Pfaff  <blp@gnu.org>
19272
19273         Fix lib/close.c build on Windows.
19274         * modules/close (Files): Add lib/w32sock.h.
19275
19276 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19277
19278         Accept Bison's NEWS format.
19279         * build-aux/announce-gen (print_news_deltas): Tweak
19280         $re_prefix.
19281
19282 2008-11-04  Bruno Haible  <bruno@clisp.org>
19283
19284         * modules/random_r (Maintainer): Add glibc.
19285
19286 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19287
19288         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19289         by karl@freefriends.org (Karl Berry).
19290         * doc/alloca.texi: Likewise.
19291         * doc/c-ctype.texi: Likewise.
19292         * doc/c-strcase.texi: Likewise.
19293         * doc/c-strcaseeq.texi: Likewise.
19294         * doc/c-strcasestr.texi: Likewise.
19295         * doc/c-strstr.texi: Likewise.
19296         * doc/c-strtod.texi: Likewise.
19297         * doc/c-strtold.texi: Likewise.
19298         * doc/ctime.texi: Likewise.
19299         * doc/error.texi: Likewise.
19300         * doc/fdl.texi: Likewise.
19301         * doc/gcd.texi: Likewise.
19302         * doc/getdate.texi: Likewise.
19303         * doc/gnulib-intro.texi: Likewise.
19304         * doc/gnulib-tool.texi: Likewise.
19305         * doc/gnulib.texi: Likewise.
19306         * doc/inet_ntoa.texi: Likewise.
19307         * doc/maintain.texi: Likewise.
19308         * doc/make-stds.texi: Likewise.
19309         * doc/quote.texi: Likewise.
19310         * doc/regexprops-generic.texi: Likewise.
19311         * doc/standards.texi: Likewise.
19312         * doc/verify.texi: Likewise.
19313         * doc/visibility.texi: Likewise.
19314         * doc/gnulib.texi (GNU Free Documentation License): Include
19315         fdl-1.3.texi instead of fdl.texi.
19316
19317 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19318
19319         * doc/fdl-1.3.texi: New file, from
19320         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19321         * modules/fdl-1.3: Add.
19322         * MODULES.html.sh: Add fdl-1.3.
19323
19324 2008-11-03  Bruno Haible  <bruno@clisp.org>
19325
19326         Make determination of absolute name of header file work with AIX xlc.
19327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19328         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19329         preprocessing.
19330         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19331         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19332
19333 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19334
19335         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19336         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19337         <ludo@gnu.org>.
19338
19339 2008-11-02  Bruno Haible  <bruno@clisp.org>
19340
19341         Mark 'strpbrk' obsolete.
19342         * modules/strpbrk (Status, Notice): New sections.
19343         * modules/strtok_r (Depends-on): Add strpbrk.
19344
19345 2008-11-02  Bruno Haible  <bruno@clisp.org>
19346
19347         Mark 'strdup' obsolete.
19348         * modules/strdup (Status, Notice): New sections.
19349         * modules/findprog (Depends-on): Add strdup.
19350         * modules/getaddrinfo (Depends-on): Likewise.
19351         * modules/localename (Depends-on): Likewise.
19352         * modules/relocatable-lib (Depends-on): Likewise.
19353         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19354         * modules/relocatable-prog (Depends-on): Likewise.
19355         * modules/trim (Depends-on): Likewise.
19356         * modules/unictype/gen-ctype (Depends-on): Likewise.
19357         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19358
19359 2008-11-02  Bruno Haible  <bruno@clisp.org>
19360
19361         Mark 'strcspn' obsolete.
19362         * modules/strcspn (Status, Notice): New sections.
19363
19364 2008-11-02  Bruno Haible  <bruno@clisp.org>
19365
19366         Mark 'rmdir' obsolete.
19367         * modules/rmdir (Status, Notice): New sections.
19368         * modules/clean-temp (Depends-on): Add rmdir.
19369         * modules/openat (Depends-on): Likewise.
19370
19371 2008-11-02  Bruno Haible  <bruno@clisp.org>
19372
19373         Mark 'raise' obsolete.
19374         * modules/raise (Status, Notice): New sections.
19375         (Include): Specify <signal.h>.
19376         * modules/stdio (Depends-on): Add raise.
19377         * modules/write (Depends-on): Likewise.
19378
19379 2008-11-02  Bruno Haible  <bruno@clisp.org>
19380
19381         Mark 'memset' obsolete.
19382         * modules/memset (Status, Notice): New sections.
19383
19384 2008-11-02  Bruno Haible  <bruno@clisp.org>
19385
19386         Mark 'memmove' obsolete.
19387         * modules/memmove (Status, Notice): New sections.
19388         * modules/argp (Depends-on): Add memmove.
19389         * modules/argz (Depends-on): Likewise.
19390         * modules/canonicalize (Depends-on): Likewise.
19391         * modules/canonicalize-lgpl (Depends-on): Likewise.
19392         * modules/fts (Depends-on): Likewise.
19393         * modules/getcwd (Depends-on): Likewise.
19394         * modules/human (Depends-on): Likewise.
19395         * modules/regex (Depends-on): Likewise.
19396         * modules/striconveh (Depends-on): Likewise.
19397         * modules/trim (Depends-on): Likewise.
19398         * modules/unistr/u8-move (Depends-on): Likewise.
19399         * modules/unistr/u16-move (Depends-on): Likewise.
19400         * modules/unistr/u32-move (Depends-on): Likewise.
19401
19402 2008-11-02  Bruno Haible  <bruno@clisp.org>
19403
19404         Mark 'memcpy' obsolete.
19405         * modules/memcpy (Status, Notice): New sections.
19406
19407 2008-11-02  Bruno Haible  <bruno@clisp.org>
19408
19409         Mark 'memcmp' obsolete.
19410         * modules/memcmp (Status, Notice): New sections.
19411         * modules/argmatch (Depends-on): Add memchr.
19412         * modules/backupfile (Depends-on): Likewise.
19413         * modules/c-strcasestr (Depends-on): Likewise.
19414         * modules/crypto/des (Depends-on): Likewise.
19415         * modules/csharpcomp (Depends-on): Likewise.
19416         * modules/fnmatch (Depends-on): Likewise.
19417         * modules/git-merge-changelog (Depends-on): Likewise.
19418         * modules/isnand (Depends-on): Likewise.
19419         * modules/isnand-nolibm (Depends-on): Likewise.
19420         * modules/isnanf (Depends-on): Likewise.
19421         * modules/isnanf-nolibm (Depends-on): Likewise.
19422         * modules/isnanl (Depends-on): Likewise.
19423         * modules/isnanl-nolibm (Depends-on): Likewise.
19424         * modules/mbchar (Depends-on): Likewise.
19425         * modules/memcoll (Depends-on): Likewise.
19426         * modules/quotearg (Depends-on): Likewise.
19427         * modules/regex (Depends-on): Likewise.
19428         * modules/relocatable-prog (Depends-on): Likewise.
19429         * modules/same (Depends-on): Likewise.
19430         * modules/signbit (Depends-on): Likewise.
19431         * modules/strcasestr-simple (Depends-on): Likewise.
19432         * modules/unictype/gen-ctype (Depends-on): Likewise.
19433         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19434         * modules/uniname/uniname (Depends-on): Likewise.
19435         * modules/unistr/u8-cmp (Depends-on): Likewise.
19436
19437 2008-11-02  Bruno Haible  <bruno@clisp.org>
19438
19439         Mark 'memchr' obsolete.
19440         * modules/memchr (Status, Notice): New sections.
19441         * modules/argp (Depends-on): Add memchr.
19442         * modules/base64 (Depends-on): Likewise.
19443         * modules/c-strcasestr (Depends-on): Likewise.
19444         * modules/chdir-long (Depends-on): Likewise.
19445         * modules/fnmatch (Depends-on): Likewise.
19446         * modules/getsubopt (Depends-on): Likewise.
19447         * modules/git-merge-changelog (Depends-on): Likewise.
19448         * modules/glob (Depends-on): Likewise.
19449         * modules/strcasestr-simple (Depends-on): Likewise.
19450         * modules/strnlen (Depends-on): Likewise.
19451
19452 2008-11-02  Bruno Haible  <bruno@clisp.org>
19453
19454         Mark 'atexit' obsolete.
19455         * modules/atexit (Status, Notice): New sections.
19456         * modules/chdir-long (Depends-on): Add atexit.
19457         * modules/wait-process (Depends-on): Likewise.
19458
19459 2008-11-02  Bruno Haible  <bruno@clisp.org>
19460
19461         * gnulib-tool: New option --with-obsolete.
19462         (func_usage): Document it.
19463         (func_modules_transitive_closure): Drop obsolete dependencies if
19464         incobsolete is not true.
19465         (func_import): Read and save the incobsolete variable to the cache.
19466
19467 2008-11-02  Bruno Haible  <bruno@clisp.org>
19468
19469         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19470         * gnulib-tool: New option --extract-status.
19471         (func_usage): Document it.
19472         (sed_extract_prog): Recognize it.
19473         (func_get_status): New function.
19474
19475 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19476
19477         * modules/sockets (License): Change from LGPL to LGPLv2+.
19478
19479 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19480
19481         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19482
19483 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19484
19485         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19486         Mention times and sys_times.
19487         * modules/sys_times, modules/sys_times-tests: New modules.
19488         * modules/times, modules/times-tests: Likewise
19489         * m4/sys_times_h.m4: New file.
19490         * lib/sys_times.in.h: Likewise
19491         * lib/times.c: Likewise.
19492         * tests/test-sys_times.c: Likewise.
19493         * tests/test-times.c: Likewise.
19494         * doc/posix-headers/sys_times.texi: Update.
19495         * doc/posix-functions/times.texi: Update.
19496
19497 2008-10-28  Jim Meyering  <meyering@redhat.com>
19498
19499         * modules/tempname (Depends-on): Add lstat.
19500
19501         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19502
19503 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19504
19505         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19506         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19507         using idiom used elsewhere in gnulib.
19508
19509 2008-10-27  Jim Meyering  <meyering@redhat.com>
19510
19511         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19512
19513 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19514
19515         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19516         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19517         programs.
19518         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19519
19520 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19521
19522         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19523
19524 2008-10-27  Bruno Haible  <bruno@clisp.org>
19525
19526         * tests/test-lstat.c: Include <stdio.h>.
19527
19528 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19529
19530         * modules/lstat-tests: New module.
19531         * tests/test-lstat.c: New file.
19532
19533 2008-10-26  Jim Meyering  <meyering@redhat.com>
19534
19535         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19536
19537 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19538             Bruno Haible  <bruno@clisp.org>
19539
19540         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19541         * modules/configmake (Include): Add a note that the include must come
19542         after all system headers.
19543         * lib/javaversion.c: Include configmake.h after all other includes.
19544
19545 2008-10-26  Bruno Haible  <bruno@clisp.org>
19546
19547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19548         HAVE_STRUCT_RANDOM_DATA to 1.
19549         (gl_STDLIB_H): Simplify.
19550
19551 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19552
19553         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19554         substitute HAVE_STRUCT_RANDOM_DATA.
19555         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19556         random_data.
19557         * modules/stdlib (Makefile.am): Substitute
19558         HAVE_STRUCT_RANDOM_DATA.
19559
19560 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19561
19562         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19563         * doc/gnulib-intro.texi (Copyright): Likewise.
19564
19565 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19566
19567         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19568         findings.
19569
19570 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19571             Bruno Haible  <bruno@clisp.org>
19572
19573         * lib/unistd.in.h: Include <winsock2.h>.
19574         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19575         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19576         Provide dummy declarations.
19577         (gethostname): Override.
19578         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19579         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19580         gl_PREREQ_SYS_H_WINSOCK2.
19581         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19582         * doc/posix-functions/gethostname.texi: More details.
19583
19584 2008-10-25  Bruno Haible  <bruno@clisp.org>
19585
19586         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19587         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19588         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19589
19590         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19591         here ...
19592         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19594         gl_UNISTD_H_DEFAULTS.
19595
19596 2008-10-25  Eric Blake  <ebb9@byu.net>
19597
19598         signbit: avoid spurious compiler failure
19599         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19600         declarations inside function.
19601
19602 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19603             Bruno Haible  <bruno@clisp.org>
19604
19605         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19606         * modules/random_r (Depends-on): Add stdint.
19607
19608 2008-10-24  Bruno Haible  <bruno@clisp.org>
19609
19610         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19611         Eggert.
19612         * modules/strerror (License): Likewise.
19613
19614 2008-10-24  Jim Meyering  <meyering@redhat.com>
19615
19616         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19617         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19618
19619 2008-10-24  Eric Blake  <ebb9@byu.net>
19620
19621         getgroups: fix compilation when getgroups is available
19622         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19623         but with <config.h> override of getgroups disabled.
19624
19625 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19626
19627         * doc/gnulib.texi (Header files): Add note about C++ problems.
19628         Explained by Bruno Haible <bruno@clisp.org>.
19629
19630 2008-10-23  Bruno Haible  <bruno@clisp.org>
19631
19632         Define a dummy SA_NODEFER macro on Interix.
19633         * lib/signal.in.h (SA_NODEFER): Define fallback.
19634         Reported by Aleksey Cheusov <cheusov@tut.by> via
19635         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19636
19637 2008-10-23  Bruno Haible  <bruno@clisp.org>
19638
19639         * modules/freadahead (License): Change to LGPLv2+.
19640         Suggested by Simon Josefsson.
19641
19642 2008-10-23  Jim Meyering  <meyering@redhat.com>
19643
19644         random_r: new module
19645         * modules/random_r: New file.
19646         * m4/random_r.m4: New file.
19647         * lib/random_r.c: New file, from glibc.
19648         * modules/random_r-tests: New file.
19649         * tests/test-random_r.c: New file.
19650         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19651          Declare.
19652         (RAND_MAX): Define.
19653         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19654         * modules/stdlib: Substitute them, too.
19655         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19656         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19657         * doc/glibc-functions/random_r.texi: Likewise.
19658         * doc/glibc-functions/setstate_r.texi: Likewise.
19659         * doc/glibc-functions/srandom_r.texi: Likewise.
19660         * config/srclist.txt: Mention it.
19661
19662 2008-10-23  David Lutterkort  <lutter@redhat.com>
19663
19664         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19665         link requirement
19666
19667 2008-10-23  Jim Meyering  <meyering@redhat.com>
19668
19669         selinux-h: mark parameters of stub functions as intentionally unused
19670         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19671         * lib/se-context.in.h: Likewise.
19672
19673 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19674
19675         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19676
19677 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19678
19679         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19680
19681 2008-10-22  Eric Blake  <ebb9@byu.net>
19682
19683         glthread/thread: avoid compiler warning
19684         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19685         Add unreachable abort to silence compiler.
19686
19687 2008-10-22  Eric Blake  <ebb9@byu.net>
19688
19689         netdb: also supply struct addrinfo for cygwin 1.5.x
19690         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19691         older cygwin.
19692         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19693         cygwin.
19694         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19695
19696 2008-10-22  Bruno Haible  <bruno@clisp.org>
19697
19698         * users.txt: Update entry about pspp.
19699
19700 2008-10-21  Bruno Haible  <bruno@clisp.org>
19701
19702         Simplification.
19703         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19704         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19705
19706         Simplification.
19707         * lib/ioctl.c (ioctl): Don't undefine.
19708         * lib/socket.c (socket): Don't undefine.
19709
19710         Remove unused module indicator macros.
19711         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19712         GNULIB_$1 as a C macro.
19713
19714         * doc/posix-functions/close.texi: Undo last change.
19715         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19716         Windows platforms.
19717
19718 2008-10-21  Bruno Haible  <bruno@clisp.org>
19719
19720         Add gethostname() declaration to <unistd.h>.
19721         * lib/unistd.in.h (gethostname): New declaration.
19722         * lib/gethostname.c: Include <unistd.h>.
19723         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19724         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19726         and HAVE_GETHOSTNAME.
19727         * modules/gethostname (Depends-on): Add unistd.
19728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19729         (Include): Specify <unistd.h>.
19730         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19731         HAVE_GETHOSTNAME.
19732         * tests/test-gethostname.c: Include <unistd.h> first.
19733
19734 2008-10-21  Bruno Haible  <bruno@clisp.org>
19735
19736         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19737         * modules/select-tests (Depends-on): Likewise.
19738         Reported by Simon Josefsson.
19739
19740 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19741
19742         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19743         * lib/accept.c: New file, based on winsock.c.
19744         * lib/bind.c: New file, based on winsock.c.
19745         * lib/connect.c: New file, based on winsock.c.
19746         * lib/getpeername.c: New file, based on winsock.c.
19747         * lib/getsockname.c: New file, based on winsock.c.
19748         * lib/getsockopt.c: New file, based on winsock.c.
19749         * lib/ioctl.c: New file, based on winsock.c.
19750         * lib/listen.c: New file, based on winsock.c.
19751         * lib/recv.c: New file, based on winsock.c.
19752         * lib/recvfrom.c: New file, based on winsock.c.
19753         * lib/send.c: New file, based on winsock.c.
19754         * lib/sendto.c: New file, based on winsock.c.
19755         * lib/setsockopt.c: New file, based on winsock.c.
19756         * lib/shutdown.c: New file, based on winsock.c.
19757         * lib/socket.c: New file, based on winsock.c.
19758         * lib/w32sock.h: New file, based on winsock.c.
19759         * lib/winsock.c: Remove file.
19760         * modules/accept: Likewise.
19761         * modules/bind: Likewise.
19762         * modules/connect: Likewise.
19763         * modules/getpeername: Likewise.
19764         * modules/getsockname: Likewise.
19765         * modules/getsockopt: Likewise.
19766         * modules/ioctl: Likewise.
19767         * modules/listen: Likewise.
19768         * modules/recv: Likewise.
19769         * modules/recvfrom: Likewise.
19770         * modules/send: Likewise.
19771         * modules/sendto: Likewise.
19772         * modules/setsockopt: Likewise.
19773         * modules/shutdown: Likewise.
19774         * modules/socket: Use socket.c instead of winsock.c.
19775         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19776         * doc/posix-functions/accept.texi: Doc fix.
19777         * doc/posix-functions/bind.texi: Doc fix.
19778         * doc/posix-functions/close.texi: Doc fix.
19779         * doc/posix-functions/connect.texi: Doc fix.
19780         * doc/posix-functions/getpeername.texi: Doc fix.
19781         * doc/posix-functions/getsockname.texi: Doc fix.
19782         * doc/posix-functions/getsockopt.texi: Doc fix.
19783         * doc/posix-functions/ioctl.texi: Doc fix.
19784         * doc/posix-functions/listen.texi: Doc fix.
19785         * doc/posix-functions/recv.texi: Doc fix.
19786         * doc/posix-functions/recvfrom.texi: Doc fix.
19787         * doc/posix-functions/send.texi: Doc fix.
19788         * doc/posix-functions/sendto.texi: Doc fix.
19789         * doc/posix-functions/setsockopt.texi: Doc fix.
19790         * doc/posix-functions/shutdown.texi: Doc fix.
19791         * doc/posix-functions/socket.texi: Doc fix.
19792
19793 2008-10-20  Bruno Haible  <bruno@clisp.org>
19794
19795         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19796         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19797         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19798         as an alias for SIGABRT.
19799         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19800         (sigaction): Map it to SIGABRT.
19801         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19802
19803 2008-10-20  Bruno Haible  <bruno@clisp.org>
19804
19805         * lib/fts.c: Don't include lstat.h.
19806         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19807
19808         Move the lstat() declaration to <sys/stat.h>.
19809         * lib/lstat.h: Remove file.
19810         * lib/sys_stat.in.h: Add special invocation convention.
19811         (lstat): New declaration.
19812         * lib/lstat.c (orig_lstat): New function.
19813         (rpl_lstat): Use orig_lstat instead of lstat.
19814         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19815         AC_C_INLINE. Set REPLACE_LSTAT.
19816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19817         and REPLACE_LSTAT.
19818         * modules/lstat (Files): Remove lib/lstat.h.
19819         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19820         (Include): Specify <sys/stat.h> instead of lstat.h.
19821         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19822         REPLACE_LSTAT.
19823         * NEWS: Mention the change.
19824
19825 2008-10-20  Bruno Haible  <bruno@clisp.org>
19826
19827         * modules/posix_spawn-tests: New file.
19828         * tests/test-posix_spawn3.c: New file.
19829
19830 2008-10-20  Bruno Haible  <bruno@clisp.org>
19831
19832         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19833         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19834         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19835         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19836         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19837
19838 2008-10-20  Bruno Haible  <bruno@clisp.org>
19839
19840         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19841         of posix_spawn on AIX 5.3.
19842
19843 2008-10-20  Bruno Haible  <bruno@clisp.org>
19844
19845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19846
19847 2008-10-20  Bruno Haible  <bruno@clisp.org>
19848
19849         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19850         of AC_LANG_PROGRAM.
19851
19852 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19853
19854         * lib/netdb.in.h: Don't define GNU specific constants until they
19855         are supported or needed.  Reported by Bruno Haible
19856         <bruno@clisp.org>.
19857
19858 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19859
19860         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19861
19862 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19863
19864         * lib/getaddrinfo.h: Remove file.
19865         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19866         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19867         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19868         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19869         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19870         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19871         * tests/test-getaddrinfo.c: Likewise.
19872         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19873         * NEWS: Mention change.
19874
19875 2008-10-19  Bruno Haible  <bruno@clisp.org>
19876
19877         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19878
19879 2008-10-19  Bruno Haible  <bruno@clisp.org>
19880
19881         * lib/wait-process.c: Include simply <sys/wait.h>.
19882         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19883         WIFSTOPPED): Remove fallback definitions.
19884         * modules/wait-process (Depends-on): Add sys_wait.
19885
19886         New module 'sys_wait'.
19887         * modules/sys_wait: New file.
19888         * lib/sys_wait.in.h: New file, partially copied from
19889         lib/wait-process.c.
19890         * m4/sys_wait_h.m4: New file.
19891         * doc/posix-headers/sys_wait.texi: Mention the new module.
19892
19893 2008-10-19  Bruno Haible  <bruno@clisp.org>
19894
19895         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19896
19897 2008-10-19  Bruno Haible  <bruno@clisp.org>
19898
19899         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19900         * lib/wait-process.c (WAIT_T): Remove type.
19901         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19902         (wait_subprocess): Update.
19903
19904 2008-10-19  Bruno Haible  <bruno@clisp.org>
19905
19906         New module 'atoll'.
19907         * modules/atoll: New file.
19908         * lib/stdlib.in.h (atoll): New declaration.
19909         * lib/atoll.c: New file, from glibc with modifications.
19910         * m4/atoll.m4: New file.
19911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19912         HAVE_ATOLL.
19913         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19914         * doc/posix-functions/atoll.texi: Mention the new module.
19915
19916 2008-10-19  Bruno Haible  <bruno@clisp.org>
19917
19918         Add strtoull() declaration to <stdlib.h>.
19919         * lib/stdlib.in.h (strtoull): New declaration.
19920         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19921         Set HAVE_STRTOULL.
19922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19923         HAVE_STRTOULL.
19924         * modules/strtoull (Depends-on): Add stdlib.
19925         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19926         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19927         HAVE_STRTOULL.
19928
19929 2008-10-19  Bruno Haible  <bruno@clisp.org>
19930
19931         Add strtoll() declaration to <stdlib.h>.
19932         * lib/stdlib.in.h (strtoll): New declaration.
19933         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19934         Set HAVE_STRTOLL.
19935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19936         HAVE_STRTOLL.
19937         * modules/strtoll (Depends-on): Add stdlib.
19938         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19939         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19940
19941 2008-10-19  Bruno Haible  <bruno@clisp.org>
19942
19943         * modules/bcopy (Depends-on): Add strings.
19944         (Include): Specify <strings.h>.
19945
19946 2008-10-19  Bruno Haible  <bruno@clisp.org>
19947
19948         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19949
19950 2008-10-19  Bruno Haible  <bruno@clisp.org>
19951
19952         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19953         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19954         mingw.
19955
19956 2008-10-19  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/atanl.c: Don't include isnanl.h.
19959         * lib/cosl.c: Likewise.
19960         * lib/ldexpl.c: Likewise.
19961         * lib/logl.c: Likewise.
19962         * lib/sinl.c: Likewise.
19963         * lib/sqrtl.c: Likewise.
19964         * lib/tanl.c: Likewise.
19965
19966         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19967         * lib/isnanf.h: Remove file.
19968         * lib/isnand.h: Remove file.
19969         * lib/isnanl.h: Remove file.
19970         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19971         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19972         macros.
19973         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19974         HAVE_ISNANF, don't define it as a C macro.
19975         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19976         HAVE_ISNAND, don't define it as a C macro.
19977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19978         HAVE_ISNANL, don't define it as a C macro.
19979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19980         HAVE_ISNAN[FDL].
19981         * modules/isnanf (Files): Remove lib/isnanf.h.
19982         (Depends-on): Add math.
19983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19984         (Include): Specify <math.h> instead of isnanf.h.
19985         * modules/isnand (Files): Remove lib/isnand.h.
19986         (Depends-on): Add math.
19987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19988         (Include): Specify <math.h> instead of isnand.h.
19989         * modules/isnanl (Files): Remove lib/isnanl.h.
19990         (Depends-on): Add math.
19991         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19992         (Include): Specify <math.h> instead of isnanl.h.
19993         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19994         HAVE_ISNAN[FDL].
19995         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19996         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19997         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19998         * NEWS: Mention the change.
19999
20000 2008-10-18  Bruno Haible  <bruno@clisp.org>
20001
20002         Add getusershell(), setusershell(), endusershell() declarations to
20003         <unistd.h>.
20004         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20005         declarations.
20006         * lib/getusershell.c: Include unistd.h.
20007         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20008         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20009         HAVE_GETUSERSHELL.
20010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20011         and HAVE_GETUSERSHELL.
20012         * modules/getusershell (Depends-on): Add unistd, extensions.
20013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20014         (Include): Specify <unistd.h>.
20015         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20016         HAVE_GETUSERSHELL.
20017
20018 2008-10-18  Bruno Haible  <bruno@clisp.org>
20019
20020         Add a getloadavg() declaration to <stdlib.h>.
20021         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20022         getloadavg declaration.
20023         (getloadavg): New declaration.
20024         * lib/getloadavg.c: Include <stdlib.h> first.
20025         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20026         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20027         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20029         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20030         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20031         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20032         (Include): Specify <stdlib.h>.
20033         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20034         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20035
20036 2008-10-18  Bruno Haible  <bruno@clisp.org>
20037
20038         * lib/dirchownmod.c: Don't include lchmod.h.
20039
20040         Move the lchmod() declaration to <sys/stat.h>.
20041         * lib/lchmod.h: Remove file.
20042         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20043         (lchmod): New declaration, moved here from lib/lchown.h.
20044         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20045         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20047         and HAVE_LCHMOD.
20048         * modules/lchmod (Files): Remove lib/lchmod.h.
20049         (Depends-on): Add sys_stat, extensions.
20050         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20051         (Include): Specify <sys/stat.h> instead of lchmod.h.
20052         * modules/sys_stat (Depends-on): Add link-warning.
20053         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20054         definition of GL_LINK_WARNING.
20055         * NEWS: Mention the change.
20056
20057 2008-10-18  Bruno Haible  <bruno@clisp.org>
20058
20059         * lib/fchdir.c: Don't include dirfd.h.
20060         * lib/fts.c: Likewise.
20061         * lib/getcwd.c: Likewise.
20062         * lib/glob.c: Likewise.
20063
20064         Move the dirfd() declaration to <dirent.h>.
20065         * lib/dirfd.h: Remove file.
20066         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20067         (dirfd): New declaration.
20068         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20070         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20071         HAVE_DECL_DIRFD.
20072         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20073         HAVE_DECL_DIRFD.
20074         * modules/dirfd (Files): Remove lib/dirfd.h.
20075         (Depends-on): Add dirent, extensions.
20076         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20077         (Include): Specify <dirent.h> instead of dirfd.h.
20078         * modules/dirent (Depends-on): Add link-warning.
20079         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20080         definition of GL_LINK_WARNING.
20081         * NEWS: Mention the change.
20082
20083 2008-10-18  Bruno Haible  <bruno@clisp.org>
20084
20085         Move the euidaccess() declaration to <unistd.h>.
20086         * lib/euidaccess.h: Remove file.
20087         * lib/unistd.in.h (euidaccess): New declaration.
20088         * lib/euidaccess.c: Don't include euidaccess.h.
20089         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20090         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20092         and HAVE_EUIDACCESS.
20093         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20094         (Depends-on): Add unistd.
20095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20096         (Include): Specify <unistd.h> instead of euidaccess.h.
20097         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20098         HAVE_EUIDACCESS.
20099         * NEWS: Mention the change.
20100
20101 2008-10-18  Bruno Haible  <bruno@clisp.org>
20102
20103         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20104
20105         Move the getdomainname() declaration to <unistd.h>.
20106         * lib/getdomainname.h: Remove file.
20107         * lib/unistd.in.h (getdomainname): New declaration.
20108         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20110         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20111         HAVE_GETDOMAINNAME.
20112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20113         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20114         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20115         (Depends-on): Add unistd, extensions.
20116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20117         (Includes): Specify <unistd.h> instead of getdomainname.h.
20118         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20119         HAVE_GETDOMAINNAME.
20120         * NEWS: Mention the change.
20121
20122 2008-10-18  Bruno Haible  <bruno@clisp.org>
20123
20124         * modules/dirent: New file.
20125         * m4/dirent_h.m4: New file.
20126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20127         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20128         * modules/fchdir (Files): Remove lib/dirent.in.h.
20129         (Depends-on): Add dirent.
20130         (Makefile.am): Move rules to modules/dirent.
20131         * doc/posix-headers/dirent.texi: Mention the new module.
20132
20133 2008-10-18  Bruno Haible  <bruno@clisp.org>
20134
20135         Avoid -Wunused-parameter warnings in public gnulib header files.
20136         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20137         macro.
20138         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20139
20140 2008-10-18  Bruno Haible  <bruno@clisp.org>
20141
20142         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20143         * doc/glibc-functions/error.texi: Mention the module 'error'.
20144         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20145         * doc/glibc-functions/getdomainname.texi: Mention the module
20146         'getdomainname'.
20147         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20148         * doc/glibc-functions/getpagesize.texi: Mention the module
20149         'getpagesize'.
20150         * doc/glibc-functions/getusershell.texi: Mention the module
20151         'getusershell'.
20152         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20153         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20154         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20155         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20156         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20157         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20158         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20159         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20160         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20161         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20162         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20163         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20164         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20165         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20166
20167 2008-10-17  Bruno Haible  <bruno@clisp.org>
20168
20169         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20170         HP-UX and IRIX, use -0.0L.
20171         * tests/test-ceill.c (minus_zero): Likewise.
20172         * tests/test-floorl.c (minus_zero): Likewise.
20173         * tests/test-frexpl.c (minus_zero): Likewise.
20174         * tests/test-isnan.c (minus_zerol): Likewise.
20175         * tests/test-isnanl.h (minus_zero): Likewise.
20176         * tests/test-ldexpl.c (minus_zero): Likewise.
20177         * tests/test-roundl.c (minus_zero): Likewise.
20178         * tests/test-signbit.c (minus_zerol): Likewise.
20179         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20180         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20181         * tests/test-truncl.c (minus_zero): Likewise.
20182         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20183         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20184         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20185         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20186
20187 2008-10-17  Bruno Haible  <bruno@clisp.org>
20188
20189         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20190         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20191         that it gets activated only for gcc >= 3.0.
20192         * lib/dirent.in.h: Likewise.
20193         * lib/errno.in.h: Likewise.
20194         * lib/fcntl.in.h: Likewise.
20195         * lib/float.in.h: Likewise.
20196         * lib/iconv.in.h: Likewise.
20197         * lib/inttypes.in.h: Likewise.
20198         * lib/locale.in.h: Likewise.
20199         * lib/math.in.h: Likewise.
20200         * lib/netdb.in.h: Likewise.
20201         * lib/netinet_in.in.h: Likewise.
20202         * lib/search.in.h: Likewise.
20203         * lib/signal.in.h: Likewise.
20204         * lib/spawn.in.h: Likewise.
20205         * lib/stdarg.in.h: Likewise.
20206         * lib/stdint.in.h: Likewise.
20207         * lib/stdio.in.h: Likewise.
20208         * lib/stdlib.in.h: Likewise.
20209         * lib/string.in.h: Likewise.
20210         * lib/strings.in.h: Likewise.
20211         * lib/sys_file.in.h: Likewise.
20212         * lib/sys_ioctl.in.h: Likewise.
20213         * lib/sys_select.in.h: Likewise.
20214         * lib/sys_socket.in.h: Likewise.
20215         * lib/sys_stat.in.h: Likewise.
20216         * lib/sys_time.in.h: Likewise.
20217         * lib/sysexits.in.h: Likewise.
20218         * lib/time.in.h: Likewise.
20219         * lib/unistd.in.h: Likewise.
20220         * lib/wchar.in.h: Likewise.
20221         * lib/wctype.in.h: Likewise.
20222         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20223
20224 2008-10-17  Jim Meyering  <meyering@redhat.com>
20225
20226         ignore-value: don't depend on inline module
20227         * modules/ignore-value (Depends-on): Remove 'inline'.
20228         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20229         Suggestion from Bruno Haible.
20230
20231 2008-10-17  Bruno Haible  <bruno@clisp.org>
20232
20233         New implementation of condition variables for Win32.
20234         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20235         (gl_linked_waitqueue_t): New type.
20236         (gl_cond_t): Use it.
20237         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20238         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20239         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20240         (glthread_cond_init_func, glthread_cond_wait_func,
20241         glthread_cond_timedwait_func, glthread_cond_signal_func,
20242         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20243         Reimplemented on the basis of gl_linked_waitqueue_t.
20244         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20245         gl_waitqueue_t.
20246         (gl_rwlock_t): Update.
20247         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20248
20249 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20250
20251         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20252         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20253
20254 2008-10-17  Jim Meyering  <meyering@redhat.com>
20255
20256         ignore-value: new module
20257         * modules/ignore-value: New file.
20258         * lib/ignore-value.h: New file.
20259         * MODULES.html.sh (Compiler warning management): New section,
20260         just for this module.  More to come.
20261
20262 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20263
20264         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20265         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20266         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20267
20268 2008-10-16  Jim Meyering  <meyering@redhat.com>
20269
20270         openat-die.c: avoid 'no previous prototype' warning
20271         * lib/openat-die.c: Include "openat.h".
20272         Reported by Reuben Thomas <rrt@sc3d.org>.
20273
20274 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20275
20276         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20277         * lib/netdb.in.h: Fix typo.
20278         Reported by Bruno Haible  <bruno@clisp.org>
20279
20280         * lib/netdb.in.h: Include sys/socket.h for platforms without
20281         netdb.h, to get structures like hostent on MinGW.
20282         * modules/netdb (Depends-on): Add sys_socket.
20283
20284 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20285
20286         * modules/netdb, modules/netdb-tests: New file.
20287         * m4/netdb_h.m4: New file.
20288         * lib/netdb.in.h: Add, currently just an empty file pending
20289         definitions.
20290         * tests/test-netdb.c: New file.
20291         * doc/posix-headers/netdb.texi: Mention that we replace it if
20292         needed.
20293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20294         netdb.
20295
20296 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20297
20298         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20299         with code.
20300
20301 2008-10-13  Bruno Haible  <bruno@clisp.org>
20302
20303         * lib/glthread/cond.c (glthread_cond_wait_func,
20304         glthread_cond_timedwait_func): Add a comment.
20305
20306 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20307
20308         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20309         * tests/test-select.c: Likewise,
20310
20311 2008-10-13  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/glthread/cond.c (glthread_cond_wait_func,
20314         glthread_cond_timedwait_func): Fix variable name.
20315         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20316
20317 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20318
20319         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20320         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20321         struct sockaddr.sa_len.
20322         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20323
20324 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20325
20326         * build-aux/pmccabe2html: Add css and css_url parameters.
20327
20328 2008-10-12  Bruno Haible  <bruno@clisp.org>
20329
20330         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20331         calling aclx_get.
20332         Reported by Rainer Tammer <tammer@tammer.net>.
20333
20334 2008-10-12  Bruno Haible  <bruno@clisp.org>
20335
20336         Use msvcrt aware primitives for creation/termination of Win32 threads.
20337         * lib/glthread/thread.c: Include <process.h>.
20338         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20339         (wrapper_func): Update signature.
20340         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20341
20342 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20343             Bruno Haible  <bruno@clisp.org>
20344
20345         Provide a Win32 implementation of the 'cond' module.
20346         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20347         * lib/glthread/cond.c (glthread_cond_init_func,
20348         glthread_cond_wait_func, glthread_cond_timedwait_func,
20349         glthread_cond_signal_func, glthread_cond_broadcast_func,
20350         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20351         * modules/cond (Dependencies): Add gettimeofday.
20352
20353 2008-10-11  Bruno Haible  <bruno@clisp.org>
20354
20355         Make sleep work on older versions of mingw.
20356         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20357         only whether it exists.
20358         * doc/posix-functions/sleep.texi: Mention the problem with older
20359         versions of mingw.
20360
20361 2008-10-11  Bruno Haible  <bruno@clisp.org>
20362
20363         New module 'shutdown'.
20364         * modules/shutdown: New file.
20365         * lib/sys_socket.in.h (shutdown): New declaration.
20366         * lib/winsock.c (shutdown): New function.
20367         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20368         GNULIB_SHUTDOWN.
20369         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20370         * doc/posix-functions/shutdown.texi: Document the new module.
20371
20372 2008-10-11  Jim Meyering  <meyering@redhat.com>
20373
20374         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20375
20376 2008-10-11  Bruno Haible  <bruno@clisp.org>
20377
20378         New module 'fclose'.
20379         * modules/fclose: New file.
20380         * lib/stdio.in.h (fclose): New declaration.
20381         * lib/fclose.c: New file.
20382         * m4/fclose.m4: New file.
20383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20384         REPLACE_FCLOSE.
20385         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20386         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20387         REPLACE_FCLOSE.
20388         * modules/close (Depends-on): fclose.
20389         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20390
20391 2008-10-11  Bruno Haible  <bruno@clisp.org>
20392
20393         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20394         set errno and don't call _close.
20395
20396 2008-10-10  Bruno Haible  <bruno@clisp.org>
20397
20398         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20399         ACL, not afterwards. Fixes test failure on Cygwin.
20400
20401 2008-10-09  Ben Pfaff  <blp@gnu.org>
20402
20403         * build-aux/announce-gen: Fix gnulib version related part of usage
20404         message.  Die with a useful error message if no tarballs are
20405         found.
20406
20407 2008-10-10  Jim Meyering  <meyering@redhat.com>
20408
20409         bootstrap: use git's --depth=N option only if it's supported
20410         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20411         recognize the --depth option.  Reported by Pádraig Brady.
20412
20413 2008-10-09  Bruno Haible  <bruno@clisp.org>
20414
20415         New module 'ioctl'.
20416         * modules/ioctl: New file.
20417         * lib/sys_socket.in.h (ioctl): Remove declaration.
20418         * lib/winsock.c: Include <sys/ioctl.h>.
20419         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20420         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20421         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20422         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20423         * doc/posix-functions/ioctl.texi: Mention the new module.
20424
20425 2008-10-09  Bruno Haible  <bruno@clisp.org>
20426
20427         New module 'sys_ioctl'.
20428         * lib/sys_ioctl.in.h: New file.
20429         * m4/sys_ioctl_h.m4: New file.
20430         * modules/sys_ioctl: New file.
20431         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20432
20433 2008-10-09  Bruno Haible  <bruno@clisp.org>
20434
20435         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20436         * lib/winsock.c: Include <stdarg.h>.
20437         (rpl_ioctl): Change to second argument 'int' and then varargs.
20438
20439 2008-10-09  Bruno Haible  <bruno@clisp.org>
20440
20441         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20442         when the sys_socket module is present and the system has <winsock2.h>.
20443
20444 2008-10-09  Bruno Haible  <bruno@clisp.org>
20445
20446         * doc/posix-functions/close.texi: Mention module 'close' instead of
20447         module 'sys_socket'.
20448
20449 2008-10-09  Bruno Haible  <bruno@clisp.org>
20450
20451         * doc/glibc-headers/sys_ioctl.texi: New file.
20452         * doc/gnulib.texi: Include it.
20453
20454 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20455             Bruno Haible  <bruno@clisp.org>
20456
20457         Combine the two replacements of 'close'.
20458         * lib/sys_socket.in.h (close): Define to a reminder to include
20459         <unistd.h>.
20460         (_gl_close_fd_maybe_socket): New declaration.
20461         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20462         * lib/winsock.c (close): Remove undefinition.
20463         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20464         needed for the gnulib module 'close'.
20465         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20466         define to an error symbol or to a warning, if suitable.
20467         * lib/close.c: Include <sys/socket.h>.
20468         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20470         UNISTD_H_HAVE_WINSOCK2_H.
20471         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20473         UNISTD_H_HAVE_WINSOCK2_H.
20474         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20475         (configure.ac): Set a module indicator.
20476         (Makefile.am): Substitute GNULIB_CLOSE.
20477         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20478         * modules/poll-tests (Depends-on): Add close.
20479         * modules/select-tests (Depends-on): Likewise.
20480
20481 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20482             Bruno Haible  <bruno@clisp.org>
20483
20484         New module 'close'.
20485         * modules/close: New file.
20486         * lib/unistd.in.h (close): Move declaration out of the
20487         FCHDIR_REPLACEMENT scope.
20488         (_gl_unregister_fd): New declaration.
20489         * lib/close.c: New file.
20490         * lib/fchdir.c (rpl_close): Remove function.
20491         * m4/close.m4: New file.
20492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20493         close.
20494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20495         REPLACE_CLOSE.
20496         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20497         REPLACE_CLOSE.
20498         * modules/fchdir (Depends-on): Add close.
20499
20500 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20501             Bruno Haible  <bruno@clisp.org>
20502
20503         * lib/fcntl.in.h (open): Simplify conditionals.
20504         (_gl_register_fd): New declaration.
20505         * lib/fchdir.c (rpl_open): Remove function.
20506         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20507         also.
20508         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20510         open.
20511
20512 2008-10-09  Jim Meyering  <meyering@redhat.com>
20513
20514         GNUmakefile: use the more name-space-friendly "_version"
20515         * top/GNUmakefile (_dummy): Update.
20516         (_version): Rename from "version".
20517
20518 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20519             Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20522         rpl_close.
20523         (_gl_register_fd): New function, extracted from rpl_open.
20524         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20525         (rpl_open, rpl_opendir): Use _gl_register_fd.
20526
20527 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20528
20529         Fix organization of 'open' replacement.
20530         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20531         (gl_FUNC_OPEN): Use it.
20532         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20533
20534 2008-10-08  Bruno Haible  <bruno@clisp.org>
20535
20536         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20537
20538 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20539
20540         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20541         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20542         listen).
20543
20544 2008-10-08  Eric Blake  <ebb9@byu.net>
20545
20546         GNUmakefile: add 'make version' target
20547         * top/GNUmakefile (_curr-ver): Split version update rules...
20548         (version): ...into a target.
20549
20550 2008-10-07  Bruno Haible  <bruno@clisp.org>
20551
20552         Use a more portable replacement expression for -0.0L.
20553         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20554         instead of -0.0L. Fix m4 quotation.
20555
20556         * tests/test-signbit.c: Include <float.h>.
20557         (minus_zero): New variable.
20558         (test_signbitl): Use minus_zero instead of -zero.
20559         * modules/signbit-tests (Depends-on): Add float.
20560
20561         * tests/test-ceill.c: Include <float.h>.
20562         (zero): Remove variable.
20563         (minus_zero): New variable.
20564         (main): Use minus_zero instead of -zero.
20565         * modules/ceill-tests (Depends-on): Add float.
20566
20567         * tests/test-floorl.c: Include <float.h>.
20568         (zero): Remove variable.
20569         (minus_zero): New variable.
20570         (main): Use minus_zero instead of -zero.
20571         * modules/floorl-tests (Depends-on): Add float.
20572
20573         * tests/test-roundl.c: Include <float.h>.
20574         (zero): Remove variable.
20575         (minus_zero): New variable.
20576         (main): Use minus_zero instead of -zero.
20577         * modules/roundl-tests (Depends-on): Add float.
20578
20579         * tests/test-truncl.c: Include <float.h>.
20580         (zero): Remove variable.
20581         (minus_zero): New variable.
20582         (main): Use minus_zero instead of -zero.
20583         * modules/truncl-tests (Depends-on): Add float.
20584
20585         * tests/test-frexpl.c (zero): Remove variable.
20586         (minus_zero): New variable.
20587         (main): Use minus_zero instead of -zero.
20588         * modules/frexpl-tests (Depends-on): Add float.
20589
20590         * tests/test-isnan.c (zerol): Remove variable.
20591         (minus_zerol): New variable.
20592         (test_long_double): Use minus_zerol instead of -zerol.
20593         * modules/isnan-tests (Depends-on): Add float.
20594
20595         * tests/test-isnanl.h (zero): Remove variable.
20596         (minus_zero): New variable.
20597         (main): Use minus_zero instead of -zero.
20598         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20599         * modules/isnanl-tests (Depends-on): Add float.
20600
20601         * tests/test-ldexpl.c (zero): Remove variable.
20602         (minus_zero): New variable.
20603         (main): Use minus_zero instead of -zero.
20604         * modules/ldexpl-tests (Depends-on): Add float.
20605
20606         * tests/test-snprintf-posix.h (zerol): Remove variable.
20607         (minus_zerol): New variable.
20608         (test_function): Use minus_zerol instead of -zerol.
20609         * modules/snprintf-posix-tests (Depends-on): Add float.
20610         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20611
20612         * tests/test-sprintf-posix.h (zerol): Remove variable.
20613         (minus_zerol): New variable.
20614         (test_function): Use minus_zerol instead of -zerol.
20615         * modules/sprintf-posix-tests (Depends-on): Add float.
20616         * modules/vsprintf-posix-tests (Depends-on): Add float.
20617
20618         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20619         (minus_zerol): New variable.
20620         (test_function): Use minus_zerol instead of -zerol.
20621         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20622
20623         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20624         (minus_zerol): New variable.
20625         (test_function): Use minus_zerol instead of -zerol.
20626         * modules/vasprintf-posix-tests (Depends-on): Add float.
20627
20628 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20629
20630         * MODULES.html.sh (Support for building documentation): Mention
20631         pmccabe2html.  Sort entries.
20632
20633         Add pmccabe2html module, from gnupdf.
20634         * build-aux/pmccabe.css: New file.
20635         * build-aux/pmccabe2html: New file.
20636         * m4/pmccabe2html.m4: New file.
20637         * modules/pmccabe2html: New file.
20638
20639 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20640
20641         flock: new module
20642         * MODULES.html.sh: Add to list of modules.
20643         * lib/flock.c: flock implementation for Windows and Unix systems
20644         which have fcntl.
20645         * doc/glibc-functions/flock.texi: Update documentation.
20646         * lib/sys_file.in.h: <sys/file.h> header file.
20647         * m4/flock.m4: M4 macros.
20648         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20649         * modules/flock: flock module.
20650         * modules/flock-tests: flock tests module.
20651         * modules/sys_file: sys/file.h module.
20652         * tests/test-flock.c: test suite for flock.
20653
20654 2008-10-06  Jim Meyering  <meyering@redhat.com>
20655
20656         bootstrap: check for LT_INIT more portably still ;-)
20657         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20658         Spotted by Bruno Haible.
20659
20660 2008-10-06  Eric Blake  <ebb9@byu.net>
20661
20662         test-signbit: avoid tripping Irix cc bug on -0.0L
20663         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20664         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20665         entire testsuite consistent and avoids an Irix 6.2 bug.
20666
20667 2008-10-05  Bruno Haible  <bruno@clisp.org>
20668             Jim Meyering  <jim@meyering.net>
20669
20670         Add an option for ignoring EPIPE during close_stdout.
20671         * lib/closeout.h: Include <stdbool.h>.
20672         (close_stdout_set_ignore_EPIPE): New declaration.
20673         * lib/closeout.c: Include <stdbool.h>.
20674         (ignore_EPIPE): New variable.
20675         (close_stdout_set_ignore_EPIPE): New function.
20676         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20677         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20678         failure.
20679         * modules/closeout (Depends-on): Add stdbool.
20680
20681 2008-10-05  Bruno Haible  <bruno@clisp.org>
20682
20683         * modules/accept: New file.
20684         * modules/bind: New file.
20685         * modules/connect: New file.
20686         * modules/getpeername: New file.
20687         * modules/getsockname: New file.
20688         * modules/getsockopt: New file.
20689         * modules/listen: New file.
20690         * modules/recv: New file.
20691         * modules/recvfrom: New file.
20692         * modules/send: New file.
20693         * modules/sendto: New file.
20694         * modules/setsockopt: New file.
20695         * modules/socket: New file.
20696         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20697         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20698         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20699         the particular module is requested. Add a link warning when the
20700         particular module is not requested.
20701         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20702         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20703         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20704         the particular module is requested.
20705         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20706         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20707         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20708         * modules/sys_socket (Depends-on): Add link-warning.
20709         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20710         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20711         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20712         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20713         GL_LINK_WARNING.
20714         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20715         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20716         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20717         * doc/posix-functions/getpeername.texi: Mention the new module
20718         'getpeername'.
20719         * doc/posix-functions/getsockname.texi: Mention the new module
20720         'getsockname'.
20721         * doc/posix-functions/getsockopt.texi: Mention the new module
20722         'getsockopt'.
20723         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20724         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20725         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20726         * doc/posix-functions/send.texi: Mention the new module 'send'.
20727         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20728         * doc/posix-functions/setsockopt.texi: Mention the new module
20729         'setsockopt'.
20730         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20731         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20732         listen, connect, accept.
20733         * modules/select-tests (Depends-on): Likewise.
20734
20735 2008-10-05  Bruno Haible  <bruno@clisp.org>
20736
20737         * lib/winsock.c (strerror): Remove unused #undef.
20738         (rpl_close): Remove unused local variable.
20739
20740         * modules/sys_socket (Depends-on); Add errno.
20741
20742 2008-10-05  Bruno Haible  <bruno@clisp.org>
20743
20744         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20745         (select): Add a link warning when the 'select' module is not used.
20746         * modules/sys_select (Depends-on): Add link-warning.
20747         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20748         Suggested by Paolo Bonzini.
20749
20750 2008-10-05  Jim Meyering  <meyering@redhat.com>
20751
20752         bootstrap: check for LT_INIT more portably
20753         * build-aux/bootstrap: Avoid using grep -E, since it's not
20754         portable enough.  Suggestion from Bruno Haible.
20755
20756 2008-10-05  Bruno Haible  <bruno@clisp.org>
20757
20758         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20759         as being fixed by gnulib.
20760
20761 2008-10-05  Bruno Haible  <bruno@clisp.org>
20762
20763         * modules/select-tests: New file, mostly copied from
20764         modules/sys_select-tests.
20765         * tests/test-select.c: New file, mostly copied from
20766         tests/test-sys_select.c.
20767         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20768         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20769         (Makefile.am): Remove test_sys_select_LDADD.
20770
20771         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20772         to an undefined symbol, for an error message.
20773         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20774         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20775         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20776         winsock-select.c here.
20777         * modules/sys_select (Files): Remove lib/winsock-select.c.
20778         (Depends-on): Remove alloca.
20779         (Makefile.am): Substitute GNULIB_SELECT.
20780         * modules/select: New file.
20781         * doc/posix-functions/select.texi: Update.
20782
20783 2008-10-05  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20786         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20787         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20788         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20789         getdtablesize.
20790         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20791         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20792
20793 2008-10-05  Bruno Haible  <bruno@clisp.org>
20794
20795         * modules/getdtablesize-tests: New file.
20796         * tests/test-getdtablesize.c: New file.
20797
20798         New module 'getdtablesize'.
20799         * lib/unistd.in.h (getdtablesize): New declaration.
20800         * lib/getdtablesize.c: New file.
20801         * m4/getdtablesize.m4: New file.
20802         * modules/getdtablesize: New file.
20803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20804         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20805         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20806         HAVE_GETDTABLESIZE.
20807         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20808
20809 2008-10-05  Bruno Haible  <bruno@clisp.org>
20810
20811         * modules/sched (Makefile.am): Fix typo.
20812         Reported by Simon Josefsson.
20813
20814 2008-10-05  Jim Meyering  <meyering@redhat.com>
20815
20816         bootstrap: check for LT_INIT, too
20817         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20818         are deprecated.  Suggestion from Ralf Wildenhues.
20819
20820 2008-10-05  Bruno Haible  <bruno@clisp.org>
20821
20822         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20823         overriding them by ours.
20824         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20825
20826 2008-10-05  Jim Meyering  <meyering@redhat.com>
20827
20828         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20829         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20830         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20831
20832 2008-10-04  Bruno Haible  <bruno@clisp.org>
20833
20834         * modules/dup2 (License): Change to LGPLv2+.
20835         * modules/sleep (License): Likewise.
20836         * modules/perror (License): Likewise.
20837         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20838         Blake.
20839         * modules/signal (License): Likewise.
20840         * modules/sigprocmask (License): Likewise.
20841         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20842         Meyering.
20843
20844 2008-10-04  Bruno Haible  <bruno@clisp.org>
20845
20846         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20847         Reported by Rainer Tammer <tammer@tammer.net>.
20848
20849 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20850             Bruno Haible  <bruno@clisp.org>
20851
20852         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20853         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20854         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20855
20856 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20857
20858         filevercmp: new module
20859         * lib/filevercmp.h: New function filevercmp comparing version strings.
20860         * lib/filevercmp.c: Implementation of filevercmp function.
20861         * modules/filevercmp: Module metadata.
20862         * tests/test-filevercmp.c: Unit test for new module.
20863         * modules/filevercmp-tests: Unit test metadata.
20864         * MODULES.html.sh: Add filevercmp module.
20865
20866 2008-10-03  Bruno Haible  <bruno@clisp.org>
20867
20868         * lib/c-ctype.h: Add comment.
20869         Reported by Jim Meyering.
20870
20871 2008-10-02  Bruno Haible  <bruno@clisp.org>
20872
20873         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20874
20875 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20876
20877         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20878         name of bootstrap.conf accordingly.
20879
20880 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20881
20882         * build-aux/bootstrap: Install git-merge-changelog configuration
20883         items into .gitconfig if needed.
20884
20885 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20886
20887         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20888         git repository, and initialize/update it accordingly.
20889
20890 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20891
20892         * modules/fsync-tests: New file.
20893         * tests/test-fsync.c: New file.
20894
20895         New module 'fsync'.
20896         * lib/fsync.c: New file.
20897         * m4/fsync.m4: New file.
20898         * modules/fsync: New file.
20899         * lib/unistd.in.h (fsync): New declaration.
20900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20901         GNULIB_FSYNC and HAVE_FSYNC.
20902         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20903         * MODULES.html.sh (posix_functions): Add fsync.
20904         * doc/posix-functions/fsync.texi: Mention the new module.
20905
20906 2008-10-02  Jim Meyering  <meyering@redhat.com>
20907
20908         fts.c: sync with similar code from coreutils' remove.c
20909         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20910         Guard also with "#if defined __linux__", since for now at least,
20911         this code is Linux-kernel-specific.
20912
20913 2008-10-02  Jim Meyering  <meyering@redhat.com>
20914
20915         fts: bug fixes
20916         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20917         Include <sys/vfs.h>, not <sys/statfs.h>.
20918
20919         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20920         Include <sys/vfs.h>, not <sys/statfs.h>.
20921
20922 2008-10-01  Bruno Haible  <bruno@clisp.org>
20923
20924         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20926         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20927         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20928         * doc/posix-functions/posix_spawnp.texi: Likewise.
20929         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20930         whether posix_spawn actually works.
20931         * m4/pipe.m4 (gl_PIPE): Likewise.
20932         * modules/execute (Files): Add m4/posix_spawn.m4.
20933         * modules/pipe (Files): Add m4/posix_spawn.m4.
20934         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20935
20936 2008-10-01  Jim Meyering  <meyering@redhat.com>
20937
20938         remove trailing spaces
20939         * NEWS: Likewise.
20940         * lib/poll.c (poll): Likewise.
20941         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20942         * lib/winsock.c (rpl_close): Likewise.
20943         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20944         * modules/yield: Likewise.
20945         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20946         * tests/test-sys_select.c (connect_to_socket): Likewise.
20947
20948         fts.c: adjust a new interface to be more generally useful
20949         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20950         (fts_build): Adjust caller.
20951
20952 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20953
20954         * modules/cond-tests: New file.
20955         * tests/test-cond.c: New file.
20956
20957 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20958             Bruno Haible  <bruno@clisp.org>
20959
20960         * modules/cond (Dependencies): Add errno, time.
20961         * lib/glthread/cond.h: Include <time.h>.
20962         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20963         across platforms.
20964
20965 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20966             Bruno Haible  <bruno@clisp.org>
20967
20968         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20969
20970 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20971             Bruno Haible  <bruno@clisp.org>
20972
20973         * modules/tls-tests (Depends-on): Add thread, yield.
20974         (configure.ac): Remove all checks.
20975         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20976         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20977         gl_thread_self): Remove definitions. Include glthread/thread.h and
20978         glthread/yield.h instead.
20979         (test_tls): Pass an additional NULL argument to gl_thread_join.
20980
20981 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20982             Bruno Haible  <bruno@clisp.org>
20983
20984         * modules/lock-tests (Depends-on): Add thread, yield.
20985         (configure.ac): Remove all checks.
20986         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20987         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20988         gl_thread_self): Remove definitions. Include glthread/thread.h and
20989         glthread/yield.h instead.
20990         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20991         additional NULL argument to gl_thread_join.
20992
20993 2008-09-30  Bruno Haible  <bruno@clisp.org>
20994
20995         Fix the Win32 implementation of the 'thread' module.
20996         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20997         pointer type.
20998         (gl_thread_self): Invoke gl_thread_self_func.
20999         (gl_thread_self_func): New declaration.
21000         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21001         (do_init_self_key, init_self_key): New functions.
21002         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21003         Remove some fields.
21004         (running_threads, running_lock): Remove variables.
21005         (get_current_thread_handle): New function.
21006         (gl_thread_self_func, wrapper_func, glthread_create_func,
21007         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21008         simplified.
21009
21010 2008-09-30  Bruno Haible  <bruno@clisp.org>
21011
21012         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21013         files.
21014
21015 2008-09-30  Jim Meyering  <meyering@redhat.com>
21016
21017         fts.m4: correct the test for statfs.f_type
21018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21019         when checking for statfs.f_type.
21020
21021 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21022
21023         tests: avoid some compiler warnings
21024         * tests/test-memchr.c (main): Pass NULL indirectly.
21025         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21026
21027 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21028
21029         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21030         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21031         exactly specified dayshifts.
21032         (dayshift): New rule.
21033         (rel): Add dayshift.
21034         (relative_time_table) [tomorrow, yesterday, today, now]:
21035         Use tDAY_SHIFT in place of tDAY_UNIT.
21036         * tests/test-getdate.c: Add tests for now-disallowed countable
21037         dayshifts, e.g., "4 yesterday ago".
21038
21039 2008-09-29  Bruno Haible  <bruno@clisp.org>
21040
21041         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21042         * tests/test-posix_spawn1.in.sh: Renamed from
21043         tests/test-posix_spawn.in.sh.
21044         * tests/test-posix_spawn2.c: New file.
21045         * tests/test-posix_spawn2.in.sh: New file.
21046         * modules/posix_spawnp-tests (Files): Update.
21047         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21048
21049 2008-09-29  Bruno Haible  <bruno@clisp.org>
21050
21051         Propagate effects of putenv/setenv/unsetenv to child processes.
21052         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21053         * lib/pipe.c (create_pipe): Likewise.
21054
21055 2008-09-29  Bruno Haible  <bruno@clisp.org>
21056
21057         Enable use of shell scripts as executables in mingw.
21058         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21059         run the program as a shell script.
21060         * lib/pipe.c (create_pipe): Likewise.
21061         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21062         resulting array.
21063
21064 2008-09-29  Eric Blake  <ebb9@byu.net>
21065
21066         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21067
21068 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21069
21070         * doc/posix-functions/accept.texi: Update mingw problems.
21071         * doc/posix-functions/bind.texi: Update mingw problems.
21072         * doc/posix-functions/close.texi: Update mingw problems.
21073         * doc/posix-functions/connect.texi: Update mingw problems.
21074         * doc/posix-functions/getpeername.texi: Update mingw problems.
21075         * doc/posix-functions/getsockname.texi: Update mingw problems.
21076         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21077         * doc/posix-functions/ioctl.texi: Update mingw problems.
21078         * doc/posix-functions/listen.texi: Update mingw problems.
21079         * doc/posix-functions/recv.texi: Update mingw problems.
21080         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21081         * doc/posix-functions/select.texi: Update mingw problems.
21082         * doc/posix-functions/send.texi: Update mingw problems.
21083         * doc/posix-functions/sendto.texi: Update mingw problems.
21084         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21085         * doc/posix-functions/socket.texi: Update mingw problems.
21086
21087 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21088             Bruno Haible  <bruno@clisp.org>
21089
21090         * lib/sys_select.in.h: Include sys/time.h.
21091         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21092         * modules/sys_select: Depend on sys_time.
21093         * tests/test-sys_select.c: Test that sys/select.h defines struct
21094         timeval fully.
21095
21096 2008-09-29  Bruno Haible  <bruno@clisp.org>
21097
21098         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21099         * lib/sys_select.in.h: Likewise.
21100
21101 2008-09-29  Bruno Haible  <bruno@clisp.org>
21102
21103         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21104
21105 2008-09-29  Bruno Haible  <bruno@clisp.org>
21106
21107         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21108         Set LIBSOCKET instead of augmenting LIBS.
21109         * modules/sockets (Link): New section.
21110         * modules/sockets-tests (test_sockets_LDADD): New variable.
21111         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21112         * modules/poll-tests (test_poll_LDADD): New variable.
21113         * NEWS: Document the change.
21114
21115 2008-09-29  Bruno Haible  <bruno@clisp.org>
21116
21117         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21118         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21119         ARPA_INET_H directly.
21120         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21121
21122 2008-09-28  Bruno Haible  <bruno@clisp.org>
21123
21124         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21125         from gl_HEADER_SYS_SOCKET.
21126         (gl_HEADER_SYS_SOCKET): Invoke it.
21127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21128
21129 2008-09-28  Bruno Haible  <bruno@clisp.org>
21130
21131         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21132         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21133         Needed on OSF/1 4.0.
21134
21135 2008-09-28  Bruno Haible  <bruno@clisp.org>
21136
21137         Override open more carefully.
21138         * lib/open.c (orig_open): New function.
21139         (rpl_open): Use orig_open instead of open.
21140         * lib/fcntl.in.h: Add special invocation convention.
21141         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21142         (gl_FUNC_OPEN): Invoke it.
21143
21144         Override freopen more carefully.
21145         * lib/freopen.c (orig_freopen): New function.
21146         (rpl_freopen): Use orig_freopen instead of freopen.
21147         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21148         (gl_FUNC_FREOPEN): Invoke it.
21149
21150         Override fopen more carefully.
21151         * lib/fopen.c (orig_fopen): New function.
21152         (rpl_fopen): Use orig_fopen instead of fopen.
21153         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21154         (gl_FUNC_FOPEN): Invoke it.
21155         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21156
21157 2008-09-28  Bruno Haible  <bruno@clisp.org>
21158
21159         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21160         SIGPIPE.
21161
21162 2008-09-28  Bruno Haible  <bruno@clisp.org>
21163
21164         * tests/test-sigaction.c (handler, main): Disable the check whether
21165         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21166         glibc systems with LinuxThreads.
21167
21168 2008-09-28  Bruno Haible  <bruno@clisp.org>
21169
21170         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21171
21172         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21173         with AIX xlc.
21174         * lib/fcntl.in.h (open): Likewise.
21175         Reported by Rainer Tammer <tammer@tammer.net>.
21176
21177 2008-09-28  Bruno Haible  <bruno@clisp.org>
21178
21179         * modules/posix_spawnp-tests: New file.
21180         * tests/test-posix_spawn.c: New file.
21181         * tests/test-posix_spawn.in.sh: New file.
21182
21183         New module 'posix_spawnp'.
21184         * modules/posix_spawnp: New file.
21185         * lib/spawnp.c: New file, from GNU libc with modifications.
21186         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21187
21188         New module 'posix_spawn'.
21189         * modules/posix_spawn: New file.
21190         * lib/spawn.c: New file, from GNU libc with modifications.
21191         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21192
21193         New module 'posix_spawnattr_destroy'.
21194         * modules/posix_spawnattr_destroy: New file.
21195         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21196         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21197         module.
21198
21199         New module 'posix_spawnattr_setsigmask'.
21200         * modules/posix_spawnattr_setsigmask: New file.
21201         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21202         modifications.
21203         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21204         new module.
21205
21206         New module 'posix_spawnattr_getsigmask'.
21207         * modules/posix_spawnattr_getsigmask: New file.
21208         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21209         modifications.
21210         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21211         new module.
21212
21213         New module 'posix_spawnattr_setsigdefault'.
21214         * modules/posix_spawnattr_setsigdefault: New file.
21215         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21216         modifications.
21217         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21218         new module.
21219
21220         New module 'posix_spawnattr_getsigdefault'.
21221         * modules/posix_spawnattr_getsigdefault: New file.
21222         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21223         modifications.
21224         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21225         new module.
21226
21227         New module 'posix_spawnattr_setschedpolicy'.
21228         * modules/posix_spawnattr_setschedpolicy: New file.
21229         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21230         modifications.
21231         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21232         new module.
21233
21234         New module 'posix_spawnattr_getschedpolicy'.
21235         * modules/posix_spawnattr_getschedpolicy: New file.
21236         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21237         modifications.
21238         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21239         new module.
21240
21241         New module 'posix_spawnattr_setschedparam'.
21242         * modules/posix_spawnattr_setschedparam: New file.
21243         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21244         modifications.
21245         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21246         new module.
21247
21248         New module 'posix_spawnattr_getschedparam'.
21249         * modules/posix_spawnattr_getschedparam: New file.
21250         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21251         modifications.
21252         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21253         new module.
21254
21255         New module 'posix_spawnattr_setpgroup'.
21256         * modules/posix_spawnattr_setpgroup: New file.
21257         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21258         modifications.
21259         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21260         module.
21261
21262         New module 'posix_spawnattr_getpgroup'.
21263         * modules/posix_spawnattr_getpgroup: New file.
21264         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21265         modifications.
21266         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21267         module.
21268
21269         New module 'posix_spawnattr_setflags'.
21270         * modules/posix_spawnattr_setflags: New file.
21271         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21272         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21273         module.
21274
21275         New module 'posix_spawnattr_getflags'.
21276         * modules/posix_spawnattr_getflags: New file.
21277         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21278         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21279         module.
21280
21281         New module 'posix_spawnattr_init'.
21282         * modules/posix_spawnattr_init: New file.
21283         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21284         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21285         module.
21286
21287         New module 'posix_spawn_file_actions_destroy'.
21288         * modules/posix_spawn_file_actions_destroy: New file.
21289         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21290         modifications.
21291         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21292         the new module.
21293
21294         New module 'posix_spawn_file_actions_addopen'.
21295         * modules/posix_spawn_file_actions_addopen: New file.
21296         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21297         modifications.
21298         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21299         the new module.
21300
21301         New module 'posix_spawn_file_actions_adddup2'.
21302         * modules/posix_spawn_file_actions_adddup2: New file.
21303         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21304         modifications.
21305         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21306         the new module.
21307
21308         New module 'posix_spawn_file_actions_addclose'.
21309         * modules/posix_spawn_file_actions_addclose: New file.
21310         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21311         modifications.
21312         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21313         the new module.
21314
21315         New module 'posix_spawn_file_actions_init'.
21316         * modules/posix_spawn_file_actions_init: New file.
21317         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21318         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21319         new module.
21320
21321         New module 'posix_spawn-internal'.
21322         * modules/posix_spawn-internal: New file.
21323         * lib/spawn_int.h: New file, from GNU libc with modifications.
21324         * lib/spawni.c: New file, from GNU libc with modifications.
21325         * m4/posix_spawn.m4: New file.
21326
21327         New module 'spawn'.
21328         * modules/spawn: New file.
21329         * lib/spawn.in.h: New file, from GNU libc with modifications.
21330         * m4/spawn_h.m4: New file.
21331         * doc/posix-headers/spawn.texi: Mention the new module.
21332
21333 2008-09-28  Bruno Haible  <bruno@clisp.org>
21334
21335         * modules/sched-tests: New file.
21336         * tests/test-sched.c: New file.
21337
21338         New module 'sched'.
21339         * modules/sched: New file.
21340         * lib/sched.in.h: New file.
21341         * m4/sched_h.m4: New file.
21342         * doc/posix-headers/sched.texi: Mention the new module.
21343
21344 2008-09-27  Eric Blake  <ebb9@byu.net>
21345
21346         Fix previous patch, and tweak references to $0.
21347         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21348         (func_version, func_gnulib_dir): Don't call this program
21349         gnulib-tool.
21350         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21351         with using $0 in function.
21352         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21353         (func_fatal_error): Reuse the name the user invoked us with.
21354
21355 2008-09-27  Bruno Haible  <bruno@clisp.org>
21356
21357         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21358         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21359         (gl_ICONV_H): Not here.
21360         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21361         instead of assigning ICONV_H directly.
21362
21363         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21365         WCHAR_H directly.
21366
21367 2008-09-27  Bruno Haible  <bruno@clisp.org>
21368
21369         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21370         * modules/arpa_inet (Depends-on): Add link-warning.
21371         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21372         * modules/unistd (Makefile.am): Likewise.
21373
21374 2008-09-26  Bruno Haible  <bruno@clisp.org>
21375
21376         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21377         variables.
21378         (func_version): Essentially copied from gnulib-tool.
21379         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21380         func_readlink): Copied from gnulib-tool.
21381
21382 2008-09-26  Bruno Haible  <bruno@clisp.org>
21383
21384         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21385         invoking git-version-gen.
21386
21387 2008-09-26  Bruno Haible  <bruno@clisp.org>
21388
21389         * posix-modules: Update to directory names changed on 2008-01-19.
21390         Remove commas in output before splitting into words. No more need to
21391         avoid 'ftruncate' since 2007-02-19.
21392
21393 2008-09-26  Bruno Haible  <bruno@clisp.org>
21394
21395         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21396
21397 2008-09-26  Bruno Haible  <bruno@clisp.org>
21398
21399         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21400         * modules/fwriteerror (Depends-on): Add errno.
21401
21402 2008-09-26  Bruno Haible  <bruno@clisp.org>
21403
21404         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21405         * tests/test-vc-list-files-cvs.sh: Likewise.
21406
21407 2008-09-26  Bruno Haible  <bruno@clisp.org>
21408
21409         * doc/posix-headers/sys_resource.texi: Reorder items.
21410
21411 2008-09-26  Jim Meyering  <meyering@redhat.com>
21412
21413         fts: tweak inode comparison function
21414         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21415         inode numbers, as documented.
21416
21417         fts: sort dirent entries on inode number before traversing
21418         This avoids a quadratic, seek-related performance penalty when
21419         operating on a directory containing many entries (measurable at 10k;
21420         3.5 hours at 2 million entries with a cold cache) on certain types
21421         of file systems, including ext3 and ext4, but not tmpfs.
21422         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21423         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21424         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21425         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21426         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21427         (fts_build): Set the stat.st_ino member from D_INO.
21428         If it is likely to be useful, sort dirent entries on inode number.
21429
21430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21431         and the struct statfs.f_type member.
21432         * modules/fts (Depends-on): Add d-ino.
21433
21434 2008-09-26  Bruno Haible  <bruno@clisp.org>
21435
21436         * modules/sigpipe-die (Depends-on): Add sigpipe.
21437
21438         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21439         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21440         and GNULIB_STDIO_H_SIGPIPE are set.
21441         * lib/stdio-write.c: New file.
21442         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21443         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21444         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21445         REPLACE_STDIO_WRITE_FUNCS.
21446         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21447         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21448         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21449         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21450         * modules/stdio (Files): Add lib/stdio-write.c.
21451         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21452         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21453         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21454         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21455         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21456         REPLACE_FPRINTF_POSIX.
21457         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21458         REPLACE_PRINTF_POSIX.
21459         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21460         REPLACE_VFPRINTF_POSIX.
21461         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21462         REPLACE_VPRINTF_POSIX.
21463         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21464         SIGPIPE issue.
21465         * doc/posix-functions/fputc.texi: Likewise.
21466         * doc/posix-functions/fputs.texi: Likewise.
21467         * doc/posix-functions/fwrite.texi: Likewise.
21468         * doc/posix-functions/printf.texi: Likewise.
21469         * doc/posix-functions/putc.texi: Likewise.
21470         * doc/posix-functions/putchar.texi: Likewise.
21471         * doc/posix-functions/puts.texi: Likewise.
21472         * doc/posix-functions/vfprintf.texi: Likewise.
21473         * doc/posix-functions/vprintf.texi: Likewise.
21474
21475         * modules/safe-write (Depends-on): Add write.
21476
21477         * modules/sigpipe-tests: New file.
21478         * tests/test-sigpipe.c: New file.
21479         * tests/test-sigpipe.sh: New file.
21480
21481         * modules/write: New file.
21482         * lib/unistd.in.h: Include <sys/types.h>.
21483         (write): New declaration.
21484         * lib/write.c: New file.
21485         * m4/write.m4: New file.
21486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21487         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21488         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21489         GNULIB_WRITE, REPLACE_WRITE.
21490         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21491         and the SIGPIPE issue.
21492
21493         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21494         (raise): New declaration.
21495         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21496         (ext_signal): New function.
21497         (rpl_raise): New function.
21498         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21499         GNULIB_SIGNAL_H_SIGPIPE.
21500         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21501         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21502
21503         * modules/sigpipe: New file.
21504         * m4/sigpipe.m4: New file.
21505
21506 2008-09-25  Derek Price  <derek@ximbiot.com>
21507             Bruno Haible  <bruno@clisp.org>
21508
21509         * gnulib-tool (func_import): Report all license incompatibilities, not
21510         just the first one.
21511
21512 2008-09-25  Bruno Haible  <bruno@clisp.org>
21513
21514         * gnulib-tool (func_import): When computing the edits, consider not
21515         only the Makefile.ams that exist but also those that will be generated.
21516
21517 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21518
21519         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21520         fixes gnulib-tool --test warning about duplicate dependency.
21521
21522 2008-09-25  Bruno Haible  <bruno@clisp.org>
21523
21524         * gnulib-tool: Don't ask the user to perform edits in the generated
21525         Makefile.ams.
21526         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21527         apply to the Makefile.am being generated.
21528         (func_emit_tests_Makefile_am): Execute edits that apply to the
21529         Makefile.am being generated.
21530         (func_import): Setup list of Makefile.am edits before emitting the
21531         Makefile.ams, not at the end.
21532         (func_create_testdir): Update.
21533         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21534
21535 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21536
21537         * gnulib-tool (func_import): Store the --tests-base option in the
21538         comment in gnulib-cache.m4.
21539
21540 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21541
21542         * NEWS: Document increased portability that sys_select now provides.
21543
21544         * lib/sys_select.in.h: Install select wrapper.
21545         * lib/sys_socket.in.h: Use more descriptive name when there is no
21546         select wrapper.
21547         * lib/winsock-select.c: New.
21548         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21549         Require gl_HEADER_SYS_SOCKET.
21550         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21551         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21552         * tests/test-sys_select.c: Add functional tests.
21553
21554 2008-09-24  Eric Blake  <ebb9@byu.net>
21555
21556         open, fopen: close fd leak in last patch
21557         * lib/open.c (rpl_open): Close fd before returning error.
21558         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21559         * doc/posix-functions/open.texi (open): Document that Irix also
21560         has the bug.
21561         * doc/posix-functions/fopen.texi (fopen): Likewise.
21562         Reported by Paolo Bonzini.
21563
21564 2008-09-24  Bruno Haible  <bruno@clisp.org>
21565
21566         Ensure that a filename ending in a slash cannot be used to access a
21567         non-directory.
21568         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21569         to check whether it's really a directory.
21570         * lib/fopen.c: Include fcntl.h, unistd.h.
21571         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21572         and fdopen().
21573         * modules/fopen (Depends-on): Add unistd.
21574         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21575         * tests/test-fopen.c (main): Likewise.
21576         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21577         * doc/posix-functions/fopen.texi: Likewise.
21578         Reported by Eric Blake.
21579
21580 2008-09-23  Eric Blake  <ebb9@byu.net>
21581
21582         c-stack: avoid compiler optimizations when provoking overflow
21583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21584         recursion harder to optimize, to ensure a stack overflow occurs.
21585         * tests/test-c-stack.c (recurse): Likewise.
21586         Borrowed from libsigsegv.
21587
21588         c-stack: work around Irix sigaltstack bug
21589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21590         whether sigaltstack uses wrong end of stack_t (copied in part from
21591         libsigsegv).
21592         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21593         Irix bug, without requiring an over-allocation.
21594         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21595         bug.
21596
21597         fopen: document mingw bug on directories
21598         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21599         not allowing a stream visiting a directory, even though reading
21600         from such a stream is not portable.
21601
21602 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21603
21604         * lib/poll.c: Rewrite.
21605         * modules/poll: Depend on alloca.
21606
21607 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21608
21609         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21610         instead define prototypes for a full set of wrappers.  Ensure
21611         that Cygwin does not use the compatibility code, which is only
21612         for MinGW.
21613         * lib/winsock.c: New.
21614         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21615         * modules/sys_socket: Add lib/winsock.c.
21616
21617         * modules/poll-tests: Add errno and perror.
21618         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21619
21620 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21621
21622         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21623
21624 2008-09-23  Bruno Haible  <bruno@clisp.org>
21625
21626         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21627         * doc/glibc-functions/*: Likewise.
21628
21629 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21630
21631         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21632         success.
21633
21634 2008-09-22  Eric Blake  <ebb9@byu.net>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21638         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21639         supply %A but mishandle pseudo-NaN.
21640         Reported by Simon Josefsson.
21641
21642 2008-09-21  Bruno Haible  <bruno@clisp.org>
21643
21644         * tests/test-lock.c (main): Tweak skip message.
21645         * tests/test-tls.c (main): Likewise.
21646
21647 2008-09-21  Bruno Haible  <bruno@clisp.org>
21648
21649         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21650         whether 'struct sigaction' has sa_sigaction here...
21651         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21652         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21653
21654 2008-09-21  Bruno Haible  <bruno@clisp.org>
21655
21656         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21657         section.
21658         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21659         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21660         the new section.
21661         (Support for obsolete systems lacking POSIX:2001): New section.
21662         (String handling <string.h>): Move strdup to the new section.
21663         Suggested by Simon Josefsson and Paolo Bonzini.
21664
21665 2008-09-21  Bruno Haible  <bruno@clisp.org>
21666
21667         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21668         exponents in %e and %g results on 'long double'. Needed for mingw's
21669         improved *printf functions.
21670         * tests/test-vasprintf-posix.c (test_function): Likewise.
21671         * tests/test-snprintf-posix.h (test_function): Likewise.
21672         * tests/test-sprintf-posix.h (test_function): Likewise.
21673         Reported by Eric Blake.
21674
21675 2008-09-21  Bruno Haible  <bruno@clisp.org>
21676
21677         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21678         * tests/test-sprintf-posix.h (test_function): Likewise.
21679
21680 2008-09-21  Bruno Haible  <bruno@clisp.org>
21681
21682         * modules/getpass (Depends-on): Add strdup-posix.
21683
21684         New module 'strdup-posix'.
21685         * modules/strdup-posix: New file.
21686         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21687         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21689         REPLACE_STRDUP.
21690         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21691         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21693         strdup-posix.
21694
21695         * modules/strdup (Depends-on): Remove malloc-posix.
21696
21697 2008-09-20  Bruno Haible  <bruno@clisp.org>
21698
21699         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21700         Wildenhues.
21701
21702 2008-09-20  Bruno Haible  <bruno@clisp.org>
21703
21704         Ensure that wint_t gets defined on IRIX 5.3.
21705         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21706         * lib/wctype.in.h (wint_t): Likewise.
21707         (__wctype_wint_t): Remove type.
21708         (isw*): Use wint_t instead of __wctype_wint_t.
21709         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21710         * modules/wchar (Files): Add m4/wint_t.m4.
21711         (Makefile.am): Substitute HAVE_WINT_T.
21712         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21713         * tests/test-wctype.c: Check that wint_t is defined.
21714         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21715         * doc/posix-headers/wctype.texi: Likewise.
21716         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21717
21718 2008-09-18  Bruno Haible  <bruno@clisp.org>
21719
21720         * gnulib-tool (func_exit): Update comment.
21721
21722 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21723
21724         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21725         assumes strdup exists and does not depend on strdup to return
21726         ENOMEM on out of memory conditions.
21727
21728 2008-09-18  Bruno Haible  <bruno@clisp.org>
21729
21730         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21731         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21732         digits for the exponent.
21733
21734 2008-09-18  Jim Meyering  <meyering@redhat.com>
21735             Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/vasnprintf.c (decimal_point_char): Define also if
21738         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21739
21740 2008-09-16  Bruno Haible  <bruno@clisp.org>
21741         and Eric Blake  <ebb9@byu.net>
21742
21743         vasnprintf: support Irix 5.3
21744         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21745         that mishandle long double infinity.
21746         Reported by Tom G. Christensen.
21747
21748 2008-09-16  Bruno Haible  <bruno@clisp.org>
21749
21750         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21751         Solaris 9.
21752         * doc/glibc-functions/alphasort.texi: Likewise.
21753         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21754
21755 2008-09-16  Jim Meyering  <meyering@redhat.com>
21756
21757         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21758         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21759         a umask modification leak out of a subshell.  Otherwise, the
21760         opensolaris /bin/sh would be accepted and thus cause unwarranted
21761         failures in the coreutils test suite.
21762
21763 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21764
21765         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21766         to succeed.
21767
21768 2008-09-16  Jim Meyering  <meyering@redhat.com>
21769
21770         avoid spurious test failure when library is built without ACL support
21771         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21772         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21773         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21774         * tests/test-copy-acl.sh: Likewise.
21775
21776 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21777
21778         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21779         based on character occurrence counts.
21780
21781 2008-09-15  Eric Blake  <ebb9@byu.net>
21782
21783         tests: avoid some compiler warnings
21784         * tests/test-memchr.c (main): Pass NULL indirectly.
21785         * tests/test-closein.c (main): Avoid unused variable.
21786
21787 2008-09-15  Bruno Haible  <bruno@clisp.org>
21788
21789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21790         are missing on OpenBSD 4.0 individually.
21791         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21792
21793 2008-09-15  Bruno Haible  <bruno@clisp.org>
21794
21795         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21796         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21797         * doc/posix-functions/perror.texi: Likewise.
21798         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21799         is missing.
21800         Reported by Eric Blake.
21801
21802         * lib/errno.in.h: Use replacement values >= 2000.
21803         Reported by Eric Blake.
21804
21805 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21806
21807         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21808         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21809         limit.
21810         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21811         compareseq was aborted.
21812
21813 2008-09-14  Bruno Haible  <bruno@clisp.org>
21814
21815         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21816         yvec_edit_count.
21817         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21818         (fstrcmp_bounded): Simplify result computation accordingly.
21819
21820 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21821
21822         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21823         (fstrcmp): Define in terms of fstrcmp_bounded.
21824         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21825         lower_bound argument.
21826         Return quickly if the result is certainly < lower_bound.
21827         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21828
21829 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21830
21831         * lib/diffseq.h (EARLY_ABORT): New macro.
21832         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21833         evaluates to true.
21834
21835 2008-09-14  Bruno Haible  <bruno@clisp.org>
21836
21837         * modules/perror-tests: New file.
21838         * tests/test-perror.sh: New file.
21839         * tests/test-perror.c: New file.
21840
21841         New module 'perror'.
21842         * lib/stdio.in.h (perror): New declaration.
21843         * lib/perror.c: New file.
21844         * m4/perror.m4: New file.
21845         * modules/perror: New file.
21846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21847         * doc/posix-functions/perror.texi: Mention the perror module.
21848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21849         REPLACE_PERROR.
21850         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21851         REPLACE_PERROR.
21852
21853 2008-09-14  Bruno Haible  <bruno@clisp.org>
21854
21855         * modules/stdio (Makefile.am): Reorder to match the order in
21856         lib/stdio.in.h.
21857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21858
21859 2008-09-13  Bruno Haible  <bruno@clisp.org>
21860
21861         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21862
21863 2008-09-13  Bruno Haible  <bruno@clisp.org>
21864
21865         Extend strerror to cover the added errno values.
21866         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21867         (rpl_strerror): Provide error messages for the added errno values and
21868         for the WSA* values.
21869         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21870         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21871         strerror.
21872         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21873         * modules/strerror (Depends-on): Add errno.
21874         * doc/posix-functions/strerror.texi: Document the change.
21875         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21876         and EOVERFLOW.
21877
21878 2008-09-13  Bruno Haible  <bruno@clisp.org>
21879
21880         * modules/EOVERFLOW: Remove file.
21881         * m4/eoverflow.m4: Remove file.
21882         * modules/EOVERFLOW-tests: Remove file.
21883         * tests/test-EOVERFLOW.c: Remove file.
21884         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21885         * modules/ftell (Depends-on): Likewise.
21886         * modules/getdelim (Depends-on): Likewise.
21887         * modules/getugroups (Depends-on): Likewise.
21888         * modules/poll (Depends-on): Likewise.
21889         * modules/snprintf (Depends-on): Likewise.
21890         * modules/sprintf-posix (Depends-on): Likewise.
21891         * modules/vasnprintf (Depends-on): Likewise.
21892         * modules/vasprintf (Depends-on): Likewise.
21893         * modules/vfprintf-posix (Depends-on): Likewise.
21894         * modules/vsnprintf (Depends-on): Likewise.
21895         * modules/vsprintf-posix (Depends-on): Likewise.
21896         * modules/xvasprintf (Depends-on): Likewise.
21897         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21898         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21899         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21900         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21901         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21902         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21903         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21904         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21905         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21906         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21907         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21908         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21910         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21911         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21912         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21913         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21914         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21915         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21916         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21917         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21918         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21919         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21920         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21921         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21922         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21923         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21924         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21925         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21926         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21927         * MODULES.html.sh: Remove EOVERFLOW.
21928         * NEWS: Mention the change.
21929
21930 2008-09-13  Bruno Haible  <bruno@clisp.org>
21931
21932         * modules/errno-tests: New file.
21933         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21934
21935         * lib/errno.in.h: New file.
21936         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21937         * modules/errno: New file.
21938         * doc/posix-headers/errno.texi: Update documentation.
21939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21940
21941 2008-09-13  Bruno Haible  <bruno@clisp.org>
21942
21943         * tests/test-poll.c: Use #if for native Windows, rather than testing
21944         __MSVCRT__.
21945
21946 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21947             Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/glob.c: Don't include <pwd.h> on native Windows.
21950         (WINDOWS32): New macro.
21951         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21952
21953 2008-09-13  Bruno Haible  <bruno@clisp.org>
21954
21955         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21956         (ETIMEDOUT): Remove macro.
21957         (glthread_cond_timedwait_multithreaded): New declaration.
21958         (glthread_cond_timedwait): Use it.
21959         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21960         (glthread_cond_timedwait_multithreaded): New function.
21961
21962 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21963
21964         * modules/poll-tests: Do not check for io.h.
21965         * tests/test-poll.c: Check for __MSVCRT__ instead.
21966
21967 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21968
21969         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21970         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21971         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21972
21973 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21974
21975         * modules/poll-tests: New.
21976         * tests/test-poll.c: New.
21977
21978 2008-09-12  Eric Blake  <ebb9@byu.net>
21979
21980         frexp: test for NetBSD failure on -0.0
21981         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21982         not all, bugs from NetBSD 3.0 have been fixed.
21983         * doc/posix-functions/frexp.texi (frexp): Document bug.
21984         Reported by Thomas Klausner.
21985
21986         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21987         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21988         literal -0.0.
21989         Reported by Jonathan C. Patschke <jp@centtech.com>.
21990
21991 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21992
21993         * lib/glthread/cond.h: Use dummy implementation also if
21994         USE_WIN32_THREADS.
21995
21996 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21997
21998         * modules/fnmatch-posix (License): Change to LGPLv2+.
21999         * modules/fnmatch-gnu (License): Likewise.
22000
22001 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22002
22003         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22004
22005 2008-09-11  Jim Meyering  <meyering@redhat.com>
22006
22007         * users.txt: Add gtk-vnc.
22008
22009 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22010
22011         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22012         rotate amounts.
22013
22014         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22015         required for 16-bit and 8-bit rotates.
22016         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22017         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22018         UINT8_MAX instead of hard-coded constants.
22019         Suggested by Paul Eggert.
22020
22021 2008-09-07  Bruno Haible  <bruno@clisp.org>
22022
22023         * tests/test-striconveh.c (main): Check behaviour when converting from
22024         UTF-7.
22025
22026         Make striconveh work better with stateful encodings.
22027         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22028         that iconv does not increment the inptr when returning -1/EINVAL.
22029
22030 2008-09-07  Bruno Haible  <bruno@clisp.org>
22031
22032         * build-aux/config.rpath: Update according to libtool-2.2.6.
22033         * build-aux/config.libpath: Likewise.
22034
22035 2008-09-06  Bruno Haible  <bruno@clisp.org>
22036
22037         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22038         * lib/freadptr.c (freadptr): Likewise.
22039         * lib/freadseek.c (freadptrinc): Likewise.
22040         Reported by Simon Josefsson.
22041
22042 2008-09-06  Bruno Haible  <bruno@clisp.org>
22043
22044         * modules/freadptr (License): Change to LGPLv2+.
22045         * modules/freadseek (License): Likewise.
22046         Suggested by Eric Blake.
22047
22048         * modules/memchr2 (License): Change to LGPLv2+.
22049         Approved by Eric Blake.
22050
22051 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22052             Bruno Haible  <bruno@clisp.org>
22053
22054         Make gnulib-tool work with native 'sed' on AIX.
22055         * gnulib-tool (sed_noop): New variable.
22056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22057         func_add_or_update, func_create_testdir): Use it to initialize sed
22058         script variables.
22059         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22060
22061 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22062             Bruno Haible  <bruno@clisp.org>
22063
22064         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22065         also works after #include directives.
22066
22067 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22068
22069         getdate.y: reject an out-of-range timezone value
22070         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22071         the range [-24...+24].  When specified with only one or two digits,
22072         * tests/test-getdate.c: Tests for the fix.
22073         * doc/getdate.texi: Document this change.
22074
22075 2008-09-03  Bruno Haible  <bruno@clisp.org>
22076
22077         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22078
22079 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22080
22081         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22082         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22083         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22084         Blake <ebb9@byu.net>.
22085
22086         * tests/test-bitrotate.c: Add more test vectors.
22087
22088 2008-09-02  Eric Blake  <ebb9@byu.net>
22089
22090         vasnprintf-posix: handle large precision via %.*d
22091         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22092         when handling it ourselves.
22093         * tests/test-vasnprintf-posix.c (test_function): Add test.
22094         * tests/test-snprintf-posix.h (test_function): Likewise.
22095         * tests/test-sprintf-posix.h (test_function): Likewise.
22096         * tests/test-vasprintf-posix.c (test_function): Likewise.
22097         Reported by Alain Guibert.
22098
22099 2008-09-01  Eric Blake  <ebb9@byu.net>
22100
22101         c-stack: make configure-time check more robust
22102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22103         successful sigaction call.
22104         Reported by Tom G. Christensen.
22105
22106 2008-09-01  Bruno Haible  <bruno@clisp.org>
22107
22108         New module 'findprog-lgpl'.
22109         * modules/findprog-lgpl: New file.
22110         * lib/findprog-lgpl.c: New file.
22111         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22112         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22113         to decide whether to use strdup or xstrdup, concatenated_filename or
22114         xconcatenated_filename.
22115
22116 2008-09-01  Bruno Haible  <bruno@clisp.org>
22117
22118         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22119         'xconcat-filename' (GPL).
22120         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22121         (License): Change to LGPLv2+.
22122         * modules/xconcat-filename: New file.
22123         * lib/concat-filename.h (concatenated_filename): Change specification.
22124         (xconcatenated_filename): New declaration.
22125         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22126         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22127         memory situations.
22128         * lib/xconcat-filename.c: New file.
22129         * NEWS: Mention the change.
22130         * lib/findprog.c: Include concat-filename.h, not filename.h.
22131         (find_in_path): Use xconcatenated_filename instead of
22132         concatenated_filename.
22133         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22134         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22135         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22136         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22137         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22138         instead of concatenated_filename.
22139         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22140         (execute_java_class): Use xconcatenated_filename instead of
22141         concatenated_filename.
22142         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22143         * modules/javacomp (Depends-on): Likewise.
22144         * modules/javaexec (Depends-on): Likewise.
22145
22146 2008-09-01  Bruno Haible  <bruno@clisp.org>
22147
22148         Split module 'filename' into 'filename' and 'concat-filename'.
22149         * modules/filename: Keep only lib/filename.h.
22150         (License): Change to LGPLv2+.
22151         * modules/concat-filename: New file, extracted from modules/filename.
22152         * lib/filename.h (concatenated_filename): Remove declaration.
22153         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22154         * lib/concat-filename.c: Include concat-filename.h.
22155         * NEWS: Mention the change.
22156
22157 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22158
22159         * lib/bitrotate.h (rotl8, rotr8): Add.
22160
22161         * modules/bitrotate (configure.ac): Need
22162         AC_REQUIRE([AC_C_INLINE]).
22163         (Description): Mention stdint.h.  Reported by Bruno Haible
22164         <bruno@clisp.org>.
22165
22166         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22167         Paolo Bonzini <bonzini@gnu.org>.
22168
22169 2008-08-31  Bruno Haible  <bruno@clisp.org>
22170
22171         Assume Solaris specific bi-arch conventions on Solaris systems.
22172         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22173         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22174         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22175         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22176         like acl_libdirstem.
22177         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22178         acl_libdirstem.
22179         * NEWS: Mention the change.
22180         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22181
22182 2008-08-31  Jim Meyering  <meyering@redhat.com>
22183
22184         * lib/strftime.h: Add comments describing the two added arguments.
22185
22186         remove duplicate #include directives
22187         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22188         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22189
22190 2008-08-31  Bruno Haible  <bruno@clisp.org>
22191
22192         New module 'sigpipe-die'.
22193         * modules/sigpipe-die: New file.
22194         * lib/sigpipe-die.h: New file.
22195         * lib/sigpipe-die.c: New file.
22196         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22197
22198 2008-08-31  Bruno Haible  <bruno@clisp.org>
22199
22200         Don't override previously installed signal handlers.
22201         * lib/fatal-signal.c (saved_sigactions): New variable.
22202         (uninstall_handlers): Reset the signal to the saved handler, not
22203         to SIG_DFL (except when ignored).
22204         (install_handlers): Save the previous handlers.
22205
22206 2008-08-30  Bruno Haible  <bruno@clisp.org>
22207
22208         * gnulib-tool (func_reset_sigpipe): New function.
22209         (func_get_automake_snippet, func_modules_transitive_closure,
22210         func_import): Invoke it before a join command that reads from stdin,
22211         to avoid "echo: write error: Broken pipe" error messages on stderr.
22212         Reported by Sam Steingold <sds@gnu.org>.
22213
22214 2008-08-30  Bruno Haible  <bruno@clisp.org>
22215
22216         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22217         Code copied from m4/open.m4.
22218         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22219         access and the filename ends in a slash. Code copied from lib/open.c.
22220         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22221         * tests/test-fopen.c (main): Check against bug with trailing slash.
22222
22223 2008-08-29  Bruno Haible  <bruno@clisp.org>
22224
22225         Avoid some "gcc -pedantic" warnings.
22226         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22227         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22228         * lib/dirent.in.h: Likewise.
22229         * lib/fcntl.in.h: Likewise.
22230         * lib/float.in.h: Likewise.
22231         * lib/iconv.in.h: Likewise.
22232         * lib/inttypes.in.h: Likewise.
22233         * lib/locale.in.h: Likewise.
22234         * lib/math.in.h: Likewise.
22235         * lib/netinet_in.in.h: Likewise.
22236         * lib/search.in.h: Likewise.
22237         * lib/signal.in.h: Likewise.
22238         * lib/stdarg.in.h: Likewise.
22239         * lib/stdint.in.h: Likewise.
22240         * lib/stdio.in.h: Likewise.
22241         * lib/stdlib.in.h: Likewise.
22242         * lib/string.in.h: Likewise.
22243         * lib/strings.in.h: Likewise.
22244         * lib/sys_select.in.h: Likewise.
22245         * lib/sys_socket.in.h: Likewise.
22246         * lib/sys_stat.in.h: Likewise.
22247         * lib/sys_time.in.h: Likewise.
22248         * lib/sysexits.in.h: Likewise.
22249         * lib/time.in.h: Likewise.
22250         * lib/unistd.in.h: Likewise.
22251         * lib/wchar.in.h: Likewise.
22252         * lib/wctype.in.h: Likewise.
22253         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22254         * modules/fchdir (Makefile.am): Likewise.
22255         * modules/fcntl (Makefile.am): Likewise.
22256         * modules/float (Makefile.am): Likewise.
22257         * modules/iconv_open (Makefile.am): Likewise.
22258         * modules/inttypes (Makefile.am): Likewise.
22259         * modules/locale (Makefile.am): Likewise.
22260         * modules/math (Makefile.am): Likewise.
22261         * modules/netinet_in (Makefile.am): Likewise.
22262         * modules/search (Makefile.am): Likewise.
22263         * modules/signal (Makefile.am): Likewise.
22264         * modules/stdarg (Makefile.am): Likewise.
22265         * modules/stdint (Makefile.am): Likewise.
22266         * modules/stdio (Makefile.am): Likewise.
22267         * modules/stdlib (Makefile.am): Likewise.
22268         * modules/string (Makefile.am): Likewise.
22269         * modules/strings (Makefile.am): Likewise.
22270         * modules/sys_select (Makefile.am): Likewise.
22271         * modules/sys_socket (Makefile.am): Likewise.
22272         * modules/sys_stat (Makefile.am): Likewise.
22273         * modules/sys_time (Makefile.am): Likewise.
22274         * modules/sysexits (Makefile.am): Likewise.
22275         * modules/time (Makefile.am): Likewise.
22276         * modules/unistd (Makefile.am): Likewise.
22277         * modules/wchar (Makefile.am): Likewise.
22278         * modules/wctype (Makefile.am): Likewise.
22279         Reported by Reuben Thomas <rrt@sc3d.org>.
22280
22281 2008-08-29  Bruno Haible  <bruno@clisp.org>
22282
22283         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22284         any more.
22285
22286 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22287
22288         * MODULES.html.sh (Misc): Add bitrotate.
22289
22290         * modules/bitrotate: New file.
22291
22292         * lib/bitrotate.h: New file.
22293
22294         * modules/bitrotate-tests: New file.
22295
22296         * tests/test-bitrotate.c: New file.
22297
22298         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22299         on the bitrotate module.
22300
22301         * lib/arctwo.c: Use new bitrotate module.
22302
22303 2008-08-29  Jim Meyering  <meyering@redhat.com>
22304
22305         bootstrap: merge changes from coreutils
22306         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22307         of copied files.  Remove a kludge, now that this is fixed.
22308         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22309         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22310         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22311
22312 2008-08-29  Bruno Haible  <bruno@clisp.org>
22313
22314         * MODULES.html.sh: Remove --cvs-urls option.
22315
22316 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22317
22318         maint.mk: adjust to file name change
22319         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22320
22321 2008-08-28  Jim Meyering  <meyering@redhat.com>
22322
22323         * modules/getndelim2 (License): Relicense to LGPLv2+.
22324         Approved by Richard Stallman for the version of 1995, and by
22325         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22326
22327 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22328
22329         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22330         dummy if one is not available.  Do not touch them if
22331         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22332         (getc_maybe_unlocked): New.
22333         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22334
22335 2008-08-26  Eric Blake  <ebb9@byu.net>
22336
22337         doc/INSTALL: resync from autoconf
22338         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22339         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22340         moving...
22341         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22342         * INSTALL: Regenerate.
22343         * INSTALL.ISO: New file.
22344         * INSTALL.UTF-8: Likewise.
22345
22346 2008-08-26  Jim Meyering  <meyering@redhat.com>
22347
22348         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22349         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22350         these definitions conditional, so that they may be overridden, too.
22351
22352 2008-08-26  Bruno Haible  <bruno@clisp.org>
22353
22354         Generate INSTALL file variants with prettier quotes.
22355         * doc/Makefile (INSTALL_PRELUDE): New macro.
22356         (INSTALL): Use it.
22357         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22358
22359 2008-08-26  Bruno Haible  <bruno@clisp.org>
22360
22361         Run makeinfo in an English locale.
22362         * doc/Makefile (MAKEINFO): New variable.
22363
22364 2008-08-26  Bruno Haible  <bruno@clisp.org>
22365
22366         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22367         Suggested by Eric Blake.
22368
22369 2008-08-25  Bruno Haible  <bruno@clisp.org>
22370
22371         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22372
22373 2008-08-25  Eric Blake  <ebb9@byu.net>
22374
22375         c-stack: test that stack overflow can be caught
22376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22377         that platform allows handling stack overflow; at least OS/2 EMX
22378         has sigaltstack, but crashes before transferring control to
22379         handler on stack overflow.
22380         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22381         check for HAVE_STACK_OVERFLOW_HANDLING.
22382         Reported by Elbert Pol.
22383
22384 2008-08-25  Bruno Haible  <bruno@clisp.org>
22385
22386         * doc/posix-functions/strftime.texi: Fix description of strftime
22387         module.
22388
22389 2008-08-24  Bruno Haible  <bruno@clisp.org>
22390
22391         * tests/uniwidth/test-uc_width2.c: New file.
22392         * tests/uniwidth/test-uc_width2.sh: New file.
22393         * modules/uniwidth/width-tests (Files): Add the new files.
22394         (TESTS): Add uniwidth/test-uc_width2.sh.
22395         (TESTS_ENVIRONMENT): New variable.
22396         (check_PROGRAMS): Add test-uc_width2.
22397         (test_uc_width2_SOURCES): New variable.
22398
22399         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22400         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22401         not 0x00AB.
22402         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22403
22404 2008-08-22  Eric Blake  <ebb9@byu.net>
22405
22406         test-lock, test-tls: mention why a test is skipped
22407         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22408         skipped.
22409         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22410
22411         count-one-bits: relax license
22412         * modules/count-one-bits (License): Relicense to LGPLv2+.
22413         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22414
22415 2008-08-22  Andreas Schwab  <schwab@suse.de>
22416
22417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22418         Remove spurious space in assignment.
22419
22420 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22421
22422         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22423         Paul Eggert <eggert@CS.UCLA.EDU>.
22424
22425 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22426
22427         * modules/gettext: Add m4/threadlib.m4.
22428
22429 2008-08-19  Eric Blake  <ebb9@byu.net>
22430
22431         test-c-stack: fix compilation failure on FreeBSD 5.0
22432         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22433         headers before <sys/resource.h>.
22434         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22435         the bug.
22436         Reported by Nelson H. F. Beebe.
22437
22438         strverscmp: migrate from "strverscmp.h" to <string.h>
22439         * modules/string (Makefile.am): Add new hooks.
22440         * modules/strverscmp (Files): Remove strverscmp.h.
22441         (Depends-on): Add string.
22442         (configure.ac): Add indicator.
22443         (Include): Mention new header.
22444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22445         defaults.
22446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22447         results.
22448         * lib/strverscmp.h: Delete.
22449         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22450         * tests/test-strverscmp.c (includes): Adjust client.
22451         * lib/check-version.c (includes): Likewise.
22452         * NEWS: Document the change.
22453
22454         strverscmp: add unit test
22455         * modules/strverscmp-tests: New file.
22456         * tests/test-strverscmp.c: Likewise.
22457
22458 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22459
22460         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22461         regarding Windows crypto stuff, from Mono.
22462
22463 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22464
22465         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22466         if present, for intel RND.  Return error on failures.
22467
22468 2008-08-18  Ben Pfaff  <blp@gnu.org>
22469
22470         gitlog-to-changelog: give better diagnostic for failed pipe-open
22471         * build-aux/gitlog-to-changelog: Improve error message: suggest
22472         that the version of Git may be too old.
22473
22474 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22475
22476         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22477         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22478
22479 2008-08-18  Bruno Haible  <bruno@clisp.org>
22480
22481         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22482         pthread_in_use().
22483
22484 2008-08-18  Bruno Haible  <bruno@clisp.org>
22485
22486         * lib/glthread/threadlib.c: Include <pthread.h>.
22487
22488 2008-08-18  Bruno Haible  <bruno@clisp.org>
22489
22490         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22491         glthread_recursive_lock_* macros.
22492         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22493         Fix syntax error.
22494
22495 2008-08-18  Bruno Haible  <bruno@clisp.org>
22496
22497         * lib/glthread/thread.c: Avoid forcing a context switch right after
22498         thread creation.
22499
22500 2008-08-17  Bruno Haible  <bruno@clisp.org>
22501
22502         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22503         * lib/glthread/thread.h: Provide Win32 specific implementation.
22504         * modules/thread (Files): Add lib/glthread/thread.c.
22505         (Depends-on): Add lock.
22506         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22507
22508 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22509
22510         New module 'yield'.
22511         * modules/yield: New file.
22512         * lib/glthread/yield.h: New file.
22513         * m4/yield.m4: New file.
22514         * MODULES.html.sh (Multithreading): Add yield.
22515
22516 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22517
22518         New module 'thread'.
22519         * modules/thread: New file.
22520         * lib/glthread/thread.h: New file.
22521         * m4/thread.m4: New file.
22522         * MODULES.html.sh (Multithreading): Add thread.
22523
22524 2008-08-17  Bruno Haible  <bruno@clisp.org>
22525
22526         * lib/glthread/lock.h: Include <stdlib.h> always.
22527         * lib/glthread/tls.h: Likewise.
22528         * lib/glthread/cond.h: Likewise.
22529
22530 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22531
22532         New module 'cond'.
22533         * modules/cond: New file.
22534         * lib/glthread/cond.h: New file.
22535         * lib/glthread/cond.c: New file.
22536         * m4/cond.m4: New file.
22537         * MODULES.html.sh (Multithreading): Add cond.
22538
22539 2008-08-16  Eric Blake  <ebb9@byu.net>
22540
22541         c-stack: fix regression on Irix 5.3 from 2008-06-21
22542         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22543         sa_sigaction...
22544         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22545         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22547         * modules/signal (Makefile.am): Use the value.
22548         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22549         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22550         * doc/posix-headers/signal.texi (signal.h): Document this
22551         portability issue.
22552         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22553         Reported by Tom G. Christensen.
22554
22555 2008-08-17  Bruno Haible  <bruno@clisp.org>
22556
22557         New module 'threadlib'.
22558         * modules/threadlib: New file.
22559         * lib/glthread/threadlib.c: New file, extracted from
22560         lib/glthread/lock.c.
22561         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22562         functions.
22563         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22564         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22565         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22566         macros.
22567         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22568         (gl_DISABLE_THREADS): Remove macro.
22569         * modules/lock (Files): Remove build-aux/config.rpath.
22570         (Depends-on): Remove havelib. Add threadlib.
22571         (configure.ac-early): Remove section.
22572         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22573         * modules/tls (Depends-on): Remove lock. Add threadlib.
22574         (Link): New section, copied from threadlib.
22575         * MODULES.html.sh (Multithreading): Add threadlib.
22576
22577 2008-08-14  Bruno Haible  <bruno@clisp.org>
22578
22579         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22580         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22581         glthread_rwlock_unlock, glthread_rwlock_destroy,
22582         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22583         glthread_recursive_lock_destroy): Define as macros always.
22584         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22585         glthread_lock_lock.
22586         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22587         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22588         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22589         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22590         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22591         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22592         (glthread_recursive_lock_lock_func): Renamed from
22593         glthread_recursive_lock_lock.
22594         (glthread_recursive_lock_unlock_func): Renamed from
22595         glthread_recursive_lock_unlock.
22596         (glthread_recursive_lock_destroy_func): Renamed from
22597         glthread_recursive_lock_destroy.
22598
22599 2008-08-14  Bruno Haible  <bruno@clisp.org>
22600
22601         * lib/glthread/lock.h: Renamed from lib/lock.h.
22602         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22603         * lib/glthread/tls.h: Renamed from lib/tls.h.
22604         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22605         * lib/fstrcmp.c: Update includes.
22606         * lib/strsignal.c: Update includes.
22607         * modules/lock (Files, Makefile.am): Update.
22608         (Include): Change to "glthread/lock.h".
22609         * modules/tls (Files, Makefile.am): Update.
22610         (Include): Change to "glthread/tls.h".
22611         * tests/test-lock.c: Update includes.
22612         * tests/test-tls.c: Update includes.
22613         * NEWS: Mention the renamed header files.
22614
22615 2008-08-11  Jim Meyering  <meyering@redhat.com>
22616
22617         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22618
22619 2008-08-11  Eric Blake  <ebb9@byu.net>
22620
22621         test-c-stack: avoid C99-ism
22622         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22623         before statement.
22624         Reported by Alain Guibert.
22625
22626 2008-08-10  Jim Meyering  <meyering@redhat.com>
22627
22628         ensure that return value of uinttostr et al are not ignored
22629         * lib/inttostr.h (__GNUC_PREREQ): Define.
22630         (__attribute_warn_unused_result__): Define.
22631         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22632
22633 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22634
22635         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22636         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22637
22638 2008-08-07  Jim Meyering  <meyering@redhat.com>
22639
22640         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22641
22642         * modules/mkstemp (License): Relicense under LGPLv2+.
22643         * modules/tempname (License): Likewise.
22644
22645 2008-08-06  Bruno Haible  <bruno@clisp.org>
22646
22647         * lib/poll.c (poll): Further micro-optimization.
22648
22649 2008-08-06  Jim Meyering  <meyering@redhat.com>
22650
22651         inet_pton.c: use locale-independent tolower
22652         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22653         (inet_pton6): Use c_tolower rather than tolower.
22654         * modules/inet_pton (Depends-on): Add c-ctype.
22655
22656 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22657
22658         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22659         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22660
22661 2008-08-06  Jim Meyering  <meyering@redhat.com>
22662
22663         * modules/inet_pton (License): Relicense under LGPLv2+.
22664
22665 2008-08-03  Bruno Haible  <bruno@clisp.org>
22666
22667         Additional non-aborting API for lock and tls.
22668         * lib/lock.h: Include <errno.h>.
22669         (glthread_lock_init): New macro/function.
22670         (gl_lock_init): Define as wrapper around glthread_lock_init.
22671         (glthread_lock_lock): New macro/function.
22672         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22673         (glthread_lock_unlock): New macro/function.
22674         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22675         (glthread_lock_destroy): New macro/function.
22676         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22677         (glthread_rwlock_init): New macro/function.
22678         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22679         (glthread_rwlock_rdlock): New macro/function.
22680         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22681         (glthread_rwlock_wrlock): New macro/function.
22682         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22683         (glthread_rwlock_unlock): New macro/function.
22684         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22685         (glthread_rwlock_destroy): New macro/function.
22686         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22687         (glthread_recursive_lock_init): New macro/function.
22688         (gl_recursive_lock_init): Define as wrapper around
22689         glthread_recursive_lock_init.
22690         (glthread_recursive_lock_lock): New macro/function.
22691         (gl_recursive_lock_lock): Define as wrapper around
22692         glthread_recursive_lock_lock.
22693         (glthread_recursive_lock_unlock): New macro/function.
22694         (gl_recursive_lock_unlock): Define as wrapper around
22695         glthread_recursive_lock_unlock.
22696         (glthread_recursive_lock_destroy): New macro/function.
22697         (gl_recursive_lock_destroy): Define as wrapper around
22698         glthread_recursive_lock_destroy.
22699         (glthread_once): New macro/function.
22700         (gl_once): Define as wrapper around glthread_once.
22701         Update function declarations.
22702         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22703         glthread_rwlock_init. Return error code.
22704         (glthread_rwlock_rdlock_multithreaded): Renamed from
22705         glthread_rwlock_rdlock. Return error code.
22706         (glthread_rwlock_wrlock_multithreaded): Renamed from
22707         glthread_rwlock_wrlock. Return error code.
22708         (glthread_rwlock_unlock_multithreaded): Renamed from
22709         glthread_rwlock_unlock. Return error code.
22710         (glthread_rwlock_destroy_multithreaded): Renamed from
22711         glthread_rwlock_destroy. Return error code.
22712         (glthread_recursive_lock_init_multithreaded): Renamed from
22713         glthread_recursive_lock_init. Return error code.
22714         (glthread_recursive_lock_lock_multithreaded): Renamed from
22715         glthread_recursive_lock_lock. Return error code.
22716         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22717         glthread_recursive_lock_unlock. Return error code.
22718         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22719         glthread_recursive_lock_destroy. Return error code.
22720         (glthread_once_call): Make static.
22721         (glthread_once_multithreaded): Renamed from glthread_once.
22722         * lib/tls.h: Include <errno.h>.
22723         (glthread_tls_key_init): New macro/function.
22724         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22725         (glthread_tls_set): New macro/function.
22726         (gl_tls_set): Define as wrapper around glthread_tls_set.
22727         (glthread_tls_key_destroy): New macro/function.
22728         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22729         Update function declarations.
22730         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22731         glthread_tls_get.
22732         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22733
22734 2008-08-04  Eric Blake  <ebb9@byu.net>
22735
22736         gnumakefile: use space, not TAB, outside of targets
22737         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22738
22739 2008-08-02  Jim Meyering  <meyering@redhat.com>
22740
22741         getdate.y: avoid locale-dependent date parsing failure
22742         In Turkish locales, getdate would fail to recognize keywords
22743         containing a lowercase "i".  The solution is not to rely on
22744         locale-sensitive case-conversion.
22745         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22746         (lookup_word): Use c_toupper in place of toupper.
22747         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22748         Reported by Vefa Bicakci <bicave@superonline.com> in
22749         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22750         * modules/getdate (Depends-on): Add c-ctype.
22751
22752 2008-08-02  Bruno Haible  <bruno@clisp.org>
22753
22754         * gnulib-tool (func_import): When updating or creating a .gitignore
22755         file, prepend each added line with a slash, and ignore leading slashes
22756         from the existing lines.
22757         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22758
22759 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22760
22761         Portability fix for GNU make 3.79.1.
22762         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22763         versions do not understand.
22764
22765 2008-08-01  Bruno Haible  <bruno@clisp.org>
22766
22767         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22768         * tests/test-isnanf.h (zero): New variable.
22769         (main): Avoid literal -0.0f.
22770         * tests/test-isnand.h (zero): New variable.
22771         (main): Avoid literal -0.0.
22772         * tests/test-isnanl.h (zero): New variable.
22773         (main): Avoid literal -0.0L.
22774         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22775         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22776         -0.0, -0.0L.
22777         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22778         (test_signbitd): Avoid literal -0.0.
22779         (test_signbitl): Avoid literal -0.0L.
22780         * tests/test-ceilf1.c (zero): New variable.
22781         (main): Avoid literal -0.0f.
22782         * tests/test-ceill.c (zero): New variable.
22783         (main): Avoid literal -0.0L.
22784         * tests/test-floorf1.c (zero): New variable.
22785         (main): Avoid literal -0.0f.
22786         * tests/test-floorl.c (zero): New variable.
22787         (main): Avoid literal -0.0L.
22788         * tests/test-roundf1.c (zero): New variable.
22789         (main): Avoid literal -0.0f.
22790         * tests/test-round1.c (zero): New variable.
22791         (main): Avoid literal -0.0.
22792         * tests/test-roundl.c (zero): New variable.
22793         (main): Avoid literal -0.0L.
22794         * tests/test-truncf1.c (zero): New variable.
22795         (main): Avoid literal -0.0f.
22796         * tests/test-trunc1.c (zero): New variable.
22797         (main): Avoid literal -0.0.
22798         * tests/test-truncl.c (zero): New variable.
22799         (main): Avoid literal -0.0L.
22800         * tests/test-frexp.c (zero): New variable.
22801         (main): Avoid literal -0.0.
22802         * tests/test-frexpl.c (zero): New variable.
22803         (main): Avoid literal -0.0L.
22804         * tests/test-ldexpl.c (zero): New variable.
22805         (main): Avoid literal -0.0L.
22806         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22807         (zerod, zerol): New variables.
22808         (test_function): Avoid literals -0.0, -0.0L.
22809         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22810         (zerod, zerol): New variables.
22811         (test_function): Avoid literals -0.0, -0.0L.
22812         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22813         (zerod, zerol): New variables.
22814         (test_function): Avoid literals -0.0, -0.0L.
22815         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22816         (zerod, zerol): New variables.
22817         (test_function): Avoid literals -0.0, -0.0L.
22818         * tests/test-strtod.c (zero): New variable.
22819         (main): Avoid literal -0.0.
22820         Reported by Jonathan C. Patschke <jp@centtech.com>.
22821
22822 2008-07-31  Jim Meyering  <meyering@redhat.com>
22823
22824         sha256.h: correct definition of SHA224_DIGEST_SIZE
22825         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22826         Reported by Paulie Pena IV <paulie4@gmail.com>.
22827         Define as 224 / 8, rather than as a literal.
22828         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22829         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22830         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22831
22832 2008-07-31  Bruno Haible  <bruno@clisp.org>
22833
22834         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22835         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22836         Reported by Jonathan Patschke <jp@centtech.com>.
22837
22838 2008-07-31  Bruno Haible  <bruno@clisp.org>
22839
22840         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22841         Reported by Paolo Bonzini <bonzini@gnu.org>.
22842
22843 2008-07-30  Eric Blake  <ebb9@byu.net>
22844
22845         test-strtod: allow compilation without -lm
22846         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22847         Reported by Dennis Clarke <blastwave@gmail.com>.
22848
22849 2008-07-28  Jim Meyering  <meyering@redhat.com>
22850
22851         bootstrap: work also when there are no .po files in po/
22852         * build-aux/bootstrap (update_po_files): Complete the change
22853         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22854
22855 2008-07-27  Jim Meyering  <meyering@redhat.com>
22856
22857         * users.txt: Add zile.
22858
22859 2008-07-26  Ben Pfaff  <blp@gnu.org>
22860
22861         Add missing dependencies on new m4/exponent[fdl].m4 files.
22862         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22863         * modules/isnand-nolibm: Add m4/exponentd.m4.
22864         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22865         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22866         m4/isnan[fdl].m4, because the macros actually used moved.
22867         Reported by Jim Meyering.
22868
22869 2008-07-14  Ben Pfaff  <blp@gnu.org>
22870
22871         Add isinf module.
22872         * lib/isinf.c: New file.
22873         * lib/math.in.h: Define isinf macro if we have decided to replace
22874         it.
22875         * m4/isinf.m4: New file.
22876         * m4/math_h.m4: Initialize and substitute variables for isinf
22877         module.
22878         * modules/isinf: New file.
22879         * modules/isinf-tests: New file.
22880         * modules/math: Add substitutions for new module.
22881         * tests/test-isinf.c: New file.
22882         * doc/posix-functions/isinf.texi: Mention new module.
22883         * MODULES.html.sh: Mention new module.
22884
22885 2008-07-14  Ben Pfaff  <blp@gnu.org>
22886
22887         Factor out some macros for use by additional modules.
22888         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22889         exponentf.m4.
22890         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22891         exponentd.m4.
22892         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22893         file exponentl.m4.
22894         * m4/exponentf.m4: New file.
22895         * m4/exponentd.m4: New file.
22896         * m4/exponentl.m4: New file.
22897         * modules/isnanf: Use new file m4/exponentf.m4.
22898         * modules/isnand: Use new file m4/exponentd.m4.
22899         * modules/isnanl: Use new file m4/exponentl.m4.
22900
22901 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22902
22903         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22904         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22905         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22906         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22907
22908         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22909         readlink on platforms without PATH_MAX.
22910
22911 2008-07-21  Eric Blake  <ebb9@byu.net>
22912
22913         Warn, not fail, on stale version.
22914         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22915
22916         Don't allow installation with stale devel version number.
22917         * top/GNUmakefile (_is-install-target): New macro.
22918         (_curr-ver): Forbid installation with stale version number.
22919
22920 2008-07-20  Bruno Haible  <bruno@clisp.org>
22921
22922         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22923         TESTS_ENVIRONMENT.
22924         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22925
22926 2008-07-20  Bruno Haible  <bruno@clisp.org>
22927
22928         * lib/c-stack.h (c_stack_action): Add documentation.
22929         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22930
22931 2008-07-20  Bruno Haible  <bruno@clisp.org>
22932
22933         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22934         * modules/readlink (License): Likewise.
22935
22936 2008-07-17  Eric Blake  <ebb9@byu.net>
22937
22938         * modules/c-stack (Link): Fix typo.
22939
22940         Make c-stack use libsigsegv, when available.
22941         * modules/c-stack (Depends-on): Add libsigsegv.
22942         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22943         needed.
22944         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22945         (segv_handler, overflow_handler, c_stack_action)
22946         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22947         implementation when libsigsegv is available, but only when using
22948         the library is necessary.
22949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22950         comment, explaining why XSI check fails on Linux.
22951         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22952         * tests/test-c-stack2.sh: Tweak skip message.
22953         * NEWS: Document new link-time requirements.
22954
22955 2008-07-16  Eric Blake  <ebb9@byu.net>
22956
22957         c-stack: Expose false positives when not using libsigsegv.
22958         * modules/c-stack-tests (Files): Expand test.
22959         * tests/test-c-stack.c (main): Add means to conditionally trigger
22960         non-overflow SIGSEGV.
22961         * tests/test-c-stack2.sh: New file.
22962
22963 2008-07-14  Bruno Haible  <bruno@clisp.org>
22964
22965         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22966         Reported by Eric Blake.
22967
22968 2008-07-14  Sam Steingold  <sds@gnu.org>
22969             Bruno Haible  <bruno@clisp.org>
22970
22971         New module libsigsegv.
22972         * modules/libsigsegv: New file.
22973         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22974         modifications.
22975         * MODULES.html.sh (Signal handling): New section.
22976
22977 2008-07-14  Bruno Haible  <bruno@clisp.org>
22978
22979         * modules/unictype/ctype-* (Description): Add the word "function".
22980         Improves the resulting doc in MODULES.html.
22981
22982 2008-07-12  Ben Pfaff  <blp@gnu.org>
22983
22984         Add longlong module.
22985         * modules/longlong: New file.
22986
22987 2008-07-12  Bruno Haible  <bruno@clisp.org>
22988
22989         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22990         to empty.
22991
22992 2008-07-10  Ben Pfaff  <blp@gnu.org>
22993
22994         Add isnan module.
22995         * doc/posix-functions/isnan.texi: Mention new module.
22996         * lib/math.in.h: Define isnan macro if we have decided to replace
22997         it.
22998         * m4/isnan.m4: New file.
22999         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23000         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23001         also.
23002         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23003         redundancy.
23004         * m4/math_h.m4: Initialize and substitute variables for isnan
23005         module.
23006         * modules/isnan: New file.
23007         * modules/isnan-tests: New file.
23008         * modules/math: Add substitutions for new module.
23009         * tests/test-isnan.c: New file.
23010         * MODULES.html.sh: Mention new module.
23011
23012 2008-07-10  Ben Pfaff  <blp@gnu.org>
23013
23014         Add isnanf module.
23015         * lib/isnanf.m4: New file.
23016         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23017         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23018         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23019         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23020         * modules/isnanf: New file.
23021         * modules/isnanf-tests: New file.
23022         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23023         files.
23024         * tests/test-isnanf-nolibm.c: factored most of its contents into
23025         new file tests/test-isnanf.h.
23026         * tests/test-isnanf.h: New file.
23027         * tests/test-isnanf.c: New file.
23028         * MODULES.html.sh: Mention new module.
23029         * doc/glibc-functions/isnanf.texi: Mention new module.
23030
23031 2008-07-10  Ben Pfaff  <blp@gnu.org>
23032
23033         Add isnand module.
23034         * lib/isnand.h: New file.
23035         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23036         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23037         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23038         functionality also.
23039         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23040         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23041         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23042         * modules/isnand: New file.
23043         * modules/isnand-tests: New file.
23044         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23045         files.
23046         * tests/test-isnand-nolibm.c: factored most of its contents into
23047         new file tests/test-isnand.h.
23048         * tests/test-isnand.h: New file.
23049         * tests/test-isnand.c: New file.
23050         * MODULES.html.sh: Mention new module.
23051
23052 2008-07-10  Ben Pfaff  <blp@gnu.org>
23053
23054         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23055         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23056         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23057         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23058         * modules/isnanf-nolibm: Update references to renamed files.
23059         * modules/isnand-nolibm: Likewise.
23060         * modules/isnanf-nolibm-tests: Likewise.
23061         * modules/isnand-nolibm-tests: Likewise.
23062         * lib/frexp.c: Likewise.
23063         * lib/isfinite.c: Likewise.
23064         * lib/signbitd.c: Likewise.
23065         * lib/signbitf.c: Likewise.
23066         * lib/vasnprintf.c: Likewise.
23067         * tests/test-ceilf1.c: Likewise.
23068         * tests/test-ceilf2.c: Likewise.
23069         * tests/test-floorf1.c: Likewise.
23070         * tests/test-floorf2.c: Likewise.
23071         * tests/test-frexp.c: Likewise.
23072         * tests/test-round1.c: Likewise.
23073         * tests/test-round2.c: Likewise.
23074         * tests/test-roundf1.c: Likewise.
23075         * tests/test-strtod.c: Likewise.
23076         * tests/test-trunc1.c: Likewise.
23077         * tests/test-trunc2.c: Likewise.
23078         * tests/test-truncf1.c: Likewise.
23079         * tests/test-truncf2.c: Likewise.
23080         * NEWS: Mention the renamed header files.
23081
23082 2008-07-11  Jim Meyering  <meyering@redhat.com>
23083
23084         vc-list-files: make the last-resort awk code more portable
23085         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23086         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23087         does not support it.
23088
23089 2008-07-10  Eric Blake  <ebb9@byu.net>
23090
23091         Work with tar's bootstrap.
23092         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23093         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23094         an m4 comment.
23095
23096 2008-07-09  Jim Meyering  <meyering@redhat.com>
23097
23098         posix-shell.m4: fix typo that made this test malfunction
23099         * m4/posix-shell.m4: Remove capitalization in variable name.
23100
23101 2008-07-08  Bruno Haible  <bruno@clisp.org>
23102
23103         * m4/onceonly.m4: Update comments.
23104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23105
23106 2008-07-04  Jim Meyering  <meyering@redhat.com>
23107
23108         * users.txt: Add vc-dwim.
23109         (bison, coreutils): Use the gitweb URL.
23110
23111 2008-07-03  Jim Meyering  <meyering@redhat.com>
23112
23113         * users.txt: Add libffcall.  From Sam Steingold.
23114
23115 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23116
23117         getdate.y: do not ignore TZ with relative day, month or year offset
23118         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23119         relative-date-handling, since otherwise, the latter would clobber the
23120         sole output (an updated Start value) of the tz-handling block.
23121         * tests/test-getdate.c: Tests for the fix
23122
23123 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23124
23125         Recognize 'foo_LIBRARIES += libgnu.a'.
23126         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23127         makefile snippet has already specified an installation location,
23128         also using '+='.
23129
23130 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23131
23132         getdate.y: factor out common actions
23133         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23134         Use them in place of open-coded actions.
23135
23136 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23137
23138         Add self-test for getdate module.
23139         * modules/getdate-tests: New file.
23140         * tests/test-getdate.c: New file.
23141
23142 2008-06-29  Bruno Haible  <bruno@clisp.org>
23143
23144         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23145         .gitignore.
23146         Reported by Sylvain Beucler <beuc@beuc.net>.
23147
23148 2008-06-29  Bruno Haible  <bruno@clisp.org>
23149
23150         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23151         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23152
23153 2008-06-29  Bruno Haible  <bruno@clisp.org>
23154
23155         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23156         EXTRA_DIST.
23157         Reported by Sylvain Beucler <beuc@beuc.net>.
23158
23159 2008-06-26  Jim Meyering  <meyering@redhat.com>
23160
23161         make several modules depend on the "open" module
23162         This provides slightly increased consistency when opening-for-write
23163         the name of a non-directory spelled with a trailing slash.
23164         * modules/chdir-safer: Likewise.
23165         * modules/chown: Likewise.
23166         * modules/clean-temp: Likewise.
23167         * modules/copy-file: Likewise.
23168         * modules/fchdir: Likewise.
23169         * modules/fcntl-safer: Likewise.
23170         * modules/pipe: Likewise.
23171         * modules/utime: Likewise.
23172         Prompted by Eric Blake and Bruno Haible.
23173
23174 2008-06-24  Andreas Schwab  <schwab@suse.de>
23175
23176         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23177         literals can be used as initializers for global variables.
23178
23179 2008-06-23  Eric Blake  <ebb9@byu.net>
23180
23181         Make gnulib-cache.m4 easier to diff.
23182         * gnulib-tool (func_import): Allow newlines when reading cached
23183         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23184
23185 2008-06-23  Bruno Haible  <bruno@clisp.org>
23186
23187         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23188         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23189         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23190         m4/signalblocking.m4.
23191         (gl_PREREQ_SIGACTION): Don't invoke it.
23192         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23193         gl_PREREQ_SIG_HANDLER_H.
23194         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23195         Don't check for sigaction here.
23196
23197 2008-06-23  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23200         (install_handlers): Don't set the SA_RESETHAND flag.
23201
23202 2008-06-23  Bruno Haible  <bruno@clisp.org>
23203
23204         * m4/sigaction.m4: Comment fixes.
23205         * lib/signal.in.h: Likewise.
23206
23207 2008-06-23  Eric Blake  <ebb9@byu.net>
23208
23209         Fix typo.
23210         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23211
23212         Avoid SA_ namespace.
23213         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23214         Reported by Ralf Wildenhues.
23215
23216         Avoid test failure due to SA_RESTORER.
23217         * tests/test-sigaction.c (SA_MASK): New macro.
23218         (main): Avoid failing due to extension flags being set.
23219         Reported by Jim Meyering.
23220
23221         Revert use of sig-handler.h in sigprocmask.c.
23222         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23223         it requires the existence of struct sigaction.
23224         * lib/sigprocmask.c (handler_t): Restore typedef.
23225         (rpl_signal, old_handlers): Use local type.
23226
23227 2008-06-22  Bruno Haible  <bruno@clisp.org>
23228
23229         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23230         conditionally.
23231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23232
23233 2008-06-22  Bruno Haible  <bruno@clisp.org>
23234
23235         * doc/posix-functions/siginterrupt.texi: Move note.
23236
23237         * lib/signal.in.h (SA_RESTART): New macro.
23238         * lib/sigaction.c: Update comment.
23239
23240         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23241
23242         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23243         (gl_PREREQ_SIGPROCMASK): Invoke it.
23244         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23245
23246         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23247
23248         * lib/sigprocmask.c: Update a comment.
23249
23250 2008-06-21  Eric Blake  <ebb9@byu.net>
23251
23252         Use sigaction module rather than signal().
23253         * modules/c-stack (Depends-on): Add sigaction.
23254         * modules/fatal-signal (Depends-on): Likewise.
23255         * modules/nanosleep (Depends-on): Likewise.
23256         * modules/sigprocmask (Files): Add sig-handler.h.
23257         * modules/sigaction (Files): Likewise.
23258         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23259         Eggert.
23260         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23261         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23262         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23263         (init_fatal_signals): Likewise.
23264         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23265         (siginterrupt): Delete fallback.
23266         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23267         instead.
23268         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23269         siginterrupt.
23270
23271         New module sigaction, for mingw.
23272         * modules/sigaction: New module...
23273         * modules/sigaction-tests: ...and its test.
23274         * m4/sigaction.m4: New file.
23275         * lib/sigaction.c: Likewise.
23276         * tests/test-sigaction.c: Likewise.
23277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23278         * modules/signal (Makefile.am): Likewise.
23279         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23280         needed.
23281         * doc/posix-headers/signal.texi (signal.h): Mention provided
23282         types.
23283         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23284         that sigaction is preferable.
23285         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23286         module.
23287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23288         sigaction.
23289
23290         Improve robustness of sigprocmask by overriding signal.
23291         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23292         is in use.
23293         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23294         (SIGKILL, SIGSTOP): Provide fallbacks.
23295         (rpl_signal): Implement.
23296         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23297         signal can be called inside handlers.
23298
23299         Fix nanosleep module on mingw.
23300         * modules/nanosleep (Depends-on): Add sys_select.
23301         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23302
23303         Fix licensing of sigprocmask.
23304         * modules/raise (License): Relicense as LGPL.
23305
23306 2008-06-21  Bruno Haible  <bruno@clisp.org>
23307
23308         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23309         result if it contains question marks.
23310         Reported by Michael Geng <linux@michaelgeng.de>.
23311
23312 2008-06-19  Bruno Haible  <bruno@clisp.org>
23313
23314         Fix CVS-ism.
23315         * doc/gnulib.texi: Include updated-stamp.texi.
23316         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23317         (updated-stamp.texi): New rule.
23318         (gnulib.info): Depend on it.
23319         * doc/.gitignore: Add updated-stamp.texi.
23320         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23321
23322 2008-06-19  Bruno Haible  <bruno@clisp.org>
23323
23324         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23325         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23326
23327 2008-06-19  Eric Blake  <ebb9@byu.net>
23328
23329         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23330         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23331         Reported by Stepan Kasal.
23332
23333 2008-06-18  Bruno Haible  <bruno@clisp.org>
23334
23335         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23336         Reported by Eric Blake.
23337
23338 2008-06-18  Eric Blake  <ebb9@byu.net>
23339
23340         Work around cygwin 1.5.25 strsignal bug.
23341         * tests/test-strsignal.c: Allow for const char *.
23342         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23343
23344 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23345
23346         * users.txt: Update URL to article and add author/date
23347         information.
23348
23349 2008-06-17  Bruno Haible  <bruno@clisp.org>
23350
23351         New macro gl_DISABLE_THREADS.
23352         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23353         if the user did not pass --enable-threads or --disable-threads option.
23354         (gl_DISABLE_THREADS): New macro.
23355         Reported by Eric Blake <ebb9@byu.net>.
23356
23357 2008-06-17  Bruno Haible  <bruno@clisp.org>
23358
23359         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23360         when the macro ignores it.
23361         Based on a patch by Eric Blake <ebb9@byu.net>.
23362
23363 2008-06-17  Bruno Haible  <bruno@clisp.org>
23364
23365         * modules/tls (License): Change to LGPLv2+.
23366         Reported by Eric Blake.
23367
23368 2008-06-17  Eric Blake  <ebb9@byu.net>
23369
23370         Simplify c-stack prerequisites.
23371         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23373         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23374         check.
23375         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23376         <sys/resource.h>.
23377
23378         Move c-stack test into testsuite.
23379         * modules/c-stack-tests: New file.
23380         * lib/c-stack.c [DEBUG]: Move test program...
23381         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23382         fail test if sigaltstack is lacking.
23383         * tests/test-c-stack.sh: New driver file.
23384
23385 2008-06-16  Eric Blake  <ebb9@byu.net>
23386
23387         Use raise module consistently.
23388         * modules/fatal-signal (Depends-on): Add raise.
23389         * modules/sigprocmask (Depends-on): Likewise.
23390         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23391         * lib/sigprocmask.c (sigprocmask): Likewise.
23392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23393         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23394
23395         Fix compliance bug in sigpending.
23396         * lib/sigprocmask.c (sigpending): Return pending array via
23397         parameter, not return value.
23398
23399 2008-06-14  Eric Blake  <ebb9@byu.net>
23400
23401         Improve obstack-printf test code.
23402         * tests/test-obstack-printf.c (test_function): Fix comment, and
23403         simplify usage of obstack_* in macros.  Add a test for coverage.
23404         Reported by Bruno Haible.
23405
23406 2008-06-14  Bruno Haible  <bruno@clisp.org>
23407
23408         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23409         array size as a constant, not as a const variable.
23410         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23411         AC_USE_SYSTEM_EXTENSIONS.
23412         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23413         Test whether the obstack_printf function actually exists.
23414         * modules/obstack-printf (Depends-on): Add extensions.
23415         (Include): Remove obstack.h.
23416         * modules/obstack-printf-posix (Depends-on): Add extensions.
23417         (Include): Remove obstack.h.
23418
23419 2008-06-13  Eric Blake  <ebb9@byu.net>
23420
23421         Add obstack-printf and obstack-printf-posix modules.
23422         * modules/obstack-printf: New file.
23423         * modules/obstack-printf-posix: Likewise.
23424         * MODULES.html.sh (Misc): Mention them.
23425         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23426         Likewise.
23427         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23428         Likewise.
23429         * modules/stdio (Makefile.am): Accomodate new modules.
23430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23431         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23432         Declare.
23433         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23434         functions.
23435         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23436         (gl_REPLACE_OBSTACK_PRINTF): New macros
23437         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23438         * tests/test-obstack-printf.c: New file.
23439         * modules/obstack-printf-tests: Likewise.
23440         * modules/obstack-printf-posix-tests: Likewise.
23441
23442 2008-06-11  Bruno Haible  <bruno@clisp.org>
23443
23444         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23445         * lib/open.c: Include errno.h.
23446         (open): Fail when attempting to write to a file that has a trailing
23447         slash.
23448         * tests/test-open.c (main): Test against trailing slash bug.
23449         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23450
23451 2008-06-10  Bruno Haible  <bruno@clisp.org>
23452
23453         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23454         for $? to work inside the trap command, with various /bin/sh-s.
23455         * tests/test-vc-list-files-cvs.sh: Likewise.
23456
23457 2008-06-10  Bruno Haible  <bruno@clisp.org>
23458
23459         * lib/acl-internal.h: Don't include gettext.h here.
23460         * lib/set-mode-acl.c: Include gettext.h here.
23461         * lib/copy-acl.c: Likewise.
23462
23463 2008-06-10  Bruno Haible  <bruno@clisp.org>
23464
23465         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23466         * lib/wait-process.c (wait_subprocess): Likewise.
23467         * lib/execute.h (execute): Add termsigp argument.
23468         * lib/execute.c (execute): Likewise.
23469         * lib/csharpcomp.c (compile_csharp_using_pnet,
23470         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23471         * lib/csharpexec.c (execute_csharp_using_pnet,
23472         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23473         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23474         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23475         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23476         is_jikes_present): Update.
23477         * lib/javaexec.c (execute_java_class): Update.
23478         * lib/javaversion.c (execute_and_read_line): Update.
23479         * NEWS: Document the changes.
23480         Reported by Eric Blake.
23481
23482 2008-06-10  Eric Blake  <ebb9@byu.net>
23483
23484         Add missing include.
23485         * tests/test-strstr.c (includes): Add <signal.h>.
23486         * tests/test-strcasestr.c (includes): Likewise.
23487         * tests/test-memmem.c (includes): Likewise.
23488
23489 2008-06-10  Bruno Haible  <bruno@clisp.org>
23490
23491         * lib/wait-process.c (wait_subprocess): Add an assertion.
23492
23493 2008-06-10  Bruno Haible  <bruno@clisp.org>
23494
23495         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23496
23497 2008-06-10  Bruno Haible  <bruno@clisp.org>
23498
23499         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23500         using alarm().
23501         * tests/test-strcasestr.c (main): Likewise.
23502         * tests/test-strstr.c (main): Likewise.
23503
23504 2008-06-09  Bruno Haible  <bruno@clisp.org>
23505
23506         Work around the Solaris 10 ACE ACLs ABI change.
23507         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23508         declare if ACL_NO_TRIVIAL is present.
23509         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23510         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23511         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23512         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23513         define if ACL_NO_TRIVIAL is present.
23514         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23515         and use the current ABI.
23516         (file_has_acl): Use same #if condition as elsewhere.
23517         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23518         in use, and use the current ABI.
23519         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23520         Reported by Jim Meyering.
23521
23522 2008-06-09  Eric Blake  <ebb9@byu.net>
23523
23524         Work around environments that (stupidly) ignore SIGALRM.
23525         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23526         before using alarm().
23527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23528         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23529         Reported by Ian Beckwith <ianb@erislabs.net>.
23530
23531         Produce autobuild blurb earlier in log.
23532         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23533
23534 2008-06-09  Jim Meyering  <meyering@redhat.com>
23535         and Ondřej Vašík  <ovasik@redhat.com>
23536
23537         utimens.c: correct kernel bug work-around
23538         Ondřej Vašík found that the invalid return value of 280 indicates
23539         failure, not success, and the kernel bug we're trying to work
23540         around affects not just the utimensat call, but also the fallback
23541         futimens call.
23542         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23543         not success.
23544         [HAVE_FUTIMENS]: Use the same work-around, here.
23545
23546 2008-06-09  Jim Meyering  <meyering@redhat.com>
23547
23548         add more guards around definition of ACE_-related code
23549         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23550         ALLOW and ACE_OWNER are also defined.
23551
23552 2008-06-08  Bruno Haible  <bruno@clisp.org>
23553
23554         * lib/acl-internal.h: Add me as co-author.
23555         * lib/file-has-acl.c: Likewise.
23556         * lib/set-mode-acl.c: Likewise.
23557         * lib/copy-acl.c: Likewise.
23558
23559 2008-06-08  Bruno Haible  <bruno@clisp.org>
23560
23561         Add support for AIX ACLs.
23562         * lib/acl-internal.h (acl_nontrivial): New declaration.
23563         * lib/file-has-acl.c (acl_nontrivial): New function.
23564         (file_has_acl): Add implementation using AIX 4 ACL API.
23565         * lib/set-mode-acl.c (qset_acl): Likewise.
23566         * lib/copy-acl.c (qcopy_acl): Likewise.
23567
23568 2008-06-08  Bruno Haible  <bruno@clisp.org>
23569
23570         Add support for HP-UX ACLs.
23571         * lib/acl-internal.h (acl_nontrivial): New declaration.
23572         * lib/file-has-acl.c (acl_nontrivial): New function.
23573         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23574         * lib/set-mode-acl.c (qset_acl): Likewise.
23575         * lib/copy-acl.c (qcopy_acl): Likewise.
23576
23577 2008-06-08  Bruno Haible  <bruno@clisp.org>
23578
23579         Add support for Cygwin ACLs.
23580         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23581         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23582         the chmod_or_fchmod call.
23583         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23584
23585 2008-06-08  Bruno Haible  <bruno@clisp.org>
23586
23587         Fix bug with setuid modes in Solaris 10+ code.
23588         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23589         succeeded, when the mode contains some special bits.
23590
23591 2008-06-08  Bruno Haible  <bruno@clisp.org>
23592
23593         Add support for Solaris 7..10 ACLs.
23594         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23595         declarations.
23596         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23597         functions.
23598         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23599         * lib/set-mode-acl.c (qset_acl): Likewise.
23600         * lib/copy-acl.c (qcopy_acl): Likewise.
23601
23602 2008-06-08  Bruno Haible  <bruno@clisp.org>
23603
23604         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23605         declaration.
23606         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23607         (acl_access_nontrivial): Remove MacOS X case.
23608         (file_has_acl): Use acl_extended_nontrivial.
23609         * lib/copy-acl.c (qcopy_acl): Likewise.
23610
23611 2008-06-08  Bruno Haible  <bruno@clisp.org>
23612
23613         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23614
23615 2008-06-08  Jim Meyering  <meyering@redhat.com>
23616
23617         * modules/acl (Maintainer): Add Bruno Haible.
23618
23619 2008-06-07  Bruno Haible  <bruno@clisp.org>
23620
23621         Improve support for Tru64 ACLs.
23622         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23623         ACL on OSF/1.
23624
23625 2008-06-07  Bruno Haible  <bruno@clisp.org>
23626
23627         Add support for MacOS X ACLs.
23628         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23629         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23630         * lib/set-mode-acl.c (qset_acl): Likewise.
23631         * lib/copy-acl.c (qcopy_acl): Likewise.
23632
23633 2008-06-07  Bruno Haible  <bruno@clisp.org>
23634
23635         Fix memory leak introduced on 2008-05-22.
23636         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23637         use.
23638
23639 2008-06-07  Bruno Haible  <bruno@clisp.org>
23640
23641         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23642         to construct an empty ACL.
23643
23644 2008-06-07  Bruno Haible  <bruno@clisp.org>
23645
23646         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23647         precisely.
23648         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23649
23650 2008-06-07  Bruno Haible  <bruno@clisp.org>
23651
23652         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23653         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23654
23655 2008-06-07  Bruno Haible  <bruno@clisp.org>
23656
23657         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23658         regardless of POSIX.
23659         * doc/posix-functions/_longjmp.texi: Likewise.
23660         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23661         SystemV platform in this case.
23662
23663 2008-06-06  Eric Blake  <ebb9@byu.net>
23664
23665         Document abort() bugs.
23666         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23667
23668         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23669         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23670         sigsetjmp.
23671         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23672         siglongjmp, but only as a macro.
23673         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23674         is obsolete.
23675         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23676
23677         Tweak documentation to cover cygwin argz bugs.
23678         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23679         argz bug fix; no code change needed since no cygwin releases
23680         occurred between the last fix and the bug being tested.
23681         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23682         module and recently fixed cygwin bugs.
23683         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23684         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23685         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23686         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23687         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23688         Likewise.
23689         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23690         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23691         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23692         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23693         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23694         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23695         Likewise.
23696
23697         Avoid gcc warning on cygwin.
23698         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23699         !ACL_NO_TRIVIAL]: Avoid unused variable.
23700
23701 2008-06-05  Eric Blake  <ebb9@byu.net>
23702
23703         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23704         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23705         git-version-gen fails to come up with a version.
23706         Reported by Simon Josefsson.
23707
23708 2008-06-05  Jim Meyering  <meyering@redhat.com>
23709             Paul Eggert  <eggert@cs.ucla.edu>
23710
23711         utimens.c: work around a probable Linux kernel bug
23712         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23713         appears to be a kernel bug that causes utimensat to return 280
23714         instead of 0, indicating success.
23715
23716 2008-06-04  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23719         2008-06-01 commit.
23720
23721 2008-06-04  Bruno Haible  <bruno@clisp.org>
23722
23723         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23724         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23725         (file_has_acl): Use it. Save errno afterwards.
23726         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23727
23728 2008-06-03  Bruno Haible  <bruno@clisp.org>
23729
23730         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23731         draft code. Simplify #ifs.
23732         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23733         Put Solaris code after POSIX-draft code. Fix comments regarding
23734         Solaris 10, HP-UX. Mention Cygwin.
23735         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23736
23737 2008-06-03  Eric Blake  <ebb9@byu.net>
23738
23739         Provide fallback for older kernels.
23740         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23741         Provide runtime fallback if kernel lacks support.
23742         Reported by Mike Frysinger.
23743
23744 2008-06-02  Bruno Haible  <bruno@clisp.org>
23745
23746         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23747         it exists.
23748
23749 2008-06-02  Bruno Haible  <bruno@clisp.org>
23750
23751         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23752         * lib/copy-acl.c (qcopy_acl): Update comment.
23753
23754 2008-06-02  Bruno Haible  <bruno@clisp.org>
23755
23756         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23757         like ACL APIs.
23758
23759 2008-06-02  Bruno Haible  <bruno@clisp.org>
23760
23761         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23762         * tests/test-set-mode-acl.sh: Likewise.
23763         * tests/test-copy-acl.sh: Likewise.
23764         * tests/test-copy-file.sh: Likewise.
23765
23766 2008-06-02  Bruno Haible  <bruno@clisp.org>
23767
23768         * tests/test-file-has-acl.sh: Remove unused code.
23769
23770 2008-06-01  Bruno Haible  <bruno@clisp.org>
23771
23772         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23773         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23774         messages.
23775         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23776
23777 2008-06-01  Bruno Haible  <bruno@clisp.org>
23778
23779         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23780         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23781         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23782         APIs.
23783         * modules/acl-tests (configure.ac): Remove tests now contained in
23784         m4/acl.m4.
23785
23786 2008-06-02  Jim Meyering  <meyering@redhat.com>
23787
23788         announce-gen: use a better key-server host name
23789         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23790         it may be more consistently reliable.  Suggested by Werner Koch
23791         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23792
23793 2008-06-01  Bruno Haible  <bruno@clisp.org>
23794
23795         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23796         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23797
23798 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23799
23800         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23801
23802 2008-06-01  Bruno Haible  <bruno@clisp.org>
23803
23804         New ACL tests.
23805         * tests/test-file-has-acl.sh: New file.
23806         * tests/test-file-has-acl.c: New file.
23807         * tests/test-set-mode-acl.sh: New file.
23808         * tests/test-set-mode-acl.c: New file.
23809         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23810         * tests/test-copy-acl.c: New file.
23811         * modules/acl-tests: New file, based on modules/copy-file-tests.
23812         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23813         (Depends-on): Add acl-tests.
23814         (configure.ac): Remove checks.
23815         (Makefile.am): Don't create test-sameacls program here any more.
23816
23817 2008-06-01  Bruno Haible  <bruno@clisp.org>
23818
23819         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23820         * tests/test-sameacls.c: Include progname.h.
23821         (main): Invoke set_program_name. Portability fixes for MacOS X,
23822         Solaris, HP-UX.
23823
23824 2008-06-01  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23827         function.
23828         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23829
23830 2008-06-01  Bruno Haible  <bruno@clisp.org>
23831
23832         * modules/rpmatch (Depends-on): Add strdup.
23833
23834 2008-06-01  Bruno Haible  <bruno@clisp.org>
23835
23836         * lib/pipe.c: Include unistd-safer.h.
23837         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23838         * modules/pipe (Depends-on): Add unistd-safer.
23839
23840 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23841
23842         * modules/autobuild (configure.ac): Call AB_INIT.
23843
23844 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23845
23846         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23847         Suggested by Bruno Haible <bruno@clisp.org>.
23848
23849 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23850
23851         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23852         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23853         <bruno@clisp.org>.
23854
23855 2008-05-29  Eric Blake  <ebb9@byu.net>
23856
23857         Prefer new POSIX 200x interfaces over futimesat.
23858         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23859         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23860         when available.
23861         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23862
23863 2008-05-28  Bruno Haible  <bruno@clisp.org>
23864
23865         * modules/stpcpy (License): Change to LGPLv2+.
23866         Requested by David Lutterkort <dlutter@redhat.com>.
23867
23868 2008-05-27  Bruno Haible  <bruno@clisp.org>
23869
23870         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23871         current mingw.
23872         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23873
23874 2008-05-27  Bruno Haible  <bruno@clisp.org>
23875
23876         * modules/iconv_open (Link): New section, from module 'iconv'.
23877         * modules/striconv (Link): Likewise.
23878         * modules/striconveh (Link): Likewise.
23879         * modules/xstriconv (Link): Likewise.
23880         * modules/unicodeio (Link): Likewise.
23881         * modules/propername (Link): Likewise.
23882         Reported by Jim Meyering.
23883
23884 2008-05-26  Jim Meyering  <meyering@redhat.com>
23885
23886         sha256: do not artificially restrict buffer length to be < 2^32
23887         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23888         uint32_t to size_t.
23889         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23890         to match.
23891
23892         avoid unaligned access errors, e.g., on sparc
23893         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23894         direct access through a possibly-unaligned uint64* pointer.
23895         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23896         direct access through a possibly-unaligned uint32* pointer.
23897         Prompted by this patch from Tom "spot" Callaway:
23898         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23899
23900         sha512.c: fix typo in comment
23901         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23902
23903 2008-05-25  Bruno Haible  <bruno@clisp.org>
23904
23905         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23906         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23907         (Makefile.am): Update lib_SOURCES.
23908
23909 2008-05-25  Bruno Haible  <bruno@clisp.org>
23910
23911         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23912
23913 2008-05-25  Jim Meyering  <meyering@redhat.com>
23914
23915         useless-if-before-free: freed expr may have white-space differences
23916         * build-aux/useless-if-before-free: Recognize cases in which the
23917         freed expression differs from the tested one in embedded white
23918         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23919         $1 was used, so we can't make any regexp shy.  Improved tests now
23920         detect this.
23921
23922         useless-if-before-free: accept white space in the expression.
23923         * build-aux/useless-if-before-free: For now, any white space
23924         in the expression must be identical in the free argument.
23925
23926         useless-if-before-free: efficiency tweak
23927         * build-aux/useless-if-before-free: Make the expression-matching
23928         regexp "shy".
23929         Make the *outer* regexp shy, not the expr-matching one.
23930
23931         update code-in-comment to accept cast of free arg
23932         * build-aux/useless-if-before-free: Update regexp.
23933
23934 2008-05-25  Bruno Haible  <bruno@clisp.org>
23935
23936         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23937         * modules/copy-file-tests (Files, Makefile.am): Update.
23938         * tests/test-copy-file.c (func_test_copy): Update.
23939
23940 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23941
23942         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23943
23944 2008-05-23  Bruno Haible  <bruno@clisp.org>
23945
23946         Improve support for ACLs on OSF/1.
23947         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23948         Remove fallback for unknown flavors of ACLs.
23949
23950 2008-05-22  Bruno Haible  <bruno@clisp.org>
23951
23952         Add support for ACLs on OSF/1.
23953         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23954         replacements.
23955         (acl_free_text): New macro fallback.
23956         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23957         acl_free.
23958         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23959         acl_free_text function. Require AC_C_INLINE.
23960
23961 2008-05-22  Bruno Haible  <bruno@clisp.org>
23962
23963         Make copy_acl work on MacOS X 10.5.
23964         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23965         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23966         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23967         If MODE_INSIDE_ACL, don't assume that every system has the same text
23968         representation for ACLs as FreeBSD.
23969         * lib/copy-acl.c (copy_acl): Add support for platforms with
23970         !MODE_INSIDE_ACL.
23971         * lib/file-has-acl.c (file_has_acl): Likewise.
23972         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23973         FreeBSD, MacOS X, or IRIX, respectively.
23974
23975 2008-05-22  Bruno Haible  <bruno@clisp.org>
23976
23977         * lib/acl.h: Don't include <sys/acl.h>.
23978         (GETACLCNT): Move fallback to lib/acl-internal.h.
23979         * lib/acl-internal.h: Include <sys/acl.h> here.
23980         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23981
23982 2008-05-22  Bruno Haible  <bruno@clisp.org>
23983
23984         Split off copy_acl function to separate file.
23985         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23986         * lib/acl.c (copy_acl): Moved function to separate file.
23987         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23988         * modules/acl (Files): Add lib/copy-acl.c.
23989         (Makefiles.am): Augment lib_SOURCES.
23990
23991 2008-05-22  Bruno Haible  <bruno@clisp.org>
23992
23993         * modules/copy-file-tests: New file.
23994         * tests/test-copy-file.sh: New file.
23995         * tests/test-copy-file.c: New file.
23996         * tests/test-copy-file-sameacls.c: New file.
23997
23998 2008-05-22  Eric Blake  <ebb9@byu.net>
23999
24000         Avoid gcc warning.
24001         * tests/test-memcmp.c (main): Pass NULL indirectly.
24002
24003 2008-05-21  Bruno Haible  <bruno@clisp.org>
24004
24005         Add reference doc about ACLs.
24006         * doc/acl-resources.txt: New file.
24007         * doc/acl-cygwin.txt: New file.
24008
24009 2008-05-21  Bruno Haible  <bruno@clisp.org>
24010
24011         Avoid one more warning from gcc.
24012         * lib/vasnprintf.c (IF_LINT): Update comments.
24013         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24014
24015 2008-05-21  Jim Meyering  <meyering@redhat.com>
24016
24017         avoid a warning from gcc
24018         * lib/vasnprintf.c (IF_LINT): Define.
24019         (scale10_round_decimal_long_double):
24020         Use it to avoid a "may be used uninitialized" warning.
24021         (scale10_round_decimal_double): Likewise.
24022
24023 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24024
24025         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24026         declared.
24027
24028 2008-05-20  Bruno Haible  <bruno@clisp.org>
24029
24030         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24031         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24032
24033 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24034
24035         * modules/memcmp-tests: New file.
24036         * tests/test-memcmp.c: New file.
24037
24038 2008-05-19  Bruno Haible  <bruno@clisp.org>
24039
24040         * modules/propername (Notice, configure.ac): Put quoted "..." into
24041         --keyword option.
24042         * lib/propername.h: Update comments accordingly.
24043         Reported by Eric Blake.
24044
24045 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24046
24047         * modules/getpass-gnu (Depends-on): Add fseeko.
24048
24049 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24050
24051         * modules/base64-tests: New file.
24052
24053 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24054
24055         * lib/base64.c (base64_decode_ctx): If a decode context structure
24056         was passed in use it to ignore newlines.  If a context structure
24057         was _not_ passed in, continue to treat newlines as garbage (this
24058         is the historical behavior).  Formerly base64_decode.
24059         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24060         takes a decode context structure.
24061         * lib/base64.h (base64_decode): Macro for four-argument calls.
24062         (base64_decode_alloc): Likewise.
24063         * lib/base64.c (base64_decode_ctx): If a decode context structure
24064         was passed in use it to ignore newlines.  If a context structure
24065         was _not_ passed in, continue to treat newlines as garbage (this
24066         is the historical behavior).  Formerly base64_decode.
24067         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24068         takes a decode context structure.
24069         * lib/base64.h (base64_decode): Macro for four-argument calls.
24070         (base64_decode_alloc): Likewise.
24071
24072 2008-05-19  Jim Meyering  <meyering@redhat.com>
24073
24074         avoid a warning from gcc
24075         * lib/trim.c (IF_LINT): Define.
24076         (trim2): Use it to avoid a "may be used uninitialized" warning.
24077
24078         Fix doc typo.
24079         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24080
24081 2008-05-19  Bruno Haible  <bruno@clisp.org>
24082
24083         * doc/glibc-functions/getpass.texi: Document limits of other
24084         implementations.
24085
24086 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24087             Bruno Haible <bruno@clisp.org>
24088
24089         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24090
24091 2008-05-18  Bruno Haible  <bruno@clisp.org>
24092
24093         * modules/propername: New file, from GNU gettext.
24094         * lib/propername.h: New file, from GNU gettext.
24095         * lib/propername.c: New file, from GNU gettext.
24096         * MODULES.html.sh (Internationalization functions): Add propername.
24097
24098 2008-05-16  Jim Meyering  <meyering@redhat.com>
24099             Bruno Haible  <bruno@clisp.org>
24100
24101         Avoid some warnings from "gcc -Wshadow".
24102         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24103
24104 2008-05-15  Eric Blake  <ebb9@byu.net>
24105
24106         Extend previous patch to cygwin 1.7.0.
24107         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24108         fast implementation in cygwin >= 1.7.0.
24109         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24110         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24111
24112 2008-05-15  Bruno Haible  <bruno@clisp.org>
24113
24114         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24115         implementation in glibc >= 2.9.
24116         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24118
24119 2008-05-15  Bruno Haible  <bruno@clisp.org>
24120
24121         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24122         (Unicode string functions): Add unilbrk/*.
24123         Reported by Karl Berry.
24124
24125 2008-05-15  Eric Blake  <ebb9@byu.net>
24126
24127         Fix violation of <stdbool.h> replacement in regex.
24128         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24129         * lib/regexec.c (re_search_internal): Likewise.
24130         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24131
24132 2008-05-15  Jim Meyering  <meyering@redhat.com>
24133
24134         avoid distracting test output when git or cvs is not found
24135         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24136         * tests/test-vc-list-files-git.sh: Likewise.
24137
24138 2008-05-15  Eric Blake  <ebb9@byu.net>
24139
24140         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24141         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24142         glibc version.
24143         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24144         * doc/posix-functions/strstr.texi (strstr): Likewise.
24145         * lib/str-two-way.h (MAX): Sychronize with glibc.
24146
24147 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24148
24149         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24150         opr.ctx_type.
24151         (calc_first): Initialize constraint field.
24152         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24153         Fix grammar.
24154         (duplicate_node): Merge constraint field for all node types.
24155         (calc_eclosure_iter): Look at constraint field for all node types.
24156         * lib/regex_internal.c (create_cd_newstate): Don't look at
24157         opr.ctx_type.
24158
24159 2008-05-14  Bruno Haible  <bruno@clisp.org>
24160
24161         Help GCC to do better code generation.
24162         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24163         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24164         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24165         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24166         Declare with attribute 'malloc' if supported.
24167
24168 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24169
24170         use "echo STR|wc -c" rather than unportable "expr length STR"
24171         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24172         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24173
24174 2008-05-14  Jim Meyering  <meyering@redhat.com>
24175
24176         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24177         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24178         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24179         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24180         via Collin Lasse.
24181
24182 2008-05-14  Eric Blake  <ebb9@byu.net>
24183
24184         Avoid quadratic growth in gl_LIBSOURCES.
24185         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24186         Suggested by Bruno Haible.
24187
24188         Test xmemdup0.
24189         * modules/xmemdup0-tests: New file.
24190         * tests/test-xmemdup0.c: Likewise.
24191
24192 2008-05-13  Eric Blake  <ebb9@byu.net>
24193
24194         Split xmemdup0 into its own module.
24195         * modules/xmemdup0: New file.
24196         * lib/xmemdup0.h: Likewise.
24197         * lib/xmemdup0.c: Likewise.
24198         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24199         * lib/xalloc.h (xmemdup0): Remove.
24200         * lib/xmalloc.c (xmemdup0): Likewise.
24201
24202 2008-05-13  Eric Blake  <ebb9@byu.net>
24203             Bruno Haible  <bruno@clisp.org>
24204
24205         Reduce number of forks required during autoconf.
24206         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24207         and gl_LIBSOURCES_DIR.
24208         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24209         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24210         m4_syscmd per file.
24211         <m4_foreach_w>: Move...
24212         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24213
24214 2008-05-13  Eric Blake  <ebb9@byu.net>
24215
24216         * gnulib-tool: Fix various comment typos.
24217
24218 2008-05-12  Bruno Haible  <bruno@clisp.org>
24219
24220         Tailor the linebreaking algorithm.
24221         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24222
24223 2008-05-12  Bruno Haible  <bruno@clisp.org>
24224
24225         Update to Unicode 5.0.0.
24226         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24227         LBP_JV, LBP_JT. Redistribute values.
24228         (unilbrk_table): Change size.
24229         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24230         Unicode TR#14 rev. 22.
24231         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24232         LBP_JV, LBP_JT. Redistribute values.
24233         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24234         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24235         Update.
24236         * lib/unilbrk/lbrkprop1.h: Regenerated.
24237         * lib/unilbrk/lbrkprop2.h: Regenerated.
24238         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24239         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24240         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24241         Likewise.
24242         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24243         Likewise.
24244         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24245         result.
24246         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24247         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24248         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24249         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24250         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24251         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24252
24253 2008-05-11  Bruno Haible  <bruno@clisp.org>
24254
24255         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24256
24257 2008-05-11  Bruno Haible  <bruno@clisp.org>
24258
24259         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24260         * modules/unilbrk/gen-lbrk: New file.
24261
24262 2008-05-11  Bruno Haible  <bruno@clisp.org>
24263
24264         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24265         * m4/sha512.m4 (gl_SHA512): Likewise.
24266
24267 2008-05-11  Jim Meyering  <meyering@redhat.com>
24268
24269         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24270         * modules/crypto/sha256: New file.
24271         * modules/crypto/sha512: Likewise.
24272         * lib/sha256.c: Likewise.
24273         * lib/sha256.h: Likewise.
24274         * lib/sha512.c: Likewise.
24275         * lib/sha512.h: Likewise.
24276         * lib/u64.h: Likewise.
24277         * m4/sha256.m4: Likewise.
24278         * m4/sha512.m4: Likewise.
24279         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24280
24281 2008-05-10  Bruno Haible  <bruno@clisp.org>
24282
24283         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24284         (Input/Output <stdio.h>): Add xprintf.
24285         (Signal handling <signal.h>): Add strsignal.
24286         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24287         (Core language properties): Add func.
24288         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24289         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24290         strings.
24291         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24292         (Input/output): New section.
24293         (File system functions): Add openat-die, stat-macros.
24294         (Networking functions): Add sockets.
24295         (Unicode string functions): Add unictype/*.
24296         (Support for building libraries and executables): Add gperf.
24297         (Support for building documentation): Add agpl-3.0.
24298         (Misc): Add nocrash.
24299
24300 2008-05-10  Bruno Haible  <bruno@clisp.org>
24301
24302         * modules/unictype/gen-ctype: New file.
24303
24304 2008-05-10  Jim Meyering  <meyering@redhat.com>
24305
24306         Make chdir-safer.c more efficient on a system with no symlinks.
24307         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24308         also if ELOOP is zero.  Suggested by Bruno Haible.
24309
24310         Make chdir-safer.c slightly safer.
24311         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24312         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24313
24314         Avoid compile failure on systems without ELOOP (like mingw).
24315         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24316         Reported by Bruno Haible.
24317
24318 2008-05-10  Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24321         (is_utf8_encoding): Use a case-insensitive comparison.
24322         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24323         streq.
24324
24325 2008-05-10  Bruno Haible  <bruno@clisp.org>
24326
24327         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24328         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24329         * lib/unilbrk/ulc-common.h (iconv_string_length,
24330         iconv_string_keeping_offsets): Remove declarations.
24331         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24332         Don't include <iconv.h>, streq.h, xsize.h.
24333         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24334         conversion.
24335         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24336         <iconv.h>, streq.h, xsize.h.
24337         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24338         conversion.
24339         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24340         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24341         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24342         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24343
24344 2008-05-10  Bruno Haible  <bruno@clisp.org>
24345
24346         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24347         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24348
24349         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24350         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24351
24352         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24353         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24354
24355         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24356         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24357
24358         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24359         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24360
24361         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24362         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24363
24364         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24365         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24366
24367         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24368         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24369
24370 2008-05-10  Bruno Haible  <bruno@clisp.org>
24371
24372         Split up 'linebreak' module.
24373         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24374         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24375         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24376         modifications.
24377         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24378         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24379         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24380         lib/linebreak.c.
24381         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24382         lib/linebreak.c.
24383         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24384         lib/linebreak.c.
24385         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24386         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24387         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24388         lib/linebreak.c.
24389         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24390         lib/linebreak.c.
24391         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24392         lib/linebreak.c.
24393         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24394         lib/linebreak.c.
24395         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24396         lib/linebreak.c.
24397         * modules/unilbrk/base: New file.
24398         * modules/unilbrk/tables: New file.
24399         * modules/unilbrk/u8-possible-linebreaks: New file.
24400         * modules/unilbrk/u16-possible-linebreaks: New file.
24401         * modules/unilbrk/u32-possible-linebreaks: New file.
24402         * modules/unilbrk/ulc-common: New file.
24403         * modules/unilbrk/ulc-possible-linebreaks: New file.
24404         * modules/unilbrk/u8-width-linebreaks: New file.
24405         * modules/unilbrk/u16-width-linebreaks: New file.
24406         * modules/unilbrk/u32-width-linebreaks: New file.
24407         * modules/unilbrk/ulc-width-linebreaks: New file.
24408         * lib/linebreak.h: Remove file.
24409         * lib/linebreak.c: Remove file.
24410         * m4/linebreak.m4: Remove file.
24411         * modules/linebreak: Remove file.
24412         * NEWS: Mention the changes.
24413
24414 2008-05-09  Eric Blake  <ebb9@byu.net>
24415
24416         Add xmemdup0.
24417         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24418         implementation.
24419         * lib/xmalloc.c (xmemdup0): New C implementation.
24420
24421 2008-05-08  Bruno Haible  <bruno@clisp.org>
24422
24423         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24424
24425 2008-05-07  Eric Blake  <ebb9@byu.net>
24426
24427         Support cross-compilation of <wctype.h>.
24428         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24429         AC_CACHE_CHECK.
24430
24431 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24432
24433         * build-aux/vc-list-files: Add support for bzr.
24434
24435 2008-05-03  Jim Meyering  <meyering@redhat.com>
24436
24437         avoid failed assertion with tight malloc
24438         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24439
24440 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24441
24442         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24443         are needed from arpa/inet.h.
24444         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24445         Reported by Bruno Haible.
24446
24447 2008-05-02  Jim Meyering  <meyering@redhat.com>
24448
24449         avoid compilation error on FreeBSD 6
24450         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24451
24452 2008-05-01  Jim Meyering  <meyering@redhat.com>
24453
24454         useless-if-before-free: correct --help's exit status description
24455         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24456         for one or more matches, etc.  Reported by Bruno Haible.
24457
24458         vc-list-files: make the stand-alone gnulib test work
24459         * modules/vc-list-files-tests (configure.ac):
24460         Define and AC_SUBST abs_aux_dir.
24461         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24462         $(abs_top_srcdir) to each script and having each of them
24463         duplicate the work of setting PATH, set PATH here, using
24464         the new variable, abs_aux_dir instead.
24465         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24466         * tests/test-vc-list-files-git.sh: Likewise.
24467         Reported by Bruno Haible.
24468
24469 2008-05-01  Bruno Haible  <bruno@clisp.org>
24470
24471         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24472         reallocation. Rename 'done' to 'found_delimiter'.
24473
24474 2008-05-01  Jim Meyering  <meyering@redhat.com>
24475
24476         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24477         * build-aux/vc-list-files: Use `...`, not $(...).
24478
24479 2008-04-30  Jim Meyering  <meyering@redhat.com>
24480
24481         add tests for vc-list-files
24482         * modules/vc-list-files-tests: New module.
24483         * tests/test-vc-list-files-cvs.sh: New file.
24484         * tests/test-vc-list-files-git.sh: New file.
24485
24486         avoid a warning from gcc
24487         * lib/getndelim2.c (IF_LINT): Define.
24488         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24489
24490         vc-list-files: work properly with build-aux/cvsu, too
24491         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24492         to all cvs-based clauses.
24493
24494         vc-list-files: work properly in the CVS+awk case, too
24495         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24496
24497         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24498         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24499         take more than one file argument, so .  Add quotes, just in case $dir
24500         ever contains a shell meta-character.  Prompted by Soren Hansen in
24501         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24502
24503 2008-04-29  Eric Blake  <ebb9@byu.net>
24504
24505         Optimize getndelim2 to use block operations when possible.
24506         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24507         freadseek, and memchr2.
24508         * lib/getndelim2.c (getndelim2): Use them for block reads.
24509
24510 2008-04-29  Bruno Haible  <bruno@clisp.org>
24511
24512         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24513         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24514         * modules/inet_ntop (Depends-on): Add extensions.
24515         * modules/inet_pton (Depends-on): Likewise.
24516         Reported by Simon Josefsson.
24517
24518 2008-04-29  Jim Meyering  <meyering@redhat.com>
24519
24520         When the is more than one match in a block, match all of them.
24521         * build-aux/useless-if-before-free: Iterate through each block
24522         until there are no more matches.
24523
24524         Fix broken useless-if-before-free script.
24525         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24526         the expression to match cast of argument to free-like function.
24527
24528 2008-04-29  Eric Blake  <ebb9@byu.net>
24529
24530         Use new header.
24531         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24532
24533 2008-04-29  Jim Meyering  <meyering@redhat.com>
24534
24535         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24536         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24537         by gnulib to exist and to declare e.g., inet_ntop.
24538         Don't include "inet_ntop.h", now removed.
24539
24540         * m4/arpa_inet_h.m4: Remove trailing blanks.
24541
24542 2008-04-29  Eric Blake  <ebb9@byu.net>
24543
24544         Silence valgrind on safe reads beyond potential array bounds.
24545         * lib/rawmemchr.valgrind: New file.
24546         * lib/strchrnul.valgrind: Likewise.
24547         * modules/rawmemchr (Files): Distribute new file.
24548         * modules/strchrnul (Files): Likewise.
24549         Suggested by Bruno Haible.
24550
24551 2008-04-29  Bruno Haible  <bruno@clisp.org>
24552
24553         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24554         (inet_ntop, inet_pton): Change portability warning's wording.
24555         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24556         Invoke gl_CHECK_NEXT_HEADERS.
24557         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24558         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24559         set ARPA_INET_H.
24560         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24561         * modules/arpa_inet (Description): No longer only for systems that
24562         lack it.
24563         (Depends-on): Add include_next.
24564         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24565         HAVE_ARPA_INET_H.
24566
24567 2008-04-29  Jim Meyering  <meyering@redhat.com>
24568
24569         * modules/mkdir (License): Re-license as LGPLv2+.
24570
24571 2008-04-29  Bruno Haible  <bruno@clisp.org>
24572
24573         * modules/rawmemchr (Maintainer): Set to Eric.
24574         * modules/strchrnul (Maintainer): Likewise.
24575
24576 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24577
24578         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24579         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24580
24581         * modules/arpa_inet (arpa/inet.h): Use them.
24582
24583 2008-04-28  Eric Blake  <ebb9@byu.net>
24584
24585         Test getndelim2.
24586         * modules/getndelim2-tests: New file.
24587         * tests/test-getndelim2.c: Likewise.
24588         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24589         stream.
24590         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24591
24592         * MODULES.html.sh: Document new module.
24593
24594 2008-04-20  Bruno Haible  <bruno@clisp.org>
24595
24596         * lib/c-stack.c (die): Use raise.
24597         * modules/c-stack (Depends-on): Add raise.
24598
24599 2008-04-28  Bruno Haible  <bruno@clisp.org>
24600
24601         Expect rpmatch to be declared.
24602         * lib/yesno.c (rpmatch): Remove declaration.
24603
24604         Declare rpmatch.
24605         * lib/stdlib.in.h (rpmatch): New declaration.
24606         * lib/rpmatch.c: Include <stdlib.h> first.
24607         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24608         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24610         HAVE_RPMATCH.
24611         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24613         (Include): Set to <stdlib.h>.
24614         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24615         HAVE_RPMATCH.
24616         * NEWS: Document the change.
24617
24618 2008-04-28  Bruno Haible  <bruno@clisp.org>
24619
24620         Change rpmatch to use nl_langinfo when appropriate.
24621         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24622         (N_): New macro.
24623         (localized_pattern): New function/macro.
24624         (try): Remove match, nomatch arguments. Copy the pattern into safe
24625         memory before caching it.
24626         (rpmatch): Use localized_pattern. Add translator comments.
24627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24628         Suggested by Eric Blake.
24629         * modules/rpmatch (Depends-on): Add stdbool.
24630
24631 2008-04-28  Eric Blake  <ebb9@byu.net>
24632
24633         Add rawmemchr module, matching glibc.
24634         * modules/string (Makefile.am): New indicator.
24635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24636         * lib/string.in.h (rawmemchr): Declare when appropriate.
24637         * modules/rawmemchr: New file.
24638         * m4/rawmemchr.m4: Likewise.
24639         * lib/rawmemchr.c: Likewise.
24640         * modules/rawmemchr-tests: Likewise.
24641         * tests/test-rawmemchr.c: Likewise.
24642         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24643         module.
24644         * modules/strchrnul (Depends-on): Add rawmemchr.
24645         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24646
24647         Whitespace cleanup.
24648         * tests/test-strchrnul.c: Reindent.
24649         * lib/strchrnul.c: Likewise.
24650
24651         Optimize and test strchrnul.
24652         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24653         * modules/strchrnul-tests: New file.
24654         * tests/test-strchrnul.c: Likewise.
24655
24656         Remove intprops dependency.
24657         * modules/memchr (Depends-on): Remove intprops.
24658         * modules/memrchr (Depends-on): Likewise.
24659         * modules/memchr2 (Depends-on): Likewise.
24660         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24661         * lib/memrchr.c (__memrchr): Likewise.
24662         * lib/memrchr2.c (memchr2): Likewise.
24663         Reported by Simon Josefsson.
24664
24665 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24666
24667         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24668         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24669
24670 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24671
24672         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24673
24674         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24675
24676         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24677
24678         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24679         declarations.
24680         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24681
24682         * m4/inet_pton.m4: Don't check for header files.
24683
24684         * m4/inet_ntop.m4: Don't check for header files.
24685
24686 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24687
24688         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24689         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24690         trigger for cygwin).
24691         Reported by Bruno Haible  <bruno@clisp.org>.
24692
24693 2008-04-28  Bruno Haible  <bruno@clisp.org>
24694
24695         * doc/posix-functions/strdup.texi: Mention mingw problem.
24696
24697 2008-04-27  Bruno Haible  <bruno@clisp.org>
24698
24699         * modules/stat-time-tests (Depends-on): Add sleep.
24700         * tests/test-stat-time.c (force_unlink): New function.
24701         (cleanup): Use it.
24702         (test_mtime): Remove the ctime related tests.
24703         (test_ctime): New function, containing the ctime related tests.
24704         (main): Call test_ctime, except on native Windows platforms.
24705
24706 2008-04-27  Bruno Haible  <bruno@clisp.org>
24707
24708         * lib/rpmatch.c (rpmatch): Add some comments.
24709         Reported by James Youngman <jay@gnu.org>.
24710
24711 2008-04-27  Bruno Haible  <bruno@clisp.org>
24712
24713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24714         quiet NaNs.
24715
24716 2008-04-27  Bruno Haible  <bruno@clisp.org>
24717
24718         Make test-yesno.sh work on mingw.
24719         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24720         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24721         (main): Set stdin to binary mode.
24722         * modules/yesno-tests (Depends-on): Add binary-io.
24723
24724 2008-04-27  Bruno Haible  <bruno@clisp.org>
24725
24726         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24727         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24728         argument that lie outside the IEEE 854 domain.
24729         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24730         (gl_ISFINITE): Use it.
24731         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24732
24733 2008-04-27  Bruno Haible  <bruno@clisp.org>
24734
24735         Allow local renaming in config.h.
24736         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24737
24738 2008-04-27  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/memchr.c (__memchr): Change type of 'i'.
24741         * lib/memchr2.c (memchr2): Likewise.
24742
24743 2008-04-26  Eric Blake  <ebb9@byu.net>
24744         and Bruno Haible  <bruno@clisp.org>
24745
24746         Optimize and test memrchr.
24747         * modules/memrchr (Depends-on): Add intprops.
24748         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24749         * modules/memrchr-tests: New file.
24750         * tests/test-memrchr.c: New file.
24751
24752 2008-04-26  Bruno Haible  <bruno@clisp.org>
24753
24754         Add tentative support for DragonFly BSD.
24755         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24756         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24757         fp.
24758         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24759         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24760         * lib/fpurge.c (fpurge): Likewise.
24761         * lib/freadable.c (freaadable): Likewise.
24762         * lib/freadahead.c (freadahead): Likewise.
24763         * lib/freading.c (freading): Likewise.
24764         * lib/freadptr.c (freadptr): Likewise.
24765         * lib/freadseek.c (freadptrinc): Likewise.
24766         * lib/fseeko.c (fseeko): Likewise.
24767         * lib/fseterr.c (fseterr): Likewise.
24768         * lib/fwritable.c (fwritable): Likewise.
24769         * lib/fwriting.c (fwriting): Likewise.
24770
24771 2008-04-26  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/stdio-impl.h: New file.
24774         * lib/fbufmode.c: Include stdio-impl.h.
24775         (fbufmode): Use fp_, remove redundant #defines.
24776         * lib/fflush.c: Include stdio-impl.h.
24777         (clear_ungetc_buffer): Remove redundant #defines.
24778         * lib/fpurge.c: Include stdio-impl.h.
24779         (fpurge): Remove redundant #defines.
24780         * lib/freadable.c: Include stdio-impl.h.
24781         (freadable): Remove redundant #defines.
24782         * lib/freadahead.c: Include stdio-impl.h.
24783         (freadahead): Remove redundant #defines.
24784         * lib/freading.c: Include stdio-impl.h.
24785         (freading): Remove redundant #defines.
24786         * lib/freadptr.c: Include stdio-impl.h.
24787         (freadptr): Remove redundant #defines.
24788         * lib/freadseek.c: Include stdio-impl.h.
24789         (freadptrinc): Remove redundant #defines.
24790         * lib/fseeko.c: Include stdio-impl.h.
24791         (rpl_fseeko): Remove redundant #defines.
24792         * lib/fseterr.c: Include stdio-impl.h.
24793         (fseterr): Remove redundant #defines.
24794         * lib/fwritable.c: Include stdio-impl.h.
24795         (fwritable: Remove redundant #defines.
24796         * lib/fwriting.c: Include stdio-impl.h.
24797         (fwriting): Remove redundant #defines.
24798         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24799         * modules/fflush (Files): Likewise.
24800         * modules/fpurge (Files): Likewise.
24801         * modules/freadable (Files): Likewise.
24802         * modules/freadahead (Files): Likewise.
24803         * modules/freading (Files): Likewise.
24804         * modules/freadptr (Files): Likewise.
24805         * modules/freadseek (Files): Likewise.
24806         * modules/fseeko (Files): Likewise.
24807         * modules/fseterr (Files): Likewise.
24808         * modules/fwritable (Files): Likewise.
24809         * modules/fwriting (Files): Likewise.
24810
24811 2008-04-26  Bruno Haible  <bruno@clisp.org>
24812
24813         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24814         restore_seek_optimization, update_fpos_cache): New functions, extracted
24815         from rpl_fflush.
24816         (rpl_fflush): Use them.
24817         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24818         (gl_REPLACE_FFLUSH): Use it.
24819
24820 2008-04-26  Bruno Haible  <bruno@clisp.org>
24821
24822         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24823         on Solaris.
24824         * tests/test-xstrtoimax.sh: Likewise.
24825         * tests/test-xstrtoumax.sh: Likewise.
24826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24827
24828 2008-04-26  Bruno Haible  <bruno@clisp.org>
24829
24830         * modules/memchr-tests: New file.
24831         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24832
24833 2008-04-26  Eric Blake  <ebb9@byu.net>
24834             Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/memchr.c: Include intprops.h.
24837         (__memchr): Optimize parallel detection of matching bytes. Rename local
24838         variables. Add explanatory comments.
24839
24840 2008-04-26  Bruno Haible  <bruno@clisp.org>
24841
24842         Fix module 'memchr', broken since 2000-10-28.
24843         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24844
24845 2008-04-26  Bruno Haible  <bruno@clisp.org>
24846
24847         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24848         comments.
24849
24850 2008-04-25  Eric Blake  <ebb9@byu.net>
24851
24852         Use native fstatat on cygwin 1.7.0.
24853         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24854         first.
24855
24856 2008-04-23  Eric Blake  <ebb9@byu.net>
24857
24858         Improve memchr2 performance.
24859         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24860         NUL bytes.
24861         * modules/memchr2 (Depends-on): Use intprops.h.
24862
24863 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24864
24865         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24866         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24867         <blp@cs.stanford.edu>.
24868
24869 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24870
24871         * lib/arpa_inet.in.h: New file.
24872
24873         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24874         (Makefile.am): Sed in substitute header file.
24875
24876         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24877         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24878
24879         * modules/inet_ntop (configure.ac): Use
24880         gl_ARPA_INET_MODULE_INDICATOR.
24881
24882         * modules/inet_pton (configure.ac): Use
24883         gl_ARPA_INET_MODULE_INDICATOR.
24884
24885 2008-04-22  Jim Meyering  <meyering@redhat.com>
24886
24887         * modules/verify (License): Re-license as LGPLv2+.
24888
24889 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24890
24891         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24892         parameter to void* as per POSIX standard (MinGW uses char*).
24893
24894 2008-04-21  Bruno Haible  <bruno@clisp.org>
24895
24896         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24897         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24898         Define to replacements if REPLACE_ISWCNTRL is 1.
24899         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24900         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24901         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24902         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24903         what it fixes.
24904         * doc/posix-functions/iswalpha.texi: Likewise.
24905         * doc/posix-functions/iswblank.texi: Likewise.
24906         * doc/posix-functions/iswcntrl.texi: Likewise.
24907         * doc/posix-functions/iswdigit.texi: Likewise.
24908         * doc/posix-functions/iswgraph.texi: Likewise.
24909         * doc/posix-functions/iswlower.texi: Likewise.
24910         * doc/posix-functions/iswprint.texi: Likewise.
24911         * doc/posix-functions/iswpunct.texi: Likewise.
24912         * doc/posix-functions/iswspace.texi: Likewise.
24913         * doc/posix-functions/iswupper.texi: Likewise.
24914         * doc/posix-functions/iswxdigit.texi: Likewise.
24915         Reported by Alain Guibert.
24916
24917 2008-04-21  Bruno Haible  <bruno@clisp.org>
24918
24919         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24920         Patch by Alain Guibert.
24921
24922 2008-04-21  Bruno Haible  <bruno@clisp.org>
24923
24924         Fix test failures on mingw.
24925         * tests/test-xstrtol.c (print_no_progname): New function.
24926         (main): Install it in error_print_progname hook.
24927         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24928         * tests/test-xstrtoimax.sh: Likewise.
24929         * tests/test-xstrtoumax.sh: Likewise.
24930
24931 2008-04-21  Bruno Haible  <bruno@clisp.org>
24932
24933         Fix test failure on mingw.
24934         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24935
24936 2008-04-21  Bruno Haible  <bruno@clisp.org>
24937
24938         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24939         Actually assign a value.
24940
24941 2008-04-20  Bruno Haible  <bruno@clisp.org>
24942
24943         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24944         take 2.
24945         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24946         'canonicalize-lgpl' module is also used.
24947         * lib/canonicalize-lgpl.c: Undo last change.
24948         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24949
24950 2008-04-20  Bruno Haible  <bruno@clisp.org>
24951
24952         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24953         config.h. Provide _mkdir based fallback for mingw.
24954         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24955         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24956         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24957         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24958         rather than defining mkdir in config.h.
24959         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24960         (gl_SYS_STAT_H_DEFAULTS): New macro.
24961         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24962         HAVE_IO_H any more.
24963         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24964         HAVE_DECL_MKDIR and HAVE_IO_H.
24965
24966 2008-04-20  Bruno Haible  <bruno@clisp.org>
24967
24968         * lib/isapipe.c: Port to native Windows platforms.
24969
24970 2008-04-20  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24973
24974 2008-04-21  Eric Blake  <ebb9@byu.net>
24975
24976         Work around preprocessors that don't handle UINTMAX_MAX.
24977         * lib/memchr2.c (memchr2): Avoid embedded #if.
24978         Reported by Alain Guibert, fix suggested by Bruno Haible.
24979
24980 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24981
24982         * doc/posix-functions/strftime.texi (strftime): Explain better
24983         Windows incompatibility.  Suggested by Micah Cowan
24984         <micah@cowan.name>.
24985
24986 2008-04-20  Bruno Haible  <bruno@clisp.org>
24987
24988         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24989         unistr/u8-mblen.
24990
24991 2008-04-20  Bruno Haible  <bruno@clisp.org>
24992
24993         Fix test failure on platforms with non-GNU iconv.
24994         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24995         (U_TO_U8): Use it, rather than u16_to_u8.
24996         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24997         units at the end of the input string.
24998         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24999
25000 2008-04-20  Bruno Haible  <bruno@clisp.org>
25001
25002         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25003         when the resulting length is 0.
25004         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25005
25006 2008-04-20  Bruno Haible  <bruno@clisp.org>
25007
25008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25009         works.
25010         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25011
25012 2008-04-20  Bruno Haible  <bruno@clisp.org>
25013
25014         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25015         * modules/tsearch-tests (configure.ac): Test for initstate function.
25016
25017 2008-04-20  Bruno Haible  <bruno@clisp.org>
25018
25019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25020         for nlink_t if missing.
25021         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25022
25023 2008-04-19  Bruno Haible  <bruno@clisp.org>
25024
25025         Work around snprintf bug on Linux libc5.
25026         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25028         gl_SNPRINTF_SIZE1.
25029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25030         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25031         that test failed.
25032         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25033         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25034         * modules/snprintf (Files): Add m4/printf.m4.
25035         * modules/vsnprintf (Files): Likewise.
25036         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25037         * doc/posix-functions/vsnprintf.texi: Likewise.
25038
25039 2008-04-19  Bruno Haible  <bruno@clisp.org>
25040
25041         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25042         from 0.0058 to less than 10^-7.
25043
25044 2008-04-19  Bruno Haible  <bruno@clisp.org>
25045
25046         Fix rounding when a precision is given.
25047         * lib/vasnprintf.c (is_borderline): New function.
25048         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25049         9...9x.
25050         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25051         %e, %g.
25052         * tests/test-vasprintf-posix.c (test_function): Likewise.
25053         * tests/test-snprintf-posix.h (test_function): Likewise.
25054         * tests/test-sprintf-posix.h (test_function): Likewise.
25055         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25056         * tests/test-printf-posix.h (test_function): Likewise.
25057         * tests/test-printf-posix.output: Update.
25058         Reported by John Darrington <john@darrington.wattle.id.au> via
25059         Ben Pfaff <blp@cs.stanford.edu>.
25060
25061 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25062
25063         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25064         Suggested by Bruno Haible <bruno@clisp.org>.
25065
25066 2008-04-17  Bruno Haible  <bruno@clisp.org>
25067
25068         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25069         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25070         implementation.
25071         Patch by Bruce Merry <bmerry@gmail.com>.
25072
25073 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25074
25075         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25076         doesn't work under Windows.
25077
25078 2008-04-16  Bruno Haible  <bruno@clisp.org>
25079
25080         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25081         New macros.
25082         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25083         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25084         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25085         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25086         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25087         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25088         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25089         macros.
25090         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25091         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25092         Northern Sotho, Uighur.
25093
25094 2008-04-16  Bruno Haible  <bruno@clisp.org>
25095
25096         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25097         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25098         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25099         Reported by Daniel Bergström <daniel@octocode.com>.
25100
25101 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25102             Bruno Haible  <bruno@clisp.org>
25103
25104         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25105         function.
25106         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25107         New functions, mostly extracted from gl_locale_name_default.
25108         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25109
25110 2008-04-16  Eric Blake  <ebb9@byu.net>
25111
25112         Adjust strtod detection to catch glibc 2.7 bug.
25113         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25114         Reported by John Gatewood Ham.
25115
25116 2008-04-16  Bruno Haible  <bruno@clisp.org>
25117
25118         Add tentative support for Linux libc5.
25119         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25120         * lib/fpurge.c (fpurge): Likewise.
25121         * lib/freadable.c (freadable): Likewise.
25122         * lib/freadahead.c (freadahead): Likewise.
25123         * lib/freading.c (freading): Likewise.
25124         * lib/freadptr.c (freadptr): Likewise.
25125         * lib/freadseek.c (freadptrinc): Likewise.
25126         * lib/fseeko.c (rpl_fseeko): Likewise.
25127         * lib/fseterr.c (fseterr): Likewise.
25128         * lib/fwritable.c (fwritable): Likewise.
25129         * lib/fwriting.c (fwriting): Likewise.
25130         Reported by Alain Guibert <alguibert+bts@free.fr>.
25131
25132 2008-04-15  Bruno Haible  <bruno@clisp.org>
25133
25134         * modules/mathl (configure.ac): Define module indicator.
25135
25136 2008-04-15  Bruno Haible  <bruno@clisp.org>
25137
25138         * lib/logl.c (logl): Remove unused variables.
25139
25140 2008-04-15  Bruno Haible  <bruno@clisp.org>
25141
25142         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25143         fails.
25144
25145 2008-04-15  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/trim.c (trim2): Fix argument of isspace() macro.
25148
25149 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25150
25151         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25152         to 0.
25153         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25154
25155 2008-04-14  Bruno Haible  <bruno@clisp.org>
25156
25157         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25158         AC_LANG_PROGRAM argument.
25159         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25160         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25162         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25163         * m4/math_h.m4 (gl_MATH_H): Likewise.
25164         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25166         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25167         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25168         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25169         * m4/regex.m4 (gl_REGEX): Likewise.
25170         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25171         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25173         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25174         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25178
25179 2008-04-14  Jim Meyering  <meyering@redhat.com>
25180
25181         test-strtod: fix typos: s/abs/fabs/
25182         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25183
25184 2008-04-13  Bruno Haible  <bruno@clisp.org>
25185
25186         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25187         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25188         module is also used and while not building the reloc-wrapper.
25189
25190 2008-04-13  Bruno Haible  <bruno@clisp.org>
25191
25192         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25193
25194 2008-04-13  Bruno Haible  <bruno@clisp.org>
25195
25196         Fix AIX compilation failure introduced on 2008-04-02.
25197         * tests/test-frexp.c (exp): Undefine before redefining.
25198         * tests/test-frexpl.c (exp): Likewise.
25199
25200 2008-04-13  Bruno Haible  <bruno@clisp.org>
25201
25202         Work around a HP-UX stdio bug.
25203         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25204         * tests/test-ftello.c (main): Likewise.
25205         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25206         * doc/posix-functions/ftello.texi: Likewise.
25207
25208 2008-04-13  Bruno Haible  <bruno@clisp.org>
25209
25210         Make test-signbit pass on HP-UX/hppa.
25211         * tests/test-signbit.c (minus_zerol): New variable.
25212         (test_signbitl): Use it.
25213
25214 2008-04-13  Bruno Haible  <bruno@clisp.org>
25215
25216         Make truncl work on OSF/1 4.0.
25217         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25218         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25219         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25221         HAVE_DECL_TRUNCL.
25222         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25223         HAVE_DECL_TRUNCL.
25224         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25225
25226 2008-04-13  Bruno Haible  <bruno@clisp.org>
25227
25228         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25229
25230 2008-04-13  Bruno Haible  <bruno@clisp.org>
25231
25232         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25233         expression, so as to avoid HP-UX 11 cc compiler bug.
25234
25235 2008-04-13  Bruno Haible  <bruno@clisp.org>
25236
25237         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25238
25239 2008-04-13  Bruno Haible  <bruno@clisp.org>
25240
25241         * lib/git-merge-changelog.c: Remove empty declaration outside of
25242         functions.
25243
25244 2008-04-13  Bruno Haible  <bruno@clisp.org>
25245
25246         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25247
25248 2008-04-13  Bruno Haible  <bruno@clisp.org>
25249
25250         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25251         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25253         also if it exists but lacks definitions of the SHUT_* macros.
25254         * modules/sys_socket (Description): Update.
25255         Reported by Elbert Pol <e.pol@chello.nl>.
25256
25257 2008-04-13  Bruno Haible  <bruno@clisp.org>
25258
25259         * lib/localcharset.c (OS2): Don't redefine if already defined.
25260         Reported by Elbert Pol <e.pol@chello.nl>.
25261
25262 2008-04-13  Bruno Haible  <bruno@clisp.org>
25263
25264         * lib/binary-io.h [__EMX__]: Include <io.h>.
25265         Reported by Elbert Pol <e.pol@chello.nl>.
25266
25267 2008-04-12  Bruno Haible  <bruno@clisp.org>
25268
25269         * lib/fpucw.h: Enable the definitions also for x86_64.
25270         Needed for NetBSD/x86_64.
25271         Reported by Thomas Klausner <tk@giga.or.at>.
25272
25273 2008-04-12  Bruno Haible  <bruno@clisp.org>
25274
25275         * tests/test-strtod.c: Include isnand.h.
25276         (main): Use isnand instead of isnan.
25277         Reported by Jim Meyering.
25278
25279 2008-04-12  Bruno Haible  <bruno@clisp.org>
25280
25281         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25282         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25283
25284 2008-04-12  Jim Meyering  <meyering@redhat.com>
25285
25286         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25287
25288 2008-04-12  Bruno Haible  <bruno@clisp.org>
25289
25290         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25291         Reported by Elbert Pol <e.pol@chello.nl>.
25292
25293 2008-04-12  Eric Blake  <ebb9@byu.net>
25294
25295         Work around Solaris 10 math.h bug.
25296         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25297         (gl_MATH_H_DEFAULTS): Set up default.
25298         * modules/math (Makefile.am): Replace new indicators.
25299         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25300         * tests/test-math.c (main): Test this.
25301         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25302         * doc/posix-headers/math.texi (math.h): Mention bug.
25303         Reported by Nelson H. F. Beebe and Jim Meyering.
25304
25305 2008-04-11  Bruno Haible  <bruno@clisp.org>
25306
25307         Adapt to future versions of Apple GCC.
25308         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25309         Reported by Peter O'Gorman <peter@pogma.com>.
25310
25311 2008-04-11  Bruno Haible  <bruno@clisp.org>
25312
25313         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25314
25315 2008-04-11  Bruno Haible  <bruno@clisp.org>
25316
25317         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25318
25319         * modules/getaddrinfo-tests (Makefile.am): Define
25320         test_getaddrinfo_LDADD.
25321
25322 2008-04-11  Bruno Haible  <bruno@clisp.org>
25323
25324         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25325         (init): Fix syntax error.
25326         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25327         is declared.
25328
25329 2008-04-11  Bruno Haible  <bruno@clisp.org>
25330
25331         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25332         * modules/glob (Depends-on): Add stdbool.
25333
25334 2008-04-11  Bruno Haible  <bruno@clisp.org>
25335
25336         * lib/trim.c: Include <string.h>.
25337
25338 2008-04-11  Eric Blake  <ebb9@byu.net>
25339
25340         Avoid compile failure on OS/2.
25341         * lib/regex_internal.h (internal_function): Disable optimization
25342         on OS/2 (__EMX__), where it caused compiler error.
25343         Reported by Elbert Pol.
25344
25345 2008-04-11  Bruno Haible  <bruno@clisp.org>
25346
25347         Flush the standard error stream before aborting. Needed on mingw.
25348         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25349         * tests/test-array_list.c (ASSERT): Likewise.
25350         * tests/test-array_oset.c (ASSERT): Likewise.
25351         * tests/test-avltree_list.c (ASSERT): Likewise.
25352         * tests/test-avltree_oset.c (ASSERT): Likewise.
25353         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25354         * tests/test-binary-io.c (ASSERT): Likewise.
25355         * tests/test-byteswap.c (ASSERT): Likewise.
25356         * tests/test-c-ctype.c (ASSERT): Likewise.
25357         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25358         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25359         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25360         * tests/test-c-strstr.c (ASSERT): Likewise.
25361         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25362         * tests/test-canonicalize.c (ASSERT): Likewise.
25363         * tests/test-carray_list.c (ASSERT): Likewise.
25364         * tests/test-ceilf1.c (ASSERT): Likewise.
25365         * tests/test-ceilf2.c (ASSERT): Likewise.
25366         * tests/test-ceill.c (ASSERT): Likewise.
25367         * tests/test-count-one-bits.c (ASSERT): Likewise.
25368         * tests/test-fbufmode.c (ASSERT): Likewise.
25369         * tests/test-fflush2.c (ASSERT): Likewise.
25370         * tests/test-floorf1.c (ASSERT): Likewise.
25371         * tests/test-floorf2.c (ASSERT): Likewise.
25372         * tests/test-floorl.c (ASSERT): Likewise.
25373         * tests/test-fopen.c (ASSERT): Likewise.
25374         * tests/test-fpending.c (ASSERT): Likewise.
25375         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25376         * tests/test-fpurge.c (ASSERT): Likewise.
25377         * tests/test-freadable.c (ASSERT): Likewise.
25378         * tests/test-freadahead.c (ASSERT): Likewise.
25379         * tests/test-freading.c (ASSERT): Likewise.
25380         * tests/test-freadptr.c (ASSERT): Likewise.
25381         * tests/test-freadptr2.c (ASSERT): Likewise.
25382         * tests/test-freadseek.c (ASSERT): Likewise.
25383         * tests/test-freopen.c (ASSERT): Likewise.
25384         * tests/test-frexp.c (ASSERT): Likewise.
25385         * tests/test-frexpl.c (ASSERT): Likewise.
25386         * tests/test-fseek.c (ASSERT): Likewise.
25387         * tests/test-fseeko.c (ASSERT): Likewise.
25388         * tests/test-fstrcmp.c (ASSERT): Likewise.
25389         * tests/test-ftell.c (ASSERT): Likewise.
25390         * tests/test-ftello.c (ASSERT): Likewise.
25391         * tests/test-func.c (ASSERT): Likewise.
25392         * tests/test-fwritable.c (ASSERT): Likewise.
25393         * tests/test-fwriting.c (ASSERT): Likewise.
25394         * tests/test-getdelim.c (ASSERT): Likewise.
25395         * tests/test-getline.c (ASSERT): Likewise.
25396         * tests/test-i-ring.c (ASSERT): Likewise.
25397         * tests/test-iconv-utf.c (ASSERT): Likewise.
25398         * tests/test-iconv.c (ASSERT): Likewise.
25399         * tests/test-isfinite.c (ASSERT): Likewise.
25400         * tests/test-isnand.c (ASSERT): Likewise.
25401         * tests/test-isnanf.c (ASSERT): Likewise.
25402         * tests/test-isnanl.h (ASSERT): Likewise.
25403         * tests/test-ldexpl.c (ASSERT): Likewise.
25404         * tests/test-linked_list.c (ASSERT): Likewise.
25405         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25406         * tests/test-localename.c (ASSERT): Likewise.
25407         * tests/test-lseek.c (ASSERT): Likewise.
25408         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25409         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25410         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25411         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25412         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25413         * tests/test-mbschr.c (ASSERT): Likewise.
25414         * tests/test-mbscspn.c (ASSERT): Likewise.
25415         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25416         * tests/test-mbspbrk.c (ASSERT): Likewise.
25417         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25418         * tests/test-mbsrchr.c (ASSERT): Likewise.
25419         * tests/test-mbsspn.c (ASSERT): Likewise.
25420         * tests/test-mbsstr1.c (ASSERT): Likewise.
25421         * tests/test-mbsstr2.c (ASSERT): Likewise.
25422         * tests/test-mbsstr3.c (ASSERT): Likewise.
25423         * tests/test-memchr2.c (ASSERT): Likewise.
25424         * tests/test-memmem.c (ASSERT): Likewise.
25425         * tests/test-open.c (ASSERT): Likewise.
25426         * tests/test-printf-frexp.c (ASSERT): Likewise.
25427         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25428         * tests/test-printf-posix.c (ASSERT): Likewise.
25429         * tests/test-quotearg.c (ASSERT): Likewise.
25430         * tests/test-rbtree_list.c (ASSERT): Likewise.
25431         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25432         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25433         * tests/test-round1.c (ASSERT): Likewise.
25434         * tests/test-roundf1.c (ASSERT): Likewise.
25435         * tests/test-roundl.c (ASSERT): Likewise.
25436         * tests/test-signbit.c (ASSERT): Likewise.
25437         * tests/test-sleep.c (ASSERT): Likewise.
25438         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25439         * tests/test-snprintf.c (ASSERT): Likewise.
25440         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25441         * tests/test-stat-time.c (ASSERT): Likewise.
25442         * tests/test-strcasestr.c (ASSERT): Likewise.
25443         * tests/test-strerror.c (ASSERT): Likewise.
25444         * tests/test-striconv.c (ASSERT): Likewise.
25445         * tests/test-striconveh.c (ASSERT): Likewise.
25446         * tests/test-striconveha.c (ASSERT): Likewise.
25447         * tests/test-strsignal.c (ASSERT): Likewise.
25448         * tests/test-strstr.c (ASSERT): Likewise.
25449         * tests/test-strtod.c (ASSERT): Likewise.
25450         * tests/test-trunc1.c (ASSERT): Likewise.
25451         * tests/test-trunc2.c (ASSERT): Likewise.
25452         * tests/test-truncf1.c (ASSERT): Likewise.
25453         * tests/test-truncf2.c (ASSERT): Likewise.
25454         * tests/test-truncl.c (ASSERT): Likewise.
25455         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25456         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25457         * tests/test-vasnprintf.c (ASSERT): Likewise.
25458         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25459         * tests/test-vasprintf.c (ASSERT): Likewise.
25460         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25461         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25462         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25463         * tests/test-vsnprintf.c (ASSERT): Likewise.
25464         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25465         * tests/test-wcwidth.c (ASSERT): Likewise.
25466         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25467         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25468         * tests/test-xvasprintf.c (ASSERT): Likewise.
25469         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25470         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25471         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25472         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25473         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25474         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25475         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25476         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25477         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25478         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25479         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25480         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25481         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25482         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25483         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25484         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25485         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25486         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25487         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25488         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25489         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25490         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25491         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25492         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25493         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25494         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25495         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25496         * tests/unictype/test-combining.c (ASSERT): Likewise.
25497         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25498         * tests/unictype/test-digit.c (ASSERT): Likewise.
25499         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25500         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25501         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25502         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25503         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25504         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25505         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25506         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25507         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25508         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25509         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25510         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25511         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25512         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25513         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25514         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25515         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25516         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25517         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25518         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25519         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25520         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25521         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25522         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25523         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25524         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25525         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25526         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25527         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25528         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25529         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25530         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25531         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25532         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25533         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25534         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25535         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25536         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25537         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25538         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25539         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25540         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25541         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25542         Reported by Eric Blake.
25543
25544 2008-04-11  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/wchar.in.h: Tweak comment.
25547
25548 2008-04-11  Bruno Haible  <bruno@clisp.org>
25549
25550         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25551         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25552         gl_COMMON.
25553         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25554
25555 2008-04-11  Bruno Haible  <bruno@clisp.org>
25556
25557         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25558
25559 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25560
25561         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25562         of attempting to use non-existing /dev/*random.  Based on patch
25563         from Adam Strzelecki <ono@java.pl> in
25564         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25565
25566 2008-04-08  Bruno Haible  <bruno@clisp.org>
25567
25568         Add tentative support for emx+gcc.
25569         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25570         * lib/fpurge.c (fpurge): Likewise.
25571         * lib/freadable.c (freadable): Likewise.
25572         * lib/freadahead.c (freadahead): Likewise.
25573         * lib/freading.c (freading): Likewise.
25574         * lib/freadptr.c (freadptr): Likewise.
25575         * lib/freadseek.c (freadptrinc): Likewise.
25576         * lib/fseeko.c (rpl_fseeko): Likewise.
25577         * lib/fseterr.c (fseterr): Likewise.
25578         * lib/fwritable.c (fwritable): Likewise.
25579         * lib/fwriting.c (fwriting): Likewise.
25580         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25581
25582 2008-04-09  Eric Blake  <ebb9@byu.net>
25583
25584         Avoid some autoconf warnings.
25585         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25586         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25587         * m4/afs.m4 (gl_AFS): Likewise.
25588         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25589         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25591         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25592         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25593         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25594         (AC_CHECK_DECLS_ONCE): Likewise.
25595         Rename file...
25596         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25597         gnulib-tool requires autoconf 2.59 or better.
25598         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25599
25600 2008-04-08  Eric Blake  <ebb9@byu.net>
25601
25602         Use 'git describe --match' if present (added in git 1.5.5).
25603         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25604         if possible.
25605
25606 2008-04-08  Bruno Haible  <bruno@clisp.org>
25607
25608         Add tentative support for OpenServer.
25609         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25610         _ptr, _cnt.
25611         * lib/fpurge.c (fpurge): Likewise.
25612         * lib/freadable.c (freadable): Likewise.
25613         * lib/freadahead.c (freadahead): Likewise.
25614         * lib/freading.c (freading): Likewise.
25615         * lib/freadptr.c (freadptr): Likewise.
25616         * lib/freadseek.c (freadptrinc): Likewise.
25617         * lib/fseeko.c (rpl_fseeko): Likewise.
25618         * lib/fseterr.c (fseterr): Likewise.
25619         * lib/fwritable.c (fwritable): Likewise.
25620         * lib/fwriting.c (fwriting): Likewise.
25621         Reported by Roger Cornelius <rac@tenzing.org> and
25622         Brian K. White <brian@aljex.com>.
25623
25624 2008-04-06  Jim Meyering  <meyering@redhat.com>
25625
25626         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25627
25628 2008-04-06  Bruno Haible  <bruno@clisp.org>
25629
25630         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25631         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25632         * tests/test-printf-posix.sh: Likewise.
25633         * tests/test-vfprintf-posix.sh: Likewise.
25634         * tests/test-vprintf-posix.sh: Likewise.
25635         * tests/test-xprintf-posix.sh: Likewise.
25636
25637 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25638
25639         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25640         hide error from 'ls', needed on OS/2.
25641         Report by Elbert Pol <elbert.pol@gmail.com>.
25642
25643 2008-04-04  Eric Blake  <ebb9@byu.net>
25644
25645         Make test-fseeko.c failures meaningful.
25646         * tests/test-fseeko.c: Print line number on failure.
25647         * tests/test-fseek.c: Likewise.
25648         Reported by Nelson H. F. Beebe.
25649
25650         Improve strtod bug detection check.
25651         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25652         required for Solaris 10.
25653         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25654
25655 2008-04-04  Bruno Haible  <bruno@clisp.org>
25656
25657         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25658         by m4/setenv.m4.
25659
25660 2008-04-03  Eric Blake  <ebb9@byu.net>
25661
25662         Ensure sane .version contents.
25663         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25664         version string.
25665         * build-aux/git-version-gen: Improve documentation.
25666
25667         Make GNU make output nicer.
25668         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25669         MAKECMDGOALS to enforce message for all command line targets.  Set
25670         srcdir for use in maint.mk.
25671
25672         Another maintainer tweak.
25673         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25674         a target that regenerates version.
25675
25676 2008-04-03  Jim Meyering  <meyering@redhat.com>
25677
25678         vc-list-files: don't cause coreutils "make po-check" failure
25679         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25680
25681 2008-04-03  Eric Blake  <ebb9@byu.net>
25682
25683         Allow VPATH usage of vc-list-files.
25684         * build-aux/vc-list-files (scriptversion): Add timestamp.
25685         (options): Add --help, --version, -C.
25686         (CVS): Support installed cvsu.
25687
25688 2008-04-02  Bruno Haible  <bruno@clisp.org>
25689
25690         Avoid some "statement with no effect" warnings from gcc.
25691         * tests/test-wctype.c (main): Explicitly ignore unused values.
25692         Reported by Jim Meyering.
25693
25694 2008-04-02  Jim Meyering  <meyering@redhat.com>
25695
25696         Avoid some warnings from "gcc -Wshadow".
25697         * tests/test-frexp.c (exp): Define to a different identifier.
25698         * tests/test-frexpl.c (exp): Likewise.
25699
25700 2008-04-03  Jim Meyering  <meyering@redhat.com>
25701
25702         bootstrap: remove dangling *.[ch] symlinks from lib
25703         * build-aux/bootstrap [dangling symlink removal]: Move find's
25704         -depth option to precede all others, to avoid a warning.
25705         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25706
25707 2008-04-02  Bruno Haible  <bruno@clisp.org>
25708
25709         Avoid some warnings from "gcc -Wshadow".
25710         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25711         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25712         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25713         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25714         Reported by Jim Meyering.
25715
25716 2008-04-01  Bruno Haible  <bruno@clisp.org>
25717
25718         Fix test to work on IRIX 6.5 with cc.
25719         * tests/test-math.c (numeric_equal): New function.
25720         (main): Use it.
25721
25722 2008-04-01  Bruno Haible  <bruno@clisp.org>
25723
25724         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25725
25726 2008-04-01  Bruno Haible  <bruno@clisp.org>
25727
25728         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25729         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25730         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25731         (Depends-on): Remove math.
25732
25733         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25734         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25735         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25736         (Depends-on): Remove math.
25737
25738         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25739         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25740         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25741         (Depends-on): Remove math.
25742         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25743         (Depends-on): Remove math.
25744
25745         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25746         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25747         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25748         (Depends-on): Remove math.
25749         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25750         (Depends-on): Remove math.
25751
25752         * tests/test-round1.c: Include nan.h.
25753         (main): Use NaNd instead of NAN.
25754         * modules/round-tests (Files): Add tests/nan.h.
25755
25756         * tests/test-trunc1.c: Include nan.h.
25757         (main): Use NaNd instead of NAN.
25758         * modules/trunc-tests (Files): Add tests/nan.h.
25759
25760         * tests/test-roundf1.c: Include nan.h.
25761         (main): Use NaNf instead of NAN.
25762         * modules/roundf-tests (Files): Add tests/nan.h.
25763
25764         * tests/test-truncf1.c: Include nan.h.
25765         (main): Use NaNf instead of NAN.
25766         * modules/truncf-tests (Files): Add tests/nan.h.
25767
25768         * tests/test-ceilf1.c: Include nan.h.
25769         (main): Use NaNf instead of NAN.
25770         * modules/ceilf-tests (Files): Add tests/nan.h.
25771
25772         * tests/test-floorf1.c: Include nan.h.
25773         (main): Use NaNf instead of NAN.
25774         * modules/floorf-tests (Files): Add tests/nan.h.
25775
25776         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25777         (main): Use NaNf instead of NAN.
25778         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25779
25780         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25781         (main): Use NaNd instead of NAN.
25782         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25783
25784         * tests/test-frexp.c: Include nan.h.
25785         (main): Use NaNd instead of NAN.
25786         * modules/frexp-tests (Files): Add tests/nan.h.
25787
25788         * lib/isnan.c: Don't include <math.h>.
25789         (FUNC): Don't use NAN macro.
25790         * modules/isnand-nolibm (Depends-on): Remove math.
25791         * modules/isnanf-nolibm (Depends-on): Remove math.
25792         * modules/isnanl (Depends-on): Remove math.
25793         * modules/isnanl-nolibm (Depends-on): Remove math.
25794
25795         * tests/nan.h: New file.
25796
25797 2008-04-01  Eric Blake  <ebb9@byu.net>
25798
25799         Fix typos.
25800         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25801         values to be the right type.
25802
25803         For now, cater to gnulib strtod inaccuracies.
25804         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25805         fractional results.  While not as nice from a QoI perspective, it
25806         is a quicker patch than correctly implementing decimal to binary
25807         rounding.
25808
25809 2008-03-31  Eric Blake  <ebb9@byu.net>
25810
25811         Guarantee a definition of NAN.
25812         * lib/math.in.h (NAN): Define if missing.
25813         * tests/test-math.c (main): Test it.
25814         * doc/posix-headers/math.texi (math.h): Document this.
25815         * lib/isnan.c (rpl_isnand): Use it.
25816         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25817         * tests/test-floorf1.c (NaN): Likewise.
25818         * tests/test-frexp.c (NaN): Likewise.
25819         * tests/test-isnand.c (NaN): Likewise.
25820         * tests/test-isnanf.c (NaN): Likewise.
25821         * tests/test-round1.c (NaN): Likewise.
25822         * tests/test-roundf1.c (NaN): Likewise.
25823         * tests/test-snprintf-posix.h (NaN): Likewise.
25824         * tests/test-sprintf-posix.h (NaN): Likewise.
25825         * tests/test-trunc1.c (NaN): Likewise.
25826         * tests/test-truncf1.c (NaN): Likewise.
25827         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25828         * tests/test-vasprintf-posix.c (NaN): Likewise.
25829         * modules/isnand-nolibm (Depends-on): Add math.
25830         * modules/isnanf-nolibm (Depends-on): Likewise.
25831         * modules/isnanl (Depends-on): Likewise.
25832         * modules/isnanl-nolibm (Depends-on): Likewise.
25833         * modules/snprintf-posix-tests (Depends-on): Likewise.
25834         * modules/sprintf-posix-tests (Depends-on): Likewise.
25835         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25836         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25837         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25838         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25839
25840 2008-03-31  Bruno Haible  <bruno@clisp.org>
25841
25842         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25843         * doc/posix-functions/strtod.texi: Likewise.
25844
25845 2008-03-31  Bruno Haible  <bruno@clisp.org>
25846
25847         * tests/test-strtod.c (main): Don't use C99 syntax.
25848
25849 2008-03-31  Bruno Haible  <bruno@clisp.org>
25850
25851         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25852         Reported by Eric Blake.
25853
25854 2008-03-31  Jim Meyering  <meyering@redhat.com>
25855
25856         Don't compare actual signbit return values.
25857         * tests/test-strtod.c (main): Rather, compare only their
25858         zero/non-zero nature.
25859
25860 2008-03-31  Eric Blake  <ebb9@byu.net>
25861
25862         More strtod documentation.
25863         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25864         failures as distinct bugs.
25865
25866 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25869         Problem reported by Erik Benada in
25870         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25871
25872 2008-03-30  Bruno Haible  <bruno@clisp.org>
25873
25874         * tests/test-strtod.c: Add comments about which assertion fails on which
25875         platform.
25876         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25877
25878 2008-03-30  Eric Blake  <ebb9@byu.net>
25879
25880         Test signbit behavior on zeros.
25881         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25882         (test_signbitd, test_signbitl): Likewise.
25883
25884         More strtod touchups.
25885         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25886         sign of negative underflow, for now.  Use .5, not .1.
25887         * doc/posix-functions/strtod.texi (strtod): Mention these
25888         limitations.
25889         Reported by Jim Meyering.
25890
25891 2008-03-30  Bruno Haible  <bruno@clisp.org>
25892
25893         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25894         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25895
25896 2008-03-30  Bruno Haible  <bruno@clisp.org>
25897
25898         Avoid failure when attempting to return empty iconv results on some
25899         platforms.
25900         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25901         allocation, don't report ENOMEM when the resulting string is empty.
25902
25903 2008-03-30  Bruno Haible  <bruno@clisp.org>
25904
25905         Fix buffer overrun.
25906         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25907         Don't consider the width for tmp_length. Check count against tmp_length
25908         before doing the padding. Ensure enough allocation during padding.
25909
25910 2008-03-30  Eric Blake  <ebb9@byu.net>
25911
25912         strtod touchups.
25913         * lib/strtod.c (strtod): Avoid compiler warnings.
25914         Reported by Jim Meyering.
25915
25916 2008-03-30  Bruno Haible  <bruno@clisp.org>
25917
25918         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25919         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25920         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25921         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25922         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25923         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25924         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25925         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25926
25927         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25928         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25929         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25930         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25931         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25932         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25933         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25934         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25935
25936         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25937         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25938         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25939         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25940         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25941         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25942         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25943         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25944
25945         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25946         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25947
25948         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25949         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25950
25951         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25952         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25953
25954         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25956         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25957
25958         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25960         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25961
25962         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25963         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25964         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25965
25966         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25968         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25969
25970         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25971         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25973         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25974         (Depends-on): Add EOVERFLOW.
25975         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25976         (Depends-on): Add EOVERFLOW.
25977         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25978         (Depends-on): Add EOVERFLOW.
25979         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25980         (Depends-on): Add EOVERFLOW.
25981         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25982         (Depends-on): Add EOVERFLOW.
25983         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25984         (Depends-on): Add EOVERFLOW.
25985         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25986         (Depends-on): Add EOVERFLOW.
25987         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25988         (Depends-on): Add EOVERFLOW.
25989
25990         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25992         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25993
25994         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25996         * modules/snprintf (Depends-on): Add EOVERFLOW.
25997
25998         * lib/poll.c (EOVERFLOW): Remove fallback.
25999         * modules/poll (Depends-on): Add EOVERFLOW.
26000
26001         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26002         * modules/getugroups (Depends-on): Add EOVERFLOW.
26003
26004         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26005         * modules/getdelim (Depends-on): Add EOVERFLOW.
26006
26007         * lib/ftell.c (EOVERFLOW): Remove fallback.
26008         * modules/ftell (Depends-on): Add EOVERFLOW.
26009
26010         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26012         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26013
26014         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26015
26016         * modules/EOVERFLOW-tests: New file.
26017         * tests/test-EOVERFLOW.c: New file.
26018
26019         * modules/EOVERFLOW: New file.
26020         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26021
26022 2008-03-30  Bruno Haible  <bruno@clisp.org>
26023
26024         Fix bug introduced on 2007-06-10.
26025         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26026         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26027
26028 2008-03-30  Bruno Haible  <bruno@clisp.org>
26029
26030         Improve freadseek's efficiency after ungetc.
26031         * lib/freadseek.c: Include freadahead.h.
26032         (freadptrinc): New function, extracted from freadseek.
26033         (freadseek): Use it in a loop. Use freadahead to determine the number
26034         of loop iterations.
26035         * modules/freadseek (Depends-on): Add freadahead.
26036         (configure.ac): Require AC_C_INLINE.
26037
26038 2008-03-30  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/freadseek.c (freadseek): Don't ignore the return value of
26041         freadptr.
26042
26043 2008-03-29  Eric Blake  <ebb9@byu.net>
26044
26045         Add hex float support.
26046         * modules/strtod (Depends-on): Add c-ctype.
26047         (Link): Mention POW_LIB.
26048         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26049         whitespace between 'e' and exponent.
26050         * tests/test-strtod.c (main): Enable hex float tests.
26051         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26052         now provides.
26053
26054         Document various strtod bugs, with some fixes.
26055         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26056         "-0x", "inf", "nan", and hex constants.
26057         * doc/posix-functions/atof.texi (atof): Likewise.
26058         * modules/stdlib (Makefile.am): Support strtod.
26059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26060         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26061         detect additional strtod bugs.
26062         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26063         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26064         bool where appropriate.  Parse 'inf' and 'nan'.
26065         * tests/test-strtod.c: New file.
26066         * modules/strtod (Depends-on): Add stdbool, stdlib.
26067         (configure.ac): Turn on module indicator.
26068         * modules/strtod-tests: New module.
26069
26070 2008-03-29  Eric Blake  <ebb9@byu.net>
26071
26072         Fix ftell on mingw.
26073         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26074         * modules/ftell-tests (Depends-on): Add binary-io.
26075         * modules/ftello-tests (Depends-on): Likewise.
26076         * tests/test-ftell.c (main): Enhance test to cover behavior after
26077         ungetc.  Enforce binary mode.
26078         * tests/test-ftello.c (main): Likewise.
26079
26080         Pass test-freadseek on cygwin.
26081         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26082         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26083         ungetc buffer.
26084
26085         * tests/test-fflush2.c (main): Fix typo.
26086
26087 2008-03-29  Bruno Haible  <bruno@clisp.org>
26088
26089         * tests/test-fflush2.c (main): Temporarily disable the contents of
26090         this test.
26091         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26092         Reported by Eric Blake.
26093
26094 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26095
26096         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26097         (GC_SHA224_DIGEST_SIZE): Add.
26098
26099         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26100         (gc_hash_digest_length): Likewise.
26101         (gc_hash_buffer): Likewise.
26102
26103 2008-03-25  Bruno Haible  <bruno@clisp.org>
26104
26105         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26106         detail which gettext release to use.
26107         Reported by Simon Josefsson.
26108
26109 2008-03-26  Jim Meyering  <meyering@redhat.com>
26110
26111         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26112         * modules/gnumakefile (clean-GNUmakefile): Also, use
26113         test ... && ... || : syntax rather than if-then ... fi.
26114
26115         gnumakefile: Don't double-quote-expand $(VPATH) value.
26116         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26117
26118 2008-03-24  Eric Blake  <ebb9@byu.net>
26119
26120         Alter GNUmakefile to install into top directory.
26121         * modules/maintainer-makefile: Split, and add dependency...
26122         * modules/gnumakefile: to this new module.
26123         * build-aux/GNUmakefile: Move...
26124         * top/GNUmakefile: ...here.
26125         * build-aux/maint.mk: Move...
26126         * top/maint.mk: ...here.
26127         * MODULES.html.sh (Support for maintaining...): Document new
26128         module.
26129
26130 2008-03-23  Bruno Haible  <bruno@clisp.org>
26131
26132         * gnulib-tool: New options --vc-files, --no-vc-files.
26133         (func_usage): Document them.
26134         (vc_files): New variable.
26135         (func_import): Consider vc_files.
26136         (func_create_testdir): Set vc_files to empty.
26137         Suggested by Jim Meyering and Karl Berry.
26138
26139 2008-03-23  Bruno Haible  <bruno@clisp.org>
26140
26141         Fix regex compilation error on HP-UX 11.
26142         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26143         * modules/regex (Files): Add m4/mbstate_t.m4.
26144         Reported by Ton Voon <ton.voon@altinity.com>.
26145
26146 2008-03-23  Bruno Haible  <bruno@clisp.org>
26147
26148         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26149
26150 2008-03-23  Eric Blake  <ebb9@byu.net>
26151             Bruno Haible  <bruno@clisp.org>
26152
26153         Install files from top/ in the destination directory.
26154         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26155         augmentation also for the files from top/.
26156         (func_import, func_create_testdir): Rewrite file names:
26157         top/filename -> filename.
26158
26159 2008-03-23  Bruno Haible  <bruno@clisp.org>
26160
26161         Tweak "gnulib --version" output.
26162         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26163
26164 2008-03-23  Bruno Haible  <bruno@clisp.org>
26165
26166         Tweak "gnulib --version" output.
26167         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26168         rather than contents of ChangeLog, when possible.
26169
26170 2008-03-21  Eric Blake  <ebb9@byu.net>
26171
26172         More --version tweaks.
26173         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26174         date of last ChangeLog entry.
26175
26176 2008-03-21  Jim Meyering  <meyering@redhat.com>
26177
26178         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26179
26180 2008-03-20  Eric Blake  <ebb9@byu.net>
26181
26182         VPATH fix.
26183         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26184
26185 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26186
26187         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26188         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26189
26190 2008-03-20  Eric Blake  <ebb9@byu.net>
26191
26192         Sync GNUmakefile with coreutils.
26193         * build-aux/GNUmakefile (have-Makefile): Rename...
26194         (_have-Makefile): ...to this, for namespace consideration.
26195         (GNUmakefile.cfg): Include, if present.
26196         (_autoreconf): Define a default.
26197         (_is-dist-target): New rule for rebuilds to pick up intra-release
26198         version.
26199         (maint-cfg.mk): Rename...
26200         (cfg.mk): ...to this.
26201
26202 2008-03-18  Jim Meyering  <meyering@redhat.com>
26203
26204         New script and module: mktempd
26205         * MODULES.html.sh (maint+release support): Add mktempd.
26206         * build-aux/mktempd: New file.
26207         * modules/mktempd: New file.
26208
26209 2008-03-15  Jim Meyering  <meyering@redhat.com>
26210
26211         Undo last change.
26212         * lib/sha1.c, lib/md5.c: 63 != ~63.
26213         Reported by Andreas Schwab.
26214
26215         sha1.c, md5.c: Hoist a redundant expression.
26216         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26217         "ctx->buflen" only once, before calling *_process_block.
26218         * lib/md5.c (md5_process_bytes): Likewise.
26219
26220 2008-03-14  Eric Blake  <ebb9@byu.net>
26221
26222         Bump copyright year in files generated by gnulib-tool.
26223         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26224         gnulib-tool, rather than hard-coding it.
26225
26226         Fix 'gnulib-tool --version' output to work with git.
26227         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26228         (startup): ...here.
26229         (func_version): Use it to invoke git-version-gen, rather than
26230         relying on CVS keyword expansion.  Modernize wording.
26231         (cvsdatestamp, last_checkin_date, version): Kill unused
26232         variables.
26233
26234 2008-03-12  Jim Meyering  <meyering@redhat.com>
26235
26236         Recognize optional cast of the argument to free.
26237         * build-aux/useless-if-before-free: Update regexps.
26238
26239         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26240
26241 2008-03-11  Bruno Haible  <bruno@clisp.org>
26242
26243         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26244         by a single package.
26245         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26246         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26247         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26248         Reported by Sam Steingold <sds@gnu.org>.
26249
26250 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26251
26252         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26253         repositories.
26254
26255 2008-03-11  Bruno Haible  <bruno@clisp.org>
26256
26257         Avoid conflicts between local macro definitions.
26258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26259         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26260
26261 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26262             Bruno Haible  <bruno@clisp.org>
26263
26264         Make va_copy work with some version of xlc on AIX 5.1.
26265         * lib/stdarg.in.h: New file.
26266         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26267         On AIX, use a <stdarg.h> file substitute.
26268         * modules/stdarg (Files): Add lib/stdarg.in.h.
26269         (Depends-on): Add include_next.
26270         (Makefile.am): Build a stdarg.h substitute if requested.
26271         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26272
26273 2008-03-10  Bruno Haible  <bruno@clisp.org>
26274
26275         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26276         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26277         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26278
26279 2008-03-10  Bruno Haible  <bruno@clisp.org>
26280
26281         * modules/stdlib (Depends-on): Add include_next, remove
26282         absolute-header.
26283
26284 2008-03-09  Bruno Haible  <bruno@clisp.org>
26285
26286         * lib/freadahead.h (freadahead): Document more precisely.
26287         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26288         the sum of both buffer sizes.
26289         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26290         * NEWS: Document the change.
26291
26292 2008-03-09  Bruno Haible  <bruno@clisp.org>
26293
26294         Extend freadptr to return also the buffer size.
26295         * lib/freadptr.h (freadptr): Add sizep argument.
26296         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26297         (freadptr): Add sizep argument. Determine buffer size like freadahead
26298         does.
26299         * tests/test-freadptr.c: Don't include freadahead.h.
26300         (main): Adapt for new calling convention of freadptr.
26301         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26302         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26303         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26304         tests/test-freadptr2.sh.
26305         (Depends): Remove freadahead.
26306         (TESTS): Add test-freadptr2.sh.
26307         (check_PROGRAMS): Add test-freadptr2.
26308
26309 2008-03-09  Bruno Haible  <bruno@clisp.org>
26310
26311         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26312         Report and solution by Simon Josefsson.
26313
26314 2008-03-06  Bruno Haible  <bruno@clisp.org>
26315
26316         Make fflush after ungetc work on BSD platforms.
26317         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26318         * tests/test-fflush2.c: New file.
26319         * tests/test-fflush2.sh: New file.
26320         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26321         tests/test-fflush2.c.
26322         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26323         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26324
26325 2008-03-06  Eric Blake  <ebb9@byu.net>
26326
26327         Likewise for ftello.
26328         * modules/ftello (Dependencies): Add extensions.
26329         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26330
26331 2008-03-06  Bruno Haible  <bruno@clisp.org>
26332
26333         * modules/fseeko (Dependencies): Add extensions.
26334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26335         Needed on glibc systems.
26336
26337 2008-03-06  Bruno Haible  <bruno@clisp.org>
26338
26339         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26340         email address.
26341         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26342
26343 2008-03-06  Bruno Haible  <bruno@clisp.org>
26344
26345         * users.txt: Add libgnupdf.
26346
26347 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26348
26349         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26350         (Header File Substitutes, Function Substitutes,
26351         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26352         (Build robot for gnulib): Fix typo.
26353
26354 2008-03-06  Bruno Haible  <bruno@clisp.org>
26355
26356         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26357         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26358
26359 2008-03-06  Bruno Haible  <bruno@clisp.org>
26360
26361         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26362         * doc/gnulib.texi: Include it.
26363
26364 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26365
26366         * modules/func (License): Change license to unlimited; there was
26367         no LGPL parts in the module anyway.
26368
26369 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26370
26371         * modules/__func__: Renamed to modules/func.
26372         * modules/__func__-tests: Renamed to modules/func-tests.
26373         * tests/test-__func__.c: Renamed to tests/test-func.c.
26374         * m4/__func__.m4: Renamed to m4/func.m4.
26375         * doc/gnulib.texi (__func__): Section renamed to func.
26376         Suggested by Eric Blake <ebb9@byu.net>.
26377
26378 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26379
26380         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26381         about __func__.  Make example self-contained.  Suggested by Eric
26382         Blake <ebb9@byu.net>.
26383
26384         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26385         Suggested by Eric Blake <ebb9@byu.net>.
26386
26387 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26388
26389         * modules/__func__: New file.
26390         * modules/__func__-tests: New file.
26391         * tests/test-__func__.c: New file.
26392         * m4/__func__.m4: New file.
26393         * doc/gnulib.texi (__func__): Document __func__ module.
26394
26395 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26396
26397         * modules/byteswap (License): Re-license as LGPLv2+.
26398
26399 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26400
26401         * doc/Makefile: Add pdf target.
26402
26403 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26404
26405         * modules/inline (License): Use 'unlimited', since there are only
26406         *.m4 files in this module.
26407
26408 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26409             Bruno Haible  <bruno@clisp.org>
26410
26411         Add support for HP C 7.1 on OpenVMS 8.3.
26412         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26413
26414 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26415
26416         Update VMS specifics.
26417         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26418
26419 2008-03-02  Jim Meyering  <meyering@redhat.com>
26420
26421         Remove the last dependency on the "free" module.
26422         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26423         Reported by Bob Proulx.
26424
26425         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26426
26427         Remove useless "if" tests before free.  Deprecate "free" module.
26428         * doc/posix-functions/free.texi: Mention that this
26429         module is no longer useful.
26430         * modules/free (Notice): Say this module is obsolete.
26431         * modules/readutmp (Depends-on): Remove free.
26432         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26433         * lib/putenv.c (putenv): Likewise.
26434         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26435         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26436         * tests/test-c-strcasestr.c (main): Likewise.
26437         * tests/test-c-strstr.c (main): Likewise.
26438         * tests/test-mbscasestr1.c (main): Likewise.
26439         * tests/test-mbscasestr2.c (main): Likewise.
26440         * tests/test-mbsstr1.c (main): Likewise.
26441         * tests/test-mbsstr2.c (main): Likewise.
26442         * tests/test-memmem.c (main): Likewise.
26443         * tests/test-strcasestr.c (main): Likewise.
26444         * tests/test-striconv.c (main): Likewise.
26445         * tests/test-striconveh.c (main): Likewise.
26446         * tests/test-striconveha.c (main): Likewise.
26447         * tests/test-strstr.c (main): Likewise.
26448
26449         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26450
26451         bootstrap: sync from coreutils again
26452         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26453
26454 2008-03-01  Jim Meyering  <meyering@redhat.com>
26455
26456         bootstrap: sync from coreutils
26457         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26458         also when the target doesn't exist.
26459
26460 2008-03-01  Eric Blake  <ebb9@byu.net>
26461
26462         Fix bugs in last patch.
26463         * lib/memchr2.c (memchr2): Fix typo.
26464         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26465         extension.
26466         Reported by Bruce Korb.
26467
26468         New module 'memchr2'.
26469         * modules/memchr2: New file.
26470         * modules/memchr2-tests: Likewise.
26471         * lib/memchr2.h: Likewise.
26472         * lib/memchr2.c: Likewise, based on memchr.c.
26473         * tests/test-memchr2.c: New test.
26474         * MODULES.html.sh (String handling): Add memchr2.
26475
26476 2008-02-29  Bruno Haible  <bruno@clisp.org>
26477
26478         * modules/freadseek-tests: New file.
26479         * tests/test-freadseek.sh: New file.
26480         * tests/test-freadseek.c: New file.
26481
26482         New module 'freadseek'.
26483         * modules/freadseek: New file.
26484         * lib/freadseek.h: New file.
26485         * lib/freadseek.c: New file.
26486         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26487
26488 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26489
26490         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26491         wydawca.
26492
26493         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26494         program_invocation_name and program_invocation_short_name are
26495         present.
26496
26497 2008-02-28  Bruno Haible  <bruno@clisp.org>
26498
26499         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26500         * tests/test-freadptr.sh: Also test non-seekable stdin.
26501
26502 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26503
26504         * build-aux/bootstrap (source_base, m4_base)
26505         (doc_base, tests_base): New variables.
26506         (gnulib_tool_options): Do not hardcode base directories, use
26507         the above variables instead.
26508
26509 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26510
26511         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26512
26513 2008-02-28  Bruno Haible  <bruno@clisp.org>
26514
26515         * modules/freadptr-tests: New file.
26516         * tests/test-freadptr.sh: New file.
26517         * tests/test-freadptr.c: New file.
26518
26519         New module 'freadptr'.
26520         * modules/freadptr: New file.
26521         * lib/freadptr.h: New file.
26522         * lib/freadptr.c: New file.
26523         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26524
26525 2008-02-26  Karl Berry  <karl@freefriends.org>
26526
26527         Sync from Libtool:
26528         * libltdl/argz.c (argz_add, argz_count): New functions.
26529         * libltdl/argz.in.h: Declare them.
26530         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26531
26532 2008-02-22  Bruno Haible  <bruno@clisp.org>
26533
26534         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26535         is a pointer type.  Needed for HP-UX 10.
26536         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26537         * doc/posix-functions/gmtime_r.texi: Likewise.
26538         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26539
26540 2008-02-24  Bruno Haible  <bruno@clisp.org>
26541
26542         * modules/environ-tests: New file.
26543         * tests/test-environ.c: New file.
26544
26545         New module 'environ'.
26546         * modules/environ: New file.
26547         * lib/unistd.in.h (environ): New declaration.
26548         * m4/environ.m4: New file.
26549         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26550         after use.
26551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26552         HAVE_DECL_ENVIRON.
26553         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26554         HAVE_DECL_ENVIRON.
26555         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26556         wrong claim that 'environ' is missing on some systems.
26557         * modules/execute (Depends-on): Add environ.
26558         * lib/execute.c (environ): Remove fallback declaration.
26559         * modules/pipe (Depends-on): Add environ.
26560         * lib/pipe.c (environ): Remove fallback declaration.
26561         * modules/setenv (Depends-on): Add environ.
26562         * lib/setenv.c (environ): Remove fallback declaration.
26563         * modules/unsetenv (Depends-on): Add environ.
26564         * lib/unsetenv.c (environ): Remove fallback declaration.
26565         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26566         m4/environ.m4.
26567         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26568         (gl_PREREQ_UNSETENV): Likewise.
26569
26570 2008-02-24  Bruno Haible  <bruno@clisp.org>
26571
26572         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26573
26574 2008-02-20  Bob Proulx  <bob@proulx.com>
26575
26576         Enable use of older two part flavor 'git describe'.
26577         * build-aux/git-version-gen: If using the older two part flavor of
26578         git version then recreate the third part now present in the
26579         newer three part flavor of git describe.
26580
26581 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26582
26583         * lib/fts.c (fts_build): Typo correction to comment.
26584
26585 2008-02-17  Bruno Haible  <bruno@clisp.org>
26586
26587         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26588         generating no-op conflicts.
26589
26590 2008-02-17  Bruno Haible  <bruno@clisp.org>
26591
26592         Speed up by 10%.
26593         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26594         result_entries, rather than an index-based loop.
26595
26596 2008-02-17  Bruno Haible  <bruno@clisp.org>
26597
26598         Speed up by 25%.
26599         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26600         'hashcode_cached'.
26601         (entry_create): New function.
26602         (entry_hashcode): Use the cached hashcode if possible.
26603         (read_changelog_file, try_split_merged_entry): Use entry_create.
26604
26605 2008-02-17  Bruno Haible  <bruno@clisp.org>
26606
26607         Speed up from O(n^2) to O(n) for long ChangeLog files.
26608         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26609         (read_changelog_file): Change implementation of entries_reversed list
26610         to rbtreehash.
26611         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26612
26613 2008-02-17  Bruno Haible  <bruno@clisp.org>
26614
26615         New option --split-merged-entry.
26616         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26617         (find_paragraph_end, try_split_merged_entry): New functions.
26618         (long_options): Add option --split-merged-entry.
26619         (usage): Document option --split-merged-entry.
26620         (main): Implement option --split-merged-entry.
26621         Reported by Eric Blake.
26622
26623 2008-02-17  Bruno Haible  <bruno@clisp.org>
26624
26625         * lib/git-merge-changelog.c: Include c-strstr.h.
26626         (main): Support the "git pull --rebase" situation.
26627         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26628         Reported by Eric Blake.
26629
26630 2008-02-16  Eric Blake  <ebb9@byu.net>
26631
26632         Avoid doubling \ in common case of "c-maybe" quoting style.
26633         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26634         eliding outer quotes.
26635         * lib/quotearg.h: Document this.
26636         * tests/test-quotearg.c (result_strings, inputs, results_g)
26637         (flag_results, locale_results): Test it by adding a new string to
26638         each test group.
26639         (compare_strings): Test new string.
26640
26641 2008-02-13  Eric Blake  <ebb9@byu.net>
26642
26643         Avoid trigraph quoting in default output.
26644         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26645         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26646         unless explicitly requested.
26647         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26648
26649 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26650
26651         Don't rely on signed integer overflowing to negative value.
26652         * lib/getugroups.c (getugroups): Include <limits.h>.
26653         Instead, compare against INT_MAX, and increment only if the test passes.
26654
26655 2008-02-13  Jim Meyering  <meyering@redhat.com>
26656         and Eric Blake  <ebb9@byu.net>
26657
26658         Avoid shadowing warning and compile errors on Linux.
26659         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26660         forwarding macros on Linux.
26661         (dcgettext): Define a stub, for Linux.
26662         (results_g, main): Avoid warnings.
26663
26664 2008-02-12  Eric Blake  <ebb9@byu.net>
26665
26666         Silence warning in last patch.
26667         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26668
26669         Quotearg part 4: add tests, fix c-maybe colon quoting.
26670         * lib/quotearg.h: Improve documentation.
26671         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26672         escapes when adding outer quotes.  When quoting trigraphs, use
26673         valid C notation.  When quoting NUL, omit extra characters if next
26674         character is not digit.  Alter prototype.
26675         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26676         callers.
26677         * modules/quotearg-tests: New module.
26678         * tests/test-quotearg.c: New test.
26679
26680 2008-02-07  Eric Blake  <ebb9@byu.net>
26681
26682         Quotearg part 3: add flag to control outer quote elision.
26683         * lib/quotearg.h (c_maybe_quoting_style): New style.
26684         (enum quoting_flags): Better documentation of flags.
26685         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26686         c-maybe style.
26687         (quotearg_buffer_restyled): Handle new flag to elide outer
26688         quotes.
26689
26690         Quotearg part 2: add flag that can control NUL elision.
26691         * lib/quotearg.h (set_quoting_flags): New prototype.
26692         * lib/quotearg.c (struct quoting_options): Add flag field.
26693         (set_quoting_flags): New function.
26694         (quotearg_buffer_restyled): Add flags parameter.
26695         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26696         (quotearg_n_options): Set the flag, since length cannot be
26697         returned.
26698         (quoting_options_from_style): Default flags correctly.
26699
26700         Quotearg part 1: more wrappers, restore quotearg_char state.
26701         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26702         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26703         (quotearg_colon_mem): New wrappers.
26704         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26705         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26706         functions.
26707         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26708         (quotearg_colon_mem): New functions.
26709
26710 2008-02-11  Bruno Haible  <bruno@clisp.org>
26711
26712         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26713         library in the current directory: it does not work with parallel make.
26714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26715
26716 2008-02-11  Bruno Haible  <bruno@clisp.org>
26717
26718         * .gitattributes: New file.
26719
26720 2008-02-11  Jim Meyering  <meyering@redhat.com>
26721
26722         useless-if-before-free: Fix reversed exit values.
26723         * build-aux/useless-if-before-free: Use correct values
26724         for EXIT_MATCH and EXIT_NO_MATCH.
26725
26726         * build-aux/useless-if-before-free: Close stdout carefully.
26727
26728 2008-02-10  Bruno Haible  <bruno@clisp.org>
26729
26730         New module 'git-merge-changelog'.
26731         * modules/git-merge-changelog: New file.
26732         * lib/git-merge-changelog.c: New file.
26733
26734 2008-02-10  Jim Meyering  <meyering@redhat.com>
26735
26736         useless-if-before-free: New option: --list (-l).
26737
26738         useless-if-before-free: Don't exit immediately upon open failure.
26739         * build-aux/useless-if-before-free: Exit 2 for errors.
26740         Upon failure to open a file, don't exit immediately.
26741         Rather, just warn and continue with any remaining files.
26742
26743 2008-02-10  Bruno Haible  <bruno@clisp.org>
26744
26745         New abstract list operation 'node_set_value'.
26746         * lib/gl_list.h (gl_list_node_set_value): New function.
26747         (struct gl_list_implementation): New field node_set_value.
26748         * lib/gl_list.c (gl_list_node_set_value): New function.
26749         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26750         (gl_array_list_implementation): Update.
26751         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26752         (gl_carray_list_implementation): Update.
26753         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26754         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26755         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26756         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26757         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26758         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26759         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26760         Update.
26761         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26762         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26763         (gl_sublist_list_implementation): Update.
26764
26765 2008-02-10  Bruno Haible  <bruno@clisp.org>
26766
26767         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26768         Needed when ELEMENT is #defined to 'some_type *'.
26769
26770 2008-02-10  Jim Meyering  <meyering@redhat.com>
26771
26772         New script and module: useless-if-before-free
26773         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26774         * build-aux/useless-if-before-free: New file.
26775         * modules/useless-if-before-free: New file.
26776
26777         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26778
26779         xstrtol_error: Fix typo.
26780         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26781         s/exit_failure/exit_status/.
26782
26783 2008-02-09  Jim Meyering  <meyering@redhat.com>
26784
26785         New script and module: gitlog-to-changelog
26786         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26787         * modules/gitlog-to-changelog: New file.
26788         * build-aux/gitlog-to-changelog: New file.
26789
26790 2008-02-08  Jim Meyering  <meyering@redhat.com>
26791
26792         Avoid two "parameter unused" warnings.
26793         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26794         Mark "st" as used.
26795
26796         Use "git COMMAND", not "git-COMMAND".
26797         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26798         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26799         * build-aux/git-version-gen: Use "git status", not "git-status".
26800
26801 2008-02-07  Bruno Haible  <bruno@clisp.org>
26802
26803         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26804         Avoids a crash on Windows Vista.
26805         Reported by Adam Strzelecki <ono@java.pl> via
26806         Simon Josefsson <simon@josefsson.org>.
26807
26808 2008-02-06  Bruno Haible  <bruno@clisp.org>
26809
26810         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26811         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26812         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26814         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26816         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26817         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26825         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26826         left-adjust flag.
26827         * tests/test-snprintf-posix.h (test_function): Likewise.
26828         * tests/test-sprintf-posix.h (test_function): Likewise.
26829         * tests/test-vasprintf-posix.c (test_function): Likewise.
26830         * doc/posix-functions/fprintf.texi: Update.
26831         * doc/posix-functions/printf.texi: Update.
26832         * doc/posix-functions/snprintf.texi: Update.
26833         * doc/posix-functions/sprintf.texi: Update.
26834         * doc/posix-functions/vfprintf.texi: Update.
26835         * doc/posix-functions/vprintf.texi: Update.
26836         * doc/posix-functions/vsnprintf.texi: Update.
26837         * doc/posix-functions/vsprintf.texi: Update.
26838         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26839
26840 2008-02-06  Bruno Haible  <bruno@clisp.org>
26841
26842         Fix bug introduced on 2008-01-26.
26843         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26844
26845 2008-02-06  Bruno Haible  <bruno@clisp.org>
26846
26847         Fix bug introduced on 2007-06-10.
26848         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26849         !NEED_PRINTF_FLAG_ZERO.
26850
26851 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26852
26853         getloadavg: use libperfstat on AIX5
26854         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26855
26856 2008-02-03  Bruno Haible  <bruno@clisp.org>
26857
26858         * lib/diffseq.h: Add comments about required #includes.
26859         Reported by Michael Biggs <gnulib@doubleplum.net>.
26860
26861 2008-02-01  Bruno Haible  <bruno@clisp.org>
26862
26863         * users.txt: Add gnuit.
26864
26865 2008-01-31  Bruno Haible  <bruno@clisp.org>
26866
26867         * lib/md4.c (set_uint32): Mark as inline.
26868         * lib/md5.c (set_uint32): Likewise.
26869         * lib/sha1.c (set_uint32): Likewise.
26870         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26871         * m4/md5.m4 (gl_MD5): Likewise.
26872         * m4/sha1.m4 (gl_SHA1): Likewise.
26873
26874 2008-01-31  Jim Meyering  <meyering@redhat.com>
26875
26876         Use "sizeof VAR", rather than a literal "4".
26877         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26878         * lib/md4.c (md4_read_ctx): Likewise.
26879         * lib/sha1.c (sha1_read_ctx): Likewise.
26880
26881 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26882
26883         * tests/test-sha1.c: New file, based on test-md5.c.
26884
26885         * modules/crypto/sha1-tests: New file.
26886
26887 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26888
26889         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26890
26891 2008-01-31  Jim Meyering  <meyering@redhat.com>
26892
26893         Prefer "sizeof v" over the equivalent "4".
26894         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26895         * lib/md5.c (set_uint32): Likewise.
26896         * lib/sha1.c (set_uint32): Likewise.
26897
26898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26899
26900         * lib/sha1.c (set_uint32): Mark function as static.
26901
26902 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26903
26904         md2: clarify comments to say that alignment is not required.
26905         * lib/md2.h: Remove warning about alignment in comment.
26906         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26907         never been required.
26908
26909 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26910
26911         md4: adapt alignment constraint fix from sha1.
26912         * lib/md4.c (set_uint32): New function, from sha1.c
26913         (md4_read_ctx): Use it.
26914         (md4_finish_ctx): Doc fix.
26915         * lib/md4.h: Doc fix.
26916
26917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26918
26919         md5: adapt alignment constraint fix from sha1.
26920         * lib/md5.c (set_uint32): New function, from sha1.c
26921         (md5_read_ctx): Use it.
26922         (md5_finish_ctx): Doc fix.
26923         * lib/md5.h: Doc fix.
26924
26925 2008-01-30  Peter Palfrader  <weasel@debian.org>
26926
26927         sha1: remove the result buffer alignment constraint
26928         * lib/sha1.c (set_uint32): New function.
26929         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26930         constraint.
26931         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26932         * lib/sha1.h: Likewise.
26933
26934 2008-01-30  Andreas Schwab  <schwab@suse.de>
26935             Bruno Haible  <bruno@clisp.org>
26936
26937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26938         correct definition of LDBL_MIN_EXP.
26939
26940 2008-01-30  Karl Berry  <karl@gnu.org>
26941
26942         * config/srclist-update: try to preserve x bit on updates.
26943         * config/srclistvars.sh: update for karl.
26944
26945 2008-01-29  Jim Meyering  <meyering@redhat.com>
26946
26947         vasnprintf.c: Avoid warning about unused label
26948         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26949         "overflow" label definition and associated code with the
26950         same cpp condition that guards the sole use of that label.
26951
26952 2008-01-26  Bruno Haible  <bruno@clisp.org>
26953
26954         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26955         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26956         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26957         * lib/isnanl-nolibm.h (isnanl): Likewise.
26958         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26959
26960 2008-01-26  Bruno Haible  <bruno@clisp.org>
26961
26962         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26963         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26964
26965 2008-01-26  Bruno Haible  <bruno@clisp.org>
26966
26967         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26968         GCC >= 4.0 built-in.
26969         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26970
26971 2008-01-26  Bruno Haible  <bruno@clisp.org>
26972
26973         Rename isnan, applicable to 'double' only, to isnand.
26974         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26975         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26976         (configure.ac): Update.
26977         (Include): Replace "isnan.h" with "isnand.h".
26978         * m4/isnand.m4: Renamed from m4/isnan.m4.
26979         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26980         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26981         instead of isnan.c.
26982         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26983         instead of HAVE_ISNAN_IN_LIBC.
26984         (isnand): Renamed from isnan.
26985         * lib/isnand.c: New file.
26986         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26987         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26988         (Makefile.am): Update.
26989         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26990         Include isnand.h instead of isnan.h.
26991         (main): Test isnand instead of isnan.
26992         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26993         isnan-nolibm.
26994         * modules/frexp (Depends-on): Likewise.
26995         * modules/frexp-tests (Depends-on): Likewise.
26996         * modules/frexp-nolibm (Depends-on): Likewise.
26997         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26998         * modules/isfinite (Depends-on): Likewise.
26999         * modules/round-tests (Depends-on): Likewise.
27000         * modules/signbit (Depends-on): Likewise.
27001         * modules/signbit-tests (Depends-on): Likewise.
27002         * modules/snprintf-posix (Depends-on): Likewise.
27003         * modules/sprintf-posix (Depends-on): Likewise.
27004         * modules/trunc-tests (Depends-on): Likewise.
27005         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27006         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27007         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27008         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27009         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27010         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27011         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27012         * modules/vasnprintf-posix (Depends-on): Likewise.
27013         * modules/vasprintf-posix (Depends-on): Likewise.
27014         * modules/vfprintf-posix (Depends-on): Likewise.
27015         * modules/vsnprintf-posix (Depends-on): Likewise.
27016         * modules/vsprintf-posix (Depends-on): Likewise.
27017         * lib/frexp.c: Include isnand.h instead of isnan.h.
27018         (ISNAN): Set to isnand instead of isnan.
27019         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27020         (gl_isfinited): Use isnand instead of isnan.
27021         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27022         (gl_signbitd): Use isnand instead of isnan.
27023         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27024         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27025         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27026         (main): Use isnand instead of isnan.
27027         * tests/test-round1.c: Include isnand.h.
27028         (main): Use isnand instead of isnan.
27029         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27030         (ISNAN): Set to isnand instead of isnan.
27031         * tests/test-trunc1.c: Include isnand.h.
27032         (main): Use isnand instead of isnan.
27033         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27034         (equal): Use isnand instead of isnan.
27035         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27036         isnand-nolibm.
27037         * NEWS: Mention the change.
27038
27039 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27040             Bruno Haible  <bruno@clisp.org>
27041
27042         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27043         the GCC builtins for signbits are present and set
27044         REPLACE_SIGNBIT_USING_GCC if so.
27045         * lib/math.in.h (signbit): Define using GCC builtins if
27046         REPLACE_SIGNBIT_USING_GCC is set.
27047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27048         REPLACE_SIGNBIT_USING_GCC.
27049         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27050
27051 2008-01-25  Jim Meyering  <meyering@redhat.com>
27052
27053         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27054         * lib/poll.c: Include <config.h>, not "config.h".
27055         * tests/test-getaddrinfo.c: Likewise.
27056
27057 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27058
27059         * modules/sockets-tests: New file.
27060
27061 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27062
27063         * modules/sockets: New module, can be used to call WSA_Startup and
27064         WSA_Cleanup when needed.
27065
27066         * lib/sockets.h, lib/sockets.c: New files.
27067
27068         * m4/sockets.m4: New file.
27069
27070         * tests/test-sockets.c: New file.
27071
27072 2008-01-19  Bruno Haible  <bruno@clisp.org>
27073
27074         * doc/posix-headers: Renamed from doc/headers.
27075         * doc/posix-functions: Renamed from doc/functions.
27076         * doc/gnulib.texi: Update.
27077
27078 2008-01-19  Bruno Haible  <bruno@clisp.org>
27079
27080         * doc/glibc-functions/strcasestr.texi: Include contents of
27081         doc/functions/strcasestr.texi, fixing the list of platforms.
27082         * doc/functions/strcasestr.texi: Remove file.
27083
27084 2008-01-19  Bruno Haible  <bruno@clisp.org>
27085
27086         * doc/glibc-functions/memmem.texi: Include contents of
27087         doc/functions/memmem.texi.
27088         * doc/functions/memmem.texi: Remove file.
27089
27090 2008-01-18  Bruno Haible  <bruno@clisp.org>
27091
27092         * doc/glibc-functions/*.texi: New files.
27093         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27094         to use the new files.
27095
27096 2008-01-17  Bruno Haible  <bruno@clisp.org>
27097
27098         * tests/test-gethostname.c (main): Fix printf statement.
27099
27100 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27101
27102         * modules/gethostname-tests: New file.
27103
27104         * tests/test-gethostname.c: New file.
27105
27106 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27107
27108         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27109         used by the UNAME case.  Reported by Bruno Haible
27110         <bruno@clisp.org>.
27111
27112 2008-01-17  Eric Blake  <ebb9@byu.net>
27113
27114         Convert c-strcasestr to be more efficient.
27115         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27116         (Depends-on): Add c-strcase, remove malloca, strnlen.
27117         * tests/test-c-strcasestr.c (main): Enhance test.
27118         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27119
27120 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27121
27122         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27123         Use it in creating po/Makevars.
27124
27125 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27126
27127         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27128         Applications that requires it should initialize libgcrypt
27129         manually.
27130
27131 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27132
27133         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27134
27135 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27136
27137         Fix problem with getdate on mingw32 reported by Simon Josefsson
27138         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27139         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27140         tzname", when deciding whether to declare tzname.
27141         * lib/strftime.c (tzname): Likewise.
27142
27143 2008-01-15  Bruno Haible  <bruno@clisp.org>
27144
27145         Work around a MacOS X 10.5 bug in frexpl().
27146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27147         * doc/functions/frexpl.texi: Document the bug.
27148         Reported by Elias Pipping <pipping@gentoo.org>.
27149
27150 2008-01-14  Eric Blake  <ebb9@byu.net>
27151
27152         Touch up previous patch.
27153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27154         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27155
27156         Convert strcasestr module to use Two-Way algorithm.
27157         * modules/strcasestr-simple: New module, based on the old
27158         strcasestr, but with Two-Way rather than KMP.
27159         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27160         * lib/string.in.h (rpl_strcasestr): Declare.
27161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27162         performance.
27163         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27164         * modules/string (Makefile.am): Support strcasestr.
27165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27166         * modules/strcasestr-tests (Depends-on): Check for alarm.
27167         * tests/test-strcasestr.c: Augment test.
27168         * lib/str-two-way.h: Clean up stray macro.
27169         * NEWS: Document new module.
27170         * MODULES.html.sh (string handling): Likewise.
27171         * doc/functions/strcasestr.texi: New file.
27172         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27173         here, since it is not a POSIX function.
27174
27175 2008-01-14  Colin Watson  <cjwatson@debian.org>
27176             Bruno Haible  <bruno@clisp.org>
27177
27178         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27179         works fine; if not, set REPLACE_STRSIGNAL.
27180         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27182         REPLACE_STRSIGNAL.
27183         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27184         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27185         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27186
27187 2008-01-14  Bruno Haible  <bruno@clisp.org>
27188
27189         * modules/strsignal (Include): Change to <string.h>.
27190
27191 2008-01-14  Colin Watson  <cjwatson@debian.org>
27192
27193         * modules/argp (Notice): Add a notice recommending to change
27194         XGETTEXT_OPTIONS.
27195         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27196
27197 2008-01-13  Colin Watson  <cjwatson@debian.org>
27198
27199         * modules/strsignal-tests: New file.
27200         * tests/test-strsignal.c: New file.
27201
27202         * lib/strsignal.c: New file, from glibc with modifications.
27203         * lib/siglist.h: New file, from glibc with modifications.
27204         * lib/string.in.h (strsignal): New declaration.
27205         * m4/strsignal.m4: New file.
27206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27207         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27208         * modules/strsignal: New file.
27209         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27210         HAVE_DECL_STRSIGNAL.
27211
27212 2008-01-13  Bruno Haible  <bruno@clisp.org>
27213
27214         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27215         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27218
27219 2008-01-13  Bruno Haible  <bruno@clisp.org>
27220
27221         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27222         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27223         * lib/argp.h (__attribute__): Likewise.
27224         * lib/c-stack.c (__attribute__): Likewise.
27225         * lib/error.h (__attribute__): Likewise.
27226         * lib/fts.c (__attribute__): Likewise.
27227         * lib/openat.h (__attribute__): Likewise.
27228         * lib/stdio.in.h (__attribute__): Likewise.
27229         * lib/string.in.h (__attribute__): Likewise.
27230         * lib/utimens.c (__attribute__): Likewise.
27231         * lib/vasnprintf.h (__attribute__): Likewise.
27232         * lib/xalloc.h (__attribute__): Likewise.
27233         * lib/xprintf.h (__attribute__): Likewise.
27234         * lib/xstrtol.h (__attribute__): Likewise.
27235         * lib/xvasprintf.h (__attribute__): Likewise.
27236
27237 2008-01-12  Bruno Haible  <bruno@clisp.org>
27238
27239         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27240         * doc/glibc-headers/a.out.texi: New file.
27241         * doc/glibc-headers/aliases.texi: New file.
27242         * doc/glibc-headers/alloca.texi: New file.
27243         * doc/glibc-headers/ar.texi: New file.
27244         * doc/glibc-headers/argp.texi: New file.
27245         * doc/glibc-headers/argz.texi: New file.
27246         * doc/glibc-headers/byteswap.texi: New file.
27247         * doc/glibc-headers/crypt.texi: New file.
27248         * doc/glibc-headers/endian.texi: New file.
27249         * doc/glibc-headers/envz.texi: New file.
27250         * doc/glibc-headers/err.texi: New file.
27251         * doc/glibc-headers/error.texi: New file.
27252         * doc/glibc-headers/execinfo.texi: New file.
27253         * doc/glibc-headers/fpu_control.texi: New file.
27254         * doc/glibc-headers/fstab.texi: New file.
27255         * doc/glibc-headers/fts.texi: New file.
27256         * doc/glibc-headers/getopt.texi: New file.
27257         * doc/glibc-headers/ieee754.texi: New file.
27258         * doc/glibc-headers/ifaddrs.texi: New file.
27259         * doc/glibc-headers/libintl.texi: New file.
27260         * doc/glibc-headers/mcheck.texi: New file.
27261         * doc/glibc-headers/mntent.texi: New file.
27262         * doc/glibc-headers/obstack.texi: New file.
27263         * doc/glibc-headers/paths.texi: New file.
27264         * doc/glibc-headers/printf.texi: New file.
27265         * doc/glibc-headers/pty.texi: New file.
27266         * doc/glibc-headers/resolv.texi: New file.
27267         * doc/glibc-headers/shadow.texi: New file.
27268         * doc/glibc-headers/sysexits.texi: New file.
27269         * doc/glibc-headers/ttyent.texi: New file.
27270
27271 2008-01-12  Jim Meyering  <meyering@redhat.com>
27272
27273         announce-gen: emit Gnulib's git-based version string.
27274         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27275         New option --gnulib-version=V, where V is expected to be
27276         the output of running git describe in the gnulib directory.
27277         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27278         not useful, and plan to stop publishing an xdelta file with each
27279         coreutils release.
27280
27281         * build-aux/announce-gen: Also check for lzma-compressed files.
27282
27283 2008-01-11  Bruno Haible  <bruno@clisp.org>
27284
27285         * tests/test-memmem.c (main): Increase maximum allowed time.
27286         * tests/test-strstr.c (main): Likewise.
27287
27288 2008-01-11  Bruno Haible  <bruno@clisp.org>
27289
27290         * doc/functions/memmem.texi: Add more precisions about platforms.
27291         * doc/functions/strstr.texi: Likewise.
27292
27293 2008-01-10  Eric Blake  <ebb9@byu.net>
27294
27295         * m4/strstr.m4: Delete cruft from copy-n-paste.
27296         Reported by Bruno Haible.
27297
27298 2008-01-10  Bruno Haible  <bruno@clisp.org>
27299
27300         Make c-strstr rely on strstr.
27301         * lib/c-strstr.c: Don't include str-kmp.h.
27302         (c_strstr): Define in terms of strstr.
27303         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27304         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27305
27306 2008-01-10  Bruno Haible  <bruno@clisp.org>
27307
27308         * doc/gnulib.texi (String Functions in C Locale): New section.
27309         * doc/c-ctype.texi: New file.
27310         * doc/c-strcase.texi: New file.
27311         * doc/c-strcaseeq.texi: New file.
27312         * doc/c-strcasestr.texi: New file.
27313         * doc/c-strstr.texi: New file.
27314         * doc/c-strtod.texi: New file.
27315         * doc/c-strtold.texi: New file.
27316
27317 2008-01-10  Eric Blake  <ebb9@byu.net>
27318
27319         * lib/relocatable.h: Fix a comment.
27320
27321 2008-01-10  Eric Blake  <ebb9@byu.net>
27322
27323         Share two-way algorithm.
27324         * lib/str-two-way.h: New file, merged from...
27325         * lib/memmem.c: ...here...
27326         * lib/strstr.c: ...and here.
27327         * modules/memmem (Files): Use it.
27328         * modules/strstr (Files): Likewise.
27329
27330         Avoid quadratic strstr implementations.
27331         * lib/strstr.c: New file.
27332         * m4/strstr.m4: Likewise.
27333         * modules/strstr: Likewise.
27334         * modules/strstr-tests: Likewise.
27335         * tests/test-strstr.c: Likewise.
27336         * lib/string.in.h (rpl_strstr): Declare.
27337         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27338         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27339         * modules/string (Makefile.am): Likewise.
27340         * MODULES.html.sh (string handling): Mention new module.
27341         * doc/functions/strstr.texi (strstr): Document the bug.
27342
27343 2008-01-10  Bruno Haible  <bruno@clisp.org>
27344
27345         * lib/relocatable.h (relocate): State whether result is freshly
27346         allocated or not.
27347         * lib/relocatable.c (relocate): Return a freshly allocated string
27348         instead of a pointer to a privately held string.
27349         Reported by Sylvain Beucler <beuc@gnu.org>.
27350
27351 2008-01-10  Colin Watson  <cjwatson@debian.org>
27352
27353         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27354         s/S_ISNLK/S_ISLNK/.
27355
27356 2008-01-09  Bruno Haible  <bruno@clisp.org>
27357
27358         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27359         and other files.
27360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27361         if it's only a guess.
27362         * modules/memmem: Simplify by depending on memmem-simple.
27363
27364 2008-01-09  Bruno Haible  <bruno@clisp.org>
27365
27366         Work around OpenBSD 4.0 tdelete() bug.
27367         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27368         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27369         macros and don't redefine the enum values.
27370         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27371         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27372         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27373
27374 2008-01-09  Bruno Haible  <bruno@clisp.org>
27375
27376         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27377         (main): Don't perform the tests if setlocale did not install a UTF-8
27378         locale. Needed on OpenBSD 4.0.
27379         * modules/wcwidth-tests (Depends-on): Add localcharset.
27380
27381 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27382
27383         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27384         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27385         * NEWS: announce this.
27386         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27387
27388 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27389         and Eric Blake  <ebb9@byu.net>
27390
27391         Add memmem-simple module.
27392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27393         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27394         * modules/memmem-simple: New file.
27395         * modules/memmem (Description): Tweak.
27396         * MODULES.html.sh (string handling): Mention new module.
27397         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27398         addressed by memmem-simple.
27399         * NEWS: Document the difference.
27400
27401 2008-01-09  Eric Blake  <ebb9@byu.net>
27402
27403         Give gcc some memmem optimization hints.
27404         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27405         (strcasestr): Declare as pure.
27406         * modules/memmem (Maintainer): Claim my implementation.
27407
27408 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27409
27410         Support AIX 6.1 and higher.
27411         * build-aux/config.libpath: Likewise.
27412         * build-aux/config.rpath: Likewise.
27413
27414 2008-01-08  Jim Meyering  <meyering@redhat.com>
27415             Bruno Haible  <bruno@clisp.org>
27416
27417         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27418         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27419         Reported by Peter Fales in
27420         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27421
27422 2008-01-08  Bruno Haible  <bruno@clisp.org>
27423
27424         * modules/unictype/category-of (Depends-on): Add
27425         unictype/category-none.
27426         * modules/unictype/category-and-tests (Depends-on): Add
27427         unictype/category-{L,N,Lu,Nd}.
27428         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27429         * modules/unictype/category-or-tests (Depends-on): Add
27430         unictype/category-{L,N}.
27431         * modules/unictype/category-name-tests (Depends-on): Add
27432         unictype/category-{Z,Nl}.
27433         Reported by Simon Josefsson.
27434
27435 2008-01-08  Bruno Haible  <bruno@clisp.org>
27436
27437         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27438         convention better.
27439         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27440         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27441         Reported by Peter Miller <millerp@canb.auug.org.au>.
27442
27443 2008-01-08  Eric Blake  <ebb9@byu.net>
27444
27445         Rewrite memmem to guarantee linear complexity without malloc.
27446         * lib/memmem.c (memmem): Use Two-Way rather than
27447         Knuth-Morris-Pratt, to allow O(1) space usage.
27448         (critical_factorization, two_way_short_needle)
27449         (two_way_long_needle): New functions.
27450         (knuth_morris_pratt): Delete.
27451         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27452         Add stdint.
27453         * tests/test-memmem.c (main): Add tests for periodic needle and
27454         sublinear performance.
27455         * doc/functions/memmem.texi (memmem): Document other deficiencies
27456         in cygwin and older glibc.
27457
27458 2008-01-08  Bruno Haible  <bruno@clisp.org>
27459
27460         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27461         augmentation.
27462
27463 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27464
27465         Add a configure time option: --disable-acl.
27466         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27467         AC_ARG_ENABLE(acl).
27468
27469 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27470
27471         * tests/test-localename.c: Don't include obsolete "setenv.h".
27472
27473         * modules/localename-tests (Depends-on): Need unsetenv.
27474
27475 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27476
27477         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27478
27479 2008-01-06  Colin Watson  <cjwatson@debian.org>
27480
27481         * users.txt: Add man-db.
27482
27483 2008-01-07  Bruno Haible  <bruno@clisp.org>
27484
27485         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27486         previous section name.
27487
27488 2008-01-07  Bruno Haible  <bruno@clisp.org>
27489
27490         * lib/progname.c (set_program_name): Don't strip off a leading
27491         "lt-" prefix outside a .libs directory.
27492         Suggested by Paul Eggert.
27493
27494 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27495             Bruno Haible  <bruno@clisp.org>
27496
27497         Improve memory cleanup in 'relocatable' module.
27498         * lib/relocatable.h (compute_curr_prefix): Change return type to
27499         'char *'.
27500         * lib/relocatable.c (compute_curr_prefix): Change return type to
27501         'char *'. Free curr_installdir after use.
27502         (relocate): Free curr_prefix_better after use.
27503         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27504
27505 2008-01-01  Bruno Haible  <bruno@clisp.org>
27506
27507         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27508         failure on older glibc systems.
27509         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27510
27511 2008-01-05  Eric Blake  <ebb9@byu.net>
27512
27513         Avoid quadratic system memmem.
27514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27515         Reported by Ralf Wildenhues.
27516
27517         Fix memmem test for mingw.
27518         * modules/memmem-tests (configure.ac): Check for alarm.
27519         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27520         it.
27521         * doc/functions/memmem.texi: New file.
27522         * doc/gnulib.texi (Function Substitutes): Add memmem.
27523         Reported by Bruno Haible.
27524
27525 2008-01-04  Bruno Haible  <bruno@clisp.org>
27526
27527         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27528         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27529         gl_HEADER_STRING_H_DEFAULTS.
27530
27531 2008-01-04  Eric Blake  <ebb9@byu.net>
27532
27533         Shorten duration of memmem test.
27534         * tests/test-memmem.c (main): Use alarm to declare failure if test
27535         is taking too long.
27536         Reported by Ralf Wildenhues.
27537
27538 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27539
27540         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27541         string, needed by strerror.
27542
27543 2008-01-03  Colin Watson  <cjwatson@debian.org>
27544             Bruno Haible  <bruno@clisp.org>
27545
27546         * doc/gnulib-tool.texi (Localization): New section.
27547
27548 2008-01-02  Bruno Haible  <bruno@clisp.org>
27549
27550         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27551         variables to 'unsigned char *' type.
27552         Reported by Paul Eggert.
27553
27554 2008-01-02  Jim Meyering  <jim@meyering.net>
27555
27556         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27557
27558 2007-12-31  Jim Meyering  <jim@meyering.net>
27559
27560         Avoid use of private FTS type name.
27561         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27562
27563 2007-12-30  Karl Berry  <karl@gnu.org>
27564
27565         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27566         work around defect in Texinfo and/or the standalone Info browser.
27567
27568 2007-12-30  Bruno Haible  <bruno@clisp.org>
27569
27570         Unify 5 copies of the KMP code.
27571         * lib/str-kmp.h: New file.
27572         * lib/c-strcasestr.c: Include str-kmp.h.
27573         (knuth_morris_pratt): Remove function.
27574         (c_strcasestr): Update.
27575         * lib/c-strstr.c: Include str-kmp.h.
27576         (knuth_morris_pratt): Remove function.
27577         (c_strcasestr): Update.
27578         * lib/mbscasestr.c: Include str-kmp.h.
27579         (knuth_morris_pratt_unibyte): Remove function.
27580         * lib/mbsstr.c: Include str-kmp.h.
27581         (knuth_morris_pratt_unibyte): Remove function.
27582         * lib/strcasestr.c: Include str-kmp.h.
27583         (knuth_morris_pratt): Remove function.
27584         (strcasestr): Update.
27585         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27586         * modules/c-strstr (Files): Likewise.
27587         * modules/mbscasestr (Files): Likewise.
27588         * modules/mbsstr (Files): Likewise.
27589         * modules/strcasestr (Files): Likewise.
27590         Suggested by Paul Eggert.
27591
27592 2007-12-30  Bruno Haible  <bruno@clisp.org>
27593
27594         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27595         defined.
27596
27597 2007-12-30  Bruno Haible  <bruno@clisp.org>
27598
27599         * lib/xmalloca.h: Include xalloc.h.
27600         (xnmalloca): New macro.
27601
27602 2007-12-30  Bruno Haible  <bruno@clisp.org>
27603
27604         * lib/malloca.h (nmalloca): New macro.
27605         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27606         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27607         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27608         knuth_morris_pratt_multibyte): Likewise.
27609         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27610         knuth_morris_pratt_multibyte): Likewise.
27611         * lib/memmem.c (knuth_morris_pratt): Likewise.
27612         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27613
27614 2007-12-25  Bruno Haible  <bruno@clisp.org>
27615
27616         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27617         * lib/glob.c: Don't include openat.h.
27618         (link_exists2_p): Add back the code that deals with the
27619         !GLOB_ALTDIRFUNC case.
27620         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27621         let it do the filename concatenation.
27622         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27623         * modules/glob (Depends-on): Remove openat.
27624
27625 2007-12-31  Bruno Haible  <bruno@clisp.org>
27626
27627         * modules/dirfd (License): Change to LGPLv2+.
27628         Approved by Jim Meyering.
27629
27630 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27631
27632         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27633         when multiplying M by sizeof (size_t).
27634
27635 2007-12-10  Martin Lambers  <marlam@marlam.de>
27636
27637         Override getpagesize on mingw.
27638         * lib/getpagesize.c: New file.
27639         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27640         * modules/getpagesize (Files): Add lib/getpagesize.c.
27641         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27643         REPLACE_GETPAGESIZE.
27644         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27645
27646 2007-12-25  Bruno Haible  <bruno@clisp.org>
27647
27648         * modules/localcharset (Notice): New field.
27649         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27650         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27651
27652 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27653             Bruno Haible  <bruno@clisp.org>
27654
27655         Avoid using the syntax symbol() in formatted documentation.
27656         * MODULES.html.sh (func_module): When replacing symbol() with a
27657         hyperlink, remove the parentheses. Show an error if some remain.
27658         Recognize and render the '...' syntax.
27659         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27660         Rework. Add paragraph about GCC's inlining.
27661         * doc/alloca.texi: Likewise.
27662         * doc/error.texi: Remove parentheses from symbol reference.
27663         * doc/gnulib-intro.texi: Likewise.
27664         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27665         * modules/fnmatch (Description): Reword to say "the ... function".
27666         * modules/full-read (Description): Likewise.
27667         * modules/full-write (Description): Likewise.
27668         * modules/safe-read (Description): Likewise.
27669         * modules/safe-write (Description): Likewise.
27670         * modules/strchrnul (Description): Likewise.
27671         * modules/trim (Description): Likewise.
27672         * modules/error (Description): Remove parentheses from symbol
27673         references.
27674         * modules/verror (Description): Likewise.
27675         Reported by Karl Berry.
27676
27677 2007-12-25  Bruno Haible  <bruno@clisp.org>
27678
27679         Fixup after 2007-10-16 commit.
27680         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27681
27682 2007-12-24  Bruno Haible  <bruno@clisp.org>
27683
27684         Make --enable-relocatable work with DESTDIR.
27685         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27686         to compute installdir from destprog.
27687         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27688         also set the RELOC_DESTDIR variable.
27689         Reported by Левашев Иван <octagram@bluebottle.com>.
27690
27691 2007-12-24  Bruno Haible  <bruno@clisp.org>
27692
27693         Fix link error due to xalloc_die().
27694         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27695         of xreadlink.
27696         * lib/relocwrapper.c: Update comments.
27697         * build-aux/install-reloc: Remove xreadlink.c from file list.
27698         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27699         xreadlink.c.
27700         Reported by Левашев Иван <octagram@bluebottle.com>.
27701
27702 2007-12-24  Bruno Haible  <bruno@clisp.org>
27703
27704         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27705         * lib/setenv.h: Remove file.
27706         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27707         lib/setenv.h.
27708         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27709         (Depends-on): Add stdlib.
27710         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27711         gl_FUNC_UNSETENV.
27712         (Include): Replace setenv.h with <stdlib.h>.
27713         * modules/unsetenv: New file.
27714         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27715         * lib/unsetenv.c: Include <stdlib.h> first.
27716         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27717         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27718         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27719         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27720         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27721         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27723         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27724         * doc/functions/unsetenv.texi: Update.
27725         * modules/xsetenv (Depends-on): Add unsetenv.
27726         * modules/getdate (Depends-on): Likewise.
27727         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27728         * lib/xsetenv.c: Don't include setenv.h.
27729         * lib/getdate.y: Likewise.
27730         * lib/relocwrapper.c: Likewise.
27731         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27732         (Depends-on): Add stdlib.
27733         * NEWS: Mention the changes.
27734         Reported by Левашев Иван <octagram@bluebottle.com>.
27735
27736 2007-12-23  Bruno Haible  <bruno@clisp.org>
27737
27738         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27739         indentation.
27740
27741 2007-12-23  Bruno Haible  <bruno@clisp.org>
27742
27743         * lib/c-strcasestr.c: Add more comments.
27744         * lib/c-strstr.c: Likewise.
27745         * lib/mbscasestr.c: Likewise.
27746         * lib/mbsstr.c: Likewise.
27747         * lib/strcasestr.c: Likewise.
27748         * lib/memmem.c: Likewise.
27749
27750 2007-12-23  Bruno Haible  <bruno@clisp.org>
27751
27752         * tests/test-memmem.c: Include <string.h> first.
27753
27754 2007-12-22  Bruno Haible  <bruno@clisp.org>
27755
27756         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27757         the contents of $testsbase.
27758         Reported by Ralf Wildenhues.
27759
27760 2007-12-22  Bruno Haible  <bruno@clisp.org>
27761
27762         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27763         two variables local_ldadd_before, local_ldadd_last.
27764
27765 2007-12-20  Eric Blake  <ebb9@byu.net>
27766
27767         Work around circular library issue when cross-compiling.
27768         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27769         that progname.o does not need to pull in rpl_memcmp.
27770
27771 2007-12-19  Eric Blake  <ebb9@byu.net>
27772
27773         Fix memmem to avoid O(n^2) worst-case complexity.
27774         * lib/memmem.c (knuth_morris_pratt): New function.
27775         (memmem): Use it if first few naive iterations fail.
27776         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27777         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27778         * modules/memchr (License): Likewise.
27779         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27780         malloca.
27781         * tests/test-memmem.c: Rewrite, borrowing ideas from
27782         test-mbsstr1.c; the old version wouldn't even compile!
27783         * modules/memmem-tests: New file.
27784         * lib/string.in.h (rpl_memmem): Add declaration.
27785         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27787         REPLACE_MEMMEM.
27788
27789 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27790
27791         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27792         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27793         before any system include files, and undef after them all.  This
27794         should fix a problem on VMS reported by John E. Malmberg in
27795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27796
27797 2007-12-17  Eric Blake  <ebb9@byu.net>
27798
27799         Revert addition of verify, for BSD/OS.
27800         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27801         can't handle large files, for the sake of obsolete platforms.
27802         * modules/fseeko (Depends-on): Remove verify.
27803         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27804         * doc/functions/ftello.texi (ftello): Likewise.
27805         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27806         Reported by Larry Jones.
27807
27808 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27809
27810         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27811         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27812
27813 2007-12-17  Jim Meyering  <meyering@redhat.com>
27814
27815         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27816         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27817         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27818         * modules/getcwd (Depends-on): Add openat.
27819         Reported by Petr Salinger.
27820
27821 2007-12-17  Bruno Haible  <bruno@clisp.org>
27822
27823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27824         avoid a segmentation fault of the configure test on x86_64 systems.
27825
27826 2007-12-15  Jim Meyering  <meyering@redhat.com>
27827
27828         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27829
27830 2007-12-13  Eric Blake  <ebb9@byu.net>
27831
27832         Another fseek test.
27833         * tests/test-fseek.c (main): Also test ungetc handling.
27834         * tests/test-fseeko.c (main): Likewise.
27835         * modules/fseeko (Depends-on): Add verify.
27836         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27837         large.
27838         Reported by Larry Jones.
27839
27840         Fix fseeko on mingw.
27841         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27842         seek.
27843
27844         Beef up fseek tests.
27845         * tests/test-fseek.c (main): Also test eof handling.
27846         * tests/test-fseeko.c (main): Likewise.
27847         Reported by Larry Jones.
27848
27849 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27850
27851         Fix fseeko on BSD-based platforms.
27852         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27853         successful seek.
27854
27855 2007-12-12  Eric Blake  <ebb9@byu.net>
27856
27857         Allow circular dependency of separate libtests.a
27858         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27859         when use_libtests.
27860
27861 2007-12-11  Eric Blake  <ebb9@byu.net>
27862
27863         Fix bug with -0.0L in previous patch.
27864         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27865         * tests/test-isnan.c (main): Also test on zeroes.
27866         * tests/test-isnanf.c (main): Likewise.
27867         * tests/test-isnanl.h (main): Likewise.
27868
27869         Detect pseudo-denormals on x86 even when cross-compiling.
27870         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27871         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27872         invalid bit patterns that happen to satisfy ==.
27873
27874         Avoid link failures with separate libtests.a.
27875         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27876         last, to satisfy circular dependencies.
27877
27878 2007-12-11  Eric Blake  <ebb9@byu.net>
27879         and Bruno Haible  <bruno@clisp.org>
27880
27881         Fix OpenBSD 4.0 <float.h> handling of long double.
27882         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27883         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27884         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27885
27886 2007-12-11  Jim Meyering  <meyering@redhat.com>
27887
27888         * users.txt: Add libvirt.
27889
27890         Support versions of autoconf prior to 2.59c.
27891         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27892         if it is not already defined.
27893
27894 2007-12-09  Bruno Haible  <bruno@clisp.org>
27895
27896         Let 'gnulib-tool --import' collect sources needed for the tests in
27897         tests/ rather than in lib/.
27898         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27899         argument. If true, add rules to generate libtests.a, and put libtests.a
27900         into $(LDADD). Consider source files in subdirectories and set
27901         uses_subdirs.
27902         (func_emit_initmacro_start, func_emit_initmacro_end,
27903         func_emit_initmacro_done): Pass all arguments explicitly.
27904         (func_import): Determine two module lists main_modules,
27905         testsrelated_modules. Determine use_libtests. Determine two variables
27906         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27907         instead of just sed_transform_lib_file. Determine two variables
27908         main_files and testsrelated_files. Compute 'files' as the union of
27909         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27910         func_add_or_update. In the generated gnulib-comp.m4, collect the
27911         object files for tests/ in different variables than those for lib/.
27912         Substitute LIBTESTS_LIBDEPS.
27913         (func_create_testdir): Combine the uses_subdirs results from
27914         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27915
27916 2007-12-09  Bruno Haible  <bruno@clisp.org>
27917
27918         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27919         the build-aux directory.
27920
27921 2007-12-09  Bruno Haible  <bruno@clisp.org>
27922
27923         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27924         introduced on 2006-09-09.
27925
27926 2007-12-07  Jim Meyering  <meyering@redhat.com>
27927
27928         Let these macros work also with autoconf-2.59.
27929         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27930         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27931         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27932
27933 2007-12-06  Jim Meyering  <meyering@redhat.com>
27934
27935         Avoid a configure-time syntax error in gl_FUNC_ACL.
27936         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27937         function in each branch, before testing the cache variable.
27938
27939 2007-12-04  Eric Blake  <ebb9@byu.net>
27940
27941         Make scripts executable.
27942         * build-aux/config.guess: Add execute permissions.
27943         * build-aux/config.sub: Likewise.
27944         * build-aux/gendocs.sh: Likewise.
27945
27946         Fix frexp on mingw.
27947         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27948         cross-compiling.
27949         * doc/functions/frexp.texi (frexp): Document the bug.
27950
27951         Make cygwin fseeko check more reliable.
27952         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27953         version numbers, rather than unrelated feature check.
27954         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27955         * doc/functions/ftello.texi (ftello): Likewise.
27956         Reported by Bruno Haible.
27957
27958         * m4/strerror.m4: Bump version number.
27959
27960 2007-12-03  Bruno Haible  <bruno@clisp.org>
27961
27962         * doc/functions/mprotect.texi: Mention the mingw problem.
27963
27964 2007-12-03  Eric Blake  <ebb9@byu.net>
27965
27966         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27967         REPLACE_STRERROR is initialized before this macro.
27968
27969 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27972         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27973         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27974         put -lsec in even for programs other than 'ls'.  This fixes a problem
27975         for gettext reported by Bruno Haible in
27976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27977         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27978         Add support for Solaris 10.  This isn't efficient, but should get the
27979         job done for now.
27980
27981 2007-12-03  James Youngman  <jay@gnu.org>
27982
27983         * doc/regexprops-generic.texi: change "an close-group" to "a
27984         close-group" and "illegal" to "not allowed".
27985
27986 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27987
27988         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27989         pr_byname.h. Needed for the rare case when the maintainer has done
27990         "make maintainer-clean" in the source directory and then attempts a
27991         build outside the source directory.
27992         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27993         scripts_byname.h.
27994
27995 2007-12-02  Martin Lambers <marlam@marlam.de>
27996             Bruno Haible  <bruno@clisp.org>
27997
27998         * lib/getpagesize.h: Remove file.
27999         * lib/unistd.in.h: Include declaration of getpagesize here.
28000         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28001         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28002         HAVE_SYS_PARAM_H.
28003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28004         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28005         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28006         (Depends-on): Add unistd.
28007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28008         (Include): Use <unistd.h> instead of getpagesize.h.
28009         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28010         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28011         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28012         gl_GETPAGESIZE invocation, already handled by module dependency.
28013         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28014
28015 2007-12-02  Bruno Haible  <bruno@clisp.org>
28016
28017         * modules/strings-tests: New file.
28018         * tests/test-strings.c: New file.
28019
28020         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28021         * lib/strings.in.h: New file.
28022         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28023         * m4/strings_h.m4: New file.
28024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28025         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28026         * modules/strings: New file.
28027         * modules/string (Makefile.am): Update.
28028         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28029         Reported by Karl Berry.
28030
28031 2007-12-01  Eric Blake  <ebb9@byu.net>
28032
28033         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28034         accomodate fix in cygwin 1.5.25.
28035
28036 2007-12-01  Jim Meyering  <meyering@redhat.com>
28037
28038         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28039         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28040         that would inhibit utf8-optimization of a regexp containing line-
28041         or buffer-anchors, e.g., `^', `$'.
28042
28043 2007-11-30  Bruno Haible  <bruno@clisp.org>
28044
28045         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28046         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28047         glthread_recursive_lock_init.
28048         * lib/lock.c (glthread_recursive_lock_init)
28049         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28050         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28051
28052 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28053
28054         New function qset_acl, like set_acl but with syscall semantics.
28055         * lib/acl.h (qset_acl): New decl.
28056         * lib/acl.c (qset_acl): New function.
28057         (set_acl): Use new function.  Use more-consistent diagnostics.
28058
28059 2007-11-28  Jim Meyering  <meyering@redhat.com>
28060
28061         * modules/physmem (License): Change from GPL to LGPLv2+.
28062
28063 2007-11-26  Bruno Haible  <bruno@clisp.org>
28064
28065         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28066         'long double' type has excess precision.
28067         Reported by Jim Meyering in
28068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28069
28070 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28071
28072         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28073         Sync from <http://gnu.org/licenses>.
28074         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28075         with license text from same location.
28076         * doc/maintain.texi, doc/standards.texi:  Sync from
28077         <http://savannah.gnu.org/projects/gnustandards>.
28078
28079 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28080         and Jim Meyering  <meyering@redhat.com>
28081
28082         Adjust getdate' grammar to accept a slightly more regular language.
28083         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28084         Before, the former was rejected.
28085         * lib/getdate.y (digits_to_date_time): New function, factored
28086         out of ...
28087         (number): ...here.  Just call digits_to_date_time.
28088         (hybrid): New non-terminal to handle an <unsigned number,
28089         signed relative offset> sequence consistently.
28090
28091 2007-11-18  Jim Meyering  <meyering@redhat.com>
28092
28093         Pull my changes from coreutils:
28094         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28095         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28096         use of $gnulib_tool_option_extras, so that it's separated from the
28097         preceding argument.
28098
28099         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28100         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28101         parent destination directories before copying a file into place.
28102
28103 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28104
28105         bootstrap: work also with 4-argument variant of AC_INIT
28106         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28107
28108 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28109
28110         Port test-getaddrinfo to Solaris.
28111         Problem reported by Bruno Haible in
28112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28113         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28114         explanation of setting 'hints'.
28115         Don't reject an implementation merely because it returns EAI_SERVICE.
28116         (EAI_SERVICE): Define to 0 if not defined.
28117
28118 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28119
28120         The license of gnu-make and posix-shell is now "GPLed build tool".
28121         * modules/gnu-make (License): Likewise.
28122         * modules/posix-shell (License): Likewise.
28123
28124         New module posix-shell, for determining a POSIX shell
28125         or perhaps something that is close enough to a POSIX shell.
28126         * m4/posix-shell.m4: New file.
28127         * modules/posix-shell: New file.
28128
28129         * MODULES.html.sh: Mention new module.
28130
28131         New module gnu-make, for determining whether we're using GNU Make.
28132         * m4/gnu-make.m4: New file.
28133         * modules/gnu-make: New file.
28134         * MODULES.html.sh: Mention new module.
28135
28136 2007-11-14  Jim Meyering  <meyering@redhat.com>
28137
28138         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28139         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28140         use this macro to create a function _definition_.
28141         Remove useless "#undef ARGMATCH_DIE".
28142
28143 2007-11-14  Bruno Haible  <bruno@clisp.org>
28144
28145         * lib/config.charset: Update for OpenBSD 4.1.
28146         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28147
28148 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28149
28150         Document 64-bit #if problems in stdint.texi.
28151         * doc/headers/stdint.texi (stdint.h): Mention problems with
28152         64-bit-#if, and how to work around them.
28153
28154         Don't insist on 'long long int' support in the preprocessor.  It
28155         breaks too many things.  For example, PRIdMAX still uses a 'long
28156         long int' format with the latest Sun compiler, even though
28157         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28158         preprocessor problem.  This causes the latest coreutils to dump
28159         core on Solaris 10 sparc with the Sun C compiler.
28160         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28161         the troublesome expressions at configure-time, not at #if-time.
28162         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28163         preprocessor.
28164         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28165         compile-time C checks, done at 'configure'-time.
28166         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28167         * modules/inttypes (Makefile): Substitute the new symbols that
28168         gl_INTTYPES_H now generates.
28169         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28170
28171 2007-11-12  Bruno Haible  <bruno@clisp.org>
28172
28173         Tests for Unicode character classification functions.
28174
28175         * modules/unictype/bidicategory-byname-tests: New file.
28176         * modules/unictype/bidicategory-name-tests: New file.
28177         * modules/unictype/bidicategory-of-tests: New file.
28178         * modules/unictype/bidicategory-test-tests: New file.
28179         * modules/unictype/block-list-tests: New file.
28180         * modules/unictype/block-of-tests: New file.
28181         * modules/unictype/block-test-tests: New file.
28182         * modules/unictype/category-C-tests: New file.
28183         * modules/unictype/category-Cc-tests: New file.
28184         * modules/unictype/category-Cf-tests: New file.
28185         * modules/unictype/category-Cn-tests: New file.
28186         * modules/unictype/category-Co-tests: New file.
28187         * modules/unictype/category-Cs-tests: New file.
28188         * modules/unictype/category-L-tests: New file.
28189         * modules/unictype/category-Ll-tests: New file.
28190         * modules/unictype/category-Lm-tests: New file.
28191         * modules/unictype/category-Lo-tests: New file.
28192         * modules/unictype/category-Lt-tests: New file.
28193         * modules/unictype/category-Lu-tests: New file.
28194         * modules/unictype/category-M-tests: New file.
28195         * modules/unictype/category-Mc-tests: New file.
28196         * modules/unictype/category-Me-tests: New file.
28197         * modules/unictype/category-Mn-tests: New file.
28198         * modules/unictype/category-N-tests: New file.
28199         * modules/unictype/category-Nd-tests: New file.
28200         * modules/unictype/category-Nl-tests: New file.
28201         * modules/unictype/category-No-tests: New file.
28202         * modules/unictype/category-P-tests: New file.
28203         * modules/unictype/category-Pc-tests: New file.
28204         * modules/unictype/category-Pd-tests: New file.
28205         * modules/unictype/category-Pe-tests: New file.
28206         * modules/unictype/category-Pf-tests: New file.
28207         * modules/unictype/category-Pi-tests: New file.
28208         * modules/unictype/category-Po-tests: New file.
28209         * modules/unictype/category-Ps-tests: New file.
28210         * modules/unictype/category-S-tests: New file.
28211         * modules/unictype/category-Sc-tests: New file.
28212         * modules/unictype/category-Sk-tests: New file.
28213         * modules/unictype/category-Sm-tests: New file.
28214         * modules/unictype/category-So-tests: New file.
28215         * modules/unictype/category-Z-tests: New file.
28216         * modules/unictype/category-Zl-tests: New file.
28217         * modules/unictype/category-Zp-tests: New file.
28218         * modules/unictype/category-Zs-tests: New file.
28219         * modules/unictype/category-and-not-tests: New file.
28220         * modules/unictype/category-and-tests: New file.
28221         * modules/unictype/category-byname-tests: New file.
28222         * modules/unictype/category-name-tests: New file.
28223         * modules/unictype/category-none-tests: New file.
28224         * modules/unictype/category-of-tests: New file.
28225         * modules/unictype/category-or-tests: New file.
28226         * modules/unictype/category-test-withtable-tests: New file.
28227         * modules/unictype/combining-class-tests: New file.
28228         * modules/unictype/ctype-alnum-tests: New file.
28229         * modules/unictype/ctype-alpha-tests: New file.
28230         * modules/unictype/ctype-blank-tests: New file.
28231         * modules/unictype/ctype-cntrl-tests: New file.
28232         * modules/unictype/ctype-digit-tests: New file.
28233         * modules/unictype/ctype-graph-tests: New file.
28234         * modules/unictype/ctype-lower-tests: New file.
28235         * modules/unictype/ctype-print-tests: New file.
28236         * modules/unictype/ctype-punct-tests: New file.
28237         * modules/unictype/ctype-space-tests: New file.
28238         * modules/unictype/ctype-upper-tests: New file.
28239         * modules/unictype/ctype-xdigit-tests: New file.
28240         * modules/unictype/decimal-digit-tests: New file.
28241         * modules/unictype/digit-tests: New file.
28242         * modules/unictype/mirror-tests: New file.
28243         * modules/unictype/numeric-tests: New file.
28244         * modules/unictype/property-alphabetic-tests: New file.
28245         * modules/unictype/property-ascii-hex-digit-tests: New file.
28246         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28247         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28248         * modules/unictype/property-bidi-block-separator-tests: New file.
28249         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28250         * modules/unictype/property-bidi-common-separator-tests: New file.
28251         * modules/unictype/property-bidi-control-tests: New file.
28252         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28253         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28254         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28255         * modules/unictype/property-bidi-european-digit-tests: New file.
28256         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28257         * modules/unictype/property-bidi-left-to-right-tests: New file.
28258         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28259         * modules/unictype/property-bidi-other-neutral-tests: New file.
28260         * modules/unictype/property-bidi-pdf-tests: New file.
28261         * modules/unictype/property-bidi-segment-separator-tests: New file.
28262         * modules/unictype/property-bidi-whitespace-tests: New file.
28263         * modules/unictype/property-byname-tests: New file.
28264         * modules/unictype/property-combining-tests: New file.
28265         * modules/unictype/property-composite-tests: New file.
28266         * modules/unictype/property-currency-symbol-tests: New file.
28267         * modules/unictype/property-dash-tests: New file.
28268         * modules/unictype/property-decimal-digit-tests: New file.
28269         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28270         * modules/unictype/property-deprecated-tests: New file.
28271         * modules/unictype/property-diacritic-tests: New file.
28272         * modules/unictype/property-extender-tests: New file.
28273         * modules/unictype/property-format-control-tests: New file.
28274         * modules/unictype/property-grapheme-base-tests: New file.
28275         * modules/unictype/property-grapheme-extend-tests: New file.
28276         * modules/unictype/property-grapheme-link-tests: New file.
28277         * modules/unictype/property-hex-digit-tests: New file.
28278         * modules/unictype/property-hyphen-tests: New file.
28279         * modules/unictype/property-id-continue-tests: New file.
28280         * modules/unictype/property-id-start-tests: New file.
28281         * modules/unictype/property-ideographic-tests: New file.
28282         * modules/unictype/property-ids-binary-operator-tests: New file.
28283         * modules/unictype/property-ids-trinary-operator-tests: New file.
28284         * modules/unictype/property-ignorable-control-tests: New file.
28285         * modules/unictype/property-iso-control-tests: New file.
28286         * modules/unictype/property-join-control-tests: New file.
28287         * modules/unictype/property-left-of-pair-tests: New file.
28288         * modules/unictype/property-line-separator-tests: New file.
28289         * modules/unictype/property-logical-order-exception-tests: New file.
28290         * modules/unictype/property-lowercase-tests: New file.
28291         * modules/unictype/property-math-tests: New file.
28292         * modules/unictype/property-non-break-tests: New file.
28293         * modules/unictype/property-not-a-character-tests: New file.
28294         * modules/unictype/property-numeric-tests: New file.
28295         * modules/unictype/property-other-alphabetic-tests: New file.
28296         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28297         * modules/unictype/property-other-grapheme-extend-tests: New file.
28298         * modules/unictype/property-other-id-continue-tests: New file.
28299         * modules/unictype/property-other-id-start-tests: New file.
28300         * modules/unictype/property-other-lowercase-tests: New file.
28301         * modules/unictype/property-other-math-tests: New file.
28302         * modules/unictype/property-other-uppercase-tests: New file.
28303         * modules/unictype/property-paired-punctuation-tests: New file.
28304         * modules/unictype/property-paragraph-separator-tests: New file.
28305         * modules/unictype/property-pattern-syntax-tests: New file.
28306         * modules/unictype/property-pattern-white-space-tests: New file.
28307         * modules/unictype/property-private-use-tests: New file.
28308         * modules/unictype/property-punctuation-tests: New file.
28309         * modules/unictype/property-quotation-mark-tests: New file.
28310         * modules/unictype/property-radical-tests: New file.
28311         * modules/unictype/property-sentence-terminal-tests: New file.
28312         * modules/unictype/property-soft-dotted-tests: New file.
28313         * modules/unictype/property-space-tests: New file.
28314         * modules/unictype/property-terminal-punctuation-tests: New file.
28315         * modules/unictype/property-test-tests: New file.
28316         * modules/unictype/property-titlecase-tests: New file.
28317         * modules/unictype/property-unassigned-code-value-tests: New file.
28318         * modules/unictype/property-unified-ideograph-tests: New file.
28319         * modules/unictype/property-uppercase-tests: New file.
28320         * modules/unictype/property-variation-selector-tests: New file.
28321         * modules/unictype/property-white-space-tests: New file.
28322         * modules/unictype/property-xid-continue-tests: New file.
28323         * modules/unictype/property-xid-start-tests: New file.
28324         * modules/unictype/property-zero-width-tests: New file.
28325         * modules/unictype/scripts-tests: New file.
28326         * modules/unictype/syntax-c-ident-tests: New file.
28327         * modules/unictype/syntax-c-whitespace-tests: New file.
28328         * modules/unictype/syntax-java-ident-tests: New file.
28329         * modules/unictype/syntax-java-whitespace-tests: New file.
28330         * tests/unictype/test-bidi_byname.c: New file.
28331         * tests/unictype/test-bidi_name.c: New file.
28332         * tests/unictype/test-bidi_of.c: New file.
28333         * tests/unictype/test-bidi_test.c: New file.
28334         * tests/unictype/test-block_list.c: New file.
28335         * tests/unictype/test-block_of.c: New file.
28336         * tests/unictype/test-block_test.c: New file.
28337         * tests/unictype/test-categ_and.c: New file.
28338         * tests/unictype/test-categ_and_not.c: New file.
28339         * tests/unictype/test-categ_byname.c: New file.
28340         * tests/unictype/test-categ_name.c: New file.
28341         * tests/unictype/test-categ_none.c: New file.
28342         * tests/unictype/test-categ_of.c: New file.
28343         * tests/unictype/test-categ_or.c: New file.
28344         * tests/unictype/test-categ_test_withtable.c: New file.
28345         * tests/unictype/test-combining.c: New file.
28346         * tests/unictype/test-decdigit.c: New file.
28347         * tests/unictype/test-digit.c: New file.
28348         * tests/unictype/test-mirror.c: New file.
28349         * tests/unictype/test-numeric.c: New file.
28350         * tests/unictype/test-pr_byname.c: New file.
28351         * tests/unictype/test-pr_test.c: New file.
28352         * tests/unictype/test-predicate-part1.h: New file.
28353         * tests/unictype/test-predicate-part2.h: New file.
28354         * tests/unictype/test-scripts.c: New file.
28355         * tests/unictype/test-sy_c_ident.c: New file.
28356         * tests/unictype/test-sy_java_ident.c: New file.
28357
28358         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28359         for Unicode 5.0.0.
28360         * tests/unictype/test-categ_Cc.c: Likewise.
28361         * tests/unictype/test-categ_Cf.c: Likewise.
28362         * tests/unictype/test-categ_Cn.c: Likewise.
28363         * tests/unictype/test-categ_Co.c: Likewise.
28364         * tests/unictype/test-categ_Cs.c: Likewise.
28365         * tests/unictype/test-categ_L.c: Likewise.
28366         * tests/unictype/test-categ_Ll.c: Likewise.
28367         * tests/unictype/test-categ_Lm.c: Likewise.
28368         * tests/unictype/test-categ_Lo.c: Likewise.
28369         * tests/unictype/test-categ_Lt.c: Likewise.
28370         * tests/unictype/test-categ_Lu.c: Likewise.
28371         * tests/unictype/test-categ_M.c: Likewise.
28372         * tests/unictype/test-categ_Mc.c: Likewise.
28373         * tests/unictype/test-categ_Me.c: Likewise.
28374         * tests/unictype/test-categ_Mn.c: Likewise.
28375         * tests/unictype/test-categ_N.c: Likewise.
28376         * tests/unictype/test-categ_Nd.c: Likewise.
28377         * tests/unictype/test-categ_Nl.c: Likewise.
28378         * tests/unictype/test-categ_No.c: Likewise.
28379         * tests/unictype/test-categ_P.c: Likewise.
28380         * tests/unictype/test-categ_Pc.c: Likewise.
28381         * tests/unictype/test-categ_Pd.c: Likewise.
28382         * tests/unictype/test-categ_Pe.c: Likewise.
28383         * tests/unictype/test-categ_Pf.c: Likewise.
28384         * tests/unictype/test-categ_Pi.c: Likewise.
28385         * tests/unictype/test-categ_Po.c: Likewise.
28386         * tests/unictype/test-categ_Ps.c: Likewise.
28387         * tests/unictype/test-categ_S.c: Likewise.
28388         * tests/unictype/test-categ_Sc.c: Likewise.
28389         * tests/unictype/test-categ_Sk.c: Likewise.
28390         * tests/unictype/test-categ_Sm.c: Likewise.
28391         * tests/unictype/test-categ_So.c: Likewise.
28392         * tests/unictype/test-categ_Z.c: Likewise.
28393         * tests/unictype/test-categ_Zl.c: Likewise.
28394         * tests/unictype/test-categ_Zp.c: Likewise.
28395         * tests/unictype/test-categ_Zs.c: Likewise.
28396         * tests/unictype/test-ctype_alnum.c: Likewise.
28397         * tests/unictype/test-ctype_alpha.c: Likewise.
28398         * tests/unictype/test-ctype_blank.c: Likewise.
28399         * tests/unictype/test-ctype_cntrl.c: Likewise.
28400         * tests/unictype/test-ctype_digit.c: Likewise.
28401         * tests/unictype/test-ctype_graph.c: Likewise.
28402         * tests/unictype/test-ctype_lower.c: Likewise.
28403         * tests/unictype/test-ctype_print.c: Likewise.
28404         * tests/unictype/test-ctype_punct.c: Likewise.
28405         * tests/unictype/test-ctype_space.c: Likewise.
28406         * tests/unictype/test-ctype_upper.c: Likewise.
28407         * tests/unictype/test-ctype_xdigit.c: Likewise.
28408         * tests/unictype/test-decdigit.h: Likewise.
28409         * tests/unictype/test-digit.h: Likewise.
28410         * tests/unictype/test-numeric.h: Likewise.
28411         * tests/unictype/test-pr_alphabetic.c: Likewise.
28412         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28413         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28414         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28415         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28416         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28417         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28418         * tests/unictype/test-pr_bidi_control.c: Likewise.
28419         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28420         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28421         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28422         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28423         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28424         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28425         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28426         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28427         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28428         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28429         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28430         * tests/unictype/test-pr_combining.c: Likewise.
28431         * tests/unictype/test-pr_composite.c: Likewise.
28432         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28433         * tests/unictype/test-pr_dash.c: Likewise.
28434         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28435         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28436         * tests/unictype/test-pr_deprecated.c: Likewise.
28437         * tests/unictype/test-pr_diacritic.c: Likewise.
28438         * tests/unictype/test-pr_extender.c: Likewise.
28439         * tests/unictype/test-pr_format_control.c: Likewise.
28440         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28441         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28442         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28443         * tests/unictype/test-pr_hex_digit.c: Likewise.
28444         * tests/unictype/test-pr_hyphen.c: Likewise.
28445         * tests/unictype/test-pr_id_continue.c: Likewise.
28446         * tests/unictype/test-pr_id_start.c: Likewise.
28447         * tests/unictype/test-pr_ideographic.c: Likewise.
28448         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28449         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28450         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28451         * tests/unictype/test-pr_iso_control.c: Likewise.
28452         * tests/unictype/test-pr_join_control.c: Likewise.
28453         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28454         * tests/unictype/test-pr_line_separator.c: Likewise.
28455         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28456         * tests/unictype/test-pr_lowercase.c: Likewise.
28457         * tests/unictype/test-pr_math.c: Likewise.
28458         * tests/unictype/test-pr_non_break.c: Likewise.
28459         * tests/unictype/test-pr_not_a_character.c: Likewise.
28460         * tests/unictype/test-pr_numeric.c: Likewise.
28461         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28462         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28463         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28464         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28465         * tests/unictype/test-pr_other_id_start.c: Likewise.
28466         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28467         * tests/unictype/test-pr_other_math.c: Likewise.
28468         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28469         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28470         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28471         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28472         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28473         * tests/unictype/test-pr_private_use.c: Likewise.
28474         * tests/unictype/test-pr_punctuation.c: Likewise.
28475         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28476         * tests/unictype/test-pr_radical.c: Likewise.
28477         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28478         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28479         * tests/unictype/test-pr_space.c: Likewise.
28480         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28481         * tests/unictype/test-pr_titlecase.c: Likewise.
28482         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28483         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28484         * tests/unictype/test-pr_uppercase.c: Likewise.
28485         * tests/unictype/test-pr_variation_selector.c: Likewise.
28486         * tests/unictype/test-pr_white_space.c: Likewise.
28487         * tests/unictype/test-pr_xid_continue.c: Likewise.
28488         * tests/unictype/test-pr_xid_start.c: Likewise.
28489         * tests/unictype/test-pr_zero_width.c: Likewise.
28490         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28491         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28492
28493 2007-11-12  Bruno Haible  <bruno@clisp.org>
28494
28495         Unicode character classification functions.
28496         * lib/unictype.h: New file.
28497         * modules/unictype/base: New file.
28498         * modules/unictype/category-L: New file.
28499         * modules/unictype/category-Lu: New file.
28500         * modules/unictype/category-Ll: New file.
28501         * modules/unictype/category-Lt: New file.
28502         * modules/unictype/category-Lm: New file.
28503         * modules/unictype/category-Lo: New file.
28504         * modules/unictype/category-M: New file.
28505         * modules/unictype/category-Mn: New file.
28506         * modules/unictype/category-Mc: New file.
28507         * modules/unictype/category-Me: New file.
28508         * modules/unictype/category-N: New file.
28509         * modules/unictype/category-Nd: New file.
28510         * modules/unictype/category-Nl: New file.
28511         * modules/unictype/category-No: New file.
28512         * modules/unictype/category-P: New file.
28513         * modules/unictype/category-Pc: New file.
28514         * modules/unictype/category-Pd: New file.
28515         * modules/unictype/category-Ps: New file.
28516         * modules/unictype/category-Pe: New file.
28517         * modules/unictype/category-Pi: New file.
28518         * modules/unictype/category-Pf: New file.
28519         * modules/unictype/category-Po: New file.
28520         * modules/unictype/category-S: New file.
28521         * modules/unictype/category-Sm: New file.
28522         * modules/unictype/category-Sc: New file.
28523         * modules/unictype/category-Sk: New file.
28524         * modules/unictype/category-So: New file.
28525         * modules/unictype/category-Z: New file.
28526         * modules/unictype/category-Zs: New file.
28527         * modules/unictype/category-Zl: New file.
28528         * modules/unictype/category-Zp: New file.
28529         * modules/unictype/category-C: New file.
28530         * modules/unictype/category-Cc: New file.
28531         * modules/unictype/category-Cf: New file.
28532         * modules/unictype/category-Cs: New file.
28533         * modules/unictype/category-Co: New file.
28534         * modules/unictype/category-Cn: New file.
28535         * modules/unictype/category-or: New file.
28536         * modules/unictype/category-of: New file.
28537         * modules/unictype/category-test: New file.
28538         * modules/unictype/category-test-withtable: New file.
28539         * modules/unictype/category-byname: New file.
28540         * modules/unictype/category-none: New file.
28541         * modules/unictype/category-and: New file.
28542         * modules/unictype/category-and-not: New file.
28543         * modules/unictype/category-name: New file.
28544         * modules/unictype/combining-class: New file.
28545         * modules/unictype/category-all: New file.
28546         * modules/unictype/bidicategory-all: New file.
28547         * modules/unictype/bidicategory-byname: New file.
28548         * modules/unictype/bidicategory-name: New file.
28549         * modules/unictype/bidicategory-of: New file.
28550         * modules/unictype/bidicategory-test: New file.
28551         * modules/unictype/decimal-digit: New file.
28552         * modules/unictype/digit: New file.
28553         * modules/unictype/numeric: New file.
28554         * modules/unictype/mirror: New file.
28555         * modules/unictype/property-white-space: New file.
28556         * modules/unictype/property-alphabetic: New file.
28557         * modules/unictype/property-other-alphabetic: New file.
28558         * modules/unictype/property-not-a-character: New file.
28559         * modules/unictype/property-default-ignorable-code-point: New file.
28560         * modules/unictype/property-other-default-ignorable-code-point: New
28561         file.
28562         * modules/unictype/property-deprecated: New file.
28563         * modules/unictype/property-logical-order-exception: New file.
28564         * modules/unictype/property-variation-selector: New file.
28565         * modules/unictype/property-private-use: New file.
28566         * modules/unictype/property-unassigned-code-value: New file.
28567         * modules/unictype/property-uppercase: New file.
28568         * modules/unictype/property-other-uppercase: New file.
28569         * modules/unictype/property-lowercase: New file.
28570         * modules/unictype/property-other-lowercase: New file.
28571         * modules/unictype/property-titlecase: New file.
28572         * modules/unictype/property-soft-dotted: New file.
28573         * modules/unictype/property-id-start: New file.
28574         * modules/unictype/property-other-id-start: New file.
28575         * modules/unictype/property-id-continue: New file.
28576         * modules/unictype/property-other-id-continue: New file.
28577         * modules/unictype/property-xid-start: New file.
28578         * modules/unictype/property-xid-continue: New file.
28579         * modules/unictype/property-pattern-white-space: New file.
28580         * modules/unictype/property-pattern-syntax: New file.
28581         * modules/unictype/property-join-control: New file.
28582         * modules/unictype/property-grapheme-base: New file.
28583         * modules/unictype/property-grapheme-extend: New file.
28584         * modules/unictype/property-other-grapheme-extend: New file.
28585         * modules/unictype/property-grapheme-link: New file.
28586         * modules/unictype/property-bidi-control: New file.
28587         * modules/unictype/property-bidi-left-to-right: New file.
28588         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28589         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28590         * modules/unictype/property-bidi-european-digit: New file.
28591         * modules/unictype/property-bidi-eur-num-separator: New file.
28592         * modules/unictype/property-bidi-eur-num-terminator: New file.
28593         * modules/unictype/property-bidi-arabic-digit: New file.
28594         * modules/unictype/property-bidi-common-separator: New file.
28595         * modules/unictype/property-bidi-block-separator: New file.
28596         * modules/unictype/property-bidi-segment-separator: New file.
28597         * modules/unictype/property-bidi-whitespace: New file.
28598         * modules/unictype/property-bidi-non-spacing-mark: New file.
28599         * modules/unictype/property-bidi-boundary-neutral: New file.
28600         * modules/unictype/property-bidi-pdf: New file.
28601         * modules/unictype/property-bidi-embedding-or-override: New file.
28602         * modules/unictype/property-bidi-other-neutral: New file.
28603         * modules/unictype/property-hex-digit: New file.
28604         * modules/unictype/property-ascii-hex-digit: New file.
28605         * modules/unictype/property-ideographic: New file.
28606         * modules/unictype/property-unified-ideograph: New file.
28607         * modules/unictype/property-radical: New file.
28608         * modules/unictype/property-ids-binary-operator: New file.
28609         * modules/unictype/property-ids-trinary-operator: New file.
28610         * modules/unictype/property-zero-width: New file.
28611         * modules/unictype/property-space: New file.
28612         * modules/unictype/property-non-break: New file.
28613         * modules/unictype/property-iso-control: New file.
28614         * modules/unictype/property-format-control: New file.
28615         * modules/unictype/property-dash: New file.
28616         * modules/unictype/property-hyphen: New file.
28617         * modules/unictype/property-punctuation: New file.
28618         * modules/unictype/property-line-separator: New file.
28619         * modules/unictype/property-paragraph-separator: New file.
28620         * modules/unictype/property-quotation-mark: New file.
28621         * modules/unictype/property-sentence-terminal: New file.
28622         * modules/unictype/property-terminal-punctuation: New file.
28623         * modules/unictype/property-currency-symbol: New file.
28624         * modules/unictype/property-math: New file.
28625         * modules/unictype/property-other-math: New file.
28626         * modules/unictype/property-paired-punctuation: New file.
28627         * modules/unictype/property-left-of-pair: New file.
28628         * modules/unictype/property-combining: New file.
28629         * modules/unictype/property-composite: New file.
28630         * modules/unictype/property-decimal-digit: New file.
28631         * modules/unictype/property-numeric: New file.
28632         * modules/unictype/property-diacritic: New file.
28633         * modules/unictype/property-extender: New file.
28634         * modules/unictype/property-ignorable-control: New file.
28635         * modules/unictype/property-test: New file.
28636         * modules/unictype/property-byname: New file.
28637         * modules/unictype/property-all: New file.
28638         * modules/unictype/scripts: New file.
28639         * modules/unictype/scripts-all: New file.
28640         * modules/unictype/block-of: New file.
28641         * modules/unictype/block-test: New file.
28642         * modules/unictype/block-list: New file.
28643         * modules/unictype/block-all: New file.
28644         * modules/unictype/syntax-c-whitespace: New file.
28645         * modules/unictype/syntax-java-whitespace: New file.
28646         * modules/unictype/syntax-c-ident: New file.
28647         * modules/unictype/syntax-java-ident: New file.
28648         * modules/unictype/ctype-alnum: New file.
28649         * modules/unictype/ctype-alpha: New file.
28650         * modules/unictype/ctype-cntrl: New file.
28651         * modules/unictype/ctype-digit: New file.
28652         * modules/unictype/ctype-graph: New file.
28653         * modules/unictype/ctype-lower: New file.
28654         * modules/unictype/ctype-print: New file.
28655         * modules/unictype/ctype-punct: New file.
28656         * modules/unictype/ctype-space: New file.
28657         * modules/unictype/ctype-upper: New file.
28658         * modules/unictype/ctype-xdigit: New file.
28659         * modules/unictype/ctype-blank: New file.
28660         * lib/unictype/bidi_byname.c: New file.
28661         * lib/unictype/bidi_name.c: New file.
28662         * lib/unictype/bidi_of.c: New file.
28663         * lib/unictype/bidi_test.c: New file.
28664         * lib/unictype/bitmap.h: New file.
28665         * lib/unictype/block_test.c: New file.
28666         * lib/unictype/blocks.c: New file.
28667         * lib/unictype/categ_C.c: New file.
28668         * lib/unictype/categ_Cc.c: New file.
28669         * lib/unictype/categ_Cf.c: New file.
28670         * lib/unictype/categ_Cn.c: New file.
28671         * lib/unictype/categ_Co.c: New file.
28672         * lib/unictype/categ_Cs.c: New file.
28673         * lib/unictype/categ_L.c: New file.
28674         * lib/unictype/categ_Ll.c: New file.
28675         * lib/unictype/categ_Lm.c: New file.
28676         * lib/unictype/categ_Lo.c: New file.
28677         * lib/unictype/categ_Lt.c: New file.
28678         * lib/unictype/categ_Lu.c: New file.
28679         * lib/unictype/categ_M.c: New file.
28680         * lib/unictype/categ_Mc.c: New file.
28681         * lib/unictype/categ_Me.c: New file.
28682         * lib/unictype/categ_Mn.c: New file.
28683         * lib/unictype/categ_N.c: New file.
28684         * lib/unictype/categ_Nd.c: New file.
28685         * lib/unictype/categ_Nl.c: New file.
28686         * lib/unictype/categ_No.c: New file.
28687         * lib/unictype/categ_P.c: New file.
28688         * lib/unictype/categ_Pc.c: New file.
28689         * lib/unictype/categ_Pd.c: New file.
28690         * lib/unictype/categ_Pe.c: New file.
28691         * lib/unictype/categ_Pf.c: New file.
28692         * lib/unictype/categ_Pi.c: New file.
28693         * lib/unictype/categ_Po.c: New file.
28694         * lib/unictype/categ_Ps.c: New file.
28695         * lib/unictype/categ_S.c: New file.
28696         * lib/unictype/categ_Sc.c: New file.
28697         * lib/unictype/categ_Sk.c: New file.
28698         * lib/unictype/categ_Sm.c: New file.
28699         * lib/unictype/categ_So.c: New file.
28700         * lib/unictype/categ_Z.c: New file.
28701         * lib/unictype/categ_Zl.c: New file.
28702         * lib/unictype/categ_Zp.c: New file.
28703         * lib/unictype/categ_Zs.c: New file.
28704         * lib/unictype/categ_and.c: New file.
28705         * lib/unictype/categ_and_not.c: New file.
28706         * lib/unictype/categ_byname.c: New file.
28707         * lib/unictype/categ_name.c: New file.
28708         * lib/unictype/categ_none.c: New file.
28709         * lib/unictype/categ_of.c: New file.
28710         * lib/unictype/categ_or.c: New file.
28711         * lib/unictype/categ_test.c: New file.
28712         * lib/unictype/combining.c: New file.
28713         * lib/unictype/ctype_alnum.c: New file.
28714         * lib/unictype/ctype_alpha.c: New file.
28715         * lib/unictype/ctype_blank.c: New file.
28716         * lib/unictype/ctype_cntrl.c: New file.
28717         * lib/unictype/ctype_digit.c: New file.
28718         * lib/unictype/ctype_graph.c: New file.
28719         * lib/unictype/ctype_lower.c: New file.
28720         * lib/unictype/ctype_print.c: New file.
28721         * lib/unictype/ctype_punct.c: New file.
28722         * lib/unictype/ctype_space.c: New file.
28723         * lib/unictype/ctype_upper.c: New file.
28724         * lib/unictype/ctype_xdigit.c: New file.
28725         * lib/unictype/decdigit.c: New file.
28726         * lib/unictype/digit.c: New file.
28727         * lib/unictype/identsyntaxmap.h: New file.
28728         * lib/unictype/mirror.c: New file.
28729         * lib/unictype/numeric.c: New file.
28730         * lib/unictype/pr_alphabetic.c: New file.
28731         * lib/unictype/pr_ascii_hex_digit.c: New file.
28732         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28733         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28734         * lib/unictype/pr_bidi_block_separator.c: New file.
28735         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28736         * lib/unictype/pr_bidi_common_separator.c: New file.
28737         * lib/unictype/pr_bidi_control.c: New file.
28738         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28739         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28740         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28741         * lib/unictype/pr_bidi_european_digit.c: New file.
28742         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28743         * lib/unictype/pr_bidi_left_to_right.c: New file.
28744         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28745         * lib/unictype/pr_bidi_other_neutral.c: New file.
28746         * lib/unictype/pr_bidi_pdf.c: New file.
28747         * lib/unictype/pr_bidi_segment_separator.c: New file.
28748         * lib/unictype/pr_bidi_whitespace.c: New file.
28749         * lib/unictype/pr_byname.c: New file.
28750         * lib/unictype/pr_byname.gperf: New file.
28751         * lib/unictype/pr_combining.c: New file.
28752         * lib/unictype/pr_composite.c: New file.
28753         * lib/unictype/pr_currency_symbol.c: New file.
28754         * lib/unictype/pr_dash.c: New file.
28755         * lib/unictype/pr_decimal_digit.c: New file.
28756         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28757         * lib/unictype/pr_deprecated.c: New file.
28758         * lib/unictype/pr_diacritic.c: New file.
28759         * lib/unictype/pr_extender.c: New file.
28760         * lib/unictype/pr_format_control.c: New file.
28761         * lib/unictype/pr_grapheme_base.c: New file.
28762         * lib/unictype/pr_grapheme_extend.c: New file.
28763         * lib/unictype/pr_grapheme_link.c: New file.
28764         * lib/unictype/pr_hex_digit.c: New file.
28765         * lib/unictype/pr_hyphen.c: New file.
28766         * lib/unictype/pr_id_continue.c: New file.
28767         * lib/unictype/pr_id_start.c: New file.
28768         * lib/unictype/pr_ideographic.c: New file.
28769         * lib/unictype/pr_ids_binary_operator.c: New file.
28770         * lib/unictype/pr_ids_trinary_operator.c: New file.
28771         * lib/unictype/pr_ignorable_control.c: New file.
28772         * lib/unictype/pr_iso_control.c: New file.
28773         * lib/unictype/pr_join_control.c: New file.
28774         * lib/unictype/pr_left_of_pair.c: New file.
28775         * lib/unictype/pr_line_separator.c: New file.
28776         * lib/unictype/pr_logical_order_exception.c: New file.
28777         * lib/unictype/pr_lowercase.c: New file.
28778         * lib/unictype/pr_math.c: New file.
28779         * lib/unictype/pr_non_break.c: New file.
28780         * lib/unictype/pr_not_a_character.c: New file.
28781         * lib/unictype/pr_numeric.c: New file.
28782         * lib/unictype/pr_other_alphabetic.c: New file.
28783         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28784         * lib/unictype/pr_other_grapheme_extend.c: New file.
28785         * lib/unictype/pr_other_id_continue.c: New file.
28786         * lib/unictype/pr_other_id_start.c: New file.
28787         * lib/unictype/pr_other_lowercase.c: New file.
28788         * lib/unictype/pr_other_math.c: New file.
28789         * lib/unictype/pr_other_uppercase.c: New file.
28790         * lib/unictype/pr_paired_punctuation.c: New file.
28791         * lib/unictype/pr_paragraph_separator.c: New file.
28792         * lib/unictype/pr_pattern_syntax.c: New file.
28793         * lib/unictype/pr_pattern_white_space.c: New file.
28794         * lib/unictype/pr_private_use.c: New file.
28795         * lib/unictype/pr_punctuation.c: New file.
28796         * lib/unictype/pr_quotation_mark.c: New file.
28797         * lib/unictype/pr_radical.c: New file.
28798         * lib/unictype/pr_sentence_terminal.c: New file.
28799         * lib/unictype/pr_soft_dotted.c: New file.
28800         * lib/unictype/pr_space.c: New file.
28801         * lib/unictype/pr_terminal_punctuation.c: New file.
28802         * lib/unictype/pr_test.c: New file.
28803         * lib/unictype/pr_titlecase.c: New file.
28804         * lib/unictype/pr_unassigned_code_value.c: New file.
28805         * lib/unictype/pr_unified_ideograph.c: New file.
28806         * lib/unictype/pr_uppercase.c: New file.
28807         * lib/unictype/pr_variation_selector.c: New file.
28808         * lib/unictype/pr_white_space.c: New file.
28809         * lib/unictype/pr_xid_continue.c: New file.
28810         * lib/unictype/pr_xid_start.c: New file.
28811         * lib/unictype/pr_zero_width.c: New file.
28812         * lib/unictype/scripts.c: New file.
28813         * lib/unictype/sy_c_ident.c: New file.
28814         * lib/unictype/sy_c_whitespace.c: New file.
28815         * lib/unictype/sy_java_ident.c: New file.
28816         * lib/unictype/sy_java_whitespace.c: New file.
28817
28818         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28819         Unicode 5.0.0.
28820         * lib/unictype/blocks.h: Likewise.
28821         * lib/unictype/categ_C.h: Likewise.
28822         * lib/unictype/categ_Cc.h: Likewise.
28823         * lib/unictype/categ_Cf.h: Likewise.
28824         * lib/unictype/categ_Cn.h: Likewise.
28825         * lib/unictype/categ_Co.h: Likewise.
28826         * lib/unictype/categ_Cs.h: Likewise.
28827         * lib/unictype/categ_L.h: Likewise.
28828         * lib/unictype/categ_Ll.h: Likewise.
28829         * lib/unictype/categ_Lm.h: Likewise.
28830         * lib/unictype/categ_Lo.h: Likewise.
28831         * lib/unictype/categ_Lt.h: Likewise.
28832         * lib/unictype/categ_Lu.h: Likewise.
28833         * lib/unictype/categ_M.h: Likewise.
28834         * lib/unictype/categ_Mc.h: Likewise.
28835         * lib/unictype/categ_Me.h: Likewise.
28836         * lib/unictype/categ_Mn.h: Likewise.
28837         * lib/unictype/categ_N.h: Likewise.
28838         * lib/unictype/categ_Nd.h: Likewise.
28839         * lib/unictype/categ_Nl.h: Likewise.
28840         * lib/unictype/categ_No.h: Likewise.
28841         * lib/unictype/categ_P.h: Likewise.
28842         * lib/unictype/categ_Pc.h: Likewise.
28843         * lib/unictype/categ_Pd.h: Likewise.
28844         * lib/unictype/categ_Pe.h: Likewise.
28845         * lib/unictype/categ_Pf.h: Likewise.
28846         * lib/unictype/categ_Pi.h: Likewise.
28847         * lib/unictype/categ_Po.h: Likewise.
28848         * lib/unictype/categ_Ps.h: Likewise.
28849         * lib/unictype/categ_S.h: Likewise.
28850         * lib/unictype/categ_Sc.h: Likewise.
28851         * lib/unictype/categ_Sk.h: Likewise.
28852         * lib/unictype/categ_Sm.h: Likewise.
28853         * lib/unictype/categ_So.h: Likewise.
28854         * lib/unictype/categ_Z.h: Likewise.
28855         * lib/unictype/categ_Zl.h: Likewise.
28856         * lib/unictype/categ_Zp.h: Likewise.
28857         * lib/unictype/categ_Zs.h: Likewise.
28858         * lib/unictype/categ_of.h: Likewise.
28859         * lib/unictype/combining.h: Likewise.
28860         * lib/unictype/ctype_alnum.h: Likewise.
28861         * lib/unictype/ctype_alpha.h: Likewise.
28862         * lib/unictype/ctype_blank.h: Likewise.
28863         * lib/unictype/ctype_cntrl.h: Likewise.
28864         * lib/unictype/ctype_digit.h: Likewise.
28865         * lib/unictype/ctype_graph.h: Likewise.
28866         * lib/unictype/ctype_lower.h: Likewise.
28867         * lib/unictype/ctype_print.h: Likewise.
28868         * lib/unictype/ctype_punct.h: Likewise.
28869         * lib/unictype/ctype_space.h: Likewise.
28870         * lib/unictype/ctype_upper.h: Likewise.
28871         * lib/unictype/ctype_xdigit.h: Likewise.
28872         * lib/unictype/decdigit.h: Likewise.
28873         * lib/unictype/digit.h: Likewise.
28874         * lib/unictype/mirror.h: Likewise.
28875         * lib/unictype/numeric.h: Likewise.
28876         * lib/unictype/pr_alphabetic.h: Likewise.
28877         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28878         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28879         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28880         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28881         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28882         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28883         * lib/unictype/pr_bidi_control.h: Likewise.
28884         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28885         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28886         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28887         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28888         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28889         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28890         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28891         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28892         * lib/unictype/pr_bidi_pdf.h: Likewise.
28893         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28894         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28895         * lib/unictype/pr_combining.h: Likewise.
28896         * lib/unictype/pr_composite.h: Likewise.
28897         * lib/unictype/pr_currency_symbol.h: Likewise.
28898         * lib/unictype/pr_dash.h: Likewise.
28899         * lib/unictype/pr_decimal_digit.h: Likewise.
28900         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28901         * lib/unictype/pr_deprecated.h: Likewise.
28902         * lib/unictype/pr_diacritic.h: Likewise.
28903         * lib/unictype/pr_extender.h: Likewise.
28904         * lib/unictype/pr_format_control.h: Likewise.
28905         * lib/unictype/pr_grapheme_base.h: Likewise.
28906         * lib/unictype/pr_grapheme_extend.h: Likewise.
28907         * lib/unictype/pr_grapheme_link.h: Likewise.
28908         * lib/unictype/pr_hex_digit.h: Likewise.
28909         * lib/unictype/pr_hyphen.h: Likewise.
28910         * lib/unictype/pr_id_continue.h: Likewise.
28911         * lib/unictype/pr_id_start.h: Likewise.
28912         * lib/unictype/pr_ideographic.h: Likewise.
28913         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28914         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28915         * lib/unictype/pr_ignorable_control.h: Likewise.
28916         * lib/unictype/pr_iso_control.h: Likewise.
28917         * lib/unictype/pr_join_control.h: Likewise.
28918         * lib/unictype/pr_left_of_pair.h: Likewise.
28919         * lib/unictype/pr_line_separator.h: Likewise.
28920         * lib/unictype/pr_logical_order_exception.h: Likewise.
28921         * lib/unictype/pr_lowercase.h: Likewise.
28922         * lib/unictype/pr_math.h: Likewise.
28923         * lib/unictype/pr_non_break.h: Likewise.
28924         * lib/unictype/pr_not_a_character.h: Likewise.
28925         * lib/unictype/pr_numeric.h: Likewise.
28926         * lib/unictype/pr_other_alphabetic.h: Likewise.
28927         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28928         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28929         * lib/unictype/pr_other_id_continue.h: Likewise.
28930         * lib/unictype/pr_other_id_start.h: Likewise.
28931         * lib/unictype/pr_other_lowercase.h: Likewise.
28932         * lib/unictype/pr_other_math.h: Likewise.
28933         * lib/unictype/pr_other_uppercase.h: Likewise.
28934         * lib/unictype/pr_paired_punctuation.h: Likewise.
28935         * lib/unictype/pr_paragraph_separator.h: Likewise.
28936         * lib/unictype/pr_pattern_syntax.h: Likewise.
28937         * lib/unictype/pr_pattern_white_space.h: Likewise.
28938         * lib/unictype/pr_private_use.h: Likewise.
28939         * lib/unictype/pr_punctuation.h: Likewise.
28940         * lib/unictype/pr_quotation_mark.h: Likewise.
28941         * lib/unictype/pr_radical.h: Likewise.
28942         * lib/unictype/pr_sentence_terminal.h: Likewise.
28943         * lib/unictype/pr_soft_dotted.h: Likewise.
28944         * lib/unictype/pr_space.h: Likewise.
28945         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28946         * lib/unictype/pr_titlecase.h: Likewise.
28947         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28948         * lib/unictype/pr_unified_ideograph.h: Likewise.
28949         * lib/unictype/pr_uppercase.h: Likewise.
28950         * lib/unictype/pr_variation_selector.h: Likewise.
28951         * lib/unictype/pr_white_space.h: Likewise.
28952         * lib/unictype/pr_xid_continue.h: Likewise.
28953         * lib/unictype/pr_xid_start.h: Likewise.
28954         * lib/unictype/pr_zero_width.h: Likewise.
28955         * lib/unictype/scripts.h: Likewise.
28956         * lib/unictype/scripts_byname.gperf: Likewise.
28957         * lib/unictype/sy_c_ident.h: Likewise.
28958         * lib/unictype/sy_c_whitespace.h: Likewise.
28959         * lib/unictype/sy_java_ident.h: Likewise.
28960         * lib/unictype/sy_java_whitespace.h: Likewise.
28961
28962         * lib/unictype/Makefile: New file.
28963         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28964         glibc.
28965         * lib/unictype/3level.h: New file, copied from glibc.
28966         * lib/unictype/3levelbit.h: New file.
28967
28968 2007-11-11  Bruno Haible  <bruno@clisp.org>
28969
28970         * modules/gperf: New file.
28971         * modules/iconv_open (Depends-on): Add it.
28972         (Makefile.am): Remove the GPERF definition.
28973
28974 2007-11-11  Bruno Haible  <bruno@clisp.org>
28975
28976         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28977         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28978
28979 2007-11-11  Bruno Haible  <bruno@clisp.org>
28980
28981         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28982         (usage): Remove function.
28983
28984 2007-11-11  Bruno Haible  <bruno@clisp.org>
28985
28986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28987         gl_FUNC_CEILF_LIBS.
28988         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28989         gl_FUNC_CEIL_LIBS.
28990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28991         gl_FUNC_CEILL_LIBS.
28992         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28993         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28994         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28995
28996 2007-11-11  Bruno Haible  <bruno@clisp.org>
28997
28998         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28999         roundf were declared but do not exist on functions.
29000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29001         roundl were declared but do not exist on functions.
29002         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29003         HAVE_FLOORL_AND_CEILL, respectively.
29004         Needed for Sun C on Solaris 10.
29005
29006 2007-11-11  Bruno Haible  <bruno@clisp.org>
29007
29008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29009         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29010         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29011         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29012         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29013         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29014         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29015         HAVE_DECL_ROUNDF.
29016         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29017         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29019         of HAVE_DECL_ROUND*.
29020         * modules/math (Makefile.am): Update.
29021
29022 2007-11-10  Bruno Haible  <bruno@clisp.org>
29023
29024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29025         ptrdiff_t as m4/intl.m4.
29026
29027 2007-11-10  Jim Meyering  <meyering@redhat.com>
29028
29029         Avoid link failure for the argmatch test.
29030         * tests/test-argmatch.c (usage): Define function to avoid a link
29031         failure: argmatch_die requires a usage function.
29032
29033 2007-11-09  Bruno Haible  <bruno@clisp.org>
29034
29035         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29036         * doc/functions/vsnprintf.texi: Likewise.
29037         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29038         with a size argument < 2.
29039
29040 2007-11-09  Bruno Haible  <bruno@clisp.org>
29041
29042         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29043         buffer. Fixes an inefficiency introduced on 2007-11-03.
29044
29045 2007-11-09  Bruno Haible  <bruno@clisp.org>
29046
29047         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29048         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29049
29050 2007-11-08  Jim Meyering  <meyering@redhat.com>
29051
29052         Change cache variable name prefix "jm_" to "gl_" everywhere.
29053         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29054         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29055         * m4/uptime.m4: s/gl_/jm_/
29056
29057 2007-11-07  Bruno Haible  <bruno@clisp.org>
29058
29059         Update to GNU gettext 0.17.
29060         * m4/intl.m4: Update to GNU gettext 0.17.
29061         * m4/po.m4: Likewise.
29062         * modules/gettext (Files): Remove m4/ulonglong.m4.
29063         (configure.ac): Require gettext infrastructure from version 0.17.
29064
29065 2007-11-06  Bruno Haible  <bruno@clisp.org>
29066
29067         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29068         symbolic values are not defined in a public header.
29069         * lib/freadable.c (freadable) [QNX]: Likewise.
29070         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29071         * lib/freading.c (freading) [QNX]: Likewise.
29072         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29073         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29074         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29075         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29076         Reported by Alain Magloire.
29077
29078         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29079
29080 2007-11-05  Bruno Haible  <bruno@clisp.org>
29081
29082         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29083         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29084         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29085         Reported by Eric Blake.
29086
29087 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29088             Bruno Haible  <bruno@clisp.org>
29089
29090         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29091         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29092         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29093         (malloc): Undefine also before including <stdlib.h>.
29094         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29095         Needed on OSF/1 4.0.
29096
29097 2007-11-05  Jim Meyering  <meyering@redhat.com>
29098
29099         git-version-gen: sync from coreutils.
29100         * build-aux/git-version-gen: Add comments.
29101         Change the first '-' to '.' in the snapshot version string,
29102         e.g., 6.9-377-08144 -> 6.9.377-08144
29103         Remove first parameter.
29104         Don't declare a version "-dirty" merely because a time
29105         stamp has changed.
29106
29107 2007-11-04  Bruno Haible  <bruno@clisp.org>
29108
29109         * lib/lock.h: Protect all macro definitions containing an 'if'
29110         statement through a "do { ... } while (0)".
29111         * lib/tls.h: Likewise.
29112
29113 2007-11-04  Bruno Haible  <bruno@clisp.org>
29114
29115         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29116
29117 2007-11-04  Bruno Haible  <bruno@clisp.org>
29118
29119         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29120         * modules/fprintf-posix (Depends-on): Add nocrash.
29121         * modules/snprintf-posix (Depends-on): Likewise.
29122         * modules/sprintf-posix (Depends-on): Likewise.
29123         * modules/vasnprintf-posix (Depends-on): Likewise.
29124         * modules/vasprintf-posix (Depends-on): Likewise.
29125         * modules/vfprintf-posix (Depends-on): Likewise.
29126         * modules/vsnprintf-posix (Depends-on): Likewise.
29127         * modules/vsprintf-posix (Depends-on): Likewise.
29128         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29129         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29130         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29131         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29132         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29133         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29134         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29135
29136 2007-11-04  Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/nocrash: New file.
29139         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29140         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29141
29142 2007-11-04  Bruno Haible  <bruno@clisp.org>
29143
29144         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29145         precision handling.
29146         * tests/test-vasprintf-posix.c (test_function): Likewise.
29147         * tests/test-snprintf-posix.h (test_function): Likewise.
29148         * tests/test-sprintf-posix.h (test_function): Likewise.
29149
29150         Fix *printf behaviour for large precisions on mingw and BeOS.
29151         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29152         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29156         gl_PRINTF_PRECISION and test its result. Invoke
29157         gl_PREREQ_VASNPRINTF_PRECISION.
29158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29165         * doc/functions/fprintf.texi: Update.
29166         * doc/functions/printf.texi: Update.
29167         * doc/functions/snprintf.texi: Update.
29168         * doc/functions/sprintf.texi: Update.
29169         * doc/functions/vfprintf.texi: Update.
29170         * doc/functions/vprintf.texi: Update.
29171         * doc/functions/vsnprintf.texi: Update.
29172         * doc/functions/vsprintf.texi: Update.
29173
29174 2007-11-04  Bruno Haible  <bruno@clisp.org>
29175
29176         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29177
29178 2007-11-04  Bruno Haible  <bruno@clisp.org>
29179
29180         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29181         Reported by Sylvain Beucler <beuc@gnu.org>.
29182
29183 2007-11-03  Bruno Haible  <bruno@clisp.org>
29184
29185         * tests/test-fprintf-posix2.sh: New file.
29186         * tests/test-fprintf-posix2.c: New file.
29187         * modules/fprintf-posix-tests (Files): Add them.
29188         (TESTS): Add test-fprintf-posix2.sh.
29189         (configure.ac): Check for getrlimit and setrlimit.
29190         (check_PROGRAMS): Add test-fprintf-posix2.
29191
29192         * tests/test-printf-posix2.sh: New file.
29193         * tests/test-printf-posix2.c: New file.
29194         * modules/printf-posix-tests (Files): Add them.
29195         (TESTS): Add test-printf-posix2.sh.
29196         (configure.ac): Check for getrlimit and setrlimit.
29197         (check_PROGRAMS): Add test-printf-posix2.
29198
29199         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29200         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29201         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29202         (decode_double): New function, copied from decode_long_double.
29203         (scale10_round_decimal_decoded): New function, extracted from
29204         scale10_round_decimal_long_double.
29205         (scale10_round_decimal_long_double): Use it.
29206         (scale10_round_decimal_double): New function.
29207         (floorlog10): New function.
29208         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29210         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29212         gl_PRINTF_ENOMEM and test its result. Invoke
29213         gl_PREREQ_VASNPRINTF_ENOMEM.
29214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29221         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29222         * modules/snprintf-posix (Depends-on): Likewise.
29223         * modules/sprintf-posix (Depends-on): Likewise.
29224         * modules/vasnprintf-posix (Depends-on): Likewise.
29225         * modules/vasprintf-posix (Depends-on): Likewise.
29226         * modules/vfprintf-posix (Depends-on): Likewise.
29227         * modules/vsnprintf-posix (Depends-on): Likewise.
29228         * modules/vsprintf-posix (Depends-on): Likewise.
29229         * doc/functions/fprintf.texi: Update.
29230         * doc/functions/printf.texi: Update.
29231         * doc/functions/snprintf.texi: Update.
29232         * doc/functions/sprintf.texi: Update.
29233         * doc/functions/vfprintf.texi: Update.
29234         * doc/functions/vprintf.texi: Update.
29235         * doc/functions/vsnprintf.texi: Update.
29236         * doc/functions/vsprintf.texi: Update.
29237
29238 2007-11-03  Bruno Haible  <bruno@clisp.org>
29239
29240         * modules/frexp-nolibm-tests: New file.
29241
29242         * modules/frexp-nolibm: New file.
29243         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29244
29245 2007-11-03  Bruno Haible  <bruno@clisp.org>
29246
29247         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29248         value is C99 compliant.
29249         Needed for OSF/1 5.1.
29250
29251 2007-11-03  Bruno Haible  <bruno@clisp.org>
29252
29253         Fix out-of-memory handling of vasnprintf.
29254         * lib/printf-parse.c: Include <errno.h>.
29255         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29256         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29257         is already set.
29258
29259 2007-11-02  Eric Blake  <ebb9@byu.net>
29260
29261         Fix tests on cygwin.
29262         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29263
29264 2007-11-01  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29267         warning.
29268         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29269         needed for POSIX compatibility.
29270
29271 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29274         for compatibility with GNU.
29275
29276 2007-11-01  Bruno Haible  <bruno@clisp.org>
29277
29278         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29279         (putenv): Renamed from rpl_putenv. Change argument type from
29280         'const char *' to 'char *'.
29281         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29282         of defining putenv in config.h, just set REPLACE_PUTENV.
29283         * modules/putenv (Depends-on): Add stdlib.
29284         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29285         (Include): Use <stdlib.h>.
29286         * lib/stdlib.in.h (putenv): New declaration.
29287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29288         REPLACE_PUTENV.
29289         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29290         REPLACE_PUTENV.
29291         Needed for MacOS X 10.5.0.
29292         Reported by Peter O'Gorman <peter@pogma.com>.
29293
29294 2007-11-01  Jim Meyering  <meyering@redhat.com>
29295
29296         Treat an empty date string exactly like "0".
29297         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29298         if the remaining date string (to be parsed) is empty, use "0".
29299         Reported by Mischa Molhoek and discussed in this thread:
29300         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29301
29302 2007-10-31  Bruno Haible  <bruno@clisp.org>
29303
29304         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29305         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29306         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29307         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29308         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29309         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29310
29311 2007-10-31  Bruno Haible  <bruno@clisp.org>
29312
29313         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29314         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29315         (AC_TYPE_LONG_LONG_INT): Use it.
29316         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29317         it as well.
29318         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29319         to m4/longlong.m4.
29320         * modules/stdint (Files): Remove m4/ulonglong.m4.
29321         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29322         m4/ulonglong.m4.
29323         * modules/strtoumax (Files): Likewise.
29324
29325 2007-10-30  Bruno Haible  <bruno@clisp.org>
29326
29327         * modules/xvasprintf-posix: New file.
29328         Suggested by Eric Blake.
29329
29330 2007-10-30  Bruno Haible  <bruno@clisp.org>
29331
29332         * modules/xprintf-posix-tests: New file.
29333         * tests/test-xprintf-posix.sh: New file.
29334         * tests/test-xprintf-posix.c: New file.
29335         * tests/test-xfprintf-posix.c: New file.
29336
29337         * modules/xprintf-posix: New file.
29338
29339 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29340
29341         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29342         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29343         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29344
29345 2007-10-29  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29348         contain the special marker '_cv_'.
29349         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29350         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29351         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29352         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29353         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29354         Reported by Ralf Wildenhues.
29355
29356 2007-10-29  Bruno Haible  <bruno@clisp.org>
29357
29358         * gnulib-tool (func_import): When --lgpl is not specified, set
29359         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29360         GPLv3.
29361         Reported by Simon Josefsson.
29362
29363 2007-10-28  Bruno Haible  <bruno@clisp.org>
29364
29365         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29366         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29367         HAVE_DECL_ISFINITE.
29368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29369         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29370         HAVE_DECL_ISFINITE.
29371
29372 2007-10-28  Bruno Haible  <bruno@clisp.org>
29373
29374         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29375         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29376
29377 2007-10-28  Bruno Haible  <bruno@clisp.org>
29378
29379         Fix link errors with Sun C 5.0 on Solaris 10.
29380         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29381         function is declared but not present in the compiler's libm.
29382         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29383         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29384         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29385         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29386         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29387         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29388         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29390         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29391         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29392         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29393         HAVE_DECL_FLOORL.
29394
29395 2007-10-28  Bruno Haible  <bruno@clisp.org>
29396
29397         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29398         gl_FUNC_FLOORL. Cache the result.
29399         (gl_FUNC_FLOORL): Use it.
29400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29401         gl_FUNC_CEILL. Cache the result.
29402         (gl_FUNC_CEILL): Use it.
29403
29404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29405         gl_FUNC_FLOOR. Cache the result.
29406         (gl_FUNC_FLOOR): Use it.
29407         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29408         gl_FUNC_CEIL. Cache the result.
29409         (gl_FUNC_CEIL): Use it.
29410
29411         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29412         gl_FUNC_FLOORF. Cache the result.
29413         (gl_FUNC_FLOORF): Use it.
29414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29415         gl_FUNC_CEILF. Cache the result.
29416         (gl_FUNC_CEILF): Use it.
29417
29418 2007-10-28  Bruno Haible  <bruno@clisp.org>
29419
29420         * gnulib-tool: Allow specifying the LGPL version number through
29421         --lgpl=2 or --lgpl=3.
29422         (func_usage): Document --lgpl with argument.
29423         Handle --lgpl=... arguments.
29424         (func_import): Recognize also gl_LGPL calls with an argument. When
29425         --lgpl=2 is used and the module's license is just LGPL, report an
29426         error. Set sed_transform_lib_file according to the lgpl variable. In
29427         the generated files, use --lgpl or gl_LGPL invocations with argument,
29428         if necessary.
29429         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29430         an LGPv2+ license.
29431         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29432         gl_LGPL macro.
29433
29434 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29435             Bruno Haible  <bruno@clisp.org>
29436
29437         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29438         (u16_uctomb_aux): Likewise.
29439         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29440         !HAVE_INLINE.
29441         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29442
29443 2007-10-28  Bruno Haible  <bruno@clisp.org>
29444
29445         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29446         Invoke AM_GETTEXT_OPTION if it exists.
29447         * modules/vasprintf: Likewise.
29448         * modules/verror: Likewise.
29449         * modules/xprintf: Likewise.
29450         * modules/xvasprintf: Likewise.
29451
29452 2007-10-27  Ben Pfaff  <blp@gnu.org>
29453
29454         * lib/math.in.h: Define isfinite macro and prototypes for
29455         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29456         implementations.
29457         * m4/math_h.m4: New substitutions for isfinite module.
29458         * lib/isfinite.c: New file.
29459         * m4/isfinite.m4: New file.
29460         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29461         * modules/isfinite: New file.
29462         * modules/isfinite-tests: New file.
29463         * tests/tests-isfinite.c: New file.
29464         * doc/functions/isfinite.texi: Mention isfinite module.
29465         * MODULES.html.sh: Mention new module.
29466
29467 2007-10-27  Ben Pfaff  <blp@gnu.org>
29468
29469         Ralf Wildenhues reported that Tru64 4.0D declares the round
29470         functions but does not have definitions.
29471         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29472         cannot be found in any library, set the output variable to
29473         "missing" instead of "".
29474         * m4/round.m4: Also use our substitute if we cannot find round in
29475         any library, even if it is declared.
29476         * m4/roundf.m4: Likewise for roundf.
29477         * m4/roundl.m4: Likewise for roundl.
29478         * lib/math.in.h: Undefine roundf, round, roundl before defining
29479         their replacements, to allow for hypothetical systems where these
29480         may be defined as macros but not available in libraries.
29481
29482 2007-10-27  Bruno Haible  <bruno@clisp.org>
29483
29484         * doc/gnulib.texi: Invoke @firstparagraphindent.
29485         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29486         changes in gnulib.
29487         (Source changes): New section.
29488
29489 2007-10-26  Bruno Haible  <bruno@clisp.org>
29490
29491         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29492         borrowed from autoconf.
29493
29494 2007-10-26  Bruno Haible  <bruno@clisp.org>
29495
29496         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29497         strerror returned the empty string. Needed on HP-UX 11.00.
29498
29499 2007-10-24  Micah Cowan  <micah@cowan.name>
29500
29501         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29502         * build-aux/bootstrap: Remove support for now-unnecessary option,
29503         --cvs-user, and envvars CVS_USER, CVS_RSH.
29504
29505 2007-10-24  Jim Meyering  <meyering@redhat.com>
29506
29507         Avoid diagnostics from sha1sum when there is no cached checksum.
29508         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29509         if the po.s1 file hasn't been created yet.
29510
29511         * build-aux/bootstrap: Sync from coreutils:
29512         2007-10-24  Jim Meyering  <meyering@redhat.com>
29513         Get gnulib from the git repository, not from an obsolete cvs one.
29514         * build-aux/bootstrap: Suggestion from Micah Cowan.
29515         2007-10-04  Jim Meyering  <jim@meyering.net>
29516         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29517         (update_po_files): Work also when there are no .po files in po/.
29518
29519 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29520
29521         * README: Append ".git" to git and cg examples.
29522         Problem reported by Benoit Sigoure.
29523
29524 2007-10-23  Micah Cowan  <micah@cowan.name>
29525
29526         * users.txt: Add wget.
29527
29528 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29529
29530         Fix linking of some unistdio tests on FreeBSD.
29531         * modules/unistdio/u16-vsnprintf-tests
29532         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29533         * modules/unistdio/u16-vsprintf-tests
29534         (test_u16_vsnprintf1_LDADD): Likewise.
29535         * modules/unistdio/u32-vsnprintf-tests
29536         (test_u32_vsnprintf1_LDADD): Likewise.
29537         * modules/unistdio/u32-vsprintf-tests
29538         (test_u32_vsprintf1_LDADD): Likewise.
29539         * modules/unistdio/u8-vsnprintf-tests
29540         (test_u8_vsnprintf1_LDADD): Likewise.
29541         * modules/unistdio/u8-vsprintf-tests
29542         (test_u8_vsprintf1_LDADD): Likewise.
29543         * modules/unistdio/ulc-vsnprintf-tests
29544         (test_ulc_vsnprintf1_LDADD): Likewise.
29545         * modules/unistdio/ulc-vsprintf-tests
29546         (test_ulc_vsprintf1_LDADD): Likewise.
29547
29548         Fix linking of some uniconv tests on FreeBSD.
29549         * modules/uniconv/u16-conv-from-enc-tests
29550         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29551         * modules/uniconv/u16-conv-to-enc-tests
29552         (test_u16_conv_to_enc_LDADD): Likewise.
29553         * modules/uniconv/u16-strconv-from-enc-tests
29554         (test_u16_strconv_from_enc_LDADD): Likewise.
29555         * modules/uniconv/u16-strconv-to-enc-tests
29556         (test_u16_strconv_to_enc_LDADD): Likewise.
29557         * modules/uniconv/u32-conv-from-enc-tests
29558         (test_u32_conv_from_enc_LDADD): Likewise.
29559         * modules/uniconv/u32-conv-to-enc-tests
29560         (test_u32_conv_to_enc_LDADD): Likewise.
29561         * modules/uniconv/u32-strconv-from-enc-tests
29562         (test_u32_strconv_from_enc_LDADD): Likewise.
29563         * modules/uniconv/u32-strconv-to-enc-tests
29564         (test_u32_strconv_to_enc_LDADD): Likewise.
29565         * modules/uniconv/u8-conv-from-enc-tests
29566         (test_u8_conv_from_enc_LDADD): Likewise.
29567         * modules/uniconv/u8-conv-to-enc-tests
29568         (test_u8_conv_to_enc_LDADD): Likewise.
29569         * modules/uniconv/u8-strconv-from-enc-tests
29570         (test_u8_strconv_from_enc_LDADD): Likewise.
29571         * modules/uniconv/u8-strconv-to-enc-tests
29572         (test_u8_strconv_to_enc_LDADD): Likewise.
29573
29574 2007-10-22  Bruno Haible  <bruno@clisp.org>
29575
29576         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29577         size.
29578
29579 2007-10-22  Eric Blake  <ebb9@byu.net>
29580
29581         Tweak x*printf documentation.
29582         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29583         variable name and comments.
29584         Suggested by Bruno Haible.
29585
29586 2007-10-22  Bruno Haible  <bruno@clisp.org>
29587
29588         * lib/acl.c (copy_acl): Fix file name in comment.
29589
29590 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29591
29592         Fix Tru64 problem with stdbool.h.
29593         * lib/stdbool.in.h (false, true):
29594         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29595         Don't declare as an enum in this situation; it runs afoul of Tru64.
29596         Problem reported by Steven M. Schweda in
29597         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29598
29599 2007-10-22  Eric Blake  <ebb9@byu.net>
29600
29601         Also wrap vf?printf.
29602         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29603         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29604         (xvprintf, xvfprintf): New functions.
29605
29606 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29607
29608         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29609         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29610
29611         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29612         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29613
29614 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29615
29616         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29617         by Bruno Haible.
29618
29619 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29620
29621         * lib/getloadavg.c
29622         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29623         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29624
29625         * tests/test-i-ring.c: Work for C89.
29626
29627 2007-10-22  Bruno Haible  <bruno@clisp.org>
29628
29629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29630         -1u, in preprocessor expression, so that we don't test for the bug
29631         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29633
29634 2007-10-22  Eric Blake  <ebb9@byu.net>
29635
29636         * tests/test-yesno.sh: Silence stderr during test.
29637
29638 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29639
29640         * modules/crypto/gc-camellia: New file.
29641
29642         * m4/gc-camellia.m4: New file.
29643
29644         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29645
29646         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29647
29648 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29649
29650         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29651         --help to stdout.  Reported by sms@antinode.org (Steven
29652         M. Schweda).
29653
29654 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29655
29656         * users.txt: Fix link to libksba.
29657
29658 2007-10-21  Ben Pfaff  <blp@gnu.org>
29659
29660         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29661         round.c roundf implementation that depends on floorf and ceilf to
29662         be tested unconditionally.
29663
29664 2007-10-21  Ben Pfaff  <blp@gnu.org>
29665
29666         * m4/check-libm-func.m4: Removed.
29667         * m4/check-math-lib.m4: New file.
29668         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29669         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29670         definition and lack of AC_LIBOBJ([roundf]).
29671         * m4/roundl.m4: Ditto, and similarly for roundl.
29672         * modules/round: Reference new m4 file.
29673         * modules/roundf: Ditto.
29674         * modules/roundl: Ditto.
29675         * tests/test-round2.c (main): Use ROUND instead of round.
29676         Bug report from Bruno Haible.
29677
29678 2007-10-21  Bruno Haible  <bruno@clisp.org>
29679
29680         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29681         context.
29682
29683 2007-10-21  Bruno Haible  <bruno@clisp.org>
29684
29685         * tests/test-wcwidth.c (main): Allow negative result for some control
29686         characters.
29687
29688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29689         Needed on OSF/1 5.1.
29690
29691 2007-10-21  Bruno Haible  <bruno@clisp.org>
29692
29693         * tests/test-floorf1.c: Include isnanf.h.
29694         (main): Use isnanf() instead of isnan().
29695         * tests/test-ceilf1.c: Include isnanf.h.
29696         (main): Use isnanf() instead of isnan().
29697         * tests/test-truncf1.c: Include isnanf.h.
29698         (main): Use isnanf() instead of isnan().
29699         * tests/test-roundf1.c: Include isnanf.h.
29700         (main): Use isnanf() instead of isnan().
29701
29702 2007-10-21  Eric Blake  <ebb9@byu.net>
29703
29704         * users.txt: Update URL for m4.
29705
29706 2007-10-21  Bruno Haible  <bruno@clisp.org>
29707
29708         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29709
29710 2007-10-21  Bruno Haible  <bruno@clisp.org>
29711
29712         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29713         Git's management files if the CVS files are not present.
29714
29715 2007-10-20  Bruno Haible  <bruno@clisp.org>
29716
29717         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29718         gcc-3.4.x.
29719
29720 2007-10-20  Ben Pfaff  <blp@gnu.org>
29721
29722         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29723         implementations.
29724         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29725         * lib/round.c: New file.
29726         * lib/roundf.c: New file.
29727         * lib/roundl.c: New file.
29728         * m4/round.m4: New file.
29729         * m4/roundf.m4: New file.
29730         * m4/roundl.m4: New file.
29731         * m4/check-libm-func-m4: New file.
29732         * modules/math: Replace round, roundf, roundl related @VARS@ in
29733         math.in.h.
29734         * modules/round: New file.
29735         * modules/round-tests: New file.
29736         * modules/roundf: New file.
29737         * modules/roundf-tests: New file.
29738         * modules/roundl: New file.
29739         * modules/roundl-tests: New file.
29740         * tests/test-round1.c: New file.
29741         * tests/test-round2.c: New file.
29742         * tests/test-roundf1.c: New file.
29743         * tests/test-roundf2.c: New file.
29744         * tests/test-roundl.c: New file.
29745         * doc/functions/round.texi: Mention round module.
29746         * doc/functions/roundf.texi: Mention roundf module.
29747         * doc/functions/roundl.texi: Mention roundl module.
29748         * MODULES.html.sh: Mention new modules.
29749         Thanks to Bruno Haible for suggestions.
29750
29751 2007-10-20  Jim Meyering  <meyering@redhat.com>
29752
29753         * lib/xprintf.c: Include <config.h> unconditionally.
29754
29755         Change xprintf's license to GPL.
29756         * modules/xprintf (License): s/LGPL/GPL/, since this module
29757         depends on modules (exit and exitfail) which are GPL.
29758         Suggestion from Bruno Haible.
29759
29760         xprintf fixes.
29761         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29762         Use a clearer diagnostic.
29763         Patch from Bruno Haible.
29764
29765 2007-10-20  Bruno Haible  <bruno@clisp.org>
29766
29767         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29768         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29770
29771 2007-10-20  Bruno Haible  <bruno@clisp.org>
29772
29773         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29774         precision in the comparison result > x - 1 or similar.
29775         * tests/test-ceilf2.c (correct_result_p): Likewise.
29776         * tests/test-truncf2.c (correct_result_p): Likewise.
29777         * tests/test-trunc2.c (correct_result_p): Likewise.
29778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29779
29780 2007-10-20  Bruno Haible  <bruno@clisp.org>
29781
29782         * modules/ceil: New file.
29783         * m4/ceil.m4: New file.
29784         * doc/functions/ceil.texi: Mention the 'ceil' module.
29785
29786 2007-10-20  Bruno Haible  <bruno@clisp.org>
29787
29788         * modules/floor: New file.
29789         * m4/floor.m4: New file.
29790         * doc/functions/floor.texi: Mention the 'floor' module.
29791
29792 2007-10-20  Bruno Haible  <bruno@clisp.org>
29793
29794         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29795         of %a.
29796         * modules/floorf-tests (Depends-on): Likewise.
29797         * modules/truncf-tests (Depends-on): Likewise.
29798         * modules/trunc-tests (Depends-on): Likewise.
29799         Reported by Ben Pfaff.
29800
29801 2007-10-19  Jim Meyering  <meyering@redhat.com>
29802
29803         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29804         Don't bother testing specific errno values.  Just test ferror.
29805
29806         New module: xprintf
29807         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29808
29809 2007-10-19  Bruno Haible  <bruno@clisp.org>
29810
29811         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29812         syntax.
29813         * modules/javaexec (Makefile.am): Likewise.
29814         * modules/relocatable-prog (Makefile.am): Likewise.
29815         Suggested by Jim Meyering.
29816
29817 2007-10-18  Bruno Haible  <bruno@clisp.org>
29818
29819         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29820         Reported by Jim Meyering.
29821
29822 2007-10-18  Eric Blake  <ebb9@byu.net>
29823
29824         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29825
29826 2007-10-18  Bruno Haible  <bruno@clisp.org>
29827
29828         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29829         the format string into writable memory. Needed in Fortify conditions.
29830
29831 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29832             Bruno Haible  <bruno@clisp.org>
29833
29834         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29835         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29836         * modules/trim (Depends-on): Add mbchar.
29837         (configure.ac): Add gl_FUNC_MBRTOWC.
29838         (Makefile.am): Augment lib_SOURCES.
29839
29840 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29841
29842         Modify glob.c to use fstatat and dirfd, to simplify it.
29843         Suggested by Eric Blake.
29844         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29845         Don't include <stdbool.h>; not used.
29846         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29847         (link_exists_p): Simplify implementation, since we can now assume
29848         dirfd and fstatat.
29849         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29850
29851 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29852
29853         * gnulib-tool (func_get_dependencies): Fix sed script to
29854         match only tests.
29855
29856 2007-10-17  Bruno Haible  <bruno@clisp.org>
29857
29858         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29859         allow locale names without encoding suffix.
29860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29862
29863 2007-10-16  Bruno Haible  <bruno@clisp.org>
29864
29865         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29866         * lib/getgroups.c (getgroups): Likewise.
29867         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29868
29869 2007-10-16  Bruno Haible  <bruno@clisp.org>
29870
29871         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29872         * modules/malloc-posix (License): Likewise.
29873         * modules/realloc-posix (License): Likewise.
29874         * modules/calloc-posix (License): Likewise.
29875         * modules/intprops (License): Change from GPL to LGPL, with
29876         Paul Eggert's approval.
29877
29878 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29879
29880         Merge glibc changes into lib/glob.c.
29881
29882         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29883         2007-10-15 04:59:03 UTC.  Here are the changes:
29884
29885         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29886
29887         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29888
29889         * lib/glob.c: Add some branch prediction throughout.
29890
29891         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29892
29893         [BZ #5103]
29894         * lib/glob.c (glob): Recognize patterns starting \/.
29895
29896         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29897
29898         [BZ #3996]
29899         * lib/glob.c (attribute_hidden): Define if not defined.
29900         (glob): Unescape dirname, filename or username when needed and not
29901         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29902         is NULL.  Handle unescaped [ in pattern without closing ].
29903         Don't pass GLOB_CHECK down to recursive glob for directories.
29904         (__glob_pattern_type): New function.
29905         (__glob_pattern_p): Implement using __glob_pattern_type.
29906         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29907         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29908         Remove unreachable code.
29909
29910         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29911
29912         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29913         explain why there are no leaks.
29914
29915         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29916
29917         [BZ #3253]
29918         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29919         time, rather allocate increasingly bigger arrays of pointers, if
29920         possible with alloca, if too large with malloc.
29921
29922 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29925         Problem reported by H.Merijn Brand in
29926         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29929
29930 2007-10-15  Bruno Haible  <bruno@clisp.org>
29931
29932         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29933         with explicit rpl_ prefix.
29934         * lib/fopen.c (fopen): Likewise.
29935         * lib/freopen.c (freopen): Likewise.
29936         * lib/iconv.c (iconv): Likewise.
29937         * lib/iconv_close.c (iconv_close): Likewise.
29938
29939 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29940
29941         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29942
29943 2007-10-15  Bruno Haible  <bruno@clisp.org>
29944
29945         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29946         <stddef.h> instead of <stdlib.h> since we only need NULL.
29947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29948
29949 2007-10-15  Bruno Haible  <bruno@clisp.org>
29950
29951         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29952         Replace paragraph talking about LIBOBJS.
29953         Reported by Colin Watson <cjwatson@debian.org>.
29954
29955 2007-10-15  Bruno Haible  <bruno@clisp.org>
29956
29957         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29958         <stdlib.h> before using NULL.
29959
29960 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29961
29962         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29963         Reported by Albert Chin <china@thewrittenword.com>.
29964
29965 2007-10-14  Bruno Haible  <bruno@clisp.org>
29966
29967         * modules/iconv_open-utf-tests: New file.
29968         * tests/test-iconv-utf.c: New file.
29969
29970         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29971         * modules/iconv_open-utf: New file.
29972         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29973         (iconv, iconv_close): New declarations.
29974         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29975         be defined.
29976         (iconv_open): Add special handling of conversion between UTF-8 and
29977         UTF-{16,32}{BE,LE}.
29978         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29979         * lib/iconv_close.c: New file.
29980         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29981         gl_FUNC_ICONV_OPEN.
29982         (gl_FUNC_ICONV_OPEN): Use it.
29983         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29984         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29985         and REPLACE_ICONV_UTF.
29986         * modules/iconv_open (Depends-on): Add c-strcase.
29987         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29988         ICONV_CONST.
29989         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29990
29991 2007-10-13  Albert Chin  <china@thewrittenword.com>
29992             Bruno Haible  <bruno@clisp.org>
29993
29994         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29995         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29996
29997 2007-10-13  Bruno Haible  <bruno@clisp.org>
29998
29999         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30000         defined, use the ISO C99 inline semantics.
30001         * lib/argp.h (ARGP_EI): Likewise.
30002
30003 2007-10-13  Bruno Haible  <bruno@clisp.org>
30004
30005         Handle 'inline' change in gcc 4.3.0.
30006         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30007         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30008         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30009         argp_fmtstream_point): Disable 'extern' declaration if the function
30010         definition is going to be provided inline.
30011         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30012         semantics, not the ISO C99 inline semantics.
30013         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30014         'extern' declaration if the function definition is going to be provided
30015         inline.
30016         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30017         the GNU C inline semantics, not the ISO C99 inline semantics. With
30018         GCC 4.2, avoid a warning.
30019
30020 2007-10-13  Bruno Haible  <bruno@clisp.org>
30021
30022         * lib/freading.h (freading): Enable the use of __freading for
30023         glibc >= 2.7.
30024         * lib/freading.c (freading): Likewise.
30025
30026 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30029         "warning: C99 inline functions are not supported; using GNU89".
30030
30031 2007-10-12  Bruno Haible  <bruno@clisp.org>
30032
30033         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30034         of 2.
30035         * tests/test-ceilf2.c: New file.
30036         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30037
30038         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30039         * modules/ceilf-tests: Update.
30040
30041 2007-10-12  Bruno Haible  <bruno@clisp.org>
30042
30043         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30044         of 2.
30045         * tests/test-floorf2.c: New file.
30046         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30047
30048         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30049         * modules/floorf-tests: Update.
30050
30051 2007-10-12  Bruno Haible  <bruno@clisp.org>
30052
30053         * tests/test-trunc2.c: New file.
30054         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30055
30056         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30057         * modules/trunc-tests: Update.
30058
30059 2007-10-12  Bruno Haible  <bruno@clisp.org>
30060
30061         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30062         of 2.
30063         * tests/test-truncf2.c: New file.
30064         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30065
30066         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30067         * modules/truncf-tests: Update.
30068
30069 2007-10-11  Eric Blake  <ebb9@byu.net>
30070
30071         Don't claim strerror is broken on Interix.
30072         * doc/functions/strerror.texi (strerror): Known broken systems are
30073         now Solaris 8, and not Interix.
30074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30075         Interix on cross-compile.
30076         Reported by Martin Koeppe in
30077         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30078
30079 2007-10-11  Bruno Haible  <bruno@clisp.org>
30080
30081         * modules/i-ring-tests: New file.
30082         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30083         instead of assert.
30084
30085 2007-10-11  Bruno Haible  <bruno@clisp.org>
30086
30087         * modules/filenamecat-tests: New file.
30088         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30089         * lib/filenamecat.c: Remove test code.
30090
30091 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30094
30095         * lib/strerror.c: Include <string.h> always, to test interface,
30096         and to remove the need for the dummy.
30097         Include intprops.h to compute width instead of doing it ourselves
30098         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30099         (strerror): Define it to return NULL if there's no system strerror.
30100         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30101         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30102         ancient pre-strerror Unix systems well any more.  Saying "unknown
30103         system error" is enough.
30104         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30105         simpler strerror.c implementation.
30106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30107         Simplify the tests to reflect the simpler strerror implementation.
30108         * modules/strerror (Depends-on): Add intprops.
30109
30110 2007-10-09  Eric Blake  <ebb9@byu.net>
30111
30112         Silence test-fpending.
30113         * modules/fpending-tests (Files): Add wrapper script.
30114         * tests/test-fpending.sh: New file.
30115
30116 2007-10-09  Bruno Haible  <bruno@clisp.org>
30117
30118         * MODULES.html.sh (func_module): Don't create a hyperlink for
30119         function names like 'printf_frexp'.
30120         (Misc): Add crc, memxor.
30121         (Characteristics of floating types): New section.
30122         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30123         isnanf-nolibm, signbit, trunc, truncf, truncl.
30124         (Enhancements for ISO C 99 functions): New subsection Input/output.
30125         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30126         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30127         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30128         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30129         (Enhancements for POSIX:2001 functions): Add chdir-long.
30130         (File system functions): Add areadlink, chdir-safer, read-file.
30131         Remove cycle-check.
30132         (File system as inode set): New section.
30133         (Date and time): Add gethrxtime.
30134         (Multithreading): Add openmp.
30135         (Internationalization functions): Add localename.
30136         (Unicode string functions): Add unistr/u*-mbsnlen.
30137         (Support for maintaining and releasing projects): Add git-version-gen.
30138         (Lone files): Remove directories.
30139
30140 2007-10-08  Ben Pfaff  <blp@gnu.org>
30141
30142         * lib/xmalloca.h: Fix typo in comment.
30143
30144 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30145
30146         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30147         when avoiding problems with integer overflow.  Use a portable test
30148         instead.
30149
30150 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30151
30152         * modules/dummy (License): Change to LGPLv2+.
30153         * modules/float (License): Likewise
30154         * modules/realloc (License): Likewise
30155         * modules/stdlib (License): Likewise
30156
30157 2007-10-07  Bruno Haible  <bruno@clisp.org>
30158
30159         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30160         * floor.c (TWO_MANT_DIG): Likewise.
30161         * ceil.c (TWO_MANT_DIG): Likewise.
30162         Reported by Ben Pfaff.
30163
30164 2007-10-07  Bruno Haible  <bruno@clisp.org>
30165
30166         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30167         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30168         * lib/frexp.c (FUNC): Likewise.
30169         * lib/printf-frexp.h (printf_frexp): Likewise.
30170         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30171         * lib/printf-frexp.c (FUNC): Likewise.
30172         Suggested by Jim Meyering.
30173
30174 2007-10-07  Jim Meyering  <meyering@redhat.com>
30175
30176         Make xnanosleep's integer overflow test more robust.
30177         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30178         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30179
30180 2007-10-07  Bruno Haible  <bruno@clisp.org>
30181
30182         * NEWS: Mention the license change.
30183
30184         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30185         abbreviations in the modules files.
30186
30187         Change copyright notice from GPLv2+ to GPLv3+.
30188         * README: Change copyright notice.
30189         * MODULES.html.sh: Likewise.
30190         * build-aux/bootstrap.conf: Likewise.
30191         * build-aux/config.libpath: Likewise.
30192         * build-aux/csharpcomp.sh.in: Likewise.
30193         * build-aux/csharpexec.sh.in: Likewise.
30194         * build-aux/install-reloc: Likewise.
30195         * build-aux/javacomp.sh.in: Likewise.
30196         * build-aux/javaexec.sh.in: Likewise.
30197         * build-aux/ldd.sh.in: Likewise.
30198         * build-aux/reloc-ldflags: Likewise.
30199         * build-aux/relocatable.sh.in: Likewise.
30200         * build-aux/x-to-1.in: Likewise.
30201         * check-module: Likewise.
30202         * config/srclistvars.sh: Likewise.
30203         * gnulib-tool: Likewise.
30204         * lib/acl-internal.h: Likewise.
30205         * lib/acl.c: Likewise.
30206         * lib/acl.h: Likewise.
30207         * lib/acl_entries.c: Likewise.
30208         * lib/areadlink-with-size.c: Likewise.
30209         * lib/areadlink.c: Likewise.
30210         * lib/areadlink.h: Likewise.
30211         * lib/argmatch.c: Likewise.
30212         * lib/argmatch.h: Likewise.
30213         * lib/argp-ba.c: Likewise.
30214         * lib/argp-eexst.c: Likewise.
30215         * lib/argp-fmtstream.c: Likewise.
30216         * lib/argp-fmtstream.h: Likewise.
30217         * lib/argp-fs-xinl.c: Likewise.
30218         * lib/argp-help.c: Likewise.
30219         * lib/argp-namefrob.h: Likewise.
30220         * lib/argp-parse.c: Likewise.
30221         * lib/argp-pin.c: Likewise.
30222         * lib/argp-pv.c: Likewise.
30223         * lib/argp-pvh.c: Likewise.
30224         * lib/argp-xinl.c: Likewise.
30225         * lib/argp.h: Likewise.
30226         * lib/at-func.c: Likewise.
30227         * lib/atanl.c: Likewise.
30228         * lib/backupfile.c: Likewise.
30229         * lib/backupfile.h: Likewise.
30230         * lib/basename.c: Likewise.
30231         * lib/binary-io.h: Likewise.
30232         * lib/byteswap.in.h: Likewise.
30233         * lib/c-stack.c: Likewise.
30234         * lib/c-stack.h: Likewise.
30235         * lib/c-strcasestr.c: Likewise.
30236         * lib/c-strcasestr.h: Likewise.
30237         * lib/c-strstr.c: Likewise.
30238         * lib/c-strstr.h: Likewise.
30239         * lib/c-strtod.c: Likewise.
30240         * lib/calloc.c: Likewise.
30241         * lib/canon-host.c: Likewise.
30242         * lib/canon-host.h: Likewise.
30243         * lib/canonicalize-lgpl.c: Likewise.
30244         * lib/canonicalize.c: Likewise.
30245         * lib/canonicalize.h: Likewise.
30246         * lib/ceil.c: Likewise.
30247         * lib/ceilf.c: Likewise.
30248         * lib/ceill.c: Likewise.
30249         * lib/chdir-long.c: Likewise.
30250         * lib/chdir-long.h: Likewise.
30251         * lib/chdir-safer.c: Likewise.
30252         * lib/chdir-safer.h: Likewise.
30253         * lib/chown.c: Likewise.
30254         * lib/classpath.c: Likewise.
30255         * lib/classpath.h: Likewise.
30256         * lib/clean-temp.c: Likewise.
30257         * lib/clean-temp.h: Likewise.
30258         * lib/cloexec.c: Likewise.
30259         * lib/close-stream.c: Likewise.
30260         * lib/closein.c: Likewise.
30261         * lib/closein.h: Likewise.
30262         * lib/closeout.c: Likewise.
30263         * lib/closeout.h: Likewise.
30264         * lib/concat-filename.c: Likewise.
30265         * lib/copy-file.c: Likewise.
30266         * lib/copy-file.h: Likewise.
30267         * lib/count-one-bits.h: Likewise.
30268         * lib/crc.c: Likewise.
30269         * lib/crc.h: Likewise.
30270         * lib/creat-safer.c: Likewise.
30271         * lib/csharpcomp.c: Likewise.
30272         * lib/csharpcomp.h: Likewise.
30273         * lib/csharpexec.c: Likewise.
30274         * lib/csharpexec.h: Likewise.
30275         * lib/cycle-check.c: Likewise.
30276         * lib/cycle-check.h: Likewise.
30277         * lib/diacrit.c: Likewise.
30278         * lib/diacrit.h: Likewise.
30279         * lib/diffseq.h: Likewise.
30280         * lib/dirchownmod.c: Likewise.
30281         * lib/dirent.in.h: Likewise.
30282         * lib/dirfd.c: Likewise.
30283         * lib/dirfd.h: Likewise.
30284         * lib/dirname.c: Likewise.
30285         * lib/dirname.h: Likewise.
30286         * lib/dummy.c: Likewise.
30287         * lib/dup-safer.c: Likewise.
30288         * lib/dup2.c: Likewise.
30289         * lib/eealloc.h: Likewise.
30290         * lib/error.c: Likewise.
30291         * lib/error.h: Likewise.
30292         * lib/euidaccess.c: Likewise.
30293         * lib/exclude.c: Likewise.
30294         * lib/exclude.h: Likewise.
30295         * lib/execute.c: Likewise.
30296         * lib/execute.h: Likewise.
30297         * lib/exitfail.c: Likewise.
30298         * lib/exitfail.h: Likewise.
30299         * lib/expl.c: Likewise.
30300         * lib/fatal-signal.c: Likewise.
30301         * lib/fatal-signal.h: Likewise.
30302         * lib/fbufmode.c: Likewise.
30303         * lib/fbufmode.h: Likewise.
30304         * lib/fchdir.c: Likewise.
30305         * lib/fchmodat.c: Likewise.
30306         * lib/fchownat.c: Likewise.
30307         * lib/fcntl--.h: Likewise.
30308         * lib/fcntl-safer.h: Likewise.
30309         * lib/fcntl.in.h: Likewise.
30310         * lib/fd-safer.c: Likewise.
30311         * lib/fflush.c: Likewise.
30312         * lib/file-has-acl.c: Likewise.
30313         * lib/file-set.c: Likewise.
30314         * lib/file-type.c: Likewise.
30315         * lib/file-type.h: Likewise.
30316         * lib/fileblocks.c: Likewise.
30317         * lib/filemode.c: Likewise.
30318         * lib/filemode.h: Likewise.
30319         * lib/filename.h: Likewise.
30320         * lib/filenamecat.c: Likewise.
30321         * lib/filenamecat.h: Likewise.
30322         * lib/findprog.c: Likewise.
30323         * lib/findprog.h: Likewise.
30324         * lib/float.in.h: Likewise.
30325         * lib/floor.c: Likewise.
30326         * lib/floorf.c: Likewise.
30327         * lib/floorl.c: Likewise.
30328         * lib/fopen-safer.c: Likewise.
30329         * lib/fopen.c: Likewise.
30330         * lib/fpending.c: Likewise.
30331         * lib/fpending.h: Likewise.
30332         * lib/fprintf.c: Likewise.
30333         * lib/fprintftime.h: Likewise.
30334         * lib/fpucw.h: Likewise.
30335         * lib/fpurge.c: Likewise.
30336         * lib/fpurge.h: Likewise.
30337         * lib/freadable.c: Likewise.
30338         * lib/freadable.h: Likewise.
30339         * lib/freadahead.c: Likewise.
30340         * lib/freadahead.h: Likewise.
30341         * lib/freading.c: Likewise.
30342         * lib/freading.h: Likewise.
30343         * lib/free.c: Likewise.
30344         * lib/freopen.c: Likewise.
30345         * lib/frexp.c: Likewise.
30346         * lib/frexpl.c: Likewise.
30347         * lib/fseek.c: Likewise.
30348         * lib/fseterr.c: Likewise.
30349         * lib/fseterr.h: Likewise.
30350         * lib/fstatat.c: Likewise.
30351         * lib/fstrcmp.c: Likewise.
30352         * lib/fstrcmp.h: Likewise.
30353         * lib/fsusage.c: Likewise.
30354         * lib/fsusage.h: Likewise.
30355         * lib/ftell.c: Likewise.
30356         * lib/ftello.c: Likewise.
30357         * lib/fts-cycle.c: Likewise.
30358         * lib/fts.c: Likewise.
30359         * lib/fts_.h: Likewise.
30360         * lib/full-read.c: Likewise.
30361         * lib/full-read.h: Likewise.
30362         * lib/full-write.c: Likewise.
30363         * lib/full-write.h: Likewise.
30364         * lib/fwritable.c: Likewise.
30365         * lib/fwritable.h: Likewise.
30366         * lib/fwriteerror.c: Likewise.
30367         * lib/fwriteerror.h: Likewise.
30368         * lib/fwriting.c: Likewise.
30369         * lib/fwriting.h: Likewise.
30370         * lib/gcd.c: Likewise.
30371         * lib/gcd.h: Likewise.
30372         * lib/getcwd.c: Likewise.
30373         * lib/getdate.h: Likewise.
30374         * lib/getdate.y: Likewise.
30375         * lib/getdomainname.c: Likewise.
30376         * lib/getdomainname.h: Likewise.
30377         * lib/getgroups.c: Likewise.
30378         * lib/gethostname.c: Likewise.
30379         * lib/gethrxtime.c: Likewise.
30380         * lib/gethrxtime.h: Likewise.
30381         * lib/getloadavg.c: Likewise.
30382         * lib/getndelim2.c: Likewise.
30383         * lib/getndelim2.h: Likewise.
30384         * lib/getnline.c: Likewise.
30385         * lib/getnline.h: Likewise.
30386         * lib/getopt.c: Likewise.
30387         * lib/getopt.in.h: Likewise.
30388         * lib/getopt1.c: Likewise.
30389         * lib/getopt_int.h: Likewise.
30390         * lib/getpagesize.h: Likewise.
30391         * lib/getsubopt.c: Likewise.
30392         * lib/gettime.c: Likewise.
30393         * lib/getugroups.c: Likewise.
30394         * lib/getugroups.h: Likewise.
30395         * lib/getusershell.c: Likewise.
30396         * lib/gl_anyavltree_list1.h: Likewise.
30397         * lib/gl_anyavltree_list2.h: Likewise.
30398         * lib/gl_anyhash_list1.h: Likewise.
30399         * lib/gl_anyhash_list2.h: Likewise.
30400         * lib/gl_anylinked_list1.h: Likewise.
30401         * lib/gl_anylinked_list2.h: Likewise.
30402         * lib/gl_anyrbtree_list1.h: Likewise.
30403         * lib/gl_anyrbtree_list2.h: Likewise.
30404         * lib/gl_anytree_list1.h: Likewise.
30405         * lib/gl_anytree_list2.h: Likewise.
30406         * lib/gl_anytree_oset.h: Likewise.
30407         * lib/gl_anytreehash_list1.h: Likewise.
30408         * lib/gl_anytreehash_list2.h: Likewise.
30409         * lib/gl_array_list.c: Likewise.
30410         * lib/gl_array_list.h: Likewise.
30411         * lib/gl_array_oset.c: Likewise.
30412         * lib/gl_array_oset.h: Likewise.
30413         * lib/gl_avltree_list.c: Likewise.
30414         * lib/gl_avltree_list.h: Likewise.
30415         * lib/gl_avltree_oset.c: Likewise.
30416         * lib/gl_avltree_oset.h: Likewise.
30417         * lib/gl_avltreehash_list.c: Likewise.
30418         * lib/gl_avltreehash_list.h: Likewise.
30419         * lib/gl_carray_list.c: Likewise.
30420         * lib/gl_carray_list.h: Likewise.
30421         * lib/gl_linked_list.c: Likewise.
30422         * lib/gl_linked_list.h: Likewise.
30423         * lib/gl_linkedhash_list.c: Likewise.
30424         * lib/gl_linkedhash_list.h: Likewise.
30425         * lib/gl_list.c: Likewise.
30426         * lib/gl_list.h: Likewise.
30427         * lib/gl_oset.c: Likewise.
30428         * lib/gl_oset.h: Likewise.
30429         * lib/gl_rbtree_list.c: Likewise.
30430         * lib/gl_rbtree_list.h: Likewise.
30431         * lib/gl_rbtree_oset.c: Likewise.
30432         * lib/gl_rbtree_oset.h: Likewise.
30433         * lib/gl_rbtreehash_list.c: Likewise.
30434         * lib/gl_rbtreehash_list.h: Likewise.
30435         * lib/gl_sublist.c: Likewise.
30436         * lib/gl_sublist.h: Likewise.
30437         * lib/group-member.c: Likewise.
30438         * lib/group-member.h: Likewise.
30439         * lib/hard-locale.c: Likewise.
30440         * lib/hard-locale.h: Likewise.
30441         * lib/hash-pjw.c: Likewise.
30442         * lib/hash-pjw.h: Likewise.
30443         * lib/hash-triple.c: Likewise.
30444         * lib/hash.c: Likewise.
30445         * lib/hash.h: Likewise.
30446         * lib/human.c: Likewise.
30447         * lib/human.h: Likewise.
30448         * lib/i-ring.c: Likewise.
30449         * lib/i-ring.h: Likewise.
30450         * lib/idcache.c: Likewise.
30451         * lib/imaxabs.c: Likewise.
30452         * lib/imaxdiv.c: Likewise.
30453         * lib/inet_pton.c: Likewise.
30454         * lib/inet_pton.h: Likewise.
30455         * lib/intprops.h: Likewise.
30456         * lib/inttostr.c: Likewise.
30457         * lib/inttostr.h: Likewise.
30458         * lib/inttypes.in.h: Likewise.
30459         * lib/isapipe.c: Likewise.
30460         * lib/isdir.c: Likewise.
30461         * lib/isnan.c: Likewise.
30462         * lib/isnan.h: Likewise.
30463         * lib/isnanf.c: Likewise.
30464         * lib/isnanf.h: Likewise.
30465         * lib/isnanl-nolibm.h: Likewise.
30466         * lib/isnanl.c: Likewise.
30467         * lib/isnanl.h: Likewise.
30468         * lib/javacomp.c: Likewise.
30469         * lib/javacomp.h: Likewise.
30470         * lib/javaexec.c: Likewise.
30471         * lib/javaexec.h: Likewise.
30472         * lib/javaversion.c: Likewise.
30473         * lib/javaversion.h: Likewise.
30474         * lib/javaversion.java: Likewise.
30475         * lib/lbrkprop.h: Likewise.
30476         * lib/lchmod.h: Likewise.
30477         * lib/lchown.c: Likewise.
30478         * lib/ldexpl.c: Likewise.
30479         * lib/linebreak.c: Likewise.
30480         * lib/linebreak.h: Likewise.
30481         * lib/linebuffer.c: Likewise.
30482         * lib/linebuffer.h: Likewise.
30483         * lib/locale.in.h: Likewise.
30484         * lib/logl.c: Likewise.
30485         * lib/long-options.c: Likewise.
30486         * lib/long-options.h: Likewise.
30487         * lib/lstat.c: Likewise.
30488         * lib/lstat.h: Likewise.
30489         * lib/math.in.h: Likewise.
30490         * lib/mbchar.c: Likewise.
30491         * lib/mbchar.h: Likewise.
30492         * lib/mbfile.h: Likewise.
30493         * lib/mbiter.h: Likewise.
30494         * lib/mbscasecmp.c: Likewise.
30495         * lib/mbscasestr.c: Likewise.
30496         * lib/mbschr.c: Likewise.
30497         * lib/mbscspn.c: Likewise.
30498         * lib/mbslen.c: Likewise.
30499         * lib/mbsncasecmp.c: Likewise.
30500         * lib/mbsnlen.c: Likewise.
30501         * lib/mbspbrk.c: Likewise.
30502         * lib/mbspcasecmp.c: Likewise.
30503         * lib/mbsrchr.c: Likewise.
30504         * lib/mbssep.c: Likewise.
30505         * lib/mbsspn.c: Likewise.
30506         * lib/mbsstr.c: Likewise.
30507         * lib/mbstok_r.c: Likewise.
30508         * lib/mbswidth.c: Likewise.
30509         * lib/mbswidth.h: Likewise.
30510         * lib/mbuiter.h: Likewise.
30511         * lib/memcasecmp.c: Likewise.
30512         * lib/memcasecmp.h: Likewise.
30513         * lib/memchr.c: Likewise.
30514         * lib/memcmp.c: Likewise.
30515         * lib/memcoll.c: Likewise.
30516         * lib/memcoll.h: Likewise.
30517         * lib/memcpy.c: Likewise.
30518         * lib/memrchr.c: Likewise.
30519         * lib/mkancesdirs.c: Likewise.
30520         * lib/mkdir-p.c: Likewise.
30521         * lib/mkdir-p.h: Likewise.
30522         * lib/mkdir.c: Likewise.
30523         * lib/mkdirat.c: Likewise.
30524         * lib/mkdtemp.c: Likewise.
30525         * lib/mkstemp-safer.c: Likewise.
30526         * lib/mkstemp.c: Likewise.
30527         * lib/modechange.c: Likewise.
30528         * lib/modechange.h: Likewise.
30529         * lib/mountlist.c: Likewise.
30530         * lib/mountlist.h: Likewise.
30531         * lib/mpsort.c: Likewise.
30532         * lib/nanosleep.c: Likewise.
30533         * lib/obstack.c: Likewise.
30534         * lib/obstack.h: Likewise.
30535         * lib/open-safer.c: Likewise.
30536         * lib/open.c: Likewise.
30537         * lib/openat-die.c: Likewise.
30538         * lib/openat-priv.h: Likewise.
30539         * lib/openat-proc.c: Likewise.
30540         * lib/openat.c: Likewise.
30541         * lib/openat.h: Likewise.
30542         * lib/pagealign_alloc.c: Likewise.
30543         * lib/pagealign_alloc.h: Likewise.
30544         * lib/physmem.c: Likewise.
30545         * lib/physmem.h: Likewise.
30546         * lib/pipe-safer.c: Likewise.
30547         * lib/pipe.c: Likewise.
30548         * lib/pipe.h: Likewise.
30549         * lib/posixtm.c: Likewise.
30550         * lib/posixtm.h: Likewise.
30551         * lib/posixver.c: Likewise.
30552         * lib/printf-frexp.c: Likewise.
30553         * lib/printf-frexp.h: Likewise.
30554         * lib/printf-frexpl.c: Likewise.
30555         * lib/printf-frexpl.h: Likewise.
30556         * lib/printf.c: Likewise.
30557         * lib/progname.c: Likewise.
30558         * lib/progname.h: Likewise.
30559         * lib/progreloc.c: Likewise.
30560         * lib/putenv.c: Likewise.
30561         * lib/quote.c: Likewise.
30562         * lib/quote.h: Likewise.
30563         * lib/quotearg.c: Likewise.
30564         * lib/quotearg.h: Likewise.
30565         * lib/raise.c: Likewise.
30566         * lib/readline.c: Likewise.
30567         * lib/readline.h: Likewise.
30568         * lib/readlink.c: Likewise.
30569         * lib/readtokens.c: Likewise.
30570         * lib/readtokens.h: Likewise.
30571         * lib/readtokens0.c: Likewise.
30572         * lib/readtokens0.h: Likewise.
30573         * lib/readutmp.c: Likewise.
30574         * lib/readutmp.h: Likewise.
30575         * lib/realloc.c: Likewise.
30576         * lib/relocwrapper.c: Likewise.
30577         * lib/rename-dest-slash.c: Likewise.
30578         * lib/rename.c: Likewise.
30579         * lib/rmdir.c: Likewise.
30580         * lib/rpmatch.c: Likewise.
30581         * lib/safe-read.c: Likewise.
30582         * lib/safe-read.h: Likewise.
30583         * lib/safe-write.c: Likewise.
30584         * lib/safe-write.h: Likewise.
30585         * lib/same-inode.h: Likewise.
30586         * lib/same.c: Likewise.
30587         * lib/same.h: Likewise.
30588         * lib/save-cwd.c: Likewise.
30589         * lib/save-cwd.h: Likewise.
30590         * lib/savedir.c: Likewise.
30591         * lib/savedir.h: Likewise.
30592         * lib/savewd.c: Likewise.
30593         * lib/savewd.h: Likewise.
30594         * lib/search.in.h: Likewise.
30595         * lib/setenv.c: Likewise.
30596         * lib/setenv.h: Likewise.
30597         * lib/settime.c: Likewise.
30598         * lib/sh-quote.c: Likewise.
30599         * lib/sh-quote.h: Likewise.
30600         * lib/sig2str.c: Likewise.
30601         * lib/sig2str.h: Likewise.
30602         * lib/signal.in.h: Likewise.
30603         * lib/signbitd.c: Likewise.
30604         * lib/signbitf.c: Likewise.
30605         * lib/signbitl.c: Likewise.
30606         * lib/sigprocmask.c: Likewise.
30607         * lib/sincosl.c: Likewise.
30608         * lib/sleep.c: Likewise.
30609         * lib/sprintf.c: Likewise.
30610         * lib/sqrtl.c: Likewise.
30611         * lib/stat-time.h: Likewise.
30612         * lib/stdio--.h: Likewise.
30613         * lib/stdio-safer.h: Likewise.
30614         * lib/stdlib--.h: Likewise.
30615         * lib/stdlib-safer.h: Likewise.
30616         * lib/stdlib.in.h: Likewise.
30617         * lib/stpcpy.c: Likewise.
30618         * lib/stpncpy.c: Likewise.
30619         * lib/strchrnul.c: Likewise.
30620         * lib/strcspn.c: Likewise.
30621         * lib/strerror.c: Likewise.
30622         * lib/strftime.c: Likewise.
30623         * lib/strftime.h: Likewise.
30624         * lib/striconveh.c: Likewise.
30625         * lib/striconveh.h: Likewise.
30626         * lib/striconveha.c: Likewise.
30627         * lib/striconveha.h: Likewise.
30628         * lib/stripslash.c: Likewise.
30629         * lib/strnlen1.c: Likewise.
30630         * lib/strnlen1.h: Likewise.
30631         * lib/strtod.c: Likewise.
30632         * lib/strtoimax.c: Likewise.
30633         * lib/strtok_r.c: Likewise.
30634         * lib/strtol.c: Likewise.
30635         * lib/strtoll.c: Likewise.
30636         * lib/strtoul.c: Likewise.
30637         * lib/strtoull.c: Likewise.
30638         * lib/sysexits.in.h: Likewise.
30639         * lib/tempname.c: Likewise.
30640         * lib/tempname.h: Likewise.
30641         * lib/timespec.h: Likewise.
30642         * lib/tls.c: Likewise.
30643         * lib/tls.h: Likewise.
30644         * lib/tmpdir.c: Likewise.
30645         * lib/tmpdir.h: Likewise.
30646         * lib/tmpfile-safer.c: Likewise.
30647         * lib/tmpfile.c: Likewise.
30648         * lib/trigl.c: Likewise.
30649         * lib/trigl.h: Likewise.
30650         * lib/trim.c: Likewise.
30651         * lib/trim.h: Likewise.
30652         * lib/trunc.c: Likewise.
30653         * lib/truncf.c: Likewise.
30654         * lib/truncl.c: Likewise.
30655         * lib/tsearch.c: Likewise.
30656         * lib/unicodeio.c: Likewise.
30657         * lib/unicodeio.h: Likewise.
30658         * lib/unistd--.h: Likewise.
30659         * lib/unistd-safer.h: Likewise.
30660         * lib/unistdio/ulc-fprintf.c: Likewise.
30661         * lib/unistdio/ulc-vfprintf.c: Likewise.
30662         * lib/unlinkdir.c: Likewise.
30663         * lib/unlinkdir.h: Likewise.
30664         * lib/unlocked-io.h: Likewise.
30665         * lib/unsetenv.c: Likewise.
30666         * lib/userspec.c: Likewise.
30667         * lib/utime.c: Likewise.
30668         * lib/utimecmp.c: Likewise.
30669         * lib/utimecmp.h: Likewise.
30670         * lib/utimens.c: Likewise.
30671         * lib/verify.h: Likewise.
30672         * lib/verror.c: Likewise.
30673         * lib/verror.h: Likewise.
30674         * lib/version-etc-fsf.c: Likewise.
30675         * lib/version-etc.c: Likewise.
30676         * lib/version-etc.h: Likewise.
30677         * lib/vfprintf.c: Likewise.
30678         * lib/vprintf.c: Likewise.
30679         * lib/vsprintf.c: Likewise.
30680         * lib/w32spawn.h: Likewise.
30681         * lib/wait-process.c: Likewise.
30682         * lib/wait-process.h: Likewise.
30683         * lib/wcwidth.c: Likewise.
30684         * lib/write-any-file.c: Likewise.
30685         * lib/xalloc-die.c: Likewise.
30686         * lib/xalloc.h: Likewise.
30687         * lib/xasprintf.c: Likewise.
30688         * lib/xgetcwd.c: Likewise.
30689         * lib/xgetcwd.h: Likewise.
30690         * lib/xgetdomainname.c: Likewise.
30691         * lib/xgetdomainname.h: Likewise.
30692         * lib/xgethostname.c: Likewise.
30693         * lib/xmalloc.c: Likewise.
30694         * lib/xmalloca.c: Likewise.
30695         * lib/xmalloca.h: Likewise.
30696         * lib/xmemcoll.c: Likewise.
30697         * lib/xnanosleep.c: Likewise.
30698         * lib/xreadlink.c: Likewise.
30699         * lib/xreadlink.h: Likewise.
30700         * lib/xsetenv.c: Likewise.
30701         * lib/xsetenv.h: Likewise.
30702         * lib/xstriconv.c: Likewise.
30703         * lib/xstriconv.h: Likewise.
30704         * lib/xstrndup.c: Likewise.
30705         * lib/xstrndup.h: Likewise.
30706         * lib/xstrtod.c: Likewise.
30707         * lib/xstrtod.h: Likewise.
30708         * lib/xstrtol-error.c: Likewise.
30709         * lib/xstrtol.c: Likewise.
30710         * lib/xstrtol.h: Likewise.
30711         * lib/xtime.h: Likewise.
30712         * lib/xvasprintf.c: Likewise.
30713         * lib/xvasprintf.h: Likewise.
30714         * lib/yesno.c: Likewise.
30715         * lib/yesno.h: Likewise.
30716         * posix-modules: Likewise.
30717         * tests/test-alloca-opt.c: Likewise.
30718         * tests/test-arcfour.c: Likewise.
30719         * tests/test-arctwo.c: Likewise.
30720         * tests/test-argmatch.c: Likewise.
30721         * tests/test-argp-2.sh: Likewise.
30722         * tests/test-argp.c: Likewise.
30723         * tests/test-arpa_inet.c: Likewise.
30724         * tests/test-array_list.c: Likewise.
30725         * tests/test-array_oset.c: Likewise.
30726         * tests/test-atexit.c: Likewise.
30727         * tests/test-avltree_list.c: Likewise.
30728         * tests/test-avltree_oset.c: Likewise.
30729         * tests/test-avltreehash_list.c: Likewise.
30730         * tests/test-base64.c: Likewise.
30731         * tests/test-binary-io.c: Likewise.
30732         * tests/test-byteswap.c: Likewise.
30733         * tests/test-c-ctype.c: Likewise.
30734         * tests/test-c-strcasecmp.c: Likewise.
30735         * tests/test-c-strcasestr.c: Likewise.
30736         * tests/test-c-strncasecmp.c: Likewise.
30737         * tests/test-c-strstr.c: Likewise.
30738         * tests/test-canonicalize-lgpl.c: Likewise.
30739         * tests/test-canonicalize.c: Likewise.
30740         * tests/test-carray_list.c: Likewise.
30741         * tests/test-ceilf.c: Likewise.
30742         * tests/test-ceill.c: Likewise.
30743         * tests/test-count-one-bits.c: Likewise.
30744         * tests/test-crc.c: Likewise.
30745         * tests/test-dirname.c: Likewise.
30746         * tests/test-fbufmode.c: Likewise.
30747         * tests/test-fcntl.c: Likewise.
30748         * tests/test-fflush.c: Likewise.
30749         * tests/test-floorf.c: Likewise.
30750         * tests/test-floorl.c: Likewise.
30751         * tests/test-fopen.c: Likewise.
30752         * tests/test-fprintf-posix.c: Likewise.
30753         * tests/test-fprintf-posix.h: Likewise.
30754         * tests/test-fpurge.c: Likewise.
30755         * tests/test-freadable.c: Likewise.
30756         * tests/test-freadahead.c: Likewise.
30757         * tests/test-freading.c: Likewise.
30758         * tests/test-freopen.c: Likewise.
30759         * tests/test-frexp.c: Likewise.
30760         * tests/test-frexpl.c: Likewise.
30761         * tests/test-fseek.c: Likewise.
30762         * tests/test-fseeko.c: Likewise.
30763         * tests/test-fseterr.c: Likewise.
30764         * tests/test-fstrcmp.c: Likewise.
30765         * tests/test-ftell.c: Likewise.
30766         * tests/test-ftello.c: Likewise.
30767         * tests/test-fwritable.c: Likewise.
30768         * tests/test-fwriting.c: Likewise.
30769         * tests/test-getaddrinfo.c: Likewise.
30770         * tests/test-getpass.c: Likewise.
30771         * tests/test-gettimeofday.c: Likewise.
30772         * tests/test-hmac-md5.c: Likewise.
30773         * tests/test-hmac-sha1.c: Likewise.
30774         * tests/test-iconv.c: Likewise.
30775         * tests/test-iconvme.c: Likewise.
30776         * tests/test-inttypes.c: Likewise.
30777         * tests/test-isnan.c: Likewise.
30778         * tests/test-isnanf.c: Likewise.
30779         * tests/test-isnanl-nolibm.c: Likewise.
30780         * tests/test-isnanl.c: Likewise.
30781         * tests/test-isnanl.h: Likewise.
30782         * tests/test-ldexpl.c: Likewise.
30783         * tests/test-linked_list.c: Likewise.
30784         * tests/test-linkedhash_list.c: Likewise.
30785         * tests/test-locale.c: Likewise.
30786         * tests/test-localename.c: Likewise.
30787         * tests/test-lock.c: Likewise.
30788         * tests/test-lseek.c: Likewise.
30789         * tests/test-malloca.c: Likewise.
30790         * tests/test-math.c: Likewise.
30791         * tests/test-mbscasecmp.c: Likewise.
30792         * tests/test-mbscasestr1.c: Likewise.
30793         * tests/test-mbscasestr2.c: Likewise.
30794         * tests/test-mbscasestr3.c: Likewise.
30795         * tests/test-mbscasestr4.c: Likewise.
30796         * tests/test-mbschr.c: Likewise.
30797         * tests/test-mbscspn.c: Likewise.
30798         * tests/test-mbsncasecmp.c: Likewise.
30799         * tests/test-mbspbrk.c: Likewise.
30800         * tests/test-mbspcasecmp.c: Likewise.
30801         * tests/test-mbsrchr.c: Likewise.
30802         * tests/test-mbsspn.c: Likewise.
30803         * tests/test-mbsstr1.c: Likewise.
30804         * tests/test-mbsstr2.c: Likewise.
30805         * tests/test-mbsstr3.c: Likewise.
30806         * tests/test-md5.c: Likewise.
30807         * tests/test-memmem.c: Likewise.
30808         * tests/test-netinet_in.c: Likewise.
30809         * tests/test-open.c: Likewise.
30810         * tests/test-printf-frexp.c: Likewise.
30811         * tests/test-printf-frexpl.c: Likewise.
30812         * tests/test-printf-posix.c: Likewise.
30813         * tests/test-printf-posix.h: Likewise.
30814         * tests/test-rbtree_list.c: Likewise.
30815         * tests/test-rbtree_oset.c: Likewise.
30816         * tests/test-rbtreehash_list.c: Likewise.
30817         * tests/test-read-file.c: Likewise.
30818         * tests/test-rijndael.c: Likewise.
30819         * tests/test-search.c: Likewise.
30820         * tests/test-signbit.c: Likewise.
30821         * tests/test-sleep.c: Likewise.
30822         * tests/test-snprintf-posix.c: Likewise.
30823         * tests/test-snprintf-posix.h: Likewise.
30824         * tests/test-snprintf.c: Likewise.
30825         * tests/test-sprintf-posix.c: Likewise.
30826         * tests/test-sprintf-posix.h: Likewise.
30827         * tests/test-stat-time.c: Likewise.
30828         * tests/test-stdbool.c: Likewise.
30829         * tests/test-stdint.c: Likewise.
30830         * tests/test-stdio.c: Likewise.
30831         * tests/test-stdlib.c: Likewise.
30832         * tests/test-stpncpy.c: Likewise.
30833         * tests/test-strcasestr.c: Likewise.
30834         * tests/test-striconv.c: Likewise.
30835         * tests/test-striconveh.c: Likewise.
30836         * tests/test-striconveha.c: Likewise.
30837         * tests/test-string.c: Likewise.
30838         * tests/test-sys_select.c: Likewise.
30839         * tests/test-sys_socket.c: Likewise.
30840         * tests/test-sys_stat.c: Likewise.
30841         * tests/test-sys_time.c: Likewise.
30842         * tests/test-sysexits.c: Likewise.
30843         * tests/test-time.c: Likewise.
30844         * tests/test-tls.c: Likewise.
30845         * tests/test-trunc.c: Likewise.
30846         * tests/test-truncf.c: Likewise.
30847         * tests/test-truncl.c: Likewise.
30848         * tests/test-unistd.c: Likewise.
30849         * tests/test-vasnprintf-posix.c: Likewise.
30850         * tests/test-vasnprintf-posix2.c: Likewise.
30851         * tests/test-vasnprintf.c: Likewise.
30852         * tests/test-vasprintf-posix.c: Likewise.
30853         * tests/test-vasprintf.c: Likewise.
30854         * tests/test-verify.c: Likewise.
30855         * tests/test-vfprintf-posix.c: Likewise.
30856         * tests/test-vprintf-posix.c: Likewise.
30857         * tests/test-vsnprintf-posix.c: Likewise.
30858         * tests/test-vsnprintf.c: Likewise.
30859         * tests/test-vsprintf-posix.c: Likewise.
30860         * tests/test-wchar.c: Likewise.
30861         * tests/test-wctype.c: Likewise.
30862         * tests/test-wcwidth.c: Likewise.
30863         * tests/test-xstrtol.c: Likewise.
30864         * tests/test-xvasprintf.c: Likewise.
30865         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30866         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30867         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30868         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30869         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30870         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30871         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30872         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30873         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30874         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30875         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30876         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30877         * tests/uniname/test-uninames.c: Likewise.
30878         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30879         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30880         * tests/unistdio/test-u16-printf1.h: Likewise.
30881         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30882         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30883         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30884         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30885         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30886         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30887         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30888         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30889         * tests/unistdio/test-u32-printf1.h: Likewise.
30890         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30891         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30892         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30893         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30894         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30895         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30896         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30897         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30898         * tests/unistdio/test-u8-printf1.h: Likewise.
30899         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30900         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30901         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30902         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30903         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30904         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30905         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30906         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30907         * tests/unistdio/test-ulc-printf1.h: Likewise.
30908         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30909         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30910         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30911         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30912         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30913         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30914         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30915         * tests/uniwidth/test-u16-width.c: Likewise.
30916         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30917         * tests/uniwidth/test-u32-width.c: Likewise.
30918         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30919         * tests/uniwidth/test-u8-width.c: Likewise.
30920         * tests/uniwidth/test-uc_width.c: Likewise.
30921         * config/srclist-update: Likewise.
30922         (fixlicense): Update to GPLv3+.
30923
30924         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30925         * tests/test-tsearch.c: Change copyright notice.
30926
30927         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30928         * lib/c-strcaseeq.h: Change copyright notice.
30929         * lib/streq.h: Likewise.
30930         * lib/uniconv.h: Likewise.
30931         * lib/uniconv/u-conv-from-enc.h: Likewise.
30932         * lib/uniconv/u-conv-to-enc.h: Likewise.
30933         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30934         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30935         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30936         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30937         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30938         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30939         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30940         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30941         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30942         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30943         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30944         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30945         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30946         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30947         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30948         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30949         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30950         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30951         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30952         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30953         * lib/uniname.h: Likewise.
30954         * lib/uniname/uniname.c: Likewise.
30955         * lib/unistdio.h: Likewise.
30956         * lib/unistdio/u-asnprintf.h: Likewise.
30957         * lib/unistdio/u-asprintf.h: Likewise.
30958         * lib/unistdio/u-printf-args.c: Likewise.
30959         * lib/unistdio/u-printf-args.h: Likewise.
30960         * lib/unistdio/u-printf-parse.h: Likewise.
30961         * lib/unistdio/u-snprintf.h: Likewise.
30962         * lib/unistdio/u-sprintf.h: Likewise.
30963         * lib/unistdio/u-vasprintf.h: Likewise.
30964         * lib/unistdio/u-vsnprintf.h: Likewise.
30965         * lib/unistdio/u-vsprintf.h: Likewise.
30966         * lib/unistdio/u16-asnprintf.c: Likewise.
30967         * lib/unistdio/u16-asprintf.c: Likewise.
30968         * lib/unistdio/u16-printf-parse.c: Likewise.
30969         * lib/unistdio/u16-snprintf.c: Likewise.
30970         * lib/unistdio/u16-sprintf.c: Likewise.
30971         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30972         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30973         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30974         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30975         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30976         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30977         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30978         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30979         * lib/unistdio/u16-vasnprintf.c: Likewise.
30980         * lib/unistdio/u16-vasprintf.c: Likewise.
30981         * lib/unistdio/u16-vsnprintf.c: Likewise.
30982         * lib/unistdio/u16-vsprintf.c: Likewise.
30983         * lib/unistdio/u32-asnprintf.c: Likewise.
30984         * lib/unistdio/u32-asprintf.c: Likewise.
30985         * lib/unistdio/u32-printf-parse.c: Likewise.
30986         * lib/unistdio/u32-snprintf.c: Likewise.
30987         * lib/unistdio/u32-sprintf.c: Likewise.
30988         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30989         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30990         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30991         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30992         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30993         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30994         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30995         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30996         * lib/unistdio/u32-vasnprintf.c: Likewise.
30997         * lib/unistdio/u32-vasprintf.c: Likewise.
30998         * lib/unistdio/u32-vsnprintf.c: Likewise.
30999         * lib/unistdio/u32-vsprintf.c: Likewise.
31000         * lib/unistdio/u8-asnprintf.c: Likewise.
31001         * lib/unistdio/u8-asprintf.c: Likewise.
31002         * lib/unistdio/u8-printf-parse.c: Likewise.
31003         * lib/unistdio/u8-snprintf.c: Likewise.
31004         * lib/unistdio/u8-sprintf.c: Likewise.
31005         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31006         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31007         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31008         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31009         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31010         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31011         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31012         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31013         * lib/unistdio/u8-vasnprintf.c: Likewise.
31014         * lib/unistdio/u8-vasprintf.c: Likewise.
31015         * lib/unistdio/u8-vsnprintf.c: Likewise.
31016         * lib/unistdio/u8-vsprintf.c: Likewise.
31017         * lib/unistdio/ulc-asnprintf.c: Likewise.
31018         * lib/unistdio/ulc-asprintf.c: Likewise.
31019         * lib/unistdio/ulc-printf-parse.c: Likewise.
31020         * lib/unistdio/ulc-snprintf.c: Likewise.
31021         * lib/unistdio/ulc-sprintf.c: Likewise.
31022         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31023         * lib/unistdio/ulc-vasprintf.c: Likewise.
31024         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31025         * lib/unistdio/ulc-vsprintf.c: Likewise.
31026         * lib/unistr.h: Likewise.
31027         * lib/unistr/u-cpy-alloc.h: Likewise.
31028         * lib/unistr/u-cpy.h: Likewise.
31029         * lib/unistr/u-endswith.h: Likewise.
31030         * lib/unistr/u-move.h: Likewise.
31031         * lib/unistr/u-set.h: Likewise.
31032         * lib/unistr/u-startswith.h: Likewise.
31033         * lib/unistr/u-stpcpy.h: Likewise.
31034         * lib/unistr/u-stpncpy.h: Likewise.
31035         * lib/unistr/u-strcat.h: Likewise.
31036         * lib/unistr/u-strcpy.h: Likewise.
31037         * lib/unistr/u-strcspn.h: Likewise.
31038         * lib/unistr/u-strdup.h: Likewise.
31039         * lib/unistr/u-strlen.h: Likewise.
31040         * lib/unistr/u-strncat.h: Likewise.
31041         * lib/unistr/u-strncpy.h: Likewise.
31042         * lib/unistr/u-strnlen.h: Likewise.
31043         * lib/unistr/u-strpbrk.h: Likewise.
31044         * lib/unistr/u-strspn.h: Likewise.
31045         * lib/unistr/u-strstr.h: Likewise.
31046         * lib/unistr/u-strtok.h: Likewise.
31047         * lib/unistr/u16-check.c: Likewise.
31048         * lib/unistr/u16-chr.c: Likewise.
31049         * lib/unistr/u16-cmp.c: Likewise.
31050         * lib/unistr/u16-cpy-alloc.c: Likewise.
31051         * lib/unistr/u16-cpy.c: Likewise.
31052         * lib/unistr/u16-endswith.c: Likewise.
31053         * lib/unistr/u16-mblen.c: Likewise.
31054         * lib/unistr/u16-mbsnlen.c: Likewise.
31055         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31056         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31057         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31058         * lib/unistr/u16-mbtouc.c: Likewise.
31059         * lib/unistr/u16-mbtoucr.c: Likewise.
31060         * lib/unistr/u16-move.c: Likewise.
31061         * lib/unistr/u16-next.c: Likewise.
31062         * lib/unistr/u16-prev.c: Likewise.
31063         * lib/unistr/u16-set.c: Likewise.
31064         * lib/unistr/u16-startswith.c: Likewise.
31065         * lib/unistr/u16-stpcpy.c: Likewise.
31066         * lib/unistr/u16-stpncpy.c: Likewise.
31067         * lib/unistr/u16-strcat.c: Likewise.
31068         * lib/unistr/u16-strchr.c: Likewise.
31069         * lib/unistr/u16-strcmp.c: Likewise.
31070         * lib/unistr/u16-strcpy.c: Likewise.
31071         * lib/unistr/u16-strcspn.c: Likewise.
31072         * lib/unistr/u16-strdup.c: Likewise.
31073         * lib/unistr/u16-strlen.c: Likewise.
31074         * lib/unistr/u16-strmblen.c: Likewise.
31075         * lib/unistr/u16-strmbtouc.c: Likewise.
31076         * lib/unistr/u16-strncat.c: Likewise.
31077         * lib/unistr/u16-strncmp.c: Likewise.
31078         * lib/unistr/u16-strncpy.c: Likewise.
31079         * lib/unistr/u16-strnlen.c: Likewise.
31080         * lib/unistr/u16-strpbrk.c: Likewise.
31081         * lib/unistr/u16-strrchr.c: Likewise.
31082         * lib/unistr/u16-strspn.c: Likewise.
31083         * lib/unistr/u16-strstr.c: Likewise.
31084         * lib/unistr/u16-strtok.c: Likewise.
31085         * lib/unistr/u16-to-u32.c: Likewise.
31086         * lib/unistr/u16-to-u8.c: Likewise.
31087         * lib/unistr/u16-uctomb-aux.c: Likewise.
31088         * lib/unistr/u16-uctomb.c: Likewise.
31089         * lib/unistr/u32-check.c: Likewise.
31090         * lib/unistr/u32-chr.c: Likewise.
31091         * lib/unistr/u32-cmp.c: Likewise.
31092         * lib/unistr/u32-cpy-alloc.c: Likewise.
31093         * lib/unistr/u32-cpy.c: Likewise.
31094         * lib/unistr/u32-endswith.c: Likewise.
31095         * lib/unistr/u32-mblen.c: Likewise.
31096         * lib/unistr/u32-mbsnlen.c: Likewise.
31097         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31098         * lib/unistr/u32-mbtouc.c: Likewise.
31099         * lib/unistr/u32-mbtoucr.c: Likewise.
31100         * lib/unistr/u32-move.c: Likewise.
31101         * lib/unistr/u32-next.c: Likewise.
31102         * lib/unistr/u32-prev.c: Likewise.
31103         * lib/unistr/u32-set.c: Likewise.
31104         * lib/unistr/u32-startswith.c: Likewise.
31105         * lib/unistr/u32-stpcpy.c: Likewise.
31106         * lib/unistr/u32-stpncpy.c: Likewise.
31107         * lib/unistr/u32-strcat.c: Likewise.
31108         * lib/unistr/u32-strchr.c: Likewise.
31109         * lib/unistr/u32-strcmp.c: Likewise.
31110         * lib/unistr/u32-strcpy.c: Likewise.
31111         * lib/unistr/u32-strcspn.c: Likewise.
31112         * lib/unistr/u32-strdup.c: Likewise.
31113         * lib/unistr/u32-strlen.c: Likewise.
31114         * lib/unistr/u32-strmblen.c: Likewise.
31115         * lib/unistr/u32-strmbtouc.c: Likewise.
31116         * lib/unistr/u32-strncat.c: Likewise.
31117         * lib/unistr/u32-strncmp.c: Likewise.
31118         * lib/unistr/u32-strncpy.c: Likewise.
31119         * lib/unistr/u32-strnlen.c: Likewise.
31120         * lib/unistr/u32-strpbrk.c: Likewise.
31121         * lib/unistr/u32-strrchr.c: Likewise.
31122         * lib/unistr/u32-strspn.c: Likewise.
31123         * lib/unistr/u32-strstr.c: Likewise.
31124         * lib/unistr/u32-strtok.c: Likewise.
31125         * lib/unistr/u32-to-u16.c: Likewise.
31126         * lib/unistr/u32-to-u8.c: Likewise.
31127         * lib/unistr/u32-uctomb.c: Likewise.
31128         * lib/unistr/u8-check.c: Likewise.
31129         * lib/unistr/u8-chr.c: Likewise.
31130         * lib/unistr/u8-cmp.c: Likewise.
31131         * lib/unistr/u8-cpy-alloc.c: Likewise.
31132         * lib/unistr/u8-cpy.c: Likewise.
31133         * lib/unistr/u8-endswith.c: Likewise.
31134         * lib/unistr/u8-mblen.c: Likewise.
31135         * lib/unistr/u8-mbsnlen.c: Likewise.
31136         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31137         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31138         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31139         * lib/unistr/u8-mbtouc.c: Likewise.
31140         * lib/unistr/u8-mbtoucr.c: Likewise.
31141         * lib/unistr/u8-move.c: Likewise.
31142         * lib/unistr/u8-next.c: Likewise.
31143         * lib/unistr/u8-prev.c: Likewise.
31144         * lib/unistr/u8-set.c: Likewise.
31145         * lib/unistr/u8-startswith.c: Likewise.
31146         * lib/unistr/u8-stpcpy.c: Likewise.
31147         * lib/unistr/u8-stpncpy.c: Likewise.
31148         * lib/unistr/u8-strcat.c: Likewise.
31149         * lib/unistr/u8-strchr.c: Likewise.
31150         * lib/unistr/u8-strcmp.c: Likewise.
31151         * lib/unistr/u8-strcpy.c: Likewise.
31152         * lib/unistr/u8-strcspn.c: Likewise.
31153         * lib/unistr/u8-strdup.c: Likewise.
31154         * lib/unistr/u8-strlen.c: Likewise.
31155         * lib/unistr/u8-strmblen.c: Likewise.
31156         * lib/unistr/u8-strmbtouc.c: Likewise.
31157         * lib/unistr/u8-strncat.c: Likewise.
31158         * lib/unistr/u8-strncmp.c: Likewise.
31159         * lib/unistr/u8-strncpy.c: Likewise.
31160         * lib/unistr/u8-strnlen.c: Likewise.
31161         * lib/unistr/u8-strpbrk.c: Likewise.
31162         * lib/unistr/u8-strrchr.c: Likewise.
31163         * lib/unistr/u8-strspn.c: Likewise.
31164         * lib/unistr/u8-strstr.c: Likewise.
31165         * lib/unistr/u8-strtok.c: Likewise.
31166         * lib/unistr/u8-to-u16.c: Likewise.
31167         * lib/unistr/u8-to-u32.c: Likewise.
31168         * lib/unistr/u8-uctomb-aux.c: Likewise.
31169         * lib/unistr/u8-uctomb.c: Likewise.
31170         * lib/unitypes.h: Likewise.
31171         * lib/uniwidth.h: Likewise.
31172         * lib/uniwidth/cjk.h: Likewise.
31173         * lib/uniwidth/u16-strwidth.c: Likewise.
31174         * lib/uniwidth/u16-width.c: Likewise.
31175         * lib/uniwidth/u32-strwidth.c: Likewise.
31176         * lib/uniwidth/u32-width.c: Likewise.
31177         * lib/uniwidth/u8-strwidth.c: Likewise.
31178         * lib/uniwidth/u8-width.c: Likewise.
31179         * lib/uniwidth/width.c: Likewise.
31180
31181 2007-10-07  Bruno Haible  <bruno@clisp.org>
31182
31183         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31184         The file is still under LGPL (see modules/inttypes).
31185
31186 2007-10-06  Bruno Haible  <bruno@clisp.org>
31187
31188         * modules/trunc (Dependencies): Add 'extensions'.
31189         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31190         Reported by Ben Pfaff <blp@gnu.org>.
31191
31192 2007-10-06  Bruno Haible  <bruno@clisp.org>
31193
31194         * modules/freopen-tests: New file.
31195         * tests/test-freopen.c: New file.
31196
31197         * modules/fopen-tests: New file.
31198         * tests/test-fopen.c: New file.
31199
31200         * modules/fopen: New file.
31201         * lib/fopen.c: New file.
31202         * m4/fopen.m4: New file.
31203         * modules/freopen: New file.
31204         * lib/freopen.c: New file.
31205         * m4/freopen.m4: New file.
31206         * lib/stdio.in.h (fopen, freopen): New declarations.
31207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31208         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31209         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31210         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31211         * doc/functions/fopen.texi: Mention the 'fopen' module.
31212         * doc/functions/freopen.texi: Mention the 'freopen' module.
31213
31214 2007-10-06  Bruno Haible  <bruno@clisp.org>
31215
31216         * modules/open-tests: New file.
31217         * tests/test-open.c: New file.
31218
31219         * modules/open: New file.
31220         * lib/open.c: New file.
31221         * m4/open.m4: New file.
31222         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31223         lib/open.c does.
31224         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31225         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31226         macros.
31227         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31228         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31229         REPLACE_OPEN.
31230         * doc/functions/open.texi: Mention the 'open' module.
31231
31232 2007-10-04  Bruno Haible  <bruno@clisp.org>
31233
31234         * modules/ceill-tests: New file.
31235         * tests/test-ceill.c: New file.
31236
31237         * modules/ceill: New file.
31238         * lib/ceill.c: Replace entire file.
31239         * m4/ceill.m4: New file.
31240         * lib/math.in.h (ceill): Replace declaration.
31241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31242         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31243         * doc/functions/ceill.texi: Mention the 'ceill' module.
31244         * modules/mathl (Files): Remove lib/ceill.c.
31245         (Depends-on): Add ceill.
31246
31247 2007-10-04  Bruno Haible  <bruno@clisp.org>
31248
31249         * modules/ceilf-tests: New file.
31250         * tests/test-ceilf.c: New file.
31251
31252         * modules/ceilf: New file.
31253         * lib/ceil.c: New file.
31254         * lib/ceilf.c: New file.
31255         * m4/ceilf.m4: New file.
31256         * lib/math.in.h (ceilf): New declaration.
31257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31258         HAVE_DECL_CEILF.
31259         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31260         HAVE_DECL_CEILF.
31261         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31262
31263 2007-10-04  Bruno Haible  <bruno@clisp.org>
31264
31265         * modules/floorl-tests: New file.
31266         * tests/test-floorl.c: New file.
31267
31268         * modules/floorl: New file.
31269         * lib/floorl.c: Replace entire file.
31270         * m4/floorl.m4: New file.
31271         * lib/math.in.h (floorl): Replace declaration.
31272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31273         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31274         * doc/functions/floorl.texi: Mention the 'floorl' module.
31275         * modules/mathl (Files): Remove lib/floorl.c.
31276         (Depends-on): Add floorl.
31277
31278 2007-10-04  Bruno Haible  <bruno@clisp.org>
31279
31280         * modules/floorf-tests: New file.
31281         * tests/test-floorf.c: New file.
31282
31283         * modules/floorf: New file.
31284         * lib/floor.c: New file.
31285         * lib/floorf.c: New file.
31286         * m4/floorf.m4: New file.
31287         * lib/math.in.h (floorf): New declaration.
31288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31289         HAVE_DECL_FLOORF.
31290         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31291         HAVE_DECL_FLOORF.
31292         * doc/functions/floorf.texi: Mention the 'floorf' module.
31293
31294 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31295             Bruno Haible  <bruno@clisp.org>
31296
31297         Advertise for the Git server instead of the CVS server.
31298         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31299         repository instead of the CVS one.
31300         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31301         about all VCS systems generically.
31302         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31303
31304 2007-10-04  Bruno Haible  <bruno@clisp.org>
31305
31306         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31307         means.
31308         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31309
31310 2007-10-04  Bruno Haible  <bruno@clisp.org>
31311
31312         * modules/truncl-tests: New file.
31313         * tests/test-truncl.c: New file.
31314
31315         * modules/truncl: New file.
31316         * lib/truncl.c: New file.
31317         * m4/truncl.m4: New file.
31318         * lib/math.in.h (truncl): New declaration.
31319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31320         HAVE_DECL_TRUNCL.
31321         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31322         HAVE_DECL_TRUNCL.
31323         * doc/functions/truncl.texi: Mention the 'truncl' module.
31324
31325 2007-10-04  Bruno Haible  <bruno@clisp.org>
31326
31327         * modules/truncf-tests: New file.
31328         * tests/test-truncf.c: New file.
31329
31330         * modules/truncf: New file.
31331         * lib/trunc.c: Make paramerizable through USE_* macros.
31332         * lib/truncf.c: New file.
31333         * m4/truncf.m4: New file.
31334         * lib/math.in.h (truncf): New declaration.
31335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31336         HAVE_DECL_TRUNCF.
31337         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31338         HAVE_DECL_TRUNCF.
31339         * doc/functions/truncf.texi: Mention the 'truncf' module.
31340
31341 2007-10-03  Bruno Haible  <bruno@clisp.org>
31342
31343         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31344         augmentation also for tests modules.
31345         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31346         * modules/atexit-tests (Makefile.am): Likewise.
31347         * modules/binary-io-tests (Makefile.am): Likewise.
31348         * modules/c-strcase-tests (Makefile.am): Likewise.
31349         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31350         * modules/canonicalize-tests (Makefile.am): Likewise.
31351         * modules/closein-tests (Makefile.am): Likewise.
31352         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31353         * modules/freadahead-tests (Makefile.am): Likewise.
31354         * modules/fseek-tests (Makefile.am): Likewise.
31355         * modules/fseeko-tests (Makefile.am): Likewise.
31356         * modules/ftell-tests (Makefile.am): Likewise.
31357         * modules/ftello-tests (Makefile.am): Likewise.
31358         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31359         * modules/isnanl-tests (Makefile.am): Likewise.
31360         * modules/lseek-tests (Makefile.am): Likewise.
31361         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31362         * modules/mbscasestr-tests (Makefile.am): Likewise.
31363         * modules/mbschr-tests (Makefile.am): Likewise.
31364         * modules/mbscspn-tests (Makefile.am): Likewise.
31365         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31366         * modules/mbspbrk-tests (Makefile.am): Likewise.
31367         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31368         * modules/mbsrchr-tests (Makefile.am): Likewise.
31369         * modules/mbsspn-tests (Makefile.am): Likewise.
31370         * modules/mbsstr-tests (Makefile.am): Likewise.
31371         * modules/printf-posix-tests (Makefile.am): Likewise.
31372         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31373         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31374         * modules/tsearch-tests (Makefile.am): Likewise.
31375         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31376         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31377         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31378         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31379         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31380         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31381         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31382         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31383         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31384         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31385         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31386         * modules/xstrtol-tests (Makefile.am): Likewise.
31387         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31388         * modules/yesno-tests (Makefile.am): Likewise.
31389
31390 2007-10-03  Bruno Haible  <bruno@clisp.org>
31391
31392         * modules/trunc-tests: New file.
31393         * tests/test-trunc.c: New file.
31394
31395         * modules/trunc: New file.
31396         * lib/trunc.c: New file.
31397         * m4/trunc.m4: New file.
31398         * lib/math.in.h (trunc): New declaration.
31399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31400         HAVE_DECL_TRUNC.
31401         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31402         HAVE_DECL_TRUNC.
31403         * doc/functions/trunc.texi: Mention the 'trunc' module.
31404
31405 2007-10-03  Bruno Haible  <bruno@clisp.org>
31406
31407         * tests/test-fpending.c: New file, mostly copied
31408         from coreutils/lib/t-fpending.c.
31409         * modules/fpending-tests: New file.
31410
31411 2007-10-03  Bruno Haible  <bruno@clisp.org>
31412
31413         Port the stdio extensions to QNX (untested).
31414         * lib/fseterr.c (fseterr): Add support for QNX.
31415         * lib/fbufmode.c (fbufmode): Likewise.
31416         * lib/freadable.c (freadable): Likewise.
31417         * lib/fwritable.c (fwritable): Likewise.
31418         * lib/freading.c (freading): Likewise.
31419         * lib/fwriting.c (fwriting): Likewise.
31420         * lib/freadahead.c (freadahed): Likewise.
31421         * lib/fpurge.c (fpurge): Likewise.
31422         * lib/fseeko.c (rpl_fseeko): Likewise.
31423
31424 2007-10-03  Bruno Haible  <bruno@clisp.org>
31425             Jim Meyering  <jim@meyering.net>
31426             Eric Blake  <ebb9@byu.net>
31427
31428         * doc/relocatable.texi: Use @command instead of @program.
31429
31430 2007-10-02  Jim Meyering  <jim@meyering.net>
31431
31432         Perform one more "_.h" -> ".in.h" substitution.
31433         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31434         instead of unistd_.h here, too.
31435
31436 2007-10-01  Bruno Haible  <bruno@clisp.org>
31437
31438         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31439         Needed for the alloca-opt module.
31440
31441 2007-09-30  Bruno Haible  <bruno@clisp.org>
31442
31443         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31444         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31445         alloca_.h.
31446         * lib/argz.in.h: Renamed from lib/argz_.h.
31447         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31448         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31449         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31450         byteswap_.h.
31451         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31452         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31453         dirent_.h.
31454         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31455         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31456         fcntl_.h.
31457         * lib/float.in.h: Renamed from lib/float_.h.
31458         * modules/float (Files, Makefile.am): Use float.in.h instead of
31459         float_.h.
31460         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31461         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31462         fnmatch_.h.
31463         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31464         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31465         getopt_.h.
31466         * lib/glob.in.h: Renamed from lib/glob_.h.
31467         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31468         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31469         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31470         iconv_.h.
31471         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31472         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31473         inttypes_.h.
31474         * lib/locale.in.h: Renamed from lib/locale_.h.
31475         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31476         locale_.h.
31477         * lib/math.in.h: Renamed from lib/math_.h.
31478         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31479         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31480         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31481         of netinet_in_.h. Add dependency.
31482         * lib/poll.in.h: Renamed from lib/poll_.h.
31483         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31484         * lib/search.in.h: Renamed from lib/search_.h.
31485         * modules/search (Files, Makefile.am): Use search.in.h instead of
31486         search_.h.
31487         * lib/signal.in.h: Renamed from lib/signal_.h.
31488         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31489         _signal.h.
31490         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31491         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31492         stdbool_.h.
31493         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31494         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31495         stdint_.h.
31496         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31497         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31498         stdio_.h.
31499         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31500         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31501         stdlib_.h.
31502         * lib/string.in.h: Renamed from lib/string_.h.
31503         * modules/string (Files, Makefile.am): Use string.in.h instead of
31504         string_.h.
31505         * doc/gnulib-tool.texi (Initial import): Update.
31506         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31507         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31508         of sys_select_.h. Add dependency.
31509         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31510         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31511         of sys_socket_.h.
31512         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31513         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31514         sys_stat_.h.
31515         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31516         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31517         sys_time_.h.
31518         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31519         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31520         sysexits_.h.
31521         * lib/time.in.h: Renamed from lib/time_.h.
31522         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31523         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31524         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31525         unistd_.h.
31526         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31527         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31528         wchar_.h.
31529         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31530         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31531         wctype_.h.
31532         * build-aux/bootstrap (slurp): Update.
31533         * lib/.cppi-disable: Update.
31534
31535 2007-09-30  Bruno Haible  <bruno@clisp.org>
31536
31537         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31538         Needed on BeOS.
31539
31540 2007-09-30  Bruno Haible  <bruno@clisp.org>
31541
31542         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31543
31544 2007-09-29  Bruno Haible  <bruno@clisp.org>
31545
31546         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31547
31548 2007-09-29  Bruno Haible  <bruno@clisp.org>
31549
31550         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31551         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31552         * build-aux/install-reloc: Compile also areadlink.c.
31553         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31554
31555 2007-09-29  Bruno Haible  <bruno@clisp.org>
31556
31557         * gnulib-tool (func_emit_initmacro_done): Indentation.
31558
31559 2007-09-29  Bruno Haible  <bruno@clisp.org>
31560
31561         * README: Add CVS checkout update instructions.
31562         Info from Bob Proulx <bob@proulx.com>.
31563
31564 2007-09-28  Eric Blake  <ebb9@byu.net>
31565
31566         Provide move-if-change.
31567         * build-aux/move-if-change: New file, based on best practice
31568         rather than any canonical upstream location.
31569
31570 2007-09-28  Jim Meyering  <jim@meyering.net>
31571
31572         Fix canonicalize loop-detection corner case.
31573         Do not attempt to stat the symlink values stored via seen_triple.
31574         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31575         on linux-2.6.18, (but not 2.6.22).
31576         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31577         triple_compare.  The former compares dev,ino,filename, while the latter
31578         would actually stat dirname(filename) when dev and ino were equal.
31579         * lib/hash-triple.c: Install <string.h>.
31580         (STREQ): Define.
31581         (triple_compare_ino_str): New function.
31582         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31583
31584 2007-09-28  Eric Blake  <ebb9@byu.net>
31585
31586         Enforce that AC_REPLACE_FUNCS files exist.
31587         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31588         override check for typos.
31589
31590         Fix test-closein on Solaris 10.
31591         * tests/test-closein.c (main): Don't assume stdin can be inherited
31592         closed on all systems.
31593         * tests/test-closein.sh: Likewise.
31594         Reported by Piotr Tarnowski.
31595
31596 2007-09-28  Jim Meyering  <jim@meyering.net>
31597
31598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31599
31600 2007-09-27  Jim Meyering  <jim@meyering.net>
31601
31602         canonicalize: Avoid a false-positive cycle failure.
31603         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31604         Sort.  Remove cycle-check.
31605         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31606         not cycle-check.h.
31607         (seen_triple): New function.
31608         (canonicalize_filename_mode): Use it instead of cycle-check.
31609         * tests/test-canonicalize.c: Add a test for this bug.
31610         * tests/test-canonicalize.sh: Set up and run the test.
31611
31612         New module, file-set, from coreutils.
31613         * modules/file-set: Define it.
31614         * lib/file-set.c, lib/file-set.h: Implement.
31615
31616         New module, hash-triple, from coreutils.
31617         * modules/hash-triple: Define it.
31618         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31619
31620 2007-09-25  Eric Blake  <ebb9@byu.net>
31621
31622         Fix strerror on Interix.
31623         * lib/string_.h (strerror): Declare replacement.
31624         * doc/functions/strerror.texi (strerror): Document the Interix
31625         shortcoming.
31626         * modules/string (Makefile.am): Support new hooks.
31627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31628         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31629         gl_FUNC_STRERROR_SEPARATE.
31630         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31631         * lib/strerror.c (rpl_strerror): Provide replacement.
31632         * modules/strerror (Depends-on): Add string.
31633         (configure.ac): Detect use of module.
31634         * tests/test-strerror.c: New file.
31635         * modules/strerror-tests: New test module.
31636         * modules/argp (Depends-on): Add strerror.
31637         * modules/error (Depends-on): Likewise.
31638         Reported by Martin Koeppe.
31639
31640 2007-09-24  Bruno Haible  <bruno@clisp.org>
31641
31642         * README: Update git instructions.
31643
31644 2007-09-24  Eric Blake  <ebb9@byu.net>
31645
31646         Revert fpending breakage from 2007-09-08.
31647         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31648         __fpending.c.
31649
31650 2007-09-24  Jim Meyering  <jim@meyering.net>
31651
31652         filenamecat.c: Add a test.
31653         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31654         showing how the function works when DIR is the empty string.
31655
31656 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31657
31658         * tests/test-canonicalize.sh: Turn on executable bit.
31659
31660 2007-09-19  Eric Blake  <ebb9@byu.net>
31661
31662         * README: Update CVS instructions.
31663
31664 2007-09-18  Bruno Haible  <bruno@clisp.org>
31665
31666         * modules/areadlink: New file.
31667         * lib/areadlink.h (areadlink): New declaration.
31668         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31669
31670 2007-09-17  Jim Meyering  <jim@meyering.net>
31671
31672         * lib/savewd.c (ESTALE) [!defined]: Define.
31673         Reported to be required on Interix by Martin Koeppe.
31674
31675 2007-09-17  Bruno Haible  <bruno@clisp.org>
31676
31677         * gnulib-tool (func_version): Use $version.
31678
31679 2007-09-16  Bruno Haible  <bruno@clisp.org>
31680
31681         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31682         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31683         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31684         Reported by Greg Schafer <gschafer@zip.com.au>.
31685
31686 2007-09-15  Bruno Haible  <bruno@clisp.org>
31687
31688         * gnulib-tool (sed): Try a little harder to make bash understand the
31689         alias.
31690         Reported by Bruce Korb <bruce.korb@gmail.com>.
31691
31692 2007-09-13  Eric Blake  <ebb9@byu.net>
31693
31694         * ChangeLog: Remove conflict markers.
31695
31696 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31697
31698         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31699         Reported by Bruno Haible <bruno@clisp.org>.
31700
31701 2007-09-12  Bruno Haible  <bruno@clisp.org>
31702
31703         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31704         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31705         is not defined.
31706
31707 2007-09-12  Eric Blake  <ebb9@byu.net>
31708
31709         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31711         Autoconf definition.
31712         * modules/euidaccess (Depends-on): Add extensions, for
31713         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31714         * modules/fnmatch (Depends-on): Likewise.
31715         * modules/getaddrinfo (Depends-on): Likewise.
31716         * modules/getdelim (Depends-on): Likewise.
31717         * modules/getline (Depends-on): Likewise.
31718         * modules/getsubopt (Depends-on): Likewise.
31719         * modules/gettext (Depends-on): Likewise.
31720         * modules/group-member (Depends-on): Likewise.
31721         * modules/mbchar (Depends-on): Likewise.
31722         * modules/memmem (Depends-on): Likewise.
31723         * modules/mempcpy (Depends-on): Likewise.
31724         * modules/memrchr (Depends-on): Likewise.
31725         * modules/pagealign_alloc (Depends-on): Likewise.
31726         * modules/readutmp (Depends-on): Likewise.
31727         * modules/stpcpy (Depends-on): Likewise.
31728         * modules/stpncpy (Depends-on): Likewise.
31729         * modules/strchrnul (Depends-on): Likewise.
31730         * modules/strndup (Depends-on): Likewise.
31731         * modules/strsep (Depends-on): Likewise.
31732         * modules/strverscmp (Depends-on): Likewise.
31733         * modules/vasprintf (Depends-on): Likewise.
31734         * modules/wcwidth (Depends-on): Likewise.
31735         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31736         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31737         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31740         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31743         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31744         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31745         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31746         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31747         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31748         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31749         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31750         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31751         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31752         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31753         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31754         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31755         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31756         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31757         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31758         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31759         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31761         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31762         so that lock.m4 can be used in gettext without extensions module.
31763
31764 2007-09-11  Bruno Haible  <bruno@clisp.org>
31765
31766         * m4/isc-posix.m4: Remove file.
31767         Suggested by Eric Blake.
31768
31769 2007-09-11  Eric Blake  <ebb9@byu.net>
31770
31771         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31772
31773 2007-09-10  Bruno Haible  <bruno@clisp.org>
31774
31775         * posix-modules: Fix typo in error message.
31776         Reported by Matt <mkraai@beckman.com>.
31777
31778 2007-09-09  Bruno Haible  <bruno@clisp.org>
31779
31780         * doc/functions/getdelim.texi: Update list of platforms lacking the
31781         function.
31782         * doc/functions/getline.texi: Likewise.
31783
31784 2007-09-09  Jim Meyering  <jim@meyering.net>
31785
31786         * lib/hash.c (hash_initialize): Detect calloc failure.
31787         Reported by Bruno Haible.
31788
31789 2007-09-09  Bruno Haible  <bruno@clisp.org>
31790
31791         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31792         malloc or realloc fails.
31793
31794 2007-09-09  Bruno Haible  <bruno@clisp.org>
31795
31796         * modules/getcwd (Depends-on): Add malloc-posix.
31797         * modules/glob (Depends-on): Likewise.
31798         * modules/putenv (Depends-on): Likewise.
31799         * modules/strdup (Depends-on): Likewise.
31800         * modules/getdelim (Depends-on): Add realloc-posix.
31801         * modules/read-file (Depends-on): Likewise.
31802
31803 2007-09-09  Bruno Haible  <bruno@clisp.org>
31804
31805         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31806         (gl_FUNC_MALLOC_POSIX): Require it.
31807         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31808         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31809         * modules/realloc (Files): Add m4/malloc.m4.
31810         * modules/calloc (Files): Likewise.
31811
31812 2007-09-09  Bruno Haible  <bruno@clisp.org>
31813
31814         * modules/malloc-posix: New file.
31815         * modules/malloc (Depends-on): Add malloc-posix.
31816         * lib/malloc.c: Include errno.h.
31817         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31818         and a POSIX-compatible malloc into a single function. Set ENOMEM
31819         when returning NULL.
31820         * m4/malloc.m4: New file.
31821         * doc/functions/malloc.texi: Mention the malloc-posix module.
31822         * lib/stdlib_.h (malloc): New declaration.
31823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31824         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31825         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31826         and HAVE_MALLOC_POSIX.
31827
31828 2007-09-09  Bruno Haible  <bruno@clisp.org>
31829
31830         * modules/realloc-posix: New file.
31831         * modules/realloc (Depends-on): Add realloc-posix.
31832         * lib/realloc.c: Include errno.h.
31833         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31834         and a POSIX-compatible realloc into a single function. Set ENOMEM
31835         when returning NULL.
31836         * m4/realloc.m4: New file.
31837         * doc/functions/realloc.texi: Mention the realloc-posix module.
31838         * lib/stdlib_.h (realloc): New declaration.
31839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31840         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31841         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31842         and HAVE_REALLOC_POSIX.
31843
31844 2007-09-09  Bruno Haible  <bruno@clisp.org>
31845
31846         * modules/calloc-posix: New file.
31847         * modules/calloc (Depends-on): Add calloc-posix.
31848         * lib/calloc.c: Include errno.h.
31849         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31850         and a POSIX-compatible calloc into a single function. Set ENOMEM
31851         when returning NULL.
31852         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31853         * doc/functions/calloc.texi: Mention the calloc-posix module.
31854         * lib/stdlib_.h (calloc): New declaration.
31855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31856         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31857         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31858         and HAVE_CALLOC_POSIX.
31859
31860 2007-09-09  Bruno Haible  <bruno@clisp.org>
31861
31862         Allow for modules to show an arbitrary notice.
31863         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31864         * gnulib-tool: New option --extract-notice.
31865         (func_usage): Document it.
31866         (sed_extract_prog): Update.
31867         (func_get_notice): New function.
31868         (func_modules_notice): New function.
31869         (func_import, func_create_testdir): Invoke it.
31870         Suggested by Jim Meyering.
31871
31872 2007-09-09  Bruno Haible  <bruno@clisp.org>
31873
31874         * gnulib-tool: New options --verbose, --quiet.
31875         (func_usage): Document them.
31876         (verbose): New variable.
31877         (func_execute_command): New function.
31878         (func_import): Don't show the module list and the file list if
31879         $verbose < 0.
31880         (func_create_testdir): Likewise. Use func_execute_command.
31881         (func_create_megatestdir): Use func_execute_command.
31882
31883 2007-09-08  Bruno Haible  <bruno@clisp.org>
31884
31885         * gnulib-tool (func_import): Prefer rsync over wget when available,
31886         for fetching the PO files.
31887
31888 2007-09-08  Bruno Haible  <bruno@clisp.org>
31889
31890         * posix-modules: New file. Portions copied from gnulib-tool.
31891         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31892
31893 2007-09-08  Jim Meyering  <jim@meyering.net>
31894
31895         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31896         * lib/fpending.h: Rename from __fpending.h.
31897         * lib/fpending.c: Rename from __fpending.c.
31898         Include "fpending.h", not "__fpending.h".
31899         * lib/__fpending.h, lib/__fpending.c: Remove files.
31900         * modules/fpending (Files): Reflect new file names.
31901         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31902
31903 2007-09-08  Bruno Haible  <bruno@clisp.org>
31904
31905         * m4/inttypes-h.m4: Remove stub file.
31906
31907 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31908
31909         * doc/headers/stdint.texi: Discuss #include_next issue.
31910
31911 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31912
31913         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31914
31915 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31916
31917         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31918         in variable name.
31919
31920 2007-09-03  Jim Meyering  <jim@meyering.net>
31921
31922         New module: git-version-gen.
31923         * modules/git-version-gen: New file.
31924
31925         Import changes from coreutils for bootstrap script.
31926
31927         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31928
31929         bootstrap: uses rsync to download the .po files
31930         * build-aux/bootstrap (po_download_command_format): New global.
31931         (download_po_files): Use rsync.
31932         (update_po_files): Don't remove .po files after download,
31933         so future rsync runs can take advantage of the copies.
31934
31935         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31936
31937         Solve the unnecessary-.po-file-regeneration problem once and for all.
31938         * build-aux/bootstrap (download_po_files): New function, renamed from
31939         get_translations.  Now, downloads, but doesn't update LINGUAS.
31940         (update_po_files): New function.
31941
31942         bootstrap: Ignore more.
31943         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31944         uniwidth to e.g., lib/.gitignore.
31945         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31946
31947         * build-aux/bootstrap: New setting: vc_ignore.
31948         (insert_sorted_if_absent): Create $file if absent.
31949         Adapt to new, possibly empty, list: $vc_ignore.
31950
31951         bootstrap: generate more ignorable names
31952         * build-aux/bootstrap (slurp): When generating ignorable names,
31953         also map .sin to .sed, .gperf to .c, and .y to .c.
31954
31955 2007-09-03  Jim Meyering  <jim@meyering.net>
31956
31957         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31958         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31959
31960 2007-09-02  Bruno Haible  <bruno@clisp.org>
31961
31962         Fix mis-recognition of 'mcs' on QNX 6.
31963         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31964         output contains the string "Mono".
31965         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31966         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31967
31968 2007-09-01  Bruno Haible  <bruno@clisp.org>
31969
31970         Fix collision between uniwidth/* and linebreak modules.
31971         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31972         u32_width): Remove declarations.
31973         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31974         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31975         streq3, streq2, streq1, streq0): Remove functions.
31976         (STREQ): Remove macro.
31977         (is_cjk_encoding): Remove function.
31978         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31979         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31980         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31981         * NEWS: Document the change.
31982
31983 2007-09-01  Bruno Haible  <bruno@clisp.org>
31984
31985         * lib/streq.h: Add double-inclusion guard.
31986
31987 2007-09-01  Karl Berry  <karl@gnu.org>
31988
31989         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31990
31991 2007-08-28  Jim Meyering  <jim@meyering.net>
31992
31993         Rename mreadlink_with_size to areadlink_with_size.
31994         * NEWS: Document the change.
31995         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31996         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31997         * lib/mreadlink.h: Rename this to...
31998         * lib/areadlink.h: ...this.
31999         * modules/mreadlink-with-size: Rename this to...
32000         * modules/areadlink-with-size: ...this.
32001         * lib/canonicalize.c: Reflect the renaming.
32002         * modules/canonicalize: Likewise.
32003
32004 2007-08-26  Bruno Haible  <bruno@clisp.org>
32005
32006         * gnulib-tool (func_import): When deciding which files to remove,
32007         consider also dangling symbolic links.
32008         Reported by Eric Blake.
32009
32010 2007-08-26  Bruno Haible  <bruno@clisp.org>
32011
32012         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32013
32014 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32015
32016         * lib/readline.c: Don't include getline.h, the prototype is now
32017         found in stdio.h.
32018
32019 2007-08-23  Jim Meyering  <jim@meyering.net>
32020
32021         Getdelim touchup.
32022         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32023         around the funlockfile call, since funlockfile never sets errno.
32024         Don't set errno upon failed realloc.
32025
32026 2007-08-22  Eric Blake  <ebb9@byu.net>
32027
32028         Getline touchups.
32029         * lib/getdelim.c (getdelim): Revert regression that required *n to
32030         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32031         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32032         getdelim, rather than whether implementation is missing.
32033         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32034         * lib/stdio_.h (getline): Also declare if replacement is
32035         required.
32036         * doc/functions/getdelim.texi: New file.
32037         * doc/functions/getline.texi: Likewise.
32038         * doc/gnulib.texi (Function Substitutes): Add new files.
32039         Reported by Bruno Haible.
32040
32041 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32042
32043         * users.txt: Add Guile.
32044
32045 2007-08-22  Eric Blake  <ebb9@byu.net>
32046
32047         * tests/test-getdelim.c (main): Use remove, not unlink.
32048         * tests/test-getline.c (main): Likewise.
32049
32050         Move getline and getdelim into stdio.h, per POSIX 200x.
32051         * modules/getline (Files): Remove getline.h.
32052         (Depends-on): Add stdio.
32053         (configure.ac): Add module indicator.
32054         * modules/getdelim (Files): Remove getdelim.h.
32055         (Depends-on): Add stdio.
32056         (configure.ac): Add module indicator.
32057         * modules/stdio (Makefile.am): Work with new indicators.
32058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32059         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32060         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32061         * lib/getdelim.h: Delete.
32062         * lib/getline.h: Delete.
32063         * lib/stdio_.h (getdelim, getline): Declare.
32064         * modules/getdelim-tests: New module.
32065         * modules/getline-tests: Likewise.
32066         * tests/test-getdelim.c: New file.
32067         * tests/test-getline.c: Likewise.
32068         * NEWS: Document the change.
32069         * lib/getline.c: Update choice of header.
32070         * lib/csharpcomp.c: Likewise.
32071         * lib/getpass.c: Likewise.
32072         * lib/javacomp.c: Likewise.
32073         * lib/javaversion.c: Likewise.
32074         * lib/yesno.c: Likewise.
32075         * lib/getdelim.c: Likewise.
32076         (getdelim): Set errno on failure, and avoid memory leak.
32077
32078 2007-08-19  Bruno Haible  <bruno@clisp.org>
32079
32080         * modules/closein (Depends-on): Add freadahead.
32081         * lib/closein.c: Include freadahead.h.
32082         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32083         is zero.
32084
32085 2007-08-19  Bruno Haible  <bruno@clisp.org>
32086
32087         * modules/freadahead-tests: New file.
32088         * tests/test-freadahead.sh: New file.
32089         * tests/test-freadahead.c: New file.
32090
32091         * modules/freadahead: New file.
32092         * lib/freadahead.h: New file.
32093         * lib/freadahead.c: New file.
32094         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32095         fbufmode, fpurge, freadable, fwritable.
32096
32097 2007-08-19  Eric Blake  <ebb9@byu.net>
32098
32099         Test yesno in combination with closein.
32100         * lib/yesno.c (yesno): Document use of stdin.
32101         * modules/yesno-tests (Files): New module.
32102         * tests/test-yesno.c (main): New file.
32103         * tests/test-yesno.sh: Likewise.
32104
32105 2007-08-19  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32108         * lib/fseeko.c (rpl_fseeko): Likewise.
32109         * lib/fseterr.c (fseterr): Likewise.
32110
32111 2007-08-19  Bruno Haible  <bruno@clisp.org>
32112
32113         * tests/test-lseek.c (main): Disable a test for BeOS.
32114         * doc/functions/lseek.texi: Document the BeOS bug.
32115
32116 2007-08-19  Bruno Haible  <bruno@clisp.org>
32117             Eric Blake  <ebb9@byu.net>
32118
32119         * lib/lseek.c: Include <sys/stat.h>.
32120         (rpl_lseek): Add workaround code also for Unix platforms.
32121         Needed for BeOS.
32122         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32123         * doc/functions/lseek.texi: Document BeOS definiency.
32124
32125 2007-08-18  Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/fstrcmp-tests: New file.
32128         * tests/test-fstrcmp.c: New file.
32129
32130 2007-08-18  Bruno Haible  <bruno@clisp.org>
32131
32132         * modules/fstrcmp: New file, from GNU gettext with modifications.
32133         * lib/fstrcmp.h: New file, from GNU gettext.
32134         * lib/fstrcmp.c: New file, from GNU gettext.
32135         * MODULES.html.sh (String handling): Add fstrcmp.
32136
32137 2007-08-18  Bruno Haible  <bruno@clisp.org>
32138
32139         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32140         'bool'.
32141         (diag, compareseq): Remove const from the ctxt argument.
32142         (USE_HEURISTIC): Undefine at the end.
32143
32144 2007-08-18  Jim Meyering  <jim@meyering.net>
32145
32146         New file: lib/idcache.h
32147         * NEWS: Mention the addition.
32148         * modules/idcache (Files): Add lib/idcache.h
32149         * lib/idcache.c: Include "idcache.h".
32150         Don't include <sys/types.h>.
32151         Add a FIXME comment.
32152         Move file-scoped "static" declarations to the top.
32153         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32154
32155 2007-08-17  Bruno Haible  <bruno@clisp.org>
32156         and Paul Eggert  <eggert@cs.ucla.edu>
32157
32158         * MODULES.html.sh: Add diffseq.
32159         * modules/diffseq: New file.
32160         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32161         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32162
32163 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32164
32165         Import changes from coreutils for bootstrap script.
32166
32167         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32168
32169         * build-aux/bootstrap (slurp): Work even in environments where
32170         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32171         current code does not slurp files whose names start with ".", and
32172         this looks like it might be a troublesome area.
32173
32174         2007-07-11  Jim Meyering  <jim@meyering.net>
32175
32176         If there's a GPL vN copyright comment, require that N == 3.
32177
32178         2007-07-08  Jim Meyering  <jim@meyering.net>
32179
32180         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32181         * build-aux/bootstrap (mam_template): Move definition out of loop.
32182
32183         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32184
32185         * build-aux/bootstrap (symlink_to_dir): Rename function from
32186         symlink_to_gnulib.  Add a directory parameter.  Update all
32187         callers.
32188         (cp_mark_as_generated): Also check for -- and link to -- files in
32189         gl/.
32190
32191         2007-07-08  Jim Meyering  <jim@meyering.net>
32192
32193         Adapt to deeper hierarchy in gnulib.
32194         * build-aux/bootstrap (symlink_to_dir): If the destination
32195         directory doesn't exist, create it. This is required at least for
32196         "lib/uniwidth/cjk.h".
32197
32198         2007-05-15  Jim Meyering  <jim@meyering.net>
32199
32200         * build-aux/bootstrap: Now that generated Makefile.am files
32201         are no longer under version control, they must be created at
32202         bootstrap time.
32203
32204 2007-08-14  Ben Pfaff  <blp@gnu.org>
32205
32206         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32207
32208 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32209
32210         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32211         given the changes below.
32212         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32213         even on hosts that have padding bits beyond the supported 64.
32214
32215 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32216
32217         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32218         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32219         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32220         depends on it.
32221         (xstrtol_error): Remove.
32222         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32223         but with a different signature.
32224         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32225         * lib/xstrtol-error.c: Include exitfail.h.
32226         (xstrtol_fatal): New function, with a different signature from the
32227         old xstrtol_error, so that the caller need not worry about passing
32228         in an exit status, or about storage management of the option argument.
32229         (xstrtol_error): Now a static function.  Redo signature to
32230         implement xstrtol_fatal.  Output the correct number of hyphens in
32231         front of the option so that the caller need not worry about
32232         storage management.
32233         (N_): New macro.
32234         (_): Remove; not used now.
32235         * modules/xstrtol: Depend on getopt.
32236         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32237         of old STRTOL_FATAL_ERROR macro.
32238         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32239         of test program.
32240         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32241         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32242
32243 2007-08-08  Eric Blake  <ebb9@byu.net>
32244
32245         * lib/xstrtol-error.c: Add missing include.
32246
32247         Move xstrtol messages into gnulib domain, when --pobase is used.
32248         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32249         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32250         * modules/xstrtol (Files): Distribute new file.
32251         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32252         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32253         * tests/test-xstrtol.c: ...into new file.
32254         * tests/test-xstrtoul.c: Also test xstrtoul.
32255         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32256         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32257         * tests/test-xstrtol.sh: Drive the tests.
32258         * tests/test-xstrtoimax.sh: Likewise.
32259         * tests/test-xstrtoumax.sh: Likewise.
32260         * modules/xstrtol-tests: New module.
32261         * modules/xstrtoimax-tests: Likewise.
32262         * modules/xstrtoumax-tests: Likewise.
32263
32264 2007-08-08  Jim Meyering  <jim@meyering.net>
32265
32266         New function: mfile_name_concat.
32267         * lib/filenamecat.c (mfile_name_concat): New function, just like
32268         file_name_concat, but return NULL upon failure rather than exiting
32269         with a diagnostic.
32270         * lib/filenamecat.h: Declare it.
32271
32272 2007-08-07  Bruno Haible  <bruno@clisp.org>
32273
32274         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32275         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32276         warning from gcc.
32277         Reported by Eric Blake.
32278
32279 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32280
32281         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32282         * modules/crypto/arcfour (License): Likewise.
32283         * modules/crypto/des-tests (License): Likewise.
32284         * modules/crypto/gc-arctwo-tests (License): Likewise.
32285         * modules/crypto/gc-des-tests (License): Likewise.
32286         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32287         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32288         * modules/crypto/gc-md2-tests (License): Likewise.
32289         * modules/crypto/gc-md4-tests (License): Likewise.
32290         * modules/crypto/gc-md5-tests (License): Likewise.
32291         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32292         * modules/crypto/gc-rijndael-tests (License): Likewise.
32293         * modules/crypto/gc-sha1-tests (License): Likewise.
32294         * modules/crypto/gc-tests (License): Likewise.
32295         * modules/crypto/hmac-md5 (License): Likewise.
32296         * modules/crypto/hmac-sha1 (License): Likewise.
32297         * modules/crypto/md2-tests (License): Likewise.
32298         * modules/crypto/md4-tests (License): Likewise.
32299         * modules/crypto/md5 (License): Likewise.
32300         * modules/crypto/rijndael (License): Likewise.
32301         * modules/crypto/sha1 (License): Likewise.
32302         * modules/memxor (License): Likewise.
32303
32304 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32305         and Bruno Haible  <bruno@clisp.org>
32306
32307         * NEWS: Describe interface changes to human, xstrtol.
32308         * lib/human.h: Include <xstrtol.h>.
32309         (human_options): Return enum strtol_error, not int.  Remove
32310         bool arg; take int * instead.
32311         * lib/human.c: Don't include "gettext.h".
32312         (_): Remove; no longer used.
32313         Don't include <xstrtol.h>, since human.h does it.
32314         (human_options): Adjust to abovementioned interface changes.
32315         Do not report error to stderr; that's now the caller's
32316         responsibility.
32317         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32318         interface change.
32319         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32320         Str, Argument_type_string.  All uses changed.  Put " argument"
32321         in diagnostics to make them clearer.  Change wording of suffix
32322         message for clarity.
32323         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32324         Argument_type_string.
32325         (STRTOL_FATAL_WARN): Remove; no longer used.
32326         * modules/human (Depends-on): Remove gettext-h.
32327
32328 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32329
32330         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32331
32332 2007-07-31  Bruno Haible  <bruno@clisp.org>
32333
32334         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32335         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32336         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32337
32338 2007-07-31  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32341         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32342
32343 2007-07-30  Bruno Haible  <bruno@clisp.org>
32344
32345         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32346         * modules/c-ctype (License): Likewise.
32347         * modules/c-strcase (License): Likewise.
32348         * modules/check-version (License): Likewise.
32349         * modules/iconv (License): Likewise.
32350         * modules/iconv_open (License): Likewise.
32351         * modules/read-file (License): Likewise.
32352         * modules/striconv (License): Likewise.
32353         * modules/strverscmp (License): Likewise.
32354         * modules/vasprintf (License): Likewise.
32355         * modules/crypto/des (License): Likewise.
32356         * modules/crypto/gc (License): Likewise.
32357         * modules/crypto/gc-arcfour (License): Likewise.
32358         * modules/crypto/gc-arctwo (License): Likewise.
32359         * modules/crypto/gc-des (License): Likewise.
32360         * modules/crypto/gc-hmac-md5 (License): Likewise.
32361         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32362         * modules/crypto/gc-md2 (License): Likewise.
32363         * modules/crypto/gc-md4 (License): Likewise.
32364         * modules/crypto/gc-md5 (License): Likewise.
32365         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32366         * modules/crypto/gc-random (License): Likewise.
32367         * modules/crypto/gc-rijndael (License): Likewise.
32368         * modules/crypto/gc-sha1 (License): Likewise.
32369         * modules/crypto/md2 (License): Likewise.
32370         * modules/crypto/md4 (License): Likewise.
32371
32372 2007-07-30  Jim Meyering  <jim@meyering.net>
32373
32374         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32375         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32376         it has valid stat data.  This bug would cause du not to count the
32377         sizes of inaccessible directories.
32378         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32379         in <http://bugzilla.redhat.com/250077>.
32380
32381 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32382             Bruno Haible  <bruno@clisp.org>
32383
32384         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32385         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32386         #include_next, gives a diagnostic about it, but reports no error in
32387         the exit code.
32388         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32389
32390 2007-07-24  Ben Pfaff  <blp@gnu.org>
32391
32392         Improve name: "count-one-bits" is better than "popcount".
32393         * MODULES.html.sh: Update name.
32394         * lib/popcount.h: Renamed lib/count-one-bits.h.
32395         (popcount): Renamed count_one_bits.
32396         (popcountl): Renamed count_one_bits_l.
32397         (popcountll): Renamed count_one_bits_ll.
32398         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32399         * modules/popcount: Renamed module/count-one-bits.
32400         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32401         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32402
32403 2007-07-23  Ben Pfaff  <blp@gnu.org>
32404
32405         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32406         better code generation, and add U to large constants to avoid
32407         warnings, in non-GCC case.
32408         Suggested by Bruno Haible.
32409
32410 2007-07-23  Ben Pfaff  <blp@gnu.org>
32411
32412         * lib/popcount.h: Use verify_true instead of if...abort.
32413         * modules/popcount: Depend on verify module.
32414         Suggested by Jim Meyering.
32415
32416 2007-07-23  Bruno Haible  <bruno@clisp.org>
32417
32418         * gnulib-tool (func_import): Create a .cvsignore file also when the
32419         directory is not yet in CVS but the toplevel directory is. When
32420         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32421         Reported by Karl Berry.
32422
32423 2007-07-22  Ben Pfaff  <blp@gnu.org>
32424
32425         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32426         case.
32427         Suggested by Eric Blake.
32428
32429 2007-07-22  Ben Pfaff  <blp@gnu.org>
32430
32431         New module: popcount.
32432         * MODULES.html.sh: Add popcount.
32433         * modules/popcount: New file.
32434         * modules/popcount-tests: New file.
32435         * tests/test-popcount.c: New file.
32436         * lib/popcount.h: New file.
32437         * m4/popcount.m4: New file.
32438
32439 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32440
32441         * build-aux/announce-gen: Update to GPLv3.
32442
32443         * build-aux/config.guess: Update from config.
32444
32445 2007-07-21  Bruno Haible  <bruno@clisp.org>
32446
32447         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32448         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32449
32450 2007-07-20  Jim Meyering  <jim@meyering.net>
32451
32452         * check-module: Diagnose a self-dependency.
32453
32454 2007-07-19  Bruno Haible  <bruno@clisp.org>
32455
32456         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32457         empty.
32458         Reported by Eric Blake.
32459
32460 2007-07-18  Bruno Haible  <bruno@clisp.org>
32461
32462         * gnulib-tool: New options --po-base, --po-domain.
32463         (func_usage): Document them.
32464         (pobase, po_domain): New variables.
32465         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32466         DEFAULT_TEXT_DOMAIN.
32467         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32468         (func_import): Consider pobase and po_domain. Create a po/ directory.
32469         (func_create_testdir): Set pobase and po_domain to empty.
32470         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32471         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32472
32473 2007-07-18  Bruno Haible  <bruno@clisp.org>
32474
32475         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32476         EXTRA_DIST augmentation for files in build-aux/.
32477
32478 2007-07-16  Bruno Haible  <bruno@clisp.org>
32479
32480         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32481         * modules/getdelim (License): Likewise.
32482
32483 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32484
32485         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32486         * modules/d-type (License): Likewise.
32487         * modules/extensions (License): Likewise.
32488         * modules/fnmatch (License): Likewise.
32489         * modules/fseeko (License): Likewise.
32490         * modules/getaddrinfo (License): Likewise.
32491         * modules/getline (License): Likewise.
32492         * modules/getlogin_r (License): Likewise.
32493         * modules/getpass (License): Likewise.
32494         * modules/gettimeofday (License): Likewise.
32495         * modules/glob (License): Likewise.
32496         * modules/inet_ntop (License): Likewise.
32497         * modules/malloc (License): Likewise.
32498         * modules/malloca (License): Likewise.
32499         * modules/memmem (License): Likewise.
32500         * modules/mempcpy (License): Likewise.
32501         * modules/memset (License): Likewise.
32502         * modules/minmax (License): Likewise.
32503         * modules/mktime (License): Likewise.
32504         * modules/netinet_in (License): Likewise.
32505         * modules/pathmax (License): Likewise.
32506         * modules/poll (License): Likewise.
32507         * modules/regex (License): Likewise.
32508         * modules/snprintf (License): Likewise.
32509         * modules/stdbool (License): Likewise.
32510         * modules/stdint (License): Likewise.
32511         * modules/stdio (License): Likewise.
32512         * modules/strcase (License): Likewise.
32513         * modules/strcasestr (License): Likewise.
32514         * modules/strdup (License): Likewise.
32515         * modules/string (License): Likewise.
32516         * modules/strndup (License): Likewise.
32517         * modules/strnlen (License): Likewise.
32518         * modules/strpbrk (License): Likewise.
32519         * modules/strptime (License): Likewise.
32520         * modules/strsep (License): Likewise.
32521         * modules/sys_select (License): Likewise.
32522         * modules/sys_socket (License): Likewise.
32523         * modules/sys_stat (License): Likewise.
32524         * modules/sys_time (License): Likewise.
32525         * modules/time (License): Likewise.
32526         * modules/time_r (License): Likewise.
32527         * modules/timegm (License): Likewise.
32528         * modules/unistd (License): Likewise.
32529         * modules/vsnprintf (License): Likewise.
32530         * modules/wctype (License): Likewise.
32531
32532 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32533
32534         * modules/argz (License): LGPLv2+.
32535
32536 2007-07-15  Karl Berry  <karl@gnu.org>
32537
32538         * doc/gnulib.texi: revise node structure per new fdl.texi.
32539
32540 2007-07-14  Bruno Haible  <bruno@clisp.org>
32541
32542         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32543         the output file.
32544         * lib/uniname/uninames.h: Regenerated.
32545
32546 2007-07-14  Karl Berry  <karl@gnu.org>
32547
32548         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32549         omitting sectioning and index commands.
32550
32551 2007-07-13  Bruno Haible  <bruno@clisp.org>
32552
32553         New gnulib-tool option --more-symlinks.
32554         * gnulib-tool (func_usage): Document --more-symlinks.
32555         (do_copyrights): New variable.
32556         Recognize option --more-symlinks.
32557         (func_import): Don't add a copyright notice transform to
32558         sed_transform_lib_file if do_copyrights is empty.
32559
32560 2007-07-13  Bruno Haible  <bruno@clisp.org>
32561
32562         * lib/vasnprintf.c (decimal_point_char): Define also if
32563         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32564         && !NEED_PRINTF_DIRECTIVE_A.
32565         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32566         Gary V. Vaughan <gary@gnu.org>.
32567
32568 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32569
32570         * lib/inttypes_.h: Undo previous change, since it was fixed
32571         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32572
32573 2007-07-13  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32576         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32577
32578 2007-07-13  Jim Meyering  <jim@meyering.net>
32579
32580         df: Don't fail for Tru64's "file-on-file mount".
32581         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32582         so we fall through and use statfs instead.  Details here:
32583         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32584         Reported by Albert Chin.
32585
32586 2007-07-13  Bruno Haible  <bruno@clisp.org>
32587
32588         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32589         * modules/configmake (License): Likewise.
32590         * modules/gettext (License): Likewise.
32591         * modules/gettext-h (License): Likewise.
32592         * modules/include_next (License): Likewise.
32593         * modules/link-warning (License): Likewise.
32594         * modules/localcharset (License): Likewise.
32595         * modules/localename (License): Likewise.
32596         * modules/lock (License): Likewise.
32597         * modules/relocatable-lib-lgpl (License): Likewise.
32598         * modules/size_max (License): Likewise.
32599         * modules/vasnprintf (License): Likewise.
32600         * modules/wchar (License): Likewise.
32601         * modules/xsize (License): Likewise.
32602
32603 2007-07-13  Bruno Haible  <bruno@clisp.org>
32604
32605         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32606         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32607
32608 2007-07-12  Bruno Haible  <bruno@clisp.org>
32609
32610         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32611         in the modules files.
32612
32613 2007-07-11  Karl Berry  <karl@gnu.org>
32614
32615         * MODULES.html.sh (func_module): use
32616          sed -e '\|^'"${includefile}"'$|d'
32617          instead of /.../d, to avoid errors on $includefile's containing /.
32618
32619 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32620
32621         * gnulib-tool (func_import): Avoid duplication of --avoid
32622         statements
32623         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32624         names to `_' in variable names.
32625
32626 2007-07-10  Eric Blake  <ebb9@byu.net>
32627
32628         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32629         * NEWS: Document this change.
32630
32631 2007-07-08  Bruno Haible  <bruno@clisp.org>
32632
32633         Update to Unicode 5.0.
32634         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32635         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32636         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32637         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32638         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32639         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32640         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32641         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32642         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32643         U+10A3F, U+1D242..U+1D244.
32644         (nonspacing_table_ind): Update.
32645         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32646         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32647
32648 2007-07-08  Bruno Haible  <bruno@clisp.org>
32649
32650         Update to Unicode 5.0.
32651         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32652         code transform. Extend the name index field of unicode_name_to_code and
32653         unicode_code_to_name from 16 to 24 bits.
32654         * lib/uniname/uniname.c (unicode_character_name,
32655         unicode_name_character): Add the range 0x12xxx to the code transform.
32656         * lib/uniname/uninames.h: Regenerated.
32657         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32658
32659 2007-07-07  Bruno Haible  <bruno@clisp.org>
32660
32661         * modules/wcwidth-tests: New file.
32662         * tests/test-wcwidth.c: New file.
32663
32664         Work around MacOS X wcwidth() bug.
32665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32666         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32667         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32668         original wcwidth in non-UTF-8 locales.
32669         * modules/wcwidth (Depends-on): Add localcharset, streq,
32670         uniwidth/width.
32671         * doc/functions/wcwidth.texi: Update.
32672
32673 2007-07-07  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32676         (wcwidth): New declaration.
32677         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32678         macros.
32679         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32680         here. Prepare for creating <wchar.h> unconditionally.
32681         * modules/wchar (Depends-on): Add link-warning.
32682         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32683         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32684         * lib/wcwidth.h: Remove file.
32685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32686         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32687         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32688         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32689         (Include): Replace wcwidth.h with <wchar.h>.
32690         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32691         * lib/mbchar.h: Don't include wcwidth.h.
32692         * lib/mbswidth.c: Likewise.
32693         * NEWS: Mention the change.
32694
32695 2007-07-07  Bruno Haible  <bruno@clisp.org>
32696
32697         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32698         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32699         definition with an external declaration.
32700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32701         defined as a function. Remove AC_C_INLINE requirement.
32702         * modules/wcwidth (Files): Add lib/wcwidth.c.
32703         (Makefile.am): Remove redundant statement.
32704
32705 2007-07-07  Bruno Haible  <bruno@clisp.org>
32706
32707         * MODULES.html.sh (Unicode string functions): Add the new modules.
32708
32709         * tests/uniwidth/test-u32-strwidth.c: New file.
32710         * modules/uniwidth/u32-strwidth-tests: New file.
32711
32712         * lib/uniwidth/u32-strwidth.c: New file.
32713         * modules/uniwidth/u32-strwidth: New file.
32714
32715         * tests/uniwidth/test-u16-strwidth.c: New file.
32716         * modules/uniwidth/u16-strwidth-tests: New file.
32717
32718         * lib/uniwidth/u16-strwidth.c: New file.
32719         * modules/uniwidth/u16-strwidth: New file.
32720
32721         * tests/uniwidth/test-u8-strwidth.c: New file.
32722         * modules/uniwidth/u8-strwidth-tests: New file.
32723
32724         * lib/uniwidth/u8-strwidth.c: New file.
32725         * modules/uniwidth/u8-strwidth: New file.
32726
32727         * tests/uniwidth/test-u32-width.c: New file.
32728         * modules/uniwidth/u32-width-tests: New file.
32729
32730         * lib/uniwidth/u32-width.c: New file.
32731         * modules/uniwidth/u32-width: New file.
32732
32733         * tests/uniwidth/test-u16-width.c: New file.
32734         * modules/uniwidth/u16-width-tests: New file.
32735
32736         * lib/uniwidth/u16-width.c: New file.
32737         * modules/uniwidth/u16-width: New file.
32738
32739         * tests/uniwidth/test-u8-width.c: New file.
32740         * modules/uniwidth/u8-width-tests: New file.
32741
32742         * lib/uniwidth/u8-width.c: New file.
32743         * modules/uniwidth/u8-width: New file.
32744
32745         * tests/uniwidth/test-uc_width.c: New file.
32746         * modules/uniwidth/width-tests: New file.
32747
32748         * lib/uniwidth/width.c: New file, from GNU libiconv.
32749         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32750         * modules/uniwidth/width: New file.
32751
32752         * lib/uniwidth.h: New file, from GNU libiconv.
32753         * modules/uniwidth/base: New file.
32754
32755 2007-07-07  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/uniname.h: New file, from GNU gettext.
32758         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32759         * lib/uniname/uninames.h: New file, from GNU gettext.
32760         * lib/uniname/uniname.c: New file, from GNU gettext.
32761         * tests/uniname/test-uninames.sh: New file.
32762         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32763         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32764         * modules/uniname/base: New file.
32765         * modules/uniname/uniname: New file.
32766         * modules/uniname/uniname-tests: New file.
32767         * MODULES.html.sh (Unicode string functions): Add the new modules.
32768
32769 2007-07-06  Bruno Haible  <bruno@clisp.org>
32770
32771         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32772
32773 2007-07-06  Bruno Haible  <bruno@clisp.org>
32774
32775         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32776         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32777         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32778         include <sys/time.h>.
32779         Reported by Eric Blake.
32780
32781 2007-07-06  Eric Blake  <ebb9@byu.net>
32782
32783         Fix testing canonicalize on cygwin.
32784         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32785         Revert patch from 2007-06-19.
32786         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32787         canonicalize module is also in use.
32788         * tests/test-canonicalize.c: New file.
32789         * tests/test-canonicalize.sh: Likewise.
32790         * modules/canonicalize-tests: Likewise.
32791
32792 2007-07-06  Jim Meyering  <jim@meyering.net>
32793
32794         * lib/getugroups.c (getugroups): Detect getgrent failure.
32795         Adjust comment to reflect reality: this function may return -1.
32796
32797 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32798
32799         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32800         the new TP address.
32801         (usage): Fix typo
32802         (gnulib_mk): New variable.
32803
32804 2007-07-05  Jim Meyering  <jim@meyering.net>
32805
32806         Don't let endgrent clobber errno, no matter how improbable.
32807         * lib/getugroups.c (getugroups): Save and restore errno around
32808         endgrent call.
32809
32810         Close the group DB even when failing with 2^31 or more members.
32811         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32812
32813 2007-07-04  Jim Meyering  <jim@meyering.net>
32814
32815         * lib/getugroups.h: New file.
32816         * lib/getugroups.c: Include "getugroups.h".
32817         Remove uses of "register" keyword.
32818         Move local variable, "cp", down into scope where used.
32819         Give "username" parameter the "const" attribute.
32820         * modules/getugroups (Files): Add lib/getugroups.h
32821
32822 2007-07-04  Karl Berry  <karl@gnu.org>
32823
32824         * MODULES.html.sh (func_all_modules): Complete rename of
32825         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32826
32827 2007-07-02  Bruno Haible  <bruno@clisp.org>
32828
32829         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32830         mode, when inttypes.h comes from gnulib.
32831         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32832
32833 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32834
32835         * NEWS: Mention lgpl module name change.
32836
32837         * modules/lgpl-2.1: Renamed from lgpl.
32838
32839         * NEWS: Mention gpl module name change.
32840
32841         * modules/gpl-3.0: New file, based on gpl-2.0.
32842
32843         * modules/gpl-2.0: Renamed from gpl.
32844
32845         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32846         doc/gpl-2.0.texi.
32847
32848 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32849
32850         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32851         #define __STDC_LIMIT_MACROS temporarily while including
32852         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32853         Problem reported by Joel E. Denny in
32854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32855
32856 2007-07-01  Bruno Haible  <bruno@clisp.org>
32857
32858         * lib/unistdio.h: New file.
32859         * lib/unistdio/u-asnprintf.h: New file.
32860         * lib/unistdio/u-asprintf.h: New file.
32861         * lib/unistdio/u-printf-args.c: New file.
32862         * lib/unistdio/u-printf-args.h: New file.
32863         * lib/unistdio/u-printf-parse.h: New file.
32864         * lib/unistdio/u-snprintf.h: New file.
32865         * lib/unistdio/u-sprintf.h: New file.
32866         * lib/unistdio/u-vasprintf.h: New file.
32867         * lib/unistdio/u-vsnprintf.h: New file.
32868         * lib/unistdio/u-vsprintf.h: New file.
32869         * lib/unistdio/ulc-asnprintf.c: New file.
32870         * lib/unistdio/ulc-asprintf.c: New file.
32871         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32872         * lib/unistdio/ulc-printf-parse.c: New file.
32873         * lib/unistdio/ulc-snprintf.c: New file.
32874         * lib/unistdio/ulc-sprintf.c: New file.
32875         * lib/unistdio/ulc-vasnprintf.c: New file.
32876         * lib/unistdio/ulc-vasprintf.c: New file.
32877         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32878         * lib/unistdio/ulc-vsnprintf.c: New file.
32879         * lib/unistdio/ulc-vsprintf.c: New file.
32880         * lib/unistdio/u8-asnprintf.c: New file.
32881         * lib/unistdio/u8-asprintf.c: New file.
32882         * lib/unistdio/u8-printf-parse.c: New file.
32883         * lib/unistdio/u8-snprintf.c: New file.
32884         * lib/unistdio/u8-sprintf.c: New file.
32885         * lib/unistdio/u8-vasnprintf.c: New file.
32886         * lib/unistdio/u8-vasprintf.c: New file.
32887         * lib/unistdio/u8-vsnprintf.c: New file.
32888         * lib/unistdio/u8-vsprintf.c: New file.
32889         * lib/unistdio/u8-u8-asnprintf.c: New file.
32890         * lib/unistdio/u8-u8-asprintf.c: New file.
32891         * lib/unistdio/u8-u8-snprintf.c: New file.
32892         * lib/unistdio/u8-u8-sprintf.c: New file.
32893         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32894         * lib/unistdio/u8-u8-vasprintf.c: New file.
32895         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32896         * lib/unistdio/u8-u8-vsprintf.c: New file.
32897         * lib/unistdio/u16-asnprintf.c: New file.
32898         * lib/unistdio/u16-asprintf.c: New file.
32899         * lib/unistdio/u16-printf-parse.c: New file.
32900         * lib/unistdio/u16-snprintf.c: New file.
32901         * lib/unistdio/u16-sprintf.c: New file.
32902         * lib/unistdio/u16-vasnprintf.c: New file.
32903         * lib/unistdio/u16-vasprintf.c: New file.
32904         * lib/unistdio/u16-vsnprintf.c: New file.
32905         * lib/unistdio/u16-vsprintf.c: New file.
32906         * lib/unistdio/u16-u16-asnprintf.c: New file.
32907         * lib/unistdio/u16-u16-asprintf.c: New file.
32908         * lib/unistdio/u16-u16-snprintf.c: New file.
32909         * lib/unistdio/u16-u16-sprintf.c: New file.
32910         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32911         * lib/unistdio/u16-u16-vasprintf.c: New file.
32912         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32913         * lib/unistdio/u16-u16-vsprintf.c: New file.
32914         * lib/unistdio/u32-asnprintf.c: New file.
32915         * lib/unistdio/u32-asprintf.c: New file.
32916         * lib/unistdio/u32-printf-parse.c: New file.
32917         * lib/unistdio/u32-snprintf.c: New file.
32918         * lib/unistdio/u32-sprintf.c: New file.
32919         * lib/unistdio/u32-vasnprintf.c: New file.
32920         * lib/unistdio/u32-vasprintf.c: New file.
32921         * lib/unistdio/u32-vsnprintf.c: New file.
32922         * lib/unistdio/u32-vsprintf.c: New file.
32923         * lib/unistdio/u32-u32-asnprintf.c: New file.
32924         * lib/unistdio/u32-u32-asprintf.c: New file.
32925         * lib/unistdio/u32-u32-snprintf.c: New file.
32926         * lib/unistdio/u32-u32-sprintf.c: New file.
32927         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32928         * lib/unistdio/u32-u32-vasprintf.c: New file.
32929         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32930         * lib/unistdio/u32-u32-vsprintf.c: New file.
32931         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32932         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32933         * tests/unistdio/test-ulc-printf1.h: New file.
32934         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32935         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32936         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32937         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32938         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32939         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32940         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32941         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32942         * tests/unistdio/test-u8-asnprintf1.c: New file.
32943         * tests/unistdio/test-u8-asnprintf1.h: New file.
32944         * tests/unistdio/test-u8-printf1.h: New file.
32945         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32946         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32947         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32948         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32949         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32950         * tests/unistdio/test-u8-vasprintf1.c: New file.
32951         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32952         * tests/unistdio/test-u8-vsprintf1.c: New file.
32953         * tests/unistdio/test-u16-asnprintf1.c: New file.
32954         * tests/unistdio/test-u16-asnprintf1.h: New file.
32955         * tests/unistdio/test-u16-printf1.h: New file.
32956         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32957         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32958         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32959         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32960         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32961         * tests/unistdio/test-u16-vasprintf1.c: New file.
32962         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32963         * tests/unistdio/test-u16-vsprintf1.c: New file.
32964         * tests/unistdio/test-u32-asnprintf1.c: New file.
32965         * tests/unistdio/test-u32-asnprintf1.h: New file.
32966         * tests/unistdio/test-u32-printf1.h: New file.
32967         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32968         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32969         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32970         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32971         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32972         * tests/unistdio/test-u32-vasprintf1.c: New file.
32973         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32974         * tests/unistdio/test-u32-vsprintf1.c: New file.
32975         * modules/unistdio/base: New file.
32976         * modules/unistdio/u-printf-args: New file.
32977         * modules/unistdio/ulc-asnprintf: New file.
32978         * modules/unistdio/ulc-asprintf: New file.
32979         * modules/unistdio/ulc-fprintf: New file.
32980         * modules/unistdio/ulc-printf-parse: New file.
32981         * modules/unistdio/ulc-snprintf: New file.
32982         * modules/unistdio/ulc-sprintf: New file.
32983         * modules/unistdio/ulc-vasnprintf: New file.
32984         * modules/unistdio/ulc-vasprintf: New file.
32985         * modules/unistdio/ulc-vfprintf: New file.
32986         * modules/unistdio/ulc-vsnprintf: New file.
32987         * modules/unistdio/ulc-vsprintf: New file.
32988         * modules/unistdio/u8-asnprintf: New file.
32989         * modules/unistdio/u8-asprintf: New file.
32990         * modules/unistdio/u8-printf-parse: New file.
32991         * modules/unistdio/u8-snprintf: New file.
32992         * modules/unistdio/u8-sprintf: New file.
32993         * modules/unistdio/u8-vasnprintf: New file.
32994         * modules/unistdio/u8-vasprintf: New file.
32995         * modules/unistdio/u8-vsnprintf: New file.
32996         * modules/unistdio/u8-vsprintf: New file.
32997         * modules/unistdio/u8-u8-asnprintf: New file.
32998         * modules/unistdio/u8-u8-asprintf: New file.
32999         * modules/unistdio/u8-u8-snprintf: New file.
33000         * modules/unistdio/u8-u8-sprintf: New file.
33001         * modules/unistdio/u8-u8-vasnprintf: New file.
33002         * modules/unistdio/u8-u8-vasprintf: New file.
33003         * modules/unistdio/u8-u8-vsnprintf: New file.
33004         * modules/unistdio/u8-u8-vsprintf: New file.
33005         * modules/unistdio/u16-asnprintf: New file.
33006         * modules/unistdio/u16-asprintf: New file.
33007         * modules/unistdio/u16-printf-parse: New file.
33008         * modules/unistdio/u16-snprintf: New file.
33009         * modules/unistdio/u16-sprintf: New file.
33010         * modules/unistdio/u16-vasnprintf: New file.
33011         * modules/unistdio/u16-vasprintf: New file.
33012         * modules/unistdio/u16-vsnprintf: New file.
33013         * modules/unistdio/u16-vsprintf: New file.
33014         * modules/unistdio/u16-u16-asnprintf: New file.
33015         * modules/unistdio/u16-u16-asprintf: New file.
33016         * modules/unistdio/u16-u16-snprintf: New file.
33017         * modules/unistdio/u16-u16-sprintf: New file.
33018         * modules/unistdio/u16-u16-vasnprintf: New file.
33019         * modules/unistdio/u16-u16-vasprintf: New file.
33020         * modules/unistdio/u16-u16-vsnprintf: New file.
33021         * modules/unistdio/u16-u16-vsprintf: New file.
33022         * modules/unistdio/u32-asnprintf: New file.
33023         * modules/unistdio/u32-asprintf: New file.
33024         * modules/unistdio/u32-printf-parse: New file.
33025         * modules/unistdio/u32-snprintf: New file.
33026         * modules/unistdio/u32-sprintf: New file.
33027         * modules/unistdio/u32-vasnprintf: New file.
33028         * modules/unistdio/u32-vasprintf: New file.
33029         * modules/unistdio/u32-vsnprintf: New file.
33030         * modules/unistdio/u32-vsprintf: New file.
33031         * modules/unistdio/u32-u32-asnprintf: New file.
33032         * modules/unistdio/u32-u32-asprintf: New file.
33033         * modules/unistdio/u32-u32-snprintf: New file.
33034         * modules/unistdio/u32-u32-sprintf: New file.
33035         * modules/unistdio/u32-u32-vasnprintf: New file.
33036         * modules/unistdio/u32-u32-vasprintf: New file.
33037         * modules/unistdio/u32-u32-vsnprintf: New file.
33038         * modules/unistdio/u32-u32-vsprintf: New file.
33039         * modules/unistdio/ulc-asnprintf-tests: New file.
33040         * modules/unistdio/ulc-vasnprintf-tests: New file.
33041         * modules/unistdio/ulc-vasprintf-tests: New file.
33042         * modules/unistdio/ulc-vsnprintf-tests: New file.
33043         * modules/unistdio/ulc-vsprintf-tests: New file.
33044         * modules/unistdio/u8-asnprintf-tests: New file.
33045         * modules/unistdio/u8-vasnprintf-tests: New file.
33046         * modules/unistdio/u8-vasprintf-tests: New file.
33047         * modules/unistdio/u8-vsnprintf-tests: New file.
33048         * modules/unistdio/u8-vsprintf-tests: New file.
33049         * modules/unistdio/u16-asnprintf-tests: New file.
33050         * modules/unistdio/u16-vasnprintf-tests: New file.
33051         * modules/unistdio/u16-vasprintf-tests: New file.
33052         * modules/unistdio/u16-vsnprintf-tests: New file.
33053         * modules/unistdio/u16-vsprintf-tests: New file.
33054         * modules/unistdio/u32-asnprintf-tests: New file.
33055         * modules/unistdio/u32-vasnprintf-tests: New file.
33056         * modules/unistdio/u32-vasprintf-tests: New file.
33057         * modules/unistdio/u32-vsnprintf-tests: New file.
33058         * modules/unistdio/u32-vsprintf-tests: New file.
33059         * MODULES.html.sh (Unicode string functions): Add the new modules.
33060
33061 2007-07-01  Bruno Haible  <bruno@clisp.org>
33062
33063         * lib/sprintf.c (sprintf): Limit the available length estimation,
33064         to avoid address wraparound.
33065         * lib/vsprintf.c (vsprintf): Likewise.
33066         * modules/sprintf-posix (Dependencies): Add stdint.
33067         * modules/vsprintf-posix (Dependencies): Likewise.
33068
33069 2007-07-01  Bruno Haible  <bruno@clisp.org>
33070
33071         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33072         Windows PATH as well. Conservative double-quoting. Comments.
33073
33074 2007-07-01  Bruno Haible  <bruno@clisp.org>
33075             Eric Blake  <ebb9@byu.net>
33076             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33077
33078         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33079         empty components in $PATH, denoting '.'.
33080
33081 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33082
33083         * gnulib-tool: Fix indentation.
33084         (func_create_megatestdir): Likewise.
33085         Report by Bruno Haible.
33086
33087 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33088
33089         Sync from Automake.
33090         * build-aux/gnupload: Fix shell portability issues with for loops.
33091         Report by Karl Berry.
33092
33093 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33094
33095         * build-aux/maint.mk (POURL): Use translationproject.org.
33096
33097 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33098             Bruno Haible  <bruno@clisp.org>
33099
33100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33101         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33102         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33103         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33104         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33105
33106 2007-06-27  Bruno Haible  <bruno@clisp.org>
33107
33108         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33109         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33110
33111 2007-06-26  Karl Berry  <karl@gnu.org>
33112
33113         * MODULES.html.sh: remove xreadlink-with-size.
33114
33115 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33116
33117         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33118         method that I hope also handles the double-include problem noted
33119         by Bruno Haible in
33120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33121
33122 2007-06-23  Bruno Haible  <bruno@clisp.org>
33123
33124         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33125         Don't let the 'mostlyclean' target fail if the last subdirectory could
33126         not be removed.
33127         Reported by Karl Berry.
33128
33129 2007-06-23  Bruno Haible  <bruno@clisp.org>
33130
33131         * gnulib-tool (echo): Add a speedier workaround for ksh.
33132         * tests/test-echo.sh: Likewise.
33133
33134 2007-06-23  Bruno Haible  <bruno@clisp.org>
33135
33136         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33137         * tests/test-echo.sh: Likewise.
33138
33139 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33140
33141         * gnulib-tool (IFS): Initialize early, so we don't set it to
33142         empty later.
33143         (self_abspathname): Rewrite algorithm to set it, reindent.
33144         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33145         (func_create_megatestdir): Merge some sed scripts.
33146
33147 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33148
33149         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33150         exposed by Sun Studio 11 cc on Solaris 8.
33151
33152 2007-06-22  Bruno Haible  <bruno@clisp.org>
33153
33154         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33155         backslashes.
33156         * tests/test-echo.sh: New file.
33157
33158 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33159
33160         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33161         simplify `sed_replace_build_aux' scripts, they are portable but
33162         echoing them with `echo' is not.
33163         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33164
33165 2007-06-21  Karl Berry  <karl@gnu.org>
33166
33167         * config/srclist.txt: guess we can't handle the licenses via
33168         srclist at the moment.
33169
33170 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33171
33172         * MODULES.html.sh: Add include_next.
33173         * modules/include_next: New file.
33174
33175 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33176
33177         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33178         INCLUDE_NEXT.
33179         (gl_CHECK_NEXT_HEADERS): New macro.
33180         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33181         the obsolescent gl_ABSOLUTE_HEADER.
33182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33183         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33184         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33185         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33186         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33187         * m4/math_h.m4 (gl_MATH_H): Likewise.
33188         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33190         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33191         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33192         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33193         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33194         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33198         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33199         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33200         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33201         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33202         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33203         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33204         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33205         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33206         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33207         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33208         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33209         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33210         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33211         * lib/float_.h: Likewise.
33212         * lib/inttypes_.h: Likewise.
33213         * lib/math_.h: Likewise.
33214         * lib/search_.h: Likewise.
33215         * lib/signal_.h: Likewise.
33216         * lib/stdint_.h: Likewise.
33217         * lib/stdio_.h: Likewise.
33218         * lib/stdlib_.h: Likewise.
33219         * lib/string_.h: Likewise.
33220         * lib/sys_stat_.h: Likewise.
33221         * lib/sys_time_.h: Likewise.
33222         * lib/time_.h: Likewise.
33223         * lib/unistd_.h: Likewise.
33224         * lib/wchar_.h: Likewise.
33225         * lib/wctype_.h: Likewise.
33226         * lib/dirent_.h: Likewise.
33227         * lib/iconv_.h: Likewise.
33228         * lib/locale_.h: Likewise.
33229         * lib/netinet_in_.h: Likewise.
33230         * lib/sys_select_.h: Likewise.
33231         * lib/sys_socket_.h: Likewise.
33232         * lib/sysexits_.h: Likewise.
33233         * modules/fcntl (Depends-on): Depend on include_next, not
33234         absolute_header.
33235         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33236         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33237         * modules/fchdir: Likewise.
33238         * modules/float: Likewise.
33239         * modules/iconv_open: Likewise.
33240         * modules/inttypes: Likewise.
33241         * modules/locale: Likewise.
33242         * modules/math: Likewise.
33243         * modules/netinet_in: Likewise.
33244         * modules/search: Likewise.
33245         * modules/signal: Likewise.
33246         * modules/stdint: Likewise.
33247         * modules/stdio: Likewise.
33248         * modules/stdlib: Likewise.
33249         * modules/string: Likewise.
33250         * modules/sys_select: Likewise.
33251         * modules/sys_socket: Likewise.
33252         * modules/sys_stat: Likewise.
33253         * modules/sys_time: Likewise.
33254         * modules/sysexits: Likewise.
33255         * modules/time: Likewise.
33256         * modules/unistd: Likewise.
33257         * modules/wchar: Likewise.
33258         * modules/wctype: Likewise.
33259         * modules/sys_stat: Change maintainer to "all".
33260         * modules/unistd: Likewise.
33261
33262 2007-06-20  Karl Berry  <karl@gnu.org>
33263
33264         * config/srclist.txt: track www changes in license files.
33265
33266 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33267
33268         * build-aux/bootstrap: Remove stray dot.
33269         Make sure build_aux settings are honored when linking
33270         gnulib_extra_files.
33271
33272 2007-06-19  Eric Blake  <ebb9@byu.net>
33273
33274         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33275         Allow compilation on cygwin.
33276
33277 2007-06-19  Jim Meyering  <jim@meyering.net>
33278
33279         xreadlink-with-size: Remove module.  No longer used.
33280         Ex-callers now use xreadlink or mreadlink-with-size.
33281         * modules/xreadlink-with-size: Remove module.
33282         * lib/xreadlink-with-size.c: Remove file.
33283         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33284         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33285         just before the function definition *is* accurate.
33286
33287         Eliminate one way canonicalize_filename_mode could exit.
33288         * lib/canonicalize.c (canonicalize_filename_mode):
33289         Use mreadlink_with_size, not xreadlink_with_size.
33290
33291 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33292
33293         Detect porting problems to FreeBSD/arm, which has time_t wider than
33294         long int.  Original problem reported for GNU diff by Xin Li in
33295         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33296         * modules/getdate (Depends-on): Add intprops, verify.
33297         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33298         is an integer type no wider than long int.
33299
33300 2007-06-18  Jim Meyering  <jim@meyering.net>
33301
33302         New module: mreadlink-with-size.
33303         * MODULES.html.sh: Add mreadlink-with-size.
33304         * modules/mreadlink-with-size: New module
33305         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33306         not xreadlink-with-size.
33307         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33308
33309 2007-06-16  Bruno Haible  <bruno@clisp.org>
33310
33311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33312         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33313         Reported by Gary V. Vaughan <gary@gnu.org>.
33314
33315 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33316
33317         Revamp lchown so that it lives in unistd.h where it belongs.
33318         * lib/lchown.h: Remove.
33319         * lib/dirchownmod.c: Don't include lib/lchown.h.
33320         * lib/fchownat.c: Likewise.
33321         * lib/openat.c: Likewise.
33322         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33323         does not follow symlinks.
33324         (EOPNOTSUPP): Define if not defined.
33325         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33326         is defined to 0.
33327         (lchown): New decl.
33328         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33329         Do not check for lchown decl.
33330         Set REPLACE_LCHOWN.
33331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33332         REPLACE_LCHOWN.
33333         * modules/chown: Make it clear it follows symlinks.
33334         * modules/lchown: Make it clear it doesn't follow symlinks.
33335         (Files): Remove lib/lchown.h
33336         (Depends-on): Add unistd.
33337         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33338         (Include): Include <unistd.h>, not "lchown.h".
33339         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33340         REPLACE_LCHOWN.
33341
33342 2007-06-15  Jim Meyering  <jim@meyering.net>
33343
33344         Change license (GPL to LGPL) of fsusage and dependents.
33345         * modules/fsusage (License): Change to LGPL.
33346         * modules/full-read (License): Likewise.
33347         * modules/full-write (License): Likewise.
33348         * modules/safe-read (License): Likewise.
33349         * modules/safe-write (License): Likewise.
33350
33351 2007-06-14  Ben Pfaff  <blp@gnu.org>
33352
33353         Missing part of allocsa -> malloca transition.
33354         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33355         gl_MALLOCA.
33356
33357 2007-06-12  Bruno Haible  <bruno@clisp.org>
33358
33359         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33360         to ia64, x86_64, i386.
33361         Reported by Eric Blake.
33362
33363 2007-06-12  Bruno Haible  <bruno@clisp.org>
33364
33365         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33366         cross-compiling to x86_64.
33367
33368 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33369
33370         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33371         glitch reported by Ralf Wildenhues in
33372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33373
33374         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33375         Vin Shelton.
33376
33377 2007-06-11  Bruno Haible  <bruno@clisp.org>
33378
33379         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33380         replacement string.
33381         Reported by Eric Blake.
33382
33383 2007-06-10  Bruno Haible  <bruno@clisp.org>
33384
33385         Prepare vasnprintf code for use with Unicode strings.
33386         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33387         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33388         TYPE_U32_STRING.
33389         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33390         a_u32_string variants.
33391         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33392         * lib/printf-args.c: Don't include config.h and the specification
33393         header if PRINTF_FETCHARGS is already defined.
33394         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33395         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33396         TYPE_U16_STRING, TYPE_U32_STRING.
33397         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33398         u16_directive, u16_directives, u32_directive, u32_directives): New
33399         types.
33400         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33401         New declarations.
33402         * lib/printf-parse.c: Don't include config.h and the specification
33403         header if PRINTF_PARSE is already defined. Eliminate the set of
33404         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33405         them now. Include c-ctype.h.
33406         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33407         directive and CHAR_T_ONLY_ASCII.
33408         * lib/vasnprintf.c: Don't include config.h and the specification header
33409         if VASNPRINTF is already defined.
33410         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33411         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33412         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33413         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33414         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33415         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33416         code accordingly.
33417         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33418         pad_ourselves also in this case, with the 'c' and 's' directives, and
33419         with a different notion of "width".
33420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33421
33422 2007-06-10  Bruno Haible  <bruno@clisp.org>
33423
33424         * modules/unistr/u32-mbsnlen: New file.
33425         * lib/unistr/u32-mbsnlen.c: New file.
33426
33427         * modules/unistr/u16-mbsnlen: New file.
33428         * lib/unistr/u16-mbsnlen.c: New file.
33429
33430         * modules/unistr/u8-mbsnlen: New file.
33431         * lib/unistr/u8-mbsnlen.c: New file.
33432
33433         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33434         declarations.
33435
33436 2007-06-10  Bruno Haible  <bruno@clisp.org>
33437
33438         * lib/string_.h (mbsnlen): New declaration.
33439         * lib/mbsnlen.c: New file.
33440         * m4/mbsnlen.m4: New file.
33441         * modules/mbsnlen: New file.
33442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33443         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33444         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33445
33446 2007-06-10  Bruno Haible  <bruno@clisp.org>
33447
33448         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33449
33450 2007-06-10  Bruno Haible  <bruno@clisp.org>
33451
33452         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33453         * lib/mbuiter.h: Likewise.
33454
33455 2007-06-10  Bruno Haible  <bruno@clisp.org>
33456
33457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33458         declaration.
33459
33460 2007-06-10  Karl Berry  <karl@gnu.org>
33461
33462         * config/srclist.txt: remove gettext entries, Bruno prefers
33463         to update individually.
33464
33465 2007-06-10  Bruno Haible  <bruno@clisp.org>
33466
33467         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33468         'maxlen'. Ensure only length + width bytes are allocated, not
33469         length + 1 + width.
33470
33471 2007-06-09  Bruno Haible  <bruno@clisp.org>
33472
33473         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33474         (CHAR_T): Remove macro.
33475         (VASNPRINTF): Update.
33476
33477 2007-06-09  Bruno Haible  <bruno@clisp.org>
33478
33479         * MODULES.html.sh (Unicode string functions): Add the new modules.
33480
33481         * modules/uniconv/u32-conv-to-enc: New file.
33482         * lib/uniconv/u32-conv-to-enc.c: New file.
33483         * modules/uniconv/u32-conv-to-enc-tests: New file.
33484         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33485
33486         * modules/uniconv/u16-conv-to-enc: New file.
33487         * lib/uniconv/u16-conv-to-enc.c: New file.
33488         * lib/uniconv/u-conv-to-enc.h: New file.
33489         * modules/uniconv/u16-conv-to-enc-tests: New file.
33490         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33491
33492         * modules/uniconv/u8-conv-to-enc: New file.
33493         * lib/uniconv/u8-conv-to-enc.c: New file.
33494         * modules/uniconv/u8-conv-to-enc-tests: New file.
33495         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33496
33497         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33498         u32_conv_to_encoding): New declarations.
33499
33500 2007-06-09  Bruno Haible  <bruno@clisp.org>
33501
33502         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33503
33504 2007-06-09  Bruno Haible  <bruno@clisp.org>
33505
33506         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33507         * modules/malloca: Renamed from modules/allocsa, updated.
33508         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33509         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33510         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33511         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33512         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33513         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33514         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33515         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33516         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33517         * modules/c-strcasestr (Depends-on): Update.
33518         * lib/c-strcasestr.c: Update.
33519         * modules/c-strstr (Depends-on): Update.
33520         * lib/c-strstr.c: Update.
33521         * modules/canonicalize-lgpl (Depends-on): Update.
33522         * lib/canonicalize-lgpl.c: Update.
33523         * modules/clean-temp (Depends-on): Update.
33524         * lib/clean-temp.c: Update.
33525         * modules/csharpcomp (Depends-on): Update.
33526         * lib/csharpcomp.c: Update.
33527         * modules/csharpexec (Depends-on): Update.
33528         * lib/csharpexec.c: Update.
33529         * modules/javacomp (Depends-on): Update.
33530         * lib/javacomp.c: Update.
33531         * modules/javaexec (Depends-on): Update.
33532         * lib/javaexec.c: Update.
33533         * modules/mbscasestr (Depends-on): Update.
33534         * lib/mbscasestr.c: Update.
33535         * modules/mbsstr (Depends-on): Update.
33536         * lib/mbsstr.c: Update.
33537         * modules/setenv (Depends-on): Update.
33538         * lib/setenv.c: Update.
33539         * modules/strcasestr (Depends-on): Update.
33540         * lib/strcasestr.c: Update.
33541         * modules/striconveha (Depends-on): Update.
33542         * lib/striconveha.c: Update.
33543         * modules/relocatable-prog-wrapper (Files): Update.
33544         * lib/relocwrapper.c: Update.
33545         * build-aux/install-reloc: Update.
33546         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33547
33548 2007-06-08  Bruno Haible  <bruno@clisp.org>
33549
33550         Port to uClibc.
33551         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33552         * lib/fpurge.c (fpurge): Likewise.
33553         * lib/freading.c (freading): Likewise.
33554         * lib/fseeko.c (rpl_fseeko): Likewise.
33555         * lib/fseterr.c (fseterr): Likewise.
33556         * lib/fwriting.c (fwriting): Likewise.
33557         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33558
33559 2007-06-08  Bruno Haible  <bruno@clisp.org>
33560
33561         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33562         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33563         * modules/gettext (Files): Add m4/intlmacosx.m4.
33564
33565 2007-06-07  Bruno Haible  <bruno@clisp.org>
33566
33567         * modules/localename-tests: New file.
33568         * tests/test-localename.c: New file.
33569
33570         New module 'localename'.
33571         * lib/localename.h: New file.
33572         * lib/localename.c: New file, from GNU gettext.
33573         * m4/localename.m4: New file.
33574         * modules/localename: New file.
33575
33576 2007-06-07  Bruno Haible  <bruno@clisp.org>
33577
33578         Work around the lack of <wchar.h> on some builds of uClibc.
33579         * doc/headers/wchar.texi: Update.
33580         * lib/wchar_.h: Include <wchar.h> only if it exists.
33581         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33582         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33583         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33584         doesn't exist.
33585         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33586         * modules/mbfile (Depends-on): Add wchar.
33587         * modules/mbiter (Depends-on): Likewise.
33588         * modules/mbuiter (Depends-on): Likewise.
33589         Reported by Simon Josefsson.
33590
33591 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33592
33593         Work around problem reported by Steven M. Schweda in
33594         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33595         Tru64 5.1B with the Compaq compiler environment installed declares
33596         an 'isblank' function but does not define it in the C library.
33597         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33598         * lib/regex_internal.h (isblank): Likewise.
33599         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33600         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33601
33602 2007-06-05  Bruno Haible  <bruno@clisp.org>
33603
33604         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33605         ia64.
33606         * modules/printf-safe: New file.
33607         * modules/fprintf-posix (Depends-on): Add printf-safe.
33608         * modules/printf-posix (Depends-on): Likewise.
33609         * modules/snprintf-posix (Depends-on): Likewise.
33610         * modules/sprintf-posix (Depends-on): Likewise.
33611         * modules/vasnprintf-posix (Depends-on): Likewise.
33612         * modules/vasprintf-posix (Depends-on): Likewise.
33613         * modules/vfprintf-posix (Depends-on): Likewise.
33614         * modules/vprintf-posix (Depends-on): Likewise.
33615         * modules/vsnprintf-posix (Depends-on): Likewise.
33616         * modules/vsprintf-posix (Depends-on): Likewise.
33617         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33618         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33619         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33620         "no" on i386, x86_64, ia64.
33621         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33622         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33623         on i386, x86_64, ia64.
33624         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33625         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33626         on i386, x86_64, ia64.
33627         * tests/test-vasnprintf-posix.c: Include float.h.
33628         (LDBL80_WORDS): New macro.
33629         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33630         on i386, x86_64, ia64.
33631         * tests/test-vasprintf-posix.c: Include float.h.
33632         (LDBL80_WORDS): New macro.
33633         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33634         on i386, x86_64, ia64.
33635         * tests/test-snprintf-posix.c: Include float.h.
33636         * tests/test-sprintf-posix.c: Likewise.
33637         * tests/test-vsnprintf-posix.c: Likewise.
33638         * tests/test-vsprintf-posix.c: Likewise.
33639
33640 2007-06-05  Bruno Haible  <bruno@clisp.org>
33641
33642         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33643         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33644         non-IEEE numbers on i386, x86_64, ia64.
33645         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33646         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33647         * tests/test-isnanl.h: Include float.h.
33648         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33649
33650 2007-06-05  Bruno Haible  <bruno@clisp.org>
33651
33652         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33653         also the %a / %A. Handle the %a / %A code before this extra handling.
33654
33655 2007-06-05  Bruno Haible  <bruno@clisp.org>
33656
33657         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33658         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33659
33660 2007-06-05  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33663         typo in variable name.
33664
33665 2007-06-05  Eric Blake  <ebb9@byu.net>
33666
33667         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33668         Reported by Simon Josefsson.
33669
33670 2007-06-04  Bruno Haible  <bruno@clisp.org>
33671
33672         Avoid test failures on some PowerPC platforms.
33673         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33674         Define differently for PowerPC.
33675         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33676         Reported by Gary V. Vaughan <gary@gnu.org>.
33677
33678 2007-06-02  Bruno Haible  <bruno@clisp.org>
33679
33680         Fix test-stdint failure on FreeBSD/ia64.
33681         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33682         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33683         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33684         * doc/headers/stdint.texi: Update.
33685
33686 2007-06-01  Bruno Haible  <bruno@clisp.org>
33687
33688         * tests/test-binary-io.c (main): Pass a third argument to open().
33689         Reported by Gary V. Vaughan <gary@gnu.org>.
33690
33691 2007-06-01  Bruno Haible  <bruno@clisp.org>
33692
33693         * doc/functions/frexpl.texi: Update for mingw.
33694
33695 2007-06-01  Bruno Haible  <bruno@clisp.org>
33696
33697         * tests/test-lseek.c (main): Disable test of errno for invalid third
33698         argument.
33699         * doc/functions/lseek.texi: Update.
33700         Reported by Gary V. Vaughan <gary@gnu.org>.
33701
33702 2007-05-28  Bruno Haible  <bruno@clisp.org>
33703
33704         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33705
33706 2007-05-31  Eric Blake  <ebb9@byu.net>
33707
33708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33709         cross compiling.
33710
33711 2007-05-30  Eric Blake  <ebb9@byu.net>
33712         and Bruno Haible  <bruno@clisp.org>
33713
33714         Work around mingw test failures exposed by m4-1.4.9b.
33715         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33716         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33717         moment.
33718
33719 2007-05-30  Bruno Haible  <bruno@clisp.org>
33720
33721         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33722         assuming that they are closed. Needed on HP-UX 11.
33723
33724 2007-05-29  Bruno Haible  <bruno@clisp.org>
33725
33726         Fix a problem with #include_next.
33727         * lib/dirent_.h: Split the double-inclusion guard.
33728         * lib/fcntl_.h: Likewise.
33729         * lib/float_.h: Likewise.
33730         * lib/iconv_.h: Likewise.
33731         * lib/inttypes_.h: Likewise.
33732         * lib/locale_.h: Likewise.
33733         * lib/math_.h: Likewise.
33734         * lib/netinet_in_.h: Likewise.
33735         * lib/search_.h: Likewise.
33736         * lib/signal_.h: Likewise.
33737         * lib/stdint_.h: Likewise.
33738         * lib/stdio_.h: Likewise.
33739         * lib/stdlib_.h: Likewise.
33740         * lib/string_.h: Likewise.
33741         * lib/sys_select_.h: Likewise.
33742         * lib/sys_socket_.h: Likewise.
33743         * lib/sys_stat_.h: Likewise.
33744         * lib/sys_time_.h: Likewise.
33745         * lib/sysexits_.h: Likewise.
33746         * lib/time_.h: Likewise.
33747         * lib/unistd_.h: Likewise.
33748         * lib/wchar_.h: Likewise.
33749         * lib/wctype_.h: Likewise.
33750
33751 2007-05-29  Bruno Haible  <bruno@clisp.org>
33752
33753         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33754         for the moment.
33755
33756 2007-05-29  Bruno Haible  <bruno@clisp.org>
33757
33758         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33759         invocation.
33760         Reported by Eric Blake.
33761
33762 2007-05-29  Bruno Haible  <bruno@clisp.org>
33763
33764         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33765         compiling case.
33766
33767 2007-05-29  Eric Blake  <ebb9@byu.net>
33768             Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33771         cross compiles.
33772
33773 2007-05-28  Eric Blake  <ebb9@byu.net>
33774
33775         * modules/closein-tests (test_closein_LDADD): Support test on
33776         cygwin with libtool.
33777
33778 2007-05-28  Bruno Haible  <bruno@clisp.org>
33779
33780         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33781         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33782         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33783         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33784         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33785         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33786         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33787         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33788         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33789
33790 2007-05-28  Eric Blake  <ebb9@byu.net>
33791
33792         Unconditionally include <config.h> in unit tests.
33793         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33794         * tests/test-allocsa.c, tests/test-arcfour.c,
33795         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33796         tests/test-array_list.c, tests/test-array_oset.c,
33797         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33798         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33799         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33800         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33801         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33802         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33803         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33804         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33805         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33806         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33807         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33808         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33809         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33810         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33811         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33812         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33813         test-md5.c, test-memmem.c, test-printf-posix.c,
33814         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33815         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33816         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33817         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33818         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33819         test-vasnprintf-posix2.c, test-vasnprintf.c,
33820         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33821         test-vfprintf-posix.c, test-vprintf-posix.c,
33822         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33823         test-xvasprintf.c: Likewise.
33824
33825 2007-05-28  Bruno Haible  <bruno@clisp.org>
33826
33827         * gnulib-tool (func_import): Remember the --with-tests command-line
33828         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33829         Reported by Eric Blake.
33830
33831 2007-05-28  Bruno Haible  <bruno@clisp.org>
33832
33833         * modules/ftell-tests: New file.
33834         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33835         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33836
33837         * lib/ftell.c: New file.
33838         * modules/ftell: New file.
33839         * m4/ftell.m4: New file.
33840         * doc/functions/ftell.texi: Update.
33841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33842         REPLACE_FTELL.
33843         * lib/stdio_.h (rpl_ftell): New declaration.
33844         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33845         REPLACE_FTELL.
33846
33847 2007-05-28  Eric Blake  <ebb9@byu.net>
33848
33849         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33850
33851 2007-05-28  Bruno Haible  <bruno@clisp.org>
33852
33853         * modules/fseek-tests: New file.
33854         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33855         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33856
33857         * lib/fseek.c: New file.
33858         * modules/fseek: New file.
33859         * m4/fseek.m4: New file.
33860         * doc/functions/fseek.texi: Update.
33861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33862         REPLACE_FSEEK.
33863         * lib/stdio_.h (rpl_fseek): New declaration.
33864         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33865         REPLACE_FSEEK.
33866
33867 2007-05-28  Bruno Haible  <bruno@clisp.org>
33868
33869         * lib/stdio_.h (fflush): More comments.
33870
33871 2007-05-28  Bruno Haible  <bruno@clisp.org>
33872
33873         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33874         runtime test.
33875
33876 2007-05-28  Eric Blake  <ebb9@byu.net>
33877
33878         Improve lseek module.
33879         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33880         * lib/unistd_.h (lseek): Scale back link warning message.
33881         * tests/test-lseek.c: Beef up test.
33882         * tests/test-lseek.sh: Exercise more facets of lseek.
33883         Reported by Bruno Haible.
33884
33885 2007-05-28  Bruno Haible  <bruno@clisp.org>
33886
33887         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33888         to define.
33889
33890 2007-05-27  Bruno Haible  <bruno@clisp.org>
33891
33892         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33893
33894 2007-05-27  Bruno Haible  <bruno@clisp.org>
33895
33896         * modules/openmp: New file.
33897         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33898         Noah Misch.
33899
33900 2007-05-26  Bruno Haible  <bruno@clisp.org>
33901
33902         * modules/chdir-long (Depends-on): Add fchdir.
33903         * modules/chdir-safer (Depends-on): Likewise.
33904         * modules/fts (Depends-on): Likewise.
33905         * modules/fts-lgpl (Depends-on): Likewise.
33906         * modules/openat (Depends-on): Likewise.
33907         * modules/savewd (Depends-on): Likewise.
33908
33909 2007-05-24  Eric Blake  <ebb9@byu.net>
33910
33911         Fix lseek on mingw.
33912         * modules/lseek: New module.
33913         * m4/lseek.m4: New file.
33914         * lib/lseek.c: New file.
33915         * modules/lseek-tests: New file.
33916         * tests/test-lseek.c: New file.
33917         * tests/test-lseek.sh: New file.
33918         * MODULES.html.sh: Document lseek module.
33919         * modules/fflush (Depends-on): Add lseek, fseeko.
33920         * modules/fseeko (Depends-on): Likewise.
33921         * modules/ftello (Depends-on): Likewise.
33922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33923         broken.
33924         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33925         broken.
33926         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33927         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33928         * lib/ftello.c (rpl_ftello): Likewise.
33929         * tests/test-fseeko.c (main): Test this.
33930         * tests/test-fseeko.sh: Likewise.
33931         * tests/test-ftello.c (main): Likewise.
33932         * tests/test-ftello.sh: Likewise.
33933         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33934         implies replacing fseek.
33935         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33936         HAVE_FTELLO.
33937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33938         * modules/unistd (Makefile.am): Likewise.
33939         * lib/unistd_.h (lseek): Declare a replacement.
33940         * doc/functions/lseek.texi (lseek): Document this fix.
33941         * doc/functions/fseek.texi (fseek): Likewise.
33942         * doc/functions/ftell.texi (ftell): Likewise.
33943
33944 2007-05-24  Bruno Haible  <bruno@clisp.org>
33945
33946         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33947         in the printed representation of a NaN.
33948         * tests/test-vasprintf-posix.c (test_function): Likewise.
33949         * tests/test-snprintf-posix.h (test_function): Likewise.
33950         * tests/test-sprintf-posix.h (test_function): Likewise.
33951         Reported by Eric Blake.
33952
33953 2007-05-23  Eric Blake  <ebb9@byu.net>
33954
33955         Fix fseeko/ftello on cygwin 1.5.24.
33956         * doc/functions/fseeko.texi (fseeko): Document the fix.
33957         * doc/functions/ftello.texi (ftello): Document the fix.
33958         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33959         * doc/functions/stdout.text (stdout): New file.
33960         * doc/functions/stderr.text (stderr): New file.
33961         * doc/gnulib.texi (Function Substitutes): Use new files.
33962         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33963         prior to 1.7.0.
33964         * tests/test-ftello.c (main): Likewise for ftello.
33965         * tests/test-fseeko.sh: New file.
33966         * tests/test-ftello.sh: New file.
33967         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33968         with seekable stdin.
33969         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33971         (gl_REPLACE_FSEEKO): New macro.
33972         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33973         * modules/fseeko (Files): Distribute fseeko.c.
33974         * modules/ftello (Files): Distribute ftello.c.
33975         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33976         mode.
33977         * lib/ftello.c (rpl_ftello): New file.
33978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33979         fseeko, ftello.
33980         (gl_STDIN_LARGE_OFFSET): New macro.
33981         * modules/stdio (Makefile.am): Perform the replacement.
33982         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33983
33984 2007-05-23  Bruno Haible  <bruno@clisp.org>
33985
33986         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33987         GNULIB_POSIXCHECK is defined.
33988
33989 2007-05-21  Bruno Haible  <bruno@clisp.org>
33990
33991         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33992         Check also the output for NaN arguments. When cross-compiling, guess
33993         no on IRIX.
33994         * lib/vasnprintf.c: Update comments.
33995         * tests/test-vasnprintf-posix.c (strisnan): New function.
33996         (test_function): Use it.
33997         * tests/test-vasprintf-posix.c (strisnan): New function.
33998         (test_function): Use it.
33999         * tests/test-snprintf-posix.h (strisnan): New function.
34000         (test_function): Use it.
34001         * tests/test-sprintf-posix.h (strisnan): New function.
34002         (test_function): Use it.
34003         Reported by Eric Blake.
34004
34005 2007-05-20  Bruno Haible  <bruno@clisp.org>
34006
34007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34008         numbers that fails on BeOS.
34009         * doc/functions/frexpl.texi: Update.
34010
34011 2007-05-20  Jim Meyering  <jim@meyering.net>
34012
34013         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34014         forced upon us by glibc-2.6.
34015
34016 2007-05-20  Bruno Haible  <bruno@clisp.org>
34017
34018         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34019         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34020         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34021         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34022         NEED_PRINTF_INFINITE.
34023         (is_infinitel): New function.
34024         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34025         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34026         gl_PREREQ_VASNPRINTF_INFINITE.
34027         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34029         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34030         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34031         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34032         gl_PREREQ_VASNPRINTF_INFINITE.
34033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34034         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34040         * doc/functions/fprintf.texi: Update.
34041         * doc/functions/printf.texi: Update.
34042         * doc/functions/snprintf.texi: Update.
34043         * doc/functions/sprintf.texi: Update.
34044         * doc/functions/vfprintf.texi: Update.
34045         * doc/functions/vprintf.texi: Update.
34046         * doc/functions/vsnprintf.texi: Update.
34047         * doc/functions/vsprintf.texi: Update.
34048
34049 2007-05-20  Bruno Haible  <bruno@clisp.org>
34050
34051         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34052         was not found in libc.
34053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34054
34055 2007-05-20  Bruno Haible  <bruno@clisp.org>
34056
34057         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34058         printed as "-nan" instead of "nan".
34059         * tests/test-vasprintf-posix.c (test_function): Likewise.
34060         * tests/test-snprintf-posix.h (test_function): Likewise.
34061         * tests/test-sprintf-posix.h (test_function): Likewise.
34062         Needed for HP-UX 11.
34063
34064 2007-05-20  Jim Meyering  <jim@meyering.net>
34065
34066         Fix buggy test for the fchownat-deref bug.
34067         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34068         symlink required for the run-test.  Without it, this test would
34069         always declare that fchownat doesn't work, and client code would
34070         unnecessarily use the replacement function with fixed libc.
34071         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34072         Reported by Greg Schafer.
34073
34074 2007-05-19  Bruno Haible  <bruno@clisp.org>
34075
34076         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34077         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34078         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34079         Needed for IRIX 6.5 and Solaris 2.5.1.
34080
34081 2007-05-19  Bruno Haible  <bruno@clisp.org>
34082
34083         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34084         (test_function): Skip tests involving -0.0 on platforms where
34085         -0.0 = 0.0.
34086         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34087         (test_function): Skip tests involving -0.0 on platforms where
34088         -0.0 = 0.0.
34089         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34090         (test_function): Skip tests involving -0.0 on platforms where
34091         -0.0 = 0.0.
34092         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34093         (test_function): Skip tests involving -0.0 on platforms where
34094         -0.0 = 0.0.
34095         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34096         tests.
34097         * tests/test-printf-posix.h (test_function): Likewise.
34098         * tests/test-printf-posix.output: Remove all -0.0 related results.
34099         Needed for IRIX 6.5.
34100
34101 2007-05-19  Bruno Haible  <bruno@clisp.org>
34102
34103         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34104         printed as "nan0x7fffffff" instead of "nan".
34105         * tests/test-vasprintf-posix.c (test_function): Likewise.
34106         * tests/test-snprintf-posix.h (test_function): Likewise.
34107         * tests/test-sprintf-posix.h (test_function): Likewise.
34108         * tests/test-fprintf-posix.h (NaN): Remove macro.
34109         (test_function): Remove all NaN related tests.
34110         * tests/test-printf-posix.h (NaN): Remove macro.
34111         (test_function): Remove all NaN related tests.
34112         * tests/test-printf-posix.output: Remove all NaN related results.
34113         Needed for IRIX 6.5.
34114
34115 2007-05-19  Bruno Haible  <bruno@clisp.org>
34116
34117         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34119
34120 2007-05-19  Bruno Haible  <bruno@clisp.org>
34121
34122         * lib/float_.h: New file.
34123         * m4/float_h.m4: New file.
34124         * modules/float: New file.
34125         * modules/isnanl (Dependencies): Add float.
34126         * modules/isnanl-nolibm (Dependencies): Likewise.
34127         * modules/mathl (Dependencies): Likewise.
34128         * modules/printf-frexpl (Dependencies): Likewise.
34129         * modules/signbit (Dependencies): Likewise.
34130         * modules/vasnprintf (Dependencies): Likewise.
34131         * doc/headers/float.texi: Update.
34132
34133 2007-05-19  Jim Meyering  <jim@meyering.net>
34134
34135         * lib/utimens.c (gl_futimens): Rename from futimens,
34136         now that glibc-2.6 declares futimens.
34137         * lib/utimens.h: Likewise.
34138
34139 2007-05-19  Bruno Haible  <bruno@clisp.org>
34140
34141         Avoid test failures on mingw.
34142         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34143         * tests/test-printf-posix.sh: Likewise.
34144         * tests/test-vfprintf-posix.sh: Likewise.
34145         * tests/test-vprintf-posix.sh: Likewise.
34146
34147 2007-05-19  Bruno Haible  <bruno@clisp.org>
34148
34149         Fix *printf result for NaN, Inf, -0.0 on mingw.
34150         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34151         * lib/vasnprintf.c: Include math.h and isnan.h.
34152         (is_infinite_or_zero): New function.
34153         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34154         values in the %f, %F, %e, %E, %g, %G directives.
34155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34157         gl_PRINTF_INFINITE and test its result. Invoke
34158         gl_PREREQ_VASNPRINTF_INFINITE.
34159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34161         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34162         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34166         * doc/functions/fprintf.texi: Update.
34167         * doc/functions/printf.texi: Update.
34168         * doc/functions/snprintf.texi: Update.
34169         * doc/functions/sprintf.texi: Update.
34170         * doc/functions/vfprintf.texi: Update.
34171         * doc/functions/vprintf.texi: Update.
34172         * doc/functions/vsnprintf.texi: Update.
34173         * doc/functions/vsprintf.texi: Update.
34174
34175 2007-05-19  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34178         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34179         Instead of multiplying with 10^k, set extra_zeroes to k.
34180         (scale10_round_long_double): Remove function.
34181
34182 2007-05-18  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34185         introduced on 2007-05-06.
34186
34187 2007-05-18  Bruno Haible  <bruno@clisp.org>
34188
34189         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34190         %g directives.
34191         * tests/test-vasprintf-posix.c (test_function): Likewise.
34192         * tests/test-snprintf-posix.h (test_function): Likewise.
34193         * tests/test-sprintf-posix.h (test_function): Likewise.
34194
34195 2007-05-18  Bruno Haible  <bruno@clisp.org>
34196
34197         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34198         (strmatch): New function.
34199         (test_function): Test the %f directive on numbers of various exponents.
34200         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34201         (strmatch): New function.
34202         (test_function): Test the %f directive on numbers of various exponents.
34203         * tests/test-snprintf-posix.h (strmatch): New function.
34204         (test_function): Test the %f directive on numbers of various exponents.
34205         * tests/test-sprintf-posix.h (strmatch): New function.
34206         (test_function): Test the %f directive on numbers of various exponents.
34207         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34208         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34209         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34210         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34211
34212 2007-05-18  Bruno Haible  <bruno@clisp.org>
34213
34214         Add support for 'long double' number output.
34215         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34216         * lib/vasnprintf.c: Include math.h and float+.h.
34217         (mp_limb_t): New type.
34218         (GMP_LIMB_BITS): New macro.
34219         (mp_twolimb_t): New type.
34220         (GMP_TWOLIMB_BITS): New macro.
34221         (mpn_t): New type.
34222         (multiply, divide, convert_to_decimal, decode_long_double,
34223         scale10_round_long_double, scale10_round_decimal_long_double,
34224         floorlog10l): New functions.
34225         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34226         for the %f, %F, %e, %E, %g, %G directives.
34227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34229         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34230         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34238         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34239         * modules/snprintf-posix (Depends-on): Likewise.
34240         * modules/sprintf-posix (Depends-on): Likewise.
34241         * modules/vasnprintf-posix (Depends-on): Likewise.
34242         * modules/vasprintf-posix (Depends-on): Likewise.
34243         * modules/vfprintf-posix (Depends-on): Likewise.
34244         * modules/vsnprintf-posix (Depends-on): Likewise.
34245         * modules/vsprintf-posix (Depends-on): Likewise.
34246         * modules/vasnprintf (Files): Add lib/float+.h.
34247         * doc/functions/fprintf.texi: Update.
34248         * doc/functions/printf.texi: Update.
34249         * doc/functions/snprintf.texi: Update.
34250         * doc/functions/sprintf.texi: Update.
34251         * doc/functions/vfprintf.texi: Update.
34252         * doc/functions/vprintf.texi: Update.
34253         * doc/functions/vsnprintf.texi: Update.
34254         * doc/functions/vsprintf.texi: Update.
34255
34256 2007-05-18  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34259
34260 2007-05-18  Bruno Haible  <bruno@clisp.org>
34261
34262         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34263         for printing 64-bit integers. Needed for mingw.
34264
34265 2007-05-18  Bruno Haible  <bruno@clisp.org>
34266
34267         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34268         gl_FUNC_FREXPL_WORKS.
34269         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34270
34271 2007-05-18  Bruno Haible  <bruno@clisp.org>
34272
34273         * modules/frexpl-nolibm-tests: New file.
34274
34275         * modules/frexpl-nolibm: New file.
34276         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34277
34278 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34279
34280         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34281         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34282         GCC 4.2, which otherwise issues a lot of warnings.
34283         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34284         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34285         Likewise.
34286         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34287         * modules/iconv_open (iconv.h): Likewise.
34288         * modules/locale (locale.h): Likewise.
34289         * modules/netinet_in (netinet/in.h): Likewise.
34290         * modules/sys_select (sys_select.h): Likewise.
34291         * modules/sys_socket (sys/socket.h): Likewise.
34292         * modules/sys_stat (sys/stat.h): Likewise.
34293         * modules/sysexits (sysexits.h): Likewise.
34294         * modules/unistd (unistd.h): Likewise.
34295
34296 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34297
34298         * modules/closein-tests (Makefile.am): Distribute
34299         `test-closein.sh'.
34300
34301 2007-05-17  Bruno Haible  <bruno@clisp.org>
34302
34303         * tests/test-printf-posix.output: Renamed from
34304         tests/test-fprintf-posix.out.
34305         * modules/fprintf-posix-tests: Update.
34306         * modules/printf-posix-tests: Update.
34307         * modules/vfprintf-posix-tests: Update.
34308         * modules/vprintf-posix-tests: Update.
34309         * tests/test-fprintf-posix.sh: Update.
34310         * tests/test-printf-posix.sh: Update.
34311         * tests/test-vfprintf-posix.sh: Update.
34312         * tests/test-vprintf-posix.sh: Update.
34313         Reported by Ralf Wildenhues.
34314
34315 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34316
34317         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34318         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34319         GCC 4.2, which otherwise issues a lot of warnings.
34320         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34321         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34322         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34323         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34324         it should no longer be needed.
34325         * lib/string_.h: Likewise.
34326         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34327         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34328         * modules/inttypes (inttypes.h): Likewise.
34329         * modules/math (math.h): Likewise.
34330         * modules/search (search.h): Likewise.
34331         * modules/signal (signal.h): Likewise.
34332         * modules/stdint (stdint.h): Likewise.
34333         * modules/stdio (stdio.h): Likewise.
34334         * modules/stdlib (stdlib.h): Likewise.
34335         * modules/string (string.h): Likewise.
34336         * modules/sys_time (sys/time.h): Likewise.
34337         * modules/time (time.h): Likewise.
34338         * modules/wchar (wchar.h): Likewise.
34339         * modules/wctype (wtype.h): Likewise.
34340
34341 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34342
34343         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34344
34345 2007-05-13  Bruno Haible  <bruno@clisp.org>
34346
34347         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34348         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34349         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34350         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34351         (gl_PREREQ_STRTOK_R): Don't require it here.
34352
34353 2007-05-13  Bruno Haible  <bruno@clisp.org>
34354
34355         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34356         when used in C++ mode.
34357
34358 2007-05-12  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/linebuffer.h: Tweak doc.
34361         * lib/linebuffer.c: Likewise.
34362
34363 2007-05-12  James Youngman  <jay@gnu.org>
34364
34365         * lib/linebuffer.c (readlinebuffer_delim): New function,
34366         like readlinebuffer, but use a caller-specified delimiter.
34367         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34368         as the delimiter.
34369         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34370
34371 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34372
34373         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34374         * modules/openat (Files): Remove openat-die.c.
34375         (Depends-on): Add openat-die.
34376         * modules/openat-die: New module.
34377
34378 2007-05-06  Bruno Haible  <bruno@clisp.org>
34379
34380         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34381         Update with info about Cygwin.
34382         * doc/functions/fprintf.texi: Update.
34383         * doc/functions/printf.texi: Update.
34384         * doc/functions/snprintf.texi: Update.
34385         * doc/functions/sprintf.texi: Update.
34386         * doc/functions/vfprintf.texi: Update.
34387         * doc/functions/vprintf.texi: Update.
34388         * doc/functions/vsnprintf.texi: Update.
34389         * doc/functions/vsprintf.texi: Update.
34390         Reported by Eric Blake.
34391
34392 2007-05-06  Bruno Haible  <bruno@clisp.org>
34393
34394         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34395         padding ourselves for the floating-point directives.
34396         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34398         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34399         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34400         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34402         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34408         * tests/test-snprintf-posix.h (test_function): Also check the width
34409         and some flags in the %f directive.
34410         * tests/test-sprintf-posix.h (test_function): Likewise.
34411         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34412         * tests/test-vasprintf-posix.c (test_function): Likewise.
34413         * doc/functions/fprintf.texi: Update.
34414         * doc/functions/printf.texi: Update.
34415         * doc/functions/snprintf.texi: Update.
34416         * doc/functions/sprintf.texi: Update.
34417         * doc/functions/vfprintf.texi: Update.
34418         * doc/functions/vprintf.texi: Update.
34419         * doc/functions/vsnprintf.texi: Update.
34420         * doc/functions/vsprintf.texi: Update.
34421
34422 2007-05-06  Bruno Haible  <bruno@clisp.org>
34423
34424         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34425         pass the ' flag character to sprintf or snprintf.
34426         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34429         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34430         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34438         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34439         flag.
34440         * tests/test-sprintf-posix.h (test_function): Likewise.
34441         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34442         * tests/test-vasprintf-posix.c (test_function): Likewise.
34443         * doc/functions/fprintf.texi: Update.
34444         * doc/functions/printf.texi: Update.
34445         * doc/functions/snprintf.texi: Update.
34446         * doc/functions/sprintf.texi: Update.
34447         * doc/functions/vfprintf.texi: Update.
34448         * doc/functions/vprintf.texi: Update.
34449         * doc/functions/vsnprintf.texi: Update.
34450         * doc/functions/vsprintf.texi: Update.
34451
34452 2007-05-01  Bruno Haible  <bruno@clisp.org>
34453
34454         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34455
34456 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34457
34458         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34459         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34460
34461 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34462
34463         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34464         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34466
34467 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34468
34469         * lib/argp-help.c (struct hol_entry): New member `ord'.
34470         (HOL_ENTRY_PTRCMP): Use ord for comparison
34471         (hol_sort): Initialize ord.
34472
34473 2007-05-01  Bruno Haible  <bruno@clisp.org>
34474
34475         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34476         Reported by Eric Blake.
34477         * doc/gnulib.texi (Function Substitutes): Update.
34478
34479 2007-05-01  Bruno Haible  <bruno@clisp.org>
34480
34481         * doc/functions.texi: Remove file, now redundant through
34482         doc/functions/*.texi.
34483
34484 2007-05-01  Bruno Haible  <bruno@clisp.org>
34485
34486         * modules/argp (Depends-on): Add sleep.
34487
34488 2007-05-01  Bruno Haible  <bruno@clisp.org>
34489
34490         * modules/sleep-tests: New file.
34491         * tests/test-sleep.c: New file.
34492
34493         * modules/sleep: New file.
34494         * lib/sleep.c: New file.
34495         * m4/sleep.m4: New file.
34496         * lib/unistd_.h (sleep): New declaration.
34497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34498         HAVE_SLEEP.
34499         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34500         * doc/functions/sleep.texi: Document the sleep module.
34501
34502 2007-05-01  Bruno Haible  <bruno@clisp.org>
34503
34504         * lib/sigprocmask.h: Remove file.
34505         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34506         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34507         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34508         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34509         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34510         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34511         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34512         HAVE_SIGSET_T as a shell variable.
34513         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34514         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34515         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34516         (Depends-on): Add signal. Remove verify.
34517         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34518         (Include): Mention <signal.h> instead of sigprocmask.h.
34519         * NEWS: Mention the change.
34520         * lib/fatal-signal.c: Don't include sigprocmask.h.
34521
34522 2007-05-01  Bruno Haible  <bruno@clisp.org>
34523
34524         * modules/signal: New file.
34525         * lib/signal_.h: New file.
34526         * m4/signal_h.m4: New file.
34527
34528 2007-05-01  Bruno Haible  <bruno@clisp.org>
34529
34530         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34531         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34532         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34533         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34534
34535 2007-05-01  Bruno Haible  <bruno@clisp.org>
34536
34537         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34538         configure time.
34539         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34540         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34541         * modules/sys_stat (Makefile.am): Substitute their values into
34542         sys/stat.h.
34543
34544 2007-05-01  Bruno Haible  <bruno@clisp.org>
34545
34546         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34547         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34548         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34549
34550 2007-05-01  Bruno Haible  <bruno@clisp.org>
34551
34552         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34553         'assert' module here.
34554
34555 2007-05-01  Bruno Haible  <bruno@clisp.org>
34556
34557         * doc/functions/*.texi: New files.
34558         * doc/functions/google-ranking.txt: New file.
34559         * doc/gnulib.texi (Function Substitutes): New chapter.
34560         (ctime, inet_ntoa): Remove sections.
34561         * doc/ctime.texi: Remove file.
34562         * doc/inet_ntoa.texi: Remove file.
34563         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34564         dependencies.
34565         (%.info): New rule, specifying a --reference-limit.
34566
34567 2007-05-01  Bruno Haible  <bruno@clisp.org>
34568
34569         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34570
34571 2007-05-01  Bruno Haible  <bruno@clisp.org>
34572
34573         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34574         the portability of 'mkdir' to mingw systems.
34575
34576 2007-05-01  Bruno Haible  <bruno@clisp.org>
34577
34578         * doc/headers/google-ranking.txt: New file.
34579
34580 2007-04-30  Eric Blake  <ebb9@byu.net>
34581
34582         Prefer fseeko to fseek.
34583         * modules/getpass (Depends-on): Add fseeko.
34584         * lib/getpass.c (getpass): Use fseeko, not fseek.
34585
34586 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34587
34588         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34589         assumes the sorting is stable, while most qsort implementations
34590         are not.  Use argument addresses to ensure they never compare as
34591         equal.
34592
34593         * tests/test-argp-2.sh (usage-indent test): Fix output
34594         (func_compare): Restore diff options
34595         * tests/test-argp.c: Restore #include "progname.h"
34596
34597 2007-04-29  Bruno Haible  <bruno@clisp.org>
34598
34599         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34601         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34603         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34604         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34605         (TESTS, check_PROGRAMS): Add test-snprintf.
34606         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34607         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34608         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34609         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34610         assertions that fail on HP-UX, OSF/1, or IRIX.
34611         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34612
34613 2007-04-29  Bruno Haible  <bruno@clisp.org>
34614
34615         * MODULES.html.sh (posix_functions): Remove 'contents'.
34616
34617 2007-04-29  Karl Berry  <karl@gnu.org>
34618
34619         * config/srclist.txt (gendocs_template_min): new entry.
34620
34621 2007-04-29  Bruno Haible  <bruno@clisp.org>
34622
34623         Work around fpurge bug on BSD systems.
34624         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34625         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34626         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34627         fpurge to rpl_fpurge if the system already has this function.
34628         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34629         the case where the system already has this function. Correct invariants
34630         on BSD systems.
34631         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34632         BSD systems.
34633
34634 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34635
34636         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34637         proposed by Sven Verdoolaege.
34638
34639         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34640         options.
34641         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34642         (usage and help tests): Update
34643
34644 2007-04-29  Bruno Haible  <bruno@clisp.org>
34645
34646         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34647         Print more information in case of failure. Disable a test on BeOS.
34648
34649 2007-04-29  Bruno Haible  <bruno@clisp.org>
34650
34651         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34652         This helps debugging on systems on which no gdb is available.
34653
34654 2007-04-29  Bruno Haible  <bruno@clisp.org>
34655
34656         * lib/freading.h: Improve comments.
34657         * lib/fwriting.h: Likewise.
34658         * tests/test-freading.c (main): Don't check freading immediately after
34659         repositioning. Needed for glibc.
34660
34661 2007-04-29  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/freading.c (freading): Trivial simplification.
34664
34665 2007-04-28  Bruno Haible  <bruno@clisp.org>
34666
34667         * tests/test-fwriting.c (main): Also test the interaction between
34668         fflush and fwriting.
34669         * modules/fwriting-tests (Depends-on): Add fflush.
34670
34671         * tests/test-freading.c (main): Also test the interaction between
34672         fflush and freading.
34673         * modules/freading-tests (Depends-on): Add fflush.
34674
34675 2007-04-28  Bruno Haible  <bruno@clisp.org>
34676
34677         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34678         fseeko and ftello.
34679         Suggested by Eric Blake.
34680
34681 2007-04-28  Jim Meyering  <jim@meyering.net>
34682
34683         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34684         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34685         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34686
34687 2007-04-27  Eric Blake  <ebb9@byu.net>
34688
34689         * doc/headers/assert.texi (assert.h): Document assert module use.
34690
34691 2007-04-27  Bruno Haible  <bruno@clisp.org>
34692
34693         * doc/headers/*.texi: New files.
34694         * doc/gnulib.texi (Header File Substitutes): New chapter.
34695         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34696         dependencies.
34697         (standards.info ,standards.html, standards.dvi): Update dependencies.
34698         (mostlyclean, clean): New targets.
34699
34700 2007-04-27  Bruno Haible  <bruno@clisp.org>
34701
34702         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34703         * modules/sysexits (Files, Makefile.am): Update.
34704
34705         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34706         * modules/sys_socket (Files, Makefile.am): Update.
34707
34708         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34709         * modules/sys_stat (Files, Makefile.am): Update.
34710
34711 2007-04-27  Eric Blake  <ebb9@byu.net>
34712
34713         * lib/freading.h: Improve comments.
34714         * lib/fwriting.h: Likewise.
34715         * lib/fflush.c: Likewise.
34716
34717         Fix closein for mingw.
34718         * modules/closein-tests: Add tests for closein.
34719         * tests/test-closein.c: New file.
34720         * tests/test-closein.sh: Likewise.
34721         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34722         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34723
34724 2007-04-27  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34727         version is < 6.
34728         * lib/math_.h [__DECC]: Likewise.
34729         * lib/stdio_.h [__DECC]: Likewise.
34730         * lib/stdlib_.h [__DECC]: Likewise.
34731         * lib/string_.h [__DECC]: Likewise.
34732         * lib/time_.h [__DECC]: Likewise.
34733         * lib/wchar_.h [__DECC]: Likewise.
34734         * lib/wctype_.h [__DECC]: Likewise.
34735
34736 2007-04-27  Bruno Haible  <bruno@clisp.org>
34737
34738         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34739
34740 2007-04-27  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/fflush.c: Add comments.
34743         * modules/fpurge-tests (Depends-on): Add fflush.
34744         * modules/freadable-tests (Depends-on): Likewise.
34745         * modules/fwritable-tests (Depends-on): Likewise.
34746
34747 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34748
34749         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34750         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34751         Report by Bruno Haible <bruno@clisp.org>.
34752
34753 2007-04-26  Eric Blake  <ebb9@byu.net>
34754
34755         Fix fflush on mingw.
34756         * modules/fflush (Depends-on): Add freading.
34757         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34758         but unread data.
34759
34760 2007-04-26  Eric Blake  <ebb9@byu.net>
34761         and Bruno Haible  <bruno@clisp.org>
34762
34763         Implement freading and fwriting.
34764         * lib/freading.c: New file.
34765         * lib/freading.h: Likewise.
34766         * m4/freading.m4: Likewise.
34767         * modules/freading: Likewise.
34768         * modules/freading-tests: Likewise.
34769         * tests/test-freading.c: Likewise.
34770         * lib/fwriting.c: New file.
34771         * lib/fwriting.h: Likewise.
34772         * m4/fwriting.m4: Likewise.
34773         * modules/fwriting: Likewise.
34774         * modules/fwriting-tests: Likewise.
34775         * tests/test-fwriting.c: Likewise.
34776         * MODULES.html.sh (File stream based Input/Output): Mention them.
34777
34778 2007-04-26  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34781         'long' when we assume it.
34782         Suggested by Eric Blake.
34783
34784 2007-04-26  Bruno Haible  <bruno@clisp.org>
34785
34786         Ensure fseeko, ftello are declared on glibc systems.
34787         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34788         * modules/fseeko (configure.ac-early): Likewise.
34789         * modules/ftello (configure.ac-early): Likewise.
34790         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34791         AC_FUNC_FSEEKO for this.
34792         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34793         (gl_CHECK_FSEEKO): Remove macro.
34794
34795 2007-04-26  Bruno Haible  <bruno@clisp.org>
34796
34797         * tests/test-fflush.c (main): Also check the ftell result after
34798         fflush and fseek/fseeko.
34799         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34800         file descriptor position cache in the stream.
34801         * lib/fseeko.c (rpl_fseeko): Likewise.
34802
34803 2007-04-26  Bruno Haible  <bruno@clisp.org>
34804
34805         * modules/fflush-tests (Depends-on): Add fseeko.
34806
34807 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34808             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34809
34810         * lib/argz_.h: ensure error_t definition is obtained in same
34811         mechanism system argz.h would have.
34812         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34813         argz facilities are known bad.  Err on the side of caution if
34814         cross-compiling.
34815
34816 2007-04-25  Eric Blake  <ebb9@byu.net>
34817
34818         * lib/fpurge.c (includes): Use stdlib.h for free.
34819         * tests/test-fflush.c (main): Also test fflush-fseeko.
34820
34821 2007-04-25  Bruno Haible  <bruno@clisp.org>
34822
34823         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34824         * lib/fseeko.c: New file.
34825         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34826         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34827         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34828         gl_FUNC_FSEEKO.
34829         (gl_FUNC_FSEEKO): Invoke it.
34830         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34831         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34832         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34833
34834 2007-04-25  Bruno Haible  <bruno@clisp.org>
34835
34836         * modules/fflush (Depends-on): Add ftello.
34837
34838 2007-04-25  Bruno Haible  <bruno@clisp.org>
34839
34840         * modules/ftello-tests: New file.
34841         * tests/test-ftello.c: New file.
34842
34843         * modules/ftello: New file.
34844         * m4/ftello.m4: New file.
34845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34846         HAVE_FTELLO.
34847         * lib/stdio_.h (ftello): New declaration.
34848         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34849         HAVE_FTELLO.
34850
34851 2007-04-25  Bruno Haible  <bruno@clisp.org>
34852
34853         * modules/fseeko-tests: New file.
34854         * tests/test-fseeko.c: New file.
34855
34856         * modules/fseeko: New file.
34857         * m4/fseeko.m4: New file.
34858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34859         HAVE_FSEEKO.
34860         * lib/stdio_.h (fseeko): New declaration.
34861         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34862         HAVE_FSEEKO.
34863
34864 2007-04-25  Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34867
34868 2007-04-25  Bruno Haible  <bruno@clisp.org>
34869
34870         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34871         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34872         * tests/test-unistd.c: Likewise.
34873         * tests/test-fcntl.c: Likewise.
34874
34875 2007-04-23  Eric Blake  <ebb9@byu.net>
34876
34877         * lib/fflush.c: Fix missing include.
34878         Reported by Bruno Haible.
34879
34880 2007-04-23  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34883         Reported by Eric Blake.
34884
34885 2007-04-23  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34888
34889 2007-04-23  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34892
34893 2007-04-23  Bruno Haible  <bruno@clisp.org>
34894
34895         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34896         Needed on HP-UX 11.
34897
34898 2007-04-16  Eric Blake  <ebb9@byu.net>
34899
34900         Make fflush rely on fpurge.
34901         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34902         open coding all variants.
34903         * modules/fflush (Depends-on): Add fpurge and unistd.
34904         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34905         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34906
34907         Fix --with-tests compilation on cygwin.
34908         * modules/argmatch-tests (Makefile.am): List gnulib library first
34909         in LDADD.
34910         * modules/argp-tests (Makefile.am): Likewise.
34911         * modules/array-list-tests (Makefile.am): Likewise.
34912         * modules/array-oset-tests (Makefile.am): Likewise.
34913         * modules/avltree-list-tests (Makefile.am): Likewise.
34914         * modules/avltree-oset-tests (Makefile.am): Likewise.
34915         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34916         * modules/carray-list-tests (Makefile.am): Likewise.
34917         * modules/dirname-tests (Makefile.am): Likewise.
34918         * modules/frexp-tests (Makefile.am): Likewise.
34919         * modules/isnanl-tests (Makefile.am): Likewise.
34920         * modules/linked-list-tests (Makefile.am): Likewise.
34921         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34922         * modules/lock-tests (Makefile.am): Likewise.
34923         * modules/rbtree-list-tests (Makefile.am): Likewise.
34924         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34925         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34926         * modules/tls-tests (Makefile.am): Likewise.
34927         * modules/tsearch-tests (Makefile.am): Likewise.
34928         * modules/xvasprintf-tests (Makefile.am): Likewise.
34929
34930         Fix fpurge for cygwin.
34931         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34932         value.
34933         * modules/fpurge-tests (Depends-on): Clean up trash.
34934
34935 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34936
34937         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34938
34939         * m4/autobuild.m4: Re-indent.
34940
34941 2007-04-13  Bruno Haible  <bruno@clisp.org>
34942
34943         * modules/fpurge-tests: New file.
34944         * tests/test-fpurge.c: New file.
34945
34946         * modules/fpurge: New file.
34947         * lib/fpurge.h: New file.
34948         * lib/fpurge.c: New file.
34949         * m4/fpurge.m4: New file.
34950
34951 2007-04-13  Bruno Haible  <bruno@clisp.org>
34952
34953         * modules/fbufmode-tests: New file.
34954         * tests/test-fbufmode.c: New file.
34955
34956         * modules/fbufmode: New file.
34957         * lib/fbufmode.h: New file.
34958         * lib/fbufmode.c: New file.
34959         * m4/fbufmode.m4: New file.
34960
34961 2007-04-13  Bruno Haible  <bruno@clisp.org>
34962
34963         * modules/fwritable-tests: New file.
34964         * tests/test-fwritable.c: New file.
34965
34966         * modules/fwritable: New file.
34967         * lib/fwritable.h: New file.
34968         * lib/fwritable.c: New file.
34969         * m4/fwritable.m4: New file.
34970
34971 2007-04-13  Bruno Haible  <bruno@clisp.org>
34972
34973         * modules/freadable-tests: New file.
34974         * tests/test-freadable.c: New file.
34975
34976         * modules/freadable: New file.
34977         * lib/freadable.h: New file.
34978         * lib/freadable.c: New file.
34979         * m4/freadable.m4: New file.
34980
34981 2007-04-13  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34984         MOSTLYCLEANFILES.
34985
34986 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34987
34988         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34989         gzip bootstrap.conf to avoid dragging in i18n machinery.
34990         (gnulib_tool_option): Use it.
34991
34992 2007-04-13  Bruno Haible  <bruno@clisp.org>
34993
34994         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34995         %F directives.
34996         * tests/test-vasprintf-posix.c (test_function): Likewise.
34997         * tests/test-snprintf-posix.h (test_function): Likewise.
34998         * tests/test-sprintf-posix.h (test_function): Likewise.
34999         * tests/test-fprintf-posix.h (test_function): Likewise.
35000         * tests/test-printf-posix.h (test_function): Likewise.
35001         * tests/test-fprintf-posix.out: Likewise.
35002
35003 2007-04-13  Bruno Haible  <bruno@clisp.org>
35004
35005         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35006         * modules/tls-tests (configure.ac): Likewise.
35007         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35008
35009 2007-04-13  Bruno Haible  <bruno@clisp.org>
35010
35011         * lib/tls.c (glthread_tls_get): Fix return type.
35012         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35013
35014 2007-04-12  Eric Blake  <ebb9@byu.net>
35015
35016         * modules/gettime (Depends-on): Remove gettime.
35017         Reported by Dmitry V. Levin.
35018
35019 2007-04-12  Bruno Haible  <bruno@clisp.org>
35020
35021         * modules/fflush (Include): Mention <stdio.h>.
35022         * modules/strtoimax (Include): Mention <inttypes.h>.
35023         * modules/strtoumax (Include): Likewise.
35024
35025 2007-04-12  Eric Blake  <ebb9@byu.net>
35026
35027         * .cvsignore: New file.
35028         * .gitignore: Likewise.
35029
35030 2007-04-12  Bruno Haible  <bruno@clisp.org>
35031
35032         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35033         not before, since $(LDADD) often contains libgnu.a.
35034         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35035         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35036         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35037         Needed on Cygwin.
35038
35039 2007-04-12  Eric Blake  <ebb9@byu.net>
35040
35041         Work around glibc's failure to flush stdin on fclose.
35042         * lib/closein.c (close_stdin): Flush stdin before closing.
35043
35044         Work around glibc's failure to reset seekable stdin on exit.
35045         * modules/closein: New module.
35046         * lib/closein.c: New file.
35047         * lib/closein.h: Likewise.
35048         * m4/closein.m4: Likewise.
35049         * MODULES.html.sh (File stream based Input/Output): Document it.
35050
35051 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35052
35053         * gnulib-tool: Rename generated 'autobuild' script to
35054         'do-autobuild' in --create-megatestdir output.
35055
35056         * doc/gnulib.texi (Build robot for gnulib): Fix.
35057
35058 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35059
35060         * modules/sysexits (Depends-on): Add absolute-header.
35061
35062 2007-04-12  Eric Blake  <ebb9@byu.net>
35063
35064         No need to preserve errno on success.
35065         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35066         Reported by Bruno Haible.
35067
35068 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35069
35070         * MODULES.html.sh (Support for maintaining and releasing
35071         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35072
35073 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35074
35075         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35076
35077 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35078
35079         * modules/autobuild: New module.
35080
35081         * m4/autobuild.m4: New file.
35082
35083 2007-04-11  Bruno Haible  <bruno@clisp.org>
35084
35085         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35086         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35093         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35094         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35096         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35097         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35098         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35099         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35100         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
35114
35115 2007-04-11  Bruno Haible  <bruno@clisp.org>
35116
35117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35118
35119 2007-04-10  Bruno Haible  <bruno@clisp.org>
35120
35121         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35122         for NaN and Infinity. Needed on FreeBSD 6.1.
35123         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35124         regarding results for "%010a" of Infinity and NaN.
35125         * tests/test-vasprintf-posix.c (test_function): Likewise.
35126         * tests/test-snprintf-posix.h (test_function): Likewise.
35127         * tests/test-sprintf-posix.h (test_function): Likewise.
35128         * tests/test-fprintf-posix.h (test_function): Likewise.
35129         * tests/test-printf-posix.h (test_function): Likewise.
35130         * tests/test-fprintf-posix.out: Likewise.
35131
35132 2007-04-10  Bruno Haible  <bruno@clisp.org>
35133
35134         * modules/locale-tests: New file.
35135         * tests/test-locale.c: New file.
35136
35137         * modules/locale: New file.
35138         * lib/locale_.h: New file.
35139         * m4/locale_h.m4: New file.
35140
35141 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35142             Bruno Haible  <bruno@clisp.org>
35143
35144         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35145         be determined, test for availability of the copysignf, copysign,
35146         copysignl functions.
35147         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35148         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35149         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35150
35151 2007-04-09  Eric Blake  <ebb9@byu.net>
35152
35153         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35154         * modules/stdio (Makefile.am): Support fflush.
35155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35156         * modules/fflush: New file.
35157         * lib/fflush.c: Likewise.
35158         * m4/fflush.m4: Likewise.
35159         * modules/fflush-tests: New test.
35160         * tests/test-fflush.c: Likewise.
35161         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35162
35163 2007-04-06  Bruno Haible  <bruno@clisp.org>
35164
35165         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35166         (VASNPRINTF): Use signbit for faster determination whether to print a
35167         minus sign.
35168         * modules/vasnprintf (Files): Remove lib/float+.h.
35169         * modules/fprintf-posix (Depends-on): Add signbit.
35170         * modules/snprintf-posix (Depends-on): Likewise.
35171         * modules/sprintf-posix (Depends-on): Likewise.
35172         * modules/vasnprintf-posix (Depends-on): Likewise.
35173         * modules/vasprintf-posix (Depends-on): Likewise.
35174         * modules/vfprintf-posix (Depends-on): Likewise.
35175         * modules/vsnprintf-posix (Depends-on): Likewise.
35176         * modules/vsprintf-posix (Depends-on): Likewise.
35177
35178 2007-04-06  Bruno Haible  <bruno@clisp.org>
35179
35180         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35181         * tests/test-frexpl.c (main): Likewise.
35182         * tests/test-ldexpl.c (main): Likewise.
35183         * modules/frexp-tests (Depends-on): Add signbit.
35184         * modules/frexpl-tests (Depdends-on): Likewise.
35185         * modules/ldexpl-tests (Depdends-on): Likewise.
35186
35187 2007-04-06  Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/signbit-tests: New file.
35190         * tests/test-signbit.c: New file.
35191
35192         * modules/signbit: New file.
35193         * lib/signbitf.c: New file.
35194         * lib/signbitd.c: New file.
35195         * lib/signbitl.c: New file.
35196         * m4/signbit.m4: New file.
35197         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35198         (signbit): New macro.
35199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35200         REPLACE_SIGNBIT.
35201         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35202         REPLACE_FREXPL into math.h.
35203
35204 2007-04-06  Bruno Haible  <bruno@clisp.org>
35205
35206         * modules/isnanf-nolibm-tests: New file.
35207         * tests/test-isnanf.c: New file.
35208
35209         * modules/isnanf-nolibm: New file.
35210         * lib/isnanf.h: New file.
35211         * lib/isnanf.c: New file.
35212         * lib/isnan.c: Consider the USE_FLOAT macro.
35213         * m4/isnanf.m4: New file.
35214
35215 2007-04-06  Bruno Haible  <bruno@clisp.org>
35216
35217         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35218         (Link): New section.
35219
35220         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35221
35222 2007-04-06  Bruno Haible  <bruno@clisp.org>
35223
35224         Assume the 'long double' type.
35225         * m4/longdouble.m4: Remove file.
35226         * config/srclist.txt: Don't mention longdouble.m4.
35227         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35228         * lib/float+.h: Likewise.
35229         * lib/frexp.c: Likewise.
35230         * lib/printf-args.h: Likewise.
35231         * lib/printf-args.c: Likewise.
35232         * lib/printf-frexp.c: Likewise.
35233         * lib/printf-parse.c: Likewise.
35234         * lib/vasnprintf.c: Likewise.
35235         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35236         * m4/intl.m4: Likewise.
35237         * m4/isnanl.m4: Likewise.
35238         * m4/printf.m4: Likewise.
35239         * m4/printf-frexpl.m4: Likewise.
35240         * m4/vasnprintf.m4: Likewise.
35241         * modules/allocsa (Files): Remove m4/longdouble.m4.
35242         * modules/gettext (Files): Likewise.
35243         * modules/relocatable-prog-wrapper (Files): Likewise.
35244         * modules/vasnprintf (Files): Likewise.
35245         * modules/isnanl (Files): Likewise.
35246         (Include): Simplify.
35247         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35248         (Include): Simplify.
35249         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35250         (Include): Simplify.
35251         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35252         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35253         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35255         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35257         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35259         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35260         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35261         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35263         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35264         * tests/test-isnanl.c: Likewise.
35265         * tests/test-snprintf-posix.h: Likewise.
35266         * tests/test-sprintf-posix.h: Likewise.
35267         * tests/test-vasnprintf-posix.c: Likewise.
35268         * tests/test-vasnprintf-posix2.c: Likewise.
35269         * tests/test-vasprintf-posix.c: Likewise.
35270
35271 2007-04-06  Bruno Haible  <bruno@clisp.org>
35272
35273         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35274         * lib/math_.h [__DECC]: Include the overridden include file through
35275         #include_next, outside the double-inclusion guard.
35276         * lib/stdio_.h [__DECC]: Likewise.
35277         * lib/stdlib_.h [__DECC]: Likewise.
35278         * lib/string_.h [__DECC]: Likewise.
35279         * lib/time_.h [__DECC]: Likewise.
35280         * lib/wchar_.h [__DECC]: Likewise.
35281         * lib/wctype_.h [__DECC]: Likewise.
35282         * lib/inttypes_.h [__DECC]: Likewise.
35283         Reported by Albert Chin <china@thewrittenword.com> in
35284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35285
35286 2007-04-04  Eric Blake  <ebb9@byu.net>
35287
35288         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35289         1.5.x.
35290
35291 2007-04-04  Bruno Haible  <bruno@clisp.org>
35292
35293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35294         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35295
35296 2007-04-04  Bruno Haible  <bruno@clisp.org>
35297
35298         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35299         results for "%010a" of Infinity and NaN.
35300         * tests/test-vasprintf-posix.c (test_function): Likewise.
35301         * tests/test-snprintf-posix.h (test_function): Likewise.
35302         * tests/test-sprintf-posix.h (test_function): Likewise.
35303         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35304         * tests/test-printf-posix.h (test_function): Likewise.
35305         * tests/test-fprintf-posix.out: Update.
35306         Needed for FreeBSD 6.1.
35307
35308 2007-04-04  Bruno Haible  <bruno@clisp.org>
35309
35310         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35311         directly used by the gnulib modules nor by gnulib-tool.
35312
35313 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35314
35315         * DEPENDENCIES: Give overall description of version dependency
35316         desirability.  Use more-typical names for apps.
35317         Add shell, coreutils, diffutils, grep, tar, gzip.
35318
35319 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35320
35321         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35322
35323 2007-04-04  Karl Berry  <karl@gnu.org>
35324
35325         * MODULES.html.sh (func_module): missing '.
35326
35327 2007-04-03  Bruno Haible  <bruno@clisp.org>
35328
35329         * modules/argmatch-tests (Makefile.am): New variable
35330         test_argmatch_LDADD.
35331         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35332         * modules/array-list-tests (Makefile.am): New variable
35333         test_array_list_LDADD.
35334         * modules/array-oset-tests (Makefile.am): New variable
35335         test_array_oset_LDADD.
35336         * modules/avltree-list-tests (Makefile.am): New variable
35337         test_avltree_list_LDADD.
35338         * modules/avltree-oset-tests (Makefile.am): New variable
35339         test_avltree_oset_LDADD.
35340         * modules/avltreehash-list-tests (Makefile.am): New variable
35341         test_avltreehash_list_LDADD.
35342         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35343         test_canonicalize_lgpl_LDADD.
35344         * modules/carray-list-tests (Makefile.am): New variable
35345         test_carray_list_LDADD.
35346         * modules/dirname-tests (Makefile.am): New variable
35347         test_dirname_LDADD.
35348         * modules/linked-list-tests (Makefile.am): New variable
35349         test_linked_list_LDADD.
35350         * modules/linkedhash-list-tests (Makefile.am): New variable
35351         test_linkedhash_list_LDADD.
35352         * modules/rbtree-list-tests (Makefile.am): New variable
35353         test_rbtree_list_LDADD.
35354         * modules/rbtree-oset-tests (Makefile.am): New variable
35355         test_rbtree_oset_LDADD.
35356         * modules/rbtreehash-list-tests (Makefile.am): New variable
35357         test_rbtreehash_list_LDADD.
35358         * modules/xvasprintf-tests (Makefile.am): New variable
35359         test_xvasprintf_LDADD.
35360         Reported by Eric Blake.
35361
35362 2007-04-03  Eric Blake  <ebb9@byu.net>
35363
35364         * DEPENDENCIES: Weaken m4 requirements.
35365
35366 2007-04-03  Bruno Haible  <bruno@clisp.org>
35367
35368         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35369         * modules/isnanl-tests (configure.ac): Likewise.
35370
35371 2007-04-03  Ben Pfaff  <blp@gnu.org>
35372
35373         * modules/iconv_open: Add $(srcdir)/ to source directory
35374         references in Makefile fragments that call gperf, to fix VPATH
35375         builds.
35376
35377 2007-04-03  Bruno Haible  <bruno@clisp.org>
35378
35379         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35380         * lib/ldexpl.c: Undo last change.
35381
35382 2007-04-03  Bruno Haible  <bruno@clisp.org>
35383
35384         * modules/printf-frexpl (Depends-on): Undo last change.
35385         (Files): Add m4/ldexpl.m4.
35386
35387 2007-04-03  Bruno Haible  <bruno@clisp.org>
35388
35389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35390         * modules/isnanl (Link): New section.
35391
35392         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35393         * modules/frexp (Link): New section.
35394
35395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35396         * modules/frexpl (Link): New section.
35397
35398         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35399         * modules/ldexpl (Link): New section.
35400
35401 2007-04-03  Bruno Haible  <bruno@clisp.org>
35402
35403         * modules/TEMPLATE-EXTENDED: New file.
35404         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35405
35406 2007-04-03  Bruno Haible  <bruno@clisp.org>
35407
35408         * DEPENDENCIES: New file.
35409         Suggested by Simon Josefsson.
35410
35411 2007-04-03  Bruno Haible  <bruno@clisp.org>
35412
35413         * doc/gnulib.texi: Escape @.
35414
35415 2007-04-03  James Youngman  <jay@gnu.org>
35416         and Paul Eggert  <eggert@cs.ucla.edu>
35417
35418         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35419         birthtime on all systems that have birthtime, not just those which
35420         use st_birthtimensec rather than st_birthtim.  Putting zero in
35421         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35422         that the birth time is not available for files on an NFS mount.
35423
35424 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35425
35426         * modules/memxor: Move back from crypto/, suggested by Bruno.
35427         * modules/crypto/hmac-sha1: Fix memxor dependency.
35428
35429         * modules/crypto/gc: Moved from ../.
35430
35431 2007-04-02  Eric Blake  <ebb9@byu.net>
35432
35433         * lib/ldexpl.c (includes): Avoid libm.
35434
35435         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35436
35437 2007-04-02  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35440         on IRIX.
35441
35442 2007-04-02  Bruno Haible  <bruno@clisp.org>
35443
35444         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35445         x86 or x86_64 platforms running MacOS X.
35446         Reported by Ryan Schmidt <@ryandesign.com>.
35447
35448 2007-04-02  Bruno Haible  <bruno@clisp.org>
35449
35450         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35451         i386.
35452
35453 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35454
35455         * modules/crypto/arcfour: Moved from ../.
35456         * modules/crypto/arcfour-tests: Moved from ../.
35457         * modules/crypto/arctwo: Moved from ../.
35458         * modules/crypto/arctwo-tests: Moved from ../.
35459         * modules/crypto/des: Moved from ../.
35460         * modules/crypto/des-tests: Moved from ../.
35461         * modules/crypto/gc-arcfour: Moved from ../.
35462         * modules/crypto/gc-arcfour-tests: Moved from ../.
35463         * modules/crypto/gc-arctwo: Moved from ../.
35464         * modules/crypto/gc-arctwo-tests: Moved from ../.
35465         * modules/crypto/gc-des: Moved from ../.
35466         * modules/crypto/gc-des-tests: Moved from ../.
35467         * modules/crypto/gc-hmac-md5: Moved from ../.
35468         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35469         * modules/crypto/gc-hmac-sha1: Moved from ../.
35470         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35471         * modules/crypto/gc-md2: Moved from ../.
35472         * modules/crypto/gc-md2-tests: Moved from ../.
35473         * modules/crypto/gc-md4: Moved from ../.
35474         * modules/crypto/gc-md4-tests: Moved from ../.
35475         * modules/crypto/gc-md5: Moved from ../.
35476         * modules/crypto/gc-md5-tests: Moved from ../.
35477         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35478         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35479         * modules/crypto/gc-random: Moved from ../.
35480         * modules/crypto/gc-rijndael: Moved from ../.
35481         * modules/crypto/gc-rijndael-tests: Moved from ../.
35482         * modules/crypto/gc-sha1: Moved from ../.
35483         * modules/crypto/gc-sha1-tests: Moved from ../.
35484         * modules/crypto/gc-tests: Moved from ../.
35485         * modules/crypto/hmac-md5: Moved from ../.
35486         * modules/crypto/hmac-md5-tests: Moved from ../.
35487         * modules/crypto/hmac-sha1: Moved from ../.
35488         * modules/crypto/hmac-sha1-tests: Moved from ../.
35489         * modules/crypto/md2: Moved from ../.
35490         * modules/crypto/md2-tests: Moved from ../.
35491         * modules/crypto/md4: Moved from ../.
35492         * modules/crypto/md4-tests: Moved from ../.
35493         * modules/crypto/md5: Moved from ../.
35494         * modules/crypto/md5-tests: Moved from ../.
35495         * modules/crypto/memxor: Moved from ../.
35496         * modules/crypto/rijndael: Moved from ../.
35497         * modules/crypto/rijndael-tests: Moved from ../.
35498         * modules/crypto/sha1: Moved from ../.
35499
35500 2007-03-30  James Youngman  <jay@gnu.org>
35501
35502         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35503         rename() to change the ctime of a file (because ctime is unaffected
35504         by rename on jfs2 on AIX 5.1).
35505         (main): Start by doing cleanup, in case a previous run failed leaving
35506         test files behind.
35507
35508 2007-03-31  Bruno Haible  <bruno@clisp.org>
35509
35510         Support old proprietary implementations of iconv.
35511         * modules/iconv_open: New file.
35512         * lib/iconv_.h: New file.
35513         * m4/iconv_h.m4: New file.
35514         * lib/iconv_open.c: New file.
35515         * lib/iconv_open-aix.gperf: New file.
35516         * lib/iconv_open-hpux.gperf: New file.
35517         * lib/iconv_open-irix.gperf: New file.
35518         * lib/iconv_open-osf.gperf: New file.
35519         * m4/iconv_open.m4: New file.
35520         * modules/linebreak (Depends-on): Add iconv_open.
35521         * modules/striconv (Depends-on): Likewise.
35522         * modules/striconveh (Depends-on): Likewise.
35523         * modules/unicodeio (Depends-on): Likewise.
35524         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35525         (iconv_t)(-1).
35526         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35527         conversion if cd is (iconv_t)(-1).
35528         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35529         is not possible.
35530
35531 2007-03-31  Bruno Haible  <bruno@clisp.org>
35532
35533         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35534         work on Solaris either. Protect also second use of "autodetect_jp".
35535
35536 2007-03-31  Bruno Haible  <bruno@clisp.org>
35537
35538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35539         the function is not present.
35540
35541 2007-03-31  Bruno Haible  <bruno@clisp.org>
35542
35543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35544         the function is not present.
35545
35546 2007-03-31  Bruno Haible  <bruno@clisp.org>
35547
35548         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35549         a bug in HP-UX iconv_open().
35550
35551 2007-03-31  Bruno Haible  <bruno@clisp.org>
35552
35553         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35554         (Mathematics <math.h>): New section, add fpieee.
35555         (Input/output <stdio.h>): Add fseterr.
35556         (Mathematics <math.h>): New section, add printf-frexp.
35557         (Container data structures): Add sublist.
35558         (Core language properties): Add fpucw, inline.
35559         (Functions for greatest-width integer types <inttypes.h>): Add
35560         imaxabs, imaxdiv, inttypes.
35561         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35562         isnanl-nolibm, ldexp.
35563         (Mathematics <math.h>): New section, add printf-frexpl.
35564         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35565         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35566         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35567         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35568         (Unicode string functions): Add unistr/u*-mbtoucr.
35569         (Java): Add javacomp-script, javaexec-script.
35570         (C#): Add csharpcomp-script, csharpexec-script.
35571         (Support for building libraries and executables): Add havelib,
35572         relocatable-*.
35573         (Support for maintaining and releasing projects): Renamed from
35574         'Support for maintaining and release projects'. Add announce-gen.
35575
35576 2007-03-31  Bruno Haible  <bruno@clisp.org>
35577
35578         * README: Talk primarily about git.
35579         (git and CVS): Renamed from CVS.
35580         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35581         gnulib is available through git.
35582         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35583
35584 2007-03-30  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35587         * lib/poll_.h: Likewise.
35588         * lib/stat_.h: Likewise.
35589         * lib/sys_time_.h: Likewise.
35590         * lib/sysexit_.h: Likewise.
35591         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35592         * lib/stdbool_.h: Likewise.
35593         * lib/byteswap_.h: Add double-inclusion guard.
35594
35595 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35596
35597         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35598
35599 2007-03-30  Karl Berry  <karl@gnu.org>
35600
35601         * config/srclist-update: double space after USA in the license
35602         substitution, since that's how it's usually (?) written.
35603
35604 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35605
35606         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35607         reported by Bruno Haible.
35608
35609 2007-03-29  Bruno Haible  <bruno@clisp.org>
35610
35611         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35612         a bug in AIX iconv().
35613
35614 2007-03-29  Bruno Haible  <bruno@clisp.org>
35615
35616         * modules/ldexpl-tests: New file.
35617         * tests/test-ldexpl.c: New file.
35618
35619 2007-03-29  Bruno Haible  <bruno@clisp.org>
35620
35621         * lib/ldexpl.c: Include fpucw.h.
35622         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35623         multiplication.
35624         * modules/ldexpl (Depends-on): Add fpucw.
35625
35626 2007-03-29  Bruno Haible  <bruno@clisp.org>
35627
35628         * modules/ldexpl: New file.
35629         * m4/ldexpl.m4: New file.
35630         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35631         set.
35632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35633         REPLACE_LDEXPL.
35634         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35635         REPLACE_LDEXPL.
35636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35637         gl_FUNC_LDEXPL_WORKS.
35638         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35639         * modules/mathl (Files): Remove lib/ldexpl.c.
35640         (Depends-on): Add ldexpl.
35641
35642 2007-03-29  Bruno Haible  <bruno@clisp.org>
35643
35644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35645
35646 2007-03-29  Bruno Haible  <bruno@clisp.org>
35647
35648         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35649         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35650         and possibly also HP-UX.
35651         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35652         work on AIX, IRIX, HP-UX, OSF/1.
35653         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35654         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35655         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35656         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35657         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35658         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35659
35660 2007-03-29  Bruno Haible  <bruno@clisp.org>
35661
35662         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35663
35664 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35665
35666         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35667         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35668
35669 2007-03-29  Eric Blake  <ebb9@byu.net>
35670
35671         * lib/acl-internal.h: Remove redundant include.
35672         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35673         Cygwin when a file is locked.
35674
35675 2007-03-29  Bruno Haible  <bruno@clisp.org>
35676
35677         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35678         file.
35679         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35680
35681 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35682
35683         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35684         try to remove a parent directory if the child couldn't be removed
35685         (except for the first rmdir, which could fail because the child
35686         doesn't exist).  Problem reported by Jeff Blaine in
35687         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35688
35689 2007-03-28  Bruno Haible  <bruno@clisp.org>
35690
35691         * lib/striconveh.c (utf8conv_carefully): New function.
35692         (mem_cd_iconveh_internal): Invoke it.
35693
35694 2007-03-28  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35697         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35698         input.
35699         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35700         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35701         unistr/u8-uctomb.
35702
35703 2007-03-28  Bruno Haible  <bruno@clisp.org>
35704
35705         * modules/unistr/u8-mbtoucr: New file.
35706         * lib/unistr/u8-mbtoucr.c: New file.
35707         * modules/unistr/u16-mbtoucr: New file.
35708         * lib/unistr/u16-mbtoucr.c: New file.
35709         * modules/unistr/u16-mbtoucr: New file.
35710         * lib/unistr/u16-mbtoucr.c: New file.
35711         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35712
35713 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35714             Bruno Haible  <bruno@clisp.org>
35715
35716         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35717         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35718         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35719
35720         * m4/stdio_h.m4: Add stubs for vasprintf too.
35721
35722         * modules/stdio: Support vasprintf in sed command.
35723
35724         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35725         vasprintf.h.  Add stdio module indicator.
35726
35727         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35728         vasprintf.h.
35729
35730         * lib/vasprintf.h: File removed.
35731
35732         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35733         * lib/vasprintf.c: Ditto.
35734         * lib/xvasprintf.c: Ditto.
35735         * tests/test-vasprintf-posix.c: Ditto.
35736         * tests/test-vasprintf.c: Ditto.
35737
35738 2007-03-27  Bruno Haible  <bruno@clisp.org>
35739
35740         Make vasnprintf multithread-safe.
35741         * lib/vasnprintf.c (decimal_point_char): New function.
35742         (VASNPRINTF): Use it.
35743         Suggested by Simon Josefsson.
35744
35745 2007-03-27  Eric Blake  <ebb9@byu.net>
35746
35747         Support sub-second birthtime on cygwin.
35748         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35749         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35750         (get_stat_birthtime): Also work with st_birthtim.
35751
35752 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35753
35754         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35755         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35756         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35757         (get_stat_birthtime_ns): Simplify compile-time tests.
35758         (get_stat_birthtime): Change the API to look like
35759         get_stat_mtime etc., except return a negative tv_nsec on error.
35760         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35761         Don't check for "spare" fields.
35762         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35763         or for struct stat.st_birthtime, as these tests aren't used.
35764         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35765
35766 2007-03-27  Bruno Haible  <bruno@clisp.org>
35767
35768         * lib/stat-time.h: Include <sys/stat.h>.
35769
35770 2007-03-27  James Youngman  <jay@gnu.org>
35771
35772         * lib/stat-time.h (get_stat_birthtime): New function for
35773           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35774         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35775           and its variants.
35776         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35777         * modules/stat-time-test: New file.
35778         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35779
35780 2007-03-26  Bruno Haible  <bruno@clisp.org>
35781
35782         Better support of signalling NaNs.
35783         * lib/atanl.c: Include isnanl.h.
35784         (atanl): Perform test for NaN at the beginning of the function and
35785         through a call to isnanl.
35786         * lib/cosl.c: Include isnanl.h.
35787         (cosl): Perform test for NaN at the beginning of the function and
35788         through a call to isnanl.
35789         * lib/ldexpl.c: Include isnanl.h.
35790         (ldexpl): Perform test for NaN through a call to isnanl.
35791         * lib/logl.c: Include isnanl.h.
35792         (logl): Perform test for NaN at the beginning of the function and
35793         through a call to isnanl.
35794         * lib/sinl.c: Include isnanl.h.
35795         (sinl): Perform test for NaN at the beginning of the function and
35796         through a call to isnanl.
35797         * lib/sqrtl.c: Include isnanl.h.
35798         (sqrtl): Perform test for NaN at the beginning of the function and
35799         through a call to isnanl.
35800         * lib/tanl.c: Include isnanl.h.
35801         (tanl): Perform test for NaN at the beginning of the function and
35802         through a call to isnanl.
35803         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35804         * modules/mathl (Depends-on): Add isnanl.
35805
35806 2007-03-26  Eric Blake  <ebb9@byu.net>
35807
35808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35809         regression in logic sense of previous patch.
35810
35811 2007-03-26  Bruno Haible  <bruno@clisp.org>
35812
35813         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35814         unportable shell command "if ! ...".
35815         Reported by Ralf Wildenhues.
35816
35817 2007-03-25  Bruno Haible  <bruno@clisp.org>
35818
35819         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35820         <sysexits.h> file, and only add EX_CONFIG.
35821         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35822         absolute file name and whether it is sufficient. Substitute also
35823         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35824         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35825         ABSOLUTE_SYSEXITS_H into sysexits.h.
35826
35827 2007-03-25  Bruno Haible  <bruno@clisp.org>
35828
35829         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35830         hints is NULL.
35831
35832 2007-03-25  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35835         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35836
35837 2007-03-25  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/vasnprintf.c: Include langinfo.h.
35840         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35841         multithread-safe.
35842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35851         Reported by Simon Josefsson.
35852
35853 2007-03-25  Bruno Haible  <bruno@clisp.org>
35854
35855         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35856         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35857         * modules/vasnprintf (Depends-on): Add stdint.
35858
35859 2007-03-25  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/fpieee: New file.
35862         * m4/fpieee.m4: New file.
35863         * modules/isnan-nolibm (Depends-on): Add fpieee.
35864         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35865         * modules/isnanl (Depends-on): Add fpieee.
35866
35867 2007-03-25  Bruno Haible  <bruno@clisp.org>
35868
35869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35870
35871 2007-03-25  Bruno Haible  <bruno@clisp.org>
35872
35873         Avoid test failures on IRIX 6.5.
35874         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35875         (main): Use it.
35876         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35877         macros.
35878         (main): Use them.
35879
35880 2007-03-25  Bruno Haible  <bruno@clisp.org>
35881
35882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35883         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35884         exists but doesn't work.
35885         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35886         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35888         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35889
35890 2007-03-25  Bruno Haible  <bruno@clisp.org>
35891
35892         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35893         returns inf. Needed on IRIX 6.5.
35894
35895 2007-03-25  Bruno Haible  <bruno@clisp.org>
35896
35897         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35898         (main): Use isnanl instead of x != x idiom.
35899         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35900
35901         * tests/test-frexp.c: Include isnan.h.
35902         (main): Use isnan instead of x != x idiom.
35903         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35904
35905 2007-03-25  Bruno Haible  <bruno@clisp.org>
35906
35907         * tests/test-frexp.c (NaN): New function/macro.
35908         (main): Use it instead of 0.0 / 0.0.
35909         * tests/test-isnan.c (NaN): New function/macro.
35910         (main): Use it instead of 0.0 / 0.0.
35911         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35912         (test_function): Use it instead of 0.0 / 0.0.
35913         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35914         (test_function): Use it instead of 0.0 / 0.0.
35915         * tests/test-snprintf-posix.h (NaN): New function/macro.
35916         (test_function): Use it instead of 0.0 / 0.0.
35917         * tests/test-sprintf-posix.h (NaN): New function/macro.
35918         (test_function): Use it instead of 0.0 / 0.0.
35919         * tests/test-fprintf-posix.h (NaN): New function/macro.
35920         (test_function): Use it instead of 0.0 / 0.0.
35921         * tests/test-printf-posix.h (NaN): New function/macro.
35922         (test_function): Use it instead of 0.0 / 0.0.
35923
35924         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35925
35926 2007-03-25  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35929
35930 2007-03-25  Bruno Haible  <bruno@clisp.org>
35931
35932         * lib/regexec.c (merge_state_with_log): Make static.
35933
35934 2007-03-25  Bruno Haible  <bruno@clisp.org>
35935
35936         * lib/trigl.c (kernel_rem_pio2): Make static.
35937
35938 2007-03-25  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/sincosl.c (sincosl_table): Make static.
35941
35942 2007-03-25  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35945         if the compiler does not support C99.
35946
35947 2007-03-25  Bruno Haible  <bruno@clisp.org>
35948
35949         * modules/time (Makefile.am): Ensure all rule action lines start with a
35950         tab.
35951
35952 2007-03-24  Bruno Haible  <bruno@clisp.org>
35953
35954         * modules/tsearch-tests: New file.
35955         * tests/test-tsearch.sh: New file.
35956         * tests/test-tsearch.c: New file, mostly copied from glibc.
35957
35958         * modules/search-tests: New file.
35959         * tests/test-search.c: New file.
35960
35961         * modules/search: New file.
35962         * lib/search_.h: New file, incorporating lib/tsearch.h.
35963         * m4/search_h.m4: New file.
35964         * lib/tsearch.h: Remove file.
35965         * lib/tsearch.c: Include search.h instead of tsearch.h.
35966         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35967         HAVE_TSEARCH.
35968         * modules/tsearch (Files): Remove lib/tsearch.h.
35969         (Depends-on): Add search.
35970         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35971         (Include): Change tsearch.h into search.h.
35972
35973 2007-03-24  Bruno Haible  <bruno@clisp.org>
35974
35975         * modules/fpucw: New file.
35976         * lib/fpucw.h: New file.
35977         * lib/frexp.c: Include fpucw.h.
35978         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35979         (FUNC): Use them.
35980         * lib/printf-frexp.c: Include fpucw.h.
35981         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35982         (FUNC): Use them.
35983         * lib/vasnprintf.c: Include fpucw.h.
35984         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35985         'long double' calculations.
35986         * tests/test-frexpl.c: Include fpucw.h.
35987         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35988         * tests/test-printf-frexpl.c: Include fpucw.h.
35989         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35990         * modules/frexpl (Depends-on): Add fpucw.
35991         * modules/printf-frexpl (Depends-on): Likewise.
35992         * modules/fprintf-posix (Depends-on): Likewise.
35993         * modules/snprintf-posix (Depends-on): Likewise.
35994         * modules/sprintf-posix (Depends-on): Likewise.
35995         * modules/vasnprintf-posix (Depends-on): Likewise.
35996         * modules/vasprintf-posix (Depends-on): Likewise.
35997         * modules/vfprintf-posix (Depends-on): Likewise.
35998         * modules/vsnprintf-posix (Depends-on): Likewise.
35999         * modules/vsprintf-posix (Depends-on): Likewise.
36000         * modules/frexpl-tests (Depends-on): Likewise.
36001         * modules/printf-frexpl-tests (Depends-on): Likewise.
36002
36003 2007-03-24  Bruno Haible  <bruno@clisp.org>
36004
36005         * lib/float+.h: New file.
36006         * lib/isnan.c: Include float+.h.
36007         (SIZE): New macro.
36008         (FUNC): Compare only SIZE bytes of the value.
36009         * lib/vasnprintf.c: Include float+.h.
36010         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36011         SIZEOF_LDBL or SIZEOF_DBL bytes.
36012         * modules/isnan-nolibm (Files): Add lib/float+.h.
36013         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36014         * modules/isnanl (Files): Add lib/float+.h.
36015         * modules/vasnprintf (Files): Add lib/float+.h.
36016
36017 2007-03-24  Bruno Haible  <bruno@clisp.org>
36018
36019         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36020         include isnanl-nolibm.h.
36021
36022 2007-03-24  Bruno Haible  <bruno@clisp.org>
36023
36024         * tests/test-read-file.c (main): Don't produce spurious output for
36025         expected situations. Make the test fail if it encountered unexpected
36026         results.
36027
36028 2007-03-24  Bruno Haible  <bruno@clisp.org>
36029
36030         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36031         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36032
36033 2007-03-24  Bruno Haible  <bruno@clisp.org>
36034
36035         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36036
36037 2007-03-24  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36040         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36041
36042         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36043         * modules/utf8-ucs4: Turn into a symbolic link to module
36044         unistr/u8-mbtouc.
36045
36046         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36047         utf8-ucs4-unsafe.
36048         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36049         unistr/u8-mbtouc-unsafe.
36050
36051         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36052         * modules/utf16-ucs4: Turn into a symbolic link to module
36053         unistr/u16-mbtouc.
36054
36055         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36056         utf16-ucs4-unsafe.
36057         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36058         unistr/u16-mbtouc-unsafe.
36059
36060         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36061         * modules/ucs4-utf8: Turn into a symbolic link to module
36062         unistr/u8-ubtomb.
36063
36064         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36065         * modules/ucs4-utf16: Turn into a symbolic link to module
36066         unistr/u16-ubtomb.
36067
36068 2007-03-24  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36071         Enable the function only if HAVE_INLINE.
36072         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36073         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36074         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36075         Enable the function only if HAVE_INLINE.
36076         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36077         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36078         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36079         Enable the function only if HAVE_INLINE.
36080         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36081         Enable the function only if HAVE_INLINE.
36082         * modules/utf8-ucs4: Update.
36083         * modules/utf8-ucs4-unsafe: Update.
36084         * modules/utf16-ucs4: Update.
36085         * modules/utf16-ucs4-unsafe: Update.
36086         * modules/ucs4-utf8: Update.
36087         * modules/ucs4-utf16: Update.
36088
36089 2007-03-24  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/utf8-ucs4.h: Remove file.
36092         * lib/utf8-ucs4-unsafe.h: Remove file.
36093         * lib/utf16-ucs4.h: Remove file.
36094         * lib/utf16-ucs4-unsafe.h: Remove file.
36095         * lib/ucs4-utf8.h: Remove file.
36096         * lib/ucs4-utf16.h: Remove file.
36097         * lib/unistr.h: Include their previous contents.
36098         * m4/utf-ucs4.m4: Remove file.
36099         * m4/ucs4-utf.m4: Remove file.
36100         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36101         (Depends-on): Add unistr/base.
36102         (configure.ac): Remove gl_UTF_UCS4.
36103         (Makefile.am): Update.
36104         (Include): Change to unistr.h.
36105         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36106         (Depends-on): Add unistr/base.
36107         (configure.ac): Remove gl_UTF_UCS4.
36108         (Makefile.am): Update.
36109         (Include): Change to unistr.h.
36110         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36111         (Depends-on): Add unistr/base.
36112         (configure.ac): Remove gl_UTF_UCS4.
36113         (Makefile.am): Update.
36114         (Include): Change to unistr.h.
36115         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36116         (Depends-on): Add unistr/base.
36117         (configure.ac): Remove gl_UTF_UCS4.
36118         (Makefile.am): Update.
36119         (Include): Change to unistr.h.
36120         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36121         (Depends-on): Add unistr/base.
36122         (configure.ac): Remove gl_UCS4_UTF.
36123         (Makefile.am): Update.
36124         (Include): Change to unistr.h.
36125         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36126         (Depends-on): Add unistr/base.
36127         (configure.ac): Remove gl_UCS4_UTF.
36128         (Makefile.am): Update.
36129         (Include): Change to unistr.h.
36130         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36131         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36132         utf8-ucs4-unsafe.h.
36133         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36134         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36135         utf16-ucs4-unsafe.h.
36136         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36137         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36138         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36139         * lib/unistr/u8-strchr.c: Likewise.
36140         * lib/unistr/u8-strrchr.c: Likewise.
36141         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36142         * lib/unistr/u16-strchr.c: Likewise.
36143         * lib/unistr/u16-strrchr.c: Likewise.
36144         * lib/striconveh.c: Update.
36145         * lib/linebreak.c: Update.
36146
36147 2007-03-24  Bruno Haible  <bruno@clisp.org>
36148
36149         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36150         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36151
36152 2007-03-22  Bruno Haible  <bruno@clisp.org>
36153
36154         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36155
36156 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36157
36158         * MODULES.html.sh (File system functions): New module write-any-file.
36159         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36160         * m4/write-any-file.m4: New files.
36161
36162 2007-03-23  Eric Blake  <ebb9@byu.net>
36163
36164         * gnulib-tool: Rearrange space-tab sequences, since some editors
36165         like to eat them.
36166
36167 2007-03-23  Eric Blake  <ebb9@byu.net>
36168
36169         * lib/version-etc.c (version_etc_va): Update license wording to
36170         be more concise.  Recommended by Richard Stallman.
36171
36172 2007-03-22  Bruno Haible  <bruno@clisp.org>
36173
36174         * lib/poll.c (MSG_PEEK): New fallback definition.
36175
36176 2007-03-22  Bruno Haible  <bruno@clisp.org>
36177
36178         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36179         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36180         (main): Update.
36181         Fixes a compilation error on BeOS.
36182
36183 2007-03-22  Bruno Haible  <bruno@clisp.org>
36184
36185         * modules/frexpl-tests: New file.
36186         * tests/test-frexpl.c: New file.
36187
36188         * modules/frexpl: New file.
36189         * m4/frexpl.m4: New file.
36190         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36191         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36193         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36194         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36195         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36196
36197 2007-03-22  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/frexpl.c: Share code with lib/frexp.c.
36200         * modules/mathl (Files): Add lib/frexp.c.
36201         (Depends-on): Add isnanl-nolibm.
36202
36203 2007-03-22  Bruno Haible  <bruno@clisp.org>
36204
36205         * modules/printf-frexp (Files): Add m4/frexp.m4.
36206         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36207         only if the found frexp function actually works.
36208
36209 2007-03-22  Bruno Haible  <bruno@clisp.org>
36210
36211         * lib/frexp.c: Remove older implementation that uses divisions.
36212
36213 2007-03-21  Bruno Haible  <bruno@clisp.org>
36214
36215         * modules/frexp-tests: New file.
36216         * tests/test-frexp.c: New file.
36217
36218         * modules/frexp: New file.
36219         * lib/frexp.c: New file.
36220         * m4/frexp.m4: New file.
36221         * lib/math_.h (frexp): New declaration.
36222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36223         REPLACE_FREXP.
36224         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36225
36226 2007-03-21  Bruno Haible  <bruno@clisp.org>
36227
36228         * modules/isnanl-tests: New file.
36229         * tests/test-isnanl.c: New file.
36230
36231         * modules/isnanl: New file.
36232         * lib/isnanl.h: New file.
36233         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36234         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36235         gl_FUNC_ISNANL_WORKS.
36236         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36237         New macros.
36238
36239 2007-03-21  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36242         lib/isnanl.h.
36243         (Include): Update.
36244         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36245         * lib/vasnprintf.c: Update.
36246         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36247         tests/test-isnanl.h, remove tests/test-isnanl.c.
36248         (Makefile.am): Update.
36249         * tests/test-isnanl-nolibm.c: New file.
36250         * tests/test-isnanl.h: New file.
36251         * tests/test-isnanl.c: Remove file.
36252
36253 2007-03-21  Jim Meyering  <jim@meyering.net>
36254
36255         When trying to open ".", treat ESTALE like EACCES.
36256         * lib/savewd.c (savewd_save): Resort to forking not just upon
36257         failure with EACCES, but also when errno is ESTALE.
36258
36259 2007-03-20  Bruno Haible  <bruno@clisp.org>
36260
36261         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36262         Needed on AIX 5.1. Reported by Matthew Woehlke.
36263
36264 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36265
36266         Suggestions by Bruno Haible:
36267         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36268         our own.
36269         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36270         * modules/acl (Depends-on): Add gettext.
36271
36272 2007-03-19  Bruno Haible  <bruno@clisp.org>
36273
36274         * modules/iconvme: Remove file.
36275         * lib/iconvme.h: Remove file.
36276         * lib/iconvme.c: Remove file.
36277         * m4/iconvme.m4: Remove file.
36278
36279 2007-03-19  Bruno Haible  <bruno@clisp.org>
36280
36281         * doc/relocatable-maint.texi: Break long shell script line.
36282         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36283
36284 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36285
36286         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36287         handle file_has_acl.
36288         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36289         * lib/acl.c: Move header inclusions and related macro defns into
36290         lib/acl-internal.h.
36291         (S_ISLNK): Remove defn, since that's now done for us.
36292         (file_has_acl): Move to lib/file-has-acl.c.
36293         Call acl_trivial if available.  This is the crucial part of the fix.
36294         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36295         shared within the library.  Rewrite a bit, partly to make it compatible
36296         with the GNU coding style.
36297         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36298         Remove unnecessary double-quotes.
36299         Don't test for acl_to_text; the build will catch that.
36300         Replace acl_entries if it doesn't exist and it is needed.
36301         Check for -lsec and acl_trivial (as used on Solaris 10).
36302         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36303         lib/file-has-acl.c.
36304         (Depends-on): Add sys_stat, for S_ISLNK.
36305
36306 2007-03-19  Ben Pfaff  <blp@gnu.org>
36307
36308         * doc/gnulib.texi: Fix typos.
36309         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36310
36311 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36312
36313         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36314         If size is zero here, buf must be zero.
36315
36316 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36317
36318         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36319         <bruno@clisp.org>.
36320
36321 2007-03-18  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36324         Suggested by Eric Blake.
36325
36326 2007-03-18  Ben Pfaff  <blp@gnu.org>
36327
36328         * doc/relocatable.texi: Recommend using as prefix a directory
36329         that does not exist and will never be created.  Based on
36330         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36331         and others.
36332
36333 2007-03-17  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/fchownat.c: Include lchown.h.
36336
36337 2007-03-17  Bruno Haible  <bruno@clisp.org>
36338
36339         Fix endless loop when the given allocated size was > INT_MAX.
36340         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36341         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36342         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36343         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36344         * lib/sprintf.c (sprintf): Likewise.
36345
36346 2007-03-17  Bruno Haible  <bruno@clisp.org>
36347
36348         * tests/test-argp-2.sh (func_compare): Output a context diff.
36349
36350 2007-03-17  Bruno Haible  <bruno@clisp.org>
36351
36352         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36353         locale's decimal-point character.
36354
36355 2007-03-17  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36358         before comparing it. Needed because on some platforms (e.g. x86) a
36359         'long double' occupies less bytes than sizeof (long double).
36360
36361 2007-03-17  Bruno Haible  <bruno@clisp.org>
36362
36363         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36364         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36365         * tests/test-getaddrinfo.c (simple): Likewise.
36366         * tests/test-read-file.c (main): Likewise.
36367
36368 2007-03-17  Bruno Haible  <bruno@clisp.org>
36369
36370         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36371
36372 2007-03-17  Bruno Haible  <bruno@clisp.org>
36373
36374         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36375         unused variable.
36376
36377 2007-03-17  Bruno Haible  <bruno@clisp.org>
36378
36379         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36380         * tests/test-c-strncasecmp.c: Likewise.
36381
36382 2007-03-17  Bruno Haible  <bruno@clisp.org>
36383
36384         * modules/stdlib (Depends-on): Add unistd.
36385         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36386         Needed for MacOS X 10.3.
36387
36388 2007-03-17  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36391
36392 2007-03-17  Bruno Haible  <bruno@clisp.org>
36393
36394         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36395
36396 2007-03-17  Bruno Haible  <bruno@clisp.org>
36397
36398         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36399         to reflect files copied from gnulib (with or without modifications).
36400         Suggested by Jim Meyering.
36401
36402 2007-03-17  Eric Blake  <ebb9@byu.net>
36403
36404         * NEWS: Document stdlib change from 2007-02-18.
36405
36406 2007-03-17  Jim Meyering  <jim@meyering.net>
36407
36408         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36409         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36410         someone uses a name containing shell meta-characters.
36411         Reported by Alfred M. Szmidt.
36412
36413         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36414
36415 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36416
36417         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36418         and copy gettext configuration files only if configure.ac contains
36419         a use of AM_GNU_GETTEXT_VERSION.
36420
36421 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36422
36423         * build-aux/bootstrap (gnulib_name): New variable.
36424         (gnulib_tool_options): Use it.
36425
36426 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36427
36428         * tests/test-des.c: Use new namespace.
36429
36430 2007-03-15  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36433         Reported by James Youngman <jay@gnu.org>.
36434
36435 2007-03-15  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36438         declared prototype. Needed with cc on OSF/1 5.1.
36439
36440 2007-03-15  Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36443         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36444         (struct gl_list_implementation): Add dispose_fn argument to the
36445         'create_empty', 'create' methods.
36446         (struct gl_list_impl_base): Add field 'dispose_fn'.
36447         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36448         argument.
36449         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36450         dispose_fn argument.
36451         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36452         dispose_fn on the dropped values.
36453         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36454         dispose_fn argument.
36455         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36456         dropped values.
36457         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36458         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36459         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36460         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36461         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36462         argument.
36463         (gl_tree_list_free): Call dispose_fn on the dropped values.
36464         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36465         the dropped values.
36466         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36467         Add dispose_fn argument.
36468         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36469         Call dispose_fn on the dropped values.
36470         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36471         Add dispose_fn argument.
36472         (gl_sublist_create): Initialize the 'dispose_fn' field.
36473         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36474         * tests/test-array_list.c (main): Update.
36475         * tests/test-carray_list.c (main): Update.
36476         * tests/test-avltree_list.c (main): Update.
36477         * tests/test-rbtree_list.c (main): Update.
36478         * tests/test-avltreehash_list.c (main): Update.
36479         * tests/test-rbtreehash_list.c (main): Update.
36480         * tests/test-linked_list.c (main): Update.
36481         * tests/test-linkedhash_list.c (main): Update.
36482         * tests/test-array_oset.c (main): Update.
36483
36484 2007-03-15  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36487         (gl_oset_create_empty): Add dispose_fn argument.
36488         (struct gl_oset_implementation): Add dispose_fn argument to
36489         'create_empty' method.
36490         (struct gl_oset_impl_base): Add dispose_fn field.
36491         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36492         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36493         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36494         values.
36495         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36496         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36497         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36498         dropped value.
36499         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36500         dropped value.
36501         * tests/test-array_oset.c (main): Update.
36502         * tests/test-avltree_oset.c (main): Update.
36503         * tests/test-rbtree_oset.c (main): Update.
36504         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36505
36506 2007-03-13  Bruno Haible  <bruno@clisp.org>
36507
36508         * tests/test-stdbool.c (i): Update after last patch.
36509
36510 2007-03-12  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36513         the iswprint macro. Needed on Solaris 2.5.1.
36514
36515 2007-03-12  Bruno Haible  <bruno@clisp.org>
36516
36517         * tests/test-printf-frexp.c (main): Declare x as volatile.
36518
36519 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36520
36521         * doc/gnulib.texi (Build robot for gnulib): New section.
36522
36523 2007-03-12  Jim Meyering  <jim@meyering.net>
36524
36525         * build-aux/bootstrap: New file.
36526         * build-aux/bootstrap.conf: New file, from coreutils.
36527
36528 2007-03-11  Bruno Haible  <bruno@clisp.org>
36529
36530         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36531
36532 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36533
36534         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36535         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36536         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36537
36538 2007-03-11  Bruno Haible  <bruno@clisp.org>
36539
36540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36541         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36542
36543 2007-03-11  Bruno Haible  <bruno@clisp.org>
36544
36545         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36546         formula. Needed for SunPRO C 5.0.
36547
36548 2007-03-11  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/long-options (Depends-on): Add getopt.
36551
36552 2007-03-11  Bruno Haible  <bruno@clisp.org>
36553
36554         * modules/modechange (Depends-on): Add stdbool.
36555
36556 2007-03-11  Bruno Haible  <bruno@clisp.org>
36557
36558         * modules/i-ring (Depends-on): Add stdbool.
36559
36560 2007-03-11  Bruno Haible  <bruno@clisp.org>
36561
36562         * modules/gc-des (Depends-on): Add stdbool.
36563
36564 2007-03-11  Bruno Haible  <bruno@clisp.org>
36565
36566         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36567
36568 2007-03-11  Bruno Haible  <bruno@clisp.org>
36569
36570         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36571
36572 2007-03-11  Bruno Haible  <bruno@clisp.org>
36573
36574         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36575
36576 2007-03-11  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/vasnprintf.c (sprintf): Undefine.
36579
36580 2007-03-11  Bruno Haible  <bruno@clisp.org>
36581
36582         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36583         initializers in SunPRO C and Compaq C compilers.
36584
36585 2007-03-11  Bruno Haible  <bruno@clisp.org>
36586
36587         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36588         decrementing code ANSI C compliant.
36589
36590 2007-03-11  Bruno Haible  <bruno@clisp.org>
36591
36592         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36593         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36594
36595 2007-03-11  Bruno Haible  <bruno@clisp.org>
36596
36597         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36598         <stdbool.h> substitute doesn't pass.
36599
36600 2007-03-11  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36603
36604 2007-03-11  Bruno Haible  <bruno@clisp.org>
36605
36606         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36607         script, for submission to autobuild.josefsson.org.
36608
36609 2007-03-10  Bruno Haible  <bruno@clisp.org>
36610
36611         * modules/canonicalize-lgpl-tests: New file.
36612         * tests/test-canonicalize-lgpl.sh: New file.
36613         * tests/test-canonicalize-lgpl.c: New file.
36614
36615         * modules/c-strcase-tests: New file.
36616         * tests/test-c-strcase.sh: New file.
36617         * tests/test-c-strcasecmp.c: New file.
36618         * tests/test-c-strncasecmp.c: New file.
36619
36620         * modules/atexit-tests: New file.
36621         * tests/test-atexit.sh: New file.
36622         * tests/test-atexit.c: New file.
36623
36624 2007-03-10  Bruno Haible  <bruno@clisp.org>
36625
36626         * tests/test-binary-io.sh: Use temporary filenames that are not so
36627         likely to clash with those of other tests (in a parallel make).
36628         * tests/test-binary-io.c: Likewise.
36629
36630 2007-03-10  Bruno Haible  <bruno@clisp.org>
36631
36632         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36633         fallback; use #error instead.
36634         Suggested by Simon Josefsson.
36635
36636 2007-03-10  Bruno Haible  <bruno@clisp.org>
36637
36638         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36639         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36640         first and the last.
36641
36642 2007-03-10  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36645
36646 2007-03-10  Bruno Haible  <bruno@clisp.org>
36647
36648         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36649         "make distcheck".
36650         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36651         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36652         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36653
36654 2007-03-10  Bruno Haible  <bruno@clisp.org>
36655
36656         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36657         variable.
36658         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36659         variable.
36660
36661 2007-03-09  Eric Blake  <ebb9@byu.net>
36662         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36663
36664         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36665         types are not being provided by gnulib.
36666         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36667         types are supported.
36668
36669 2007-03-10  Bruno Haible  <bruno@clisp.org>
36670
36671         * lib/stdio_.h (__attribute__): New macro.
36672         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36673         vsprintf): Specify __attribute__ __format__ for GCC.
36674         Suggested by Eric Blake.
36675
36676 2007-03-09  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/printf-posix-tests: New file.
36679         * tests/test-printf-posix.sh: New file.
36680         * tests/test-printf-posix.c: New file.
36681
36682         * modules/printf-posix: New file.
36683         * lib/printf.c: New file.
36684         * m4/printf-posix-rpl.m4: New file.
36685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36686         REPLACE_PRINTF.
36687         * lib/stdio_.h (printf): New declaration.
36688         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36689         ____strfmon____): New macros.
36690         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36691         REPLACE_PRINTF.
36692
36693 2007-03-09  Bruno Haible  <bruno@clisp.org>
36694
36695         * tests/test-vasnprintf-posix2.sh: New file.
36696         * tests/test-vasnprintf-posix2.c: New file.
36697         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36698         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36699         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36700
36701         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36702         a locale dependent decimal point, rather than always '.'.
36703
36704 2007-03-09  Eric Blake  <ebb9@byu.net>
36705
36706         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36707         spite of platforms like Tandem/NSK that define it to -1.
36708
36709 2007-03-08  Bruno Haible  <bruno@clisp.org>
36710
36711         * modules/vprintf-posix-tests: New file.
36712         * tests/test-vprintf-posix.sh: New file.
36713         * tests/test-vprintf-posix.c: New file.
36714         * tests/test-printf-posix.h: New file.
36715
36716         * modules/vprintf-posix: New file.
36717         * lib/vprintf.c: New file.
36718         * m4/vprintf-posix.m4: New file.
36719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36720         REPLACE_VPRINTF.
36721         * lib/stdio_.h (vprintf): New declaration.
36722         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36723         REPLACE_VPRINTF.
36724
36725 2007-03-08  Bruno Haible  <bruno@clisp.org>
36726
36727         * modules/fprintf-posix-tests: New file.
36728         * tests/test-fprintf-posix.sh: New file.
36729         * tests/test-fprintf-posix.c: New file.
36730
36731         * modules/fprintf-posix: New file.
36732         * lib/fprintf.c: New file.
36733         * m4/fprintf-posix.m4: New file.
36734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36735         REPLACE_FPRINTF.
36736         * lib/stdio_.h (fprintf): New declaration.
36737         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36738         REPLACE_FPRINTF.
36739
36740 2007-03-08  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/vfprintf-posix-tests: New file.
36743         * tests/test-vfprintf-posix.sh: New file.
36744         * tests/test-vfprintf-posix.c: New file.
36745         * tests/test-fprintf-posix.h: New file.
36746         * tests/test-fprintf-posix.out: New file.
36747
36748         * modules/vfprintf-posix: New file.
36749         * lib/vfprintf.c: New file.
36750         * m4/vfprintf-posix.m4: New file.
36751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36752         REPLACE_VFPRINTF.
36753         * lib/stdio_.h (vfprintf): New declaration.
36754         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36755         REPLACE_VFPRINTF.
36756
36757 2007-03-08  Bruno Haible  <bruno@clisp.org>
36758
36759         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36760
36761 2007-03-08  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36764         instead of 'expr' invocations.
36765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36770         Suggested by Paul Eggert.
36771
36772 2007-03-08  Bruno Haible  <bruno@clisp.org>
36773
36774         * modules/fseterr-tests: New file.
36775         * tests/test-fseterr.c: New file.
36776
36777         * modules/fseterr: New file.
36778         * lib/fseterr.h: New file.
36779         * lib/fseterr.c: New file.
36780
36781 2007-03-08  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36784         * lib/getopt_.h: Likewise.
36785         * lib/mbswidth.h: Likewise.
36786         * lib/setenv.h: Likewise.
36787         * lib/vasnprintf.h: Likewise.
36788         * lib/vasprintf.h: Likewise.
36789         * lib/verror.h: Likewise.
36790         * lib/xsetenv.h: Likewise.
36791         * lib/xvasprintf.h: Likewise.
36792
36793 2007-03-08  Jim Meyering  <jim@meyering.net>
36794
36795         * users.txt: Add parted.
36796
36797         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36798
36799 2007-03-07  Bruno Haible  <bruno@clisp.org>
36800
36801         * m4/printf.m4: Make the shell script snippets copy&pastable.
36802
36803 2007-03-02  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/netinet_in_.h: New file.
36806         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36807         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36808         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36809         (Depends-on): Add absolute-header.
36810         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36811         into netinet/in.h.
36812
36813 2007-03-03  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/sys_select_.h: New file.
36816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36817         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36818         * modules/sys_select (Files): Add lib/sys_select_.h.
36819         (Depends-on): Add absolute-header.
36820         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36821         into sys/select.h.
36822
36823 2007-03-02  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36826         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36827         values.
36828         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36829         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36830         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36831         * modules/sys_socket (Depends-on): Add absolute-header.
36832         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36833         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36834         (Include): Remove requirement of inclusion of <sys/types.h>.
36835
36836 2007-03-02  Bruno Haible  <bruno@clisp.org>
36837
36838         * lib/byteswap_.h (bswap_32): Fix formula.
36839
36840 2007-03-06  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/sprintf-posix-tests: New file.
36843         * tests/test-sprintf-posix.c: New file.
36844
36845         * modules/sprintf-posix: New file.
36846         * lib/sprintf.c: New file.
36847         * m4/sprintf-posix.m4: New file.
36848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36849         REPLACE_SPRINTF.
36850         * lib/stdio_.h (sprintf): New declaration.
36851         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36852         REPLACE_SPRINTF.
36853
36854 2007-03-06  Bruno Haible  <bruno@clisp.org>
36855
36856         * modules/vsprintf-posix-tests: New file.
36857         * tests/test-vsprintf-posix.c: New file.
36858         * tests/test-sprintf-posix.h: New file.
36859
36860         * modules/vsprintf-posix: New file.
36861         * lib/vsprintf.c: New file.
36862         * m4/vsprintf-posix.m4: New file.
36863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36864         REPLACE_VSPRINTF.
36865         * lib/stdio_.h (vsprintf): New declaration.
36866         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36867         REPLACE_VSPRINTF.
36868
36869 2007-03-06  Bruno Haible  <bruno@clisp.org>
36870
36871         * modules/vsnprintf (Depend-on): Remove minmax.
36872
36873 2007-03-06  Bruno Haible  <bruno@clisp.org>
36874
36875         * modules/snprintf-posix-tests: New file.
36876         * tests/test-snprintf-posix.c: New file.
36877
36878         * modules/snprintf-posix: New file.
36879         * m4/snprintf-posix.m4: New file.
36880         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36881         gl_FUNC_SNPRINTF.
36882         (gl_FUNC_SNPRINTF): Invoke it.
36883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36884         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36885         is set.
36886         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36887
36888 2007-03-06  Bruno Haible  <bruno@clisp.org>
36889
36890         * modules/vsnprintf-posix-tests: New file.
36891         * tests/test-vsnprintf-posix.c: New file.
36892         * tests/test-snprintf-posix.h: New file.
36893
36894         * modules/vsnprintf-posix: New file.
36895         * m4/vsnprintf-posix.m4: New file.
36896         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36897         gl_FUNC_VSNPRINTF.
36898         (gl_FUNC_VSNPRINTF): Invoke it.
36899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36900         * lib/stdio_.h (vsnprintf): Define as a replacement if
36901         REPLACE_VSNPRINTF is set.
36902         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36903
36904 2007-03-06  Bruno Haible  <bruno@clisp.org>
36905
36906         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36908
36909 2007-03-06  Bruno Haible  <bruno@clisp.org>
36910
36911         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36912         (asinl): Declare also if HAVE_DECL_ASINL is set.
36913         (atanl): Declare also if HAVE_DECL_ATANL is set.
36914         (ceill): Declare also if HAVE_DECL_CEILL is set.
36915         (cosl): Declare also if HAVE_DECL_COSL is set.
36916         (expl): Declare also if HAVE_DECL_EXPL is set.
36917         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36918         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36919         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36920         (logl): Declare also if HAVE_DECL_LOGL is set.
36921         (sinl): Declare also if HAVE_DECL_SINL is set.
36922         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36923         (tanl): Declare also if HAVE_DECL_TANL is set.
36924         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36927         declaration of frexpl, ldexpl.
36928         * modules/printf-frexpl (Depends-on): Add math.
36929         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36930
36931 2007-03-05  Bruno Haible  <bruno@clisp.org>
36932
36933         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36934         frexpl and ldexpl are declared.
36935         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36936
36937 2007-03-05  Bruno Haible  <bruno@clisp.org>
36938
36939         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36940         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36941
36942 2007-03-05  Bruno Haible  <bruno@clisp.org>
36943
36944         * lib/stdio_.h: Include <stddef.h>.
36945
36946 2007-03-05  Bruno Haible  <bruno@clisp.org>
36947
36948         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36949
36950 2007-03-05  Bruno Haible  <bruno@clisp.org>
36951
36952         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36953         NetBSD 4, from Ralf Wildenhues.
36954
36955 2007-03-04  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/vasprintf.h: Update #if logic for the case when the functions
36958         exist but are overridden.
36959
36960 2007-03-04  Bruno Haible  <bruno@clisp.org>
36961
36962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36963         implementations: glibc-2.4 and MacOS X 10.3.
36964         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36965         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36966         * tests/test-vasprintf-posix.c (test_function): Likewise.
36967
36968 2007-03-04  Bruno Haible  <bruno@clisp.org>
36969
36970         * modules/vasprintf-posix-tests: New file.
36971         * tests/test-vasprintf-posix.c: New file.
36972
36973         * modules/vasprintf-posix: New file.
36974         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36975         defined.
36976         * m4/vasprintf-posix.m4: New file.
36977         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36978         gl_FUNC_VASPRINTF.
36979         (gl_FUNC_VASPRINTF): Invoke it.
36980         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36981         here.
36982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36983
36984 2007-03-04  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36987         REPLACE_GETTIMEOFDAY.
36988         * modules/sys_time (Makefile.am): Likewise.
36989         * m4/sys_time_h.m4: Likewise.
36990         * m4/gettimeofday.m4: Likewise.
36991
36992 2007-03-04  Bruno Haible  <bruno@clisp.org>
36993
36994         * modules/vasnprintf-posix-tests: New file.
36995         * tests/test-vasnprintf-posix.c: New file.
36996
36997         * modules/vasnprintf-posix: New file.
36998         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36999         printf-frexpl.h.
37000         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37001         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37002         REPLACE_VASNPRINTF is defined.
37003         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37004         gl_FUNC_VASNPRINTF.
37005         (gl_FUNC_VASNPRINTF): Invoke it.
37006         * m4/vasnprintf-posix.m4: New file.
37007         * m4/printf.m4: New file.
37008
37009 2007-03-04  Bruno Haible  <bruno@clisp.org>
37010
37011         Compile progreloc.c only if --enable-relocatable is specified.
37012         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37013         if --enable-relocatable was specified.
37014         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37015         lib_SOURCES.
37016
37017 2007-03-04  Jim Meyering  <jim@meyering.net>
37018
37019         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37020         Use it consistently, rather than enumerating errno constants.
37021
37022 2007-03-04  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/xvasprintf-tests: New file.
37025         * tests/test-xvasprintf.c: New file.
37026
37027         * modules/vasprintf-tests: New file.
37028         * tests/test-vasprintf.c: New file.
37029
37030         * modules/vasnprintf-tests: New file.
37031         * tests/test-vasnprintf.c: New file.
37032
37033         * modules/vsnprintf-tests: New file.
37034         * tests/test-vsnprintf.c: New file.
37035
37036         * modules/snprintf-tests: New file.
37037         * tests/test-snprintf.c: New file.
37038
37039 2007-03-04  Bruno Haible  <bruno@clisp.org>
37040
37041         Compile relocatable.c only if --enable-relocatable is specified.
37042         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37043         gl_RELOCATABLE_LIBRARY.
37044         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37045         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37046         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37047         gl_RELOCATABLE_LIBRARY.
37048         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37049         (Makefile.am): Remove lib_SOURCES.
37050         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37051         gl_RELOCATABLE_LIBRARY.
37052         (Makefile.am): Remove lib_SOURCES.
37053         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37054         always.
37055         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37056         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37057
37058 2007-03-04  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/argmatch-tests: New file.
37061         * tests/test-argmatch.c: New file.
37062
37063         * tests/test-allocsa.c (main): Halve the number of loop runs.
37064
37065         * modules/alloca-opt-tests: New file.
37066         * tests/test-alloca-opt.c: New file.
37067
37068 2007-03-04  Jim Meyering  <jim@meyering.net>
37069
37070         Work around difference between Linux ACLs and Solaris 10 ZFS.
37071         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37072         for EINVAL.
37073
37074 2007-03-03  Bruno Haible  <bruno@clisp.org>
37075
37076         * modules/relocatable-prog (Depends-on): Add back progreloc's
37077         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37078
37079 2007-03-03  Bruno Haible  <bruno@clisp.org>
37080
37081         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37082         * modules/relocatable-lib: New file.
37083
37084 2007-03-03  Bruno Haible  <bruno@clisp.org>
37085
37086         * modules/relocatable-prog: Renamed from modules/relocatable.
37087         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37088
37089 2007-03-03  Bruno Haible  <bruno@clisp.org>
37090
37091         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37092         m4/relocatable-lib.m4.
37093         (Depends-on): Remove 'relocatable'.
37094         (configure.ac): Add gl_RELOCATABLE_NOP.
37095
37096 2007-03-03  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/relocatable-prog-wrapper: New file.
37099         * modules/relocatable (Depends-on): Add it. Remove all other
37100         dependencies except progname.
37101         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37102
37103         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37104         (gl_FUNC_STRERROR): Nop.
37105         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37106
37107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37108         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37109
37110         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37111         (gl_FUNC_READLINK): Update.
37112
37113         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37114
37115 2007-03-03  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37118         * modules/xreadlink (Depends-on): Add unistd.
37119         * modules/xreadlink-with-size (Depends-on): Likewise.
37120
37121 2007-03-03  Bruno Haible  <bruno@clisp.org>
37122
37123         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37124         extracted from gt_FUNC_SETENV.
37125         (gt_FUNC_SETENV): Remove macro.
37126         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37127         remove gt_FUNC_SETENV.
37128
37129 2007-03-03  Bruno Haible  <bruno@clisp.org>
37130
37131         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37132         ENABLE_RELOCATABLE here.
37133         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37134
37135 2007-03-03  Bruno Haible  <bruno@clisp.org>
37136
37137         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37138         * tests/test-rbtreehash_list.c: Include progname.h.
37139         (main): Call set_program_name.
37140
37141         * modules/rbtree-oset-tests (Depends-on): Add progname.
37142         * tests/test-rbtree_oset.c: Include progname.h.
37143         (main): Call set_program_name.
37144
37145         * modules/rbtree-list-tests (Depends-on): Add progname.
37146         * tests/test-rbtree_list.c: Include progname.h.
37147         (main): Call set_program_name.
37148
37149         * modules/linked-list-tests (Depends-on): Add progname.
37150         * tests/test-linked_list.c: Include progname.h.
37151         (main): Call set_program_name.
37152
37153 2007-03-03  Bruno Haible  <bruno@clisp.org>
37154
37155         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37156         All uses of __restrict changed to _Restrict_.
37157         * lib/glob_.h (__restrict): Remove macro.
37158
37159 2007-03-02  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/gettext (configure.ac): Require gettext infrastructure
37162         from version 0.16.1.
37163
37164 2007-03-02  Bruno Haible  <bruno@clisp.org>
37165
37166         * modules/linkedhash-list-tests (Depends-on): Add progname.
37167         * tests/test-linkedhash_list.c: Include progname.h.
37168         (main): Call set_program_name.
37169
37170         * modules/carray-list-tests (Depends-on): Add progname.
37171         * tests/test-carray_list.c: Include progname.h.
37172         (main): Call set_program_name.
37173
37174         * modules/avltreehash-list-tests (Depends-on): Add progname.
37175         * tests/test-avltreehash_list.c: Include progname.h.
37176         (main): Call set_program_name.
37177
37178         * modules/avltree-oset-tests (Depends-on): Add progname.
37179         * tests/test-avltree_oset.c: Include progname.h.
37180         (main): Call set_program_name.
37181
37182         * modules/avltree-list-tests (Depends-on): Add progname.
37183         * tests/test-avltree_list.c: Include progname.h.
37184         (main): Call set_program_name.
37185
37186         * modules/array-oset-tests (Depends-on): Add progname.
37187         * tests/test-array_oset.c: Include progname.h.
37188         (main): Call set_program_name.
37189
37190         * modules/array-list-tests (Depends-on): Add progname.
37191         * tests/test-array_list.c: Include progname.h.
37192         (main): Call set_program_name.
37193
37194         * modules/argp-tests (Depends-on): Add progname.
37195         * tests/test-argp.c: Include argp.h first. Include progname.h.
37196         (main): Call set_program_name.
37197
37198 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37199
37200         * doc/gnulib-tool.texi (Initial import): Reword description of
37201         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37202         limited effect even if defined after the first system include.
37203
37204 2007-03-01  Bruno Haible  <bruno@clisp.org>
37205
37206         * build-aux/config.libpath: Update to libtool-1.5.22.
37207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37208
37209 2007-03-01  Bruno Haible  <bruno@clisp.org>
37210
37211         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37212         foo_CFLAGS.
37213         Reported by Ralf Wildenhues.
37214
37215 2007-03-01  Bruno Haible  <bruno@clisp.org>
37216
37217         * build-aux/install-reloc: Remove object files left over by some
37218         compilers.
37219         Reported by Ralf Wildenhues.
37220
37221 2007-03-01  Bruno Haible  <bruno@clisp.org>
37222
37223         * build-aux/install-reloc: Break long lines.
37224
37225 2007-03-01  Bruno Haible  <bruno@clisp.org>
37226
37227         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37228         Reported by Ralf Wildenhues.
37229
37230 2007-03-01  Bruno Haible  <bruno@clisp.org>
37231
37232         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37233         include ordering constraints.
37234
37235 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37236
37237         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37239         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37240         as another example.
37241         * lib/time_.h: Fix misspelling.
37242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37243         Require gl_HEADER_TIME_H_DEFAULTS.
37244         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37245         * m4/time_r.m4 (gl_TIME_R): Likewise.
37246         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37247
37248 2007-03-01  Bruno Haible  <bruno@clisp.org>
37249
37250         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37251         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37252
37253 2007-03-01  Jim Meyering  <jim@meyering.net>
37254
37255         * modules/xreadlink (Maintainer): Add my name.
37256         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37257
37258 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37259             Bruno Haible  <bruno@clisp.org>
37260
37261         * build-aux/install-reloc: Compile also c-ctype.c.
37262         * build-aux/relocatable.sh.in: New file.
37263         * doc/relocatable.texi: New file.
37264         * doc/relocatable-maint.texi: New file.
37265         * doc/gnulib.texi: Include relocatable-maint.texi.
37266         * lib/progreloc.c: Include unistd.h unconditionally.
37267         * lib/relocwrapper.c: Include unistd.h unconditionally.
37268         Include c-ctype.h.
37269         (add_dotbin): Use c_tolower.
37270         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37271         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37272         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37273         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37274         to m4/relocatable-lib.m4.
37275         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37276         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37277         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37278         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37279         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37280         * modules/relocatable: New file.
37281         * modules/relocatable-lib: New file.
37282         * modules/relocatable-script: New file.
37283
37284 2007-02-28  Bruno Haible  <bruno@clisp.org>
37285
37286         Import --enable-relocatable infrastructure.
37287         * build-aux/config.libpath: New file, from GNU gettext.
37288         * build-aux/install-reloc: New file, from GNU gettext.
37289         * build-aux/reloc-ldflags: New file, from GNU gettext.
37290         * lib/relocatable.h: New file, from GNU gettext.
37291         * lib/relocatable.c: New file, from GNU gettext.
37292         * lib/relocwrapper.c: New file, from GNU gettext.
37293         * m4/relocatable.m4: New file, from GNU gettext.
37294
37295 2007-02-28  Bruno Haible  <bruno@clisp.org>
37296
37297         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37298
37299         * modules/xreadlink: New file, from GNU gettext with modifications.
37300         * lib/xreadlink.c: New file, from GNU gettext.
37301         * lib/xreadlink.h: Add comments.
37302         (xreadlink): New declaration.
37303
37304         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37305         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37306         lib/xreadlink-with-size.c.
37307         (configure.ac): Remove gl_XREADLINK invocation.
37308         (Makefile.am): Augment lib_SOURCES.
37309         * m4/xreadlink.m4: Remove file.
37310         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37311         (xreadlink_with_size): Renamed from xreadink.
37312         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37313         * modules/canonicalize (Depends-on): Replace xreadlink with
37314         xreadlink-with-size.
37315         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37316
37317 2007-02-25  Jim Meyering  <jim@meyering.net>
37318
37319         * build-aux/announce-gen: When complaining about excess arguments,
37320         list them.
37321
37322 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37323
37324         * README: Document signed integer overflow situation more
37325         accurately.
37326
37327 2007-02-25  Bruno Haible  <bruno@clisp.org>
37328
37329         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37330         'a' or 'A' conversion.
37331
37332 2007-02-25  Bruno Haible  <bruno@clisp.org>
37333
37334         * modules/filename: Renamed from modules/pathname.
37335         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37336         lib/concatpath.c with lib/concat-filename.c.
37337         (Makefile.am): Update.
37338         (Include): Replace pathname.h with filename.h.
37339         * lib/filename.h: Renamed from lib/pathname.h.
37340         (concatenated_filename): Renamed from concatenated_pathname.
37341         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37342         (concatenated_filename): Renamed from concatenated_pathname.
37343         * lib/findprog.c: Include filename.h instead of pathname.h.
37344         (find_in_path): Update.
37345         * lib/javacomp.c: Include filename.h instead of pathname.h.
37346         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37347         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37348         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37349         is_oldgcj_14_13_usable, is_javac_usable): Update.
37350         * lib/javaexec.c: Include filename.h instead of pathname.h.
37351         (execute_java_class): Update.
37352         * modules/findprog: Update.
37353         * modules/javacomp: Update.
37354         * modules/javaexec: Update.
37355         * MODULES.html.sh (File system functions): Add 'filename', remove
37356         'pathname'.
37357
37358 2007-02-25  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/printf-frexpl-tests: New file.
37361         * tests/test-printf-frexpl.c: New file.
37362
37363         * modules/printf-frexpl: New file.
37364         * lib/printf-frexpl.h: New file.
37365         * lib/printf-frexpl.c: New file.
37366         * m4/printf-frexpl.m4: New file.
37367
37368 2007-02-25  Bruno Haible  <bruno@clisp.org>
37369
37370         * modules/printf-frexp-tests: New file.
37371         * tests/test-printf-frexp.c: New file.
37372
37373         * modules/printf-frexp: New file.
37374         * lib/printf-frexp.h: New file.
37375         * lib/printf-frexp.c: New file.
37376         * m4/printf-frexp.m4: New file.
37377
37378 2007-02-25  Bruno Haible  <bruno@clisp.org>
37379
37380         Assume automake >= 1.10 for the tests.
37381         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37382         * modules/arctwo-tests: Likewise.
37383         * modules/argp-tests: Likewise.
37384         * modules/avltree-list-tests: Likewise.
37385         * modules/avltree-oset-tests: Likewise.
37386         * modules/avltreehash-list-tests: Likewise.
37387         * modules/carray-list-tests: Likewise.
37388         * modules/crc-tests: Likewise.
37389         * modules/des-tests: Likewise.
37390         * modules/gc-arcfour-tests: Likewise.
37391         * modules/gc-arctwo-tests: Likewise.
37392         * modules/gc-des-tests: Likewise.
37393         * modules/gc-hmac-md5-tests: Likewise.
37394         * modules/gc-hmac-sha1-tests: Likewise.
37395         * modules/gc-md2-tests: Likewise.
37396         * modules/gc-md4-tests: Likewise.
37397         * modules/gc-md5-tests: Likewise.
37398         * modules/gc-pbkdf2-sha1-tests: Likewise.
37399         * modules/gc-rijndael-tests: Likewise.
37400         * modules/gc-sha1-tests: Likewise.
37401         * modules/gc-tests: Likewise.
37402         * modules/getaddrinfo-tests: Likewise.
37403         * modules/hmac-md5-tests: Likewise.
37404         * modules/hmac-sha1-tests: Likewise.
37405         * modules/linked-list-tests: Likewise.
37406         * modules/linkedhash-list-tests: Likewise.
37407         * modules/lock-tests: Likewise.
37408         * modules/md2-tests: Likewise.
37409         * modules/md4-tests: Likewise.
37410         * modules/md5-tests: Likewise.
37411         * modules/rbtree-list-tests: Likewise.
37412         * modules/rbtree-oset-tests: Likewise.
37413         * modules/rbtreehash-list-tests: Likewise.
37414         * modules/read-file-tests: Likewise.
37415         * modules/rijndael-tests: Likewise.
37416         * modules/stdint-tests: Likewise.
37417         * modules/tls-tests: Likewise.
37418
37419 2007-02-24  Bruno Haible  <bruno@clisp.org>
37420
37421         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37422         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37423         function; instead check whether isnan with a double argument links.
37424         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37425         function; instead check whether isnan with a 'long double' argument
37426         links.
37427         Reported by Eric Blake <ebb9@byu.net>.
37428
37429 2007-02-24  Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37432         defined.
37433         * lib/isnanl.c: Remove all code. Just include isnan.c.
37434         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37435
37436 2007-02-25  Jim Meyering  <jim@meyering.net>
37437
37438         Avoid conflicting types for 'unsetenv' on FreeBSD.
37439         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37440         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37441         in stdlib.h.
37442
37443 2007-02-24  Bruno Haible  <bruno@clisp.org>
37444
37445         * modules/isnanl-nolibm-tests: New file.
37446         * tests/test-isnanl.c: New file.
37447
37448         * modules/isnanl-nolibm: New file.
37449         * lib/isnanl.h: New file.
37450         * lib/isnanl.c: New file.
37451         * m4/isnanl.m4: New file.
37452
37453 2007-02-24  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/isnan-nolibm-tests: New file.
37456         * tests/test-isnan.c: New file.
37457
37458         * modules/isnan-nolibm: New file.
37459         * lib/isnan.h: New file.
37460         * lib/isnan.c: New file.
37461         * m4/isnan.m4: New file.
37462
37463 2007-02-24  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37466         assume that an exponent fits in 20 bits.
37467
37468 2007-02-24  Jim Meyering  <jim@meyering.net>
37469
37470         * m4/regex.m4: Update the description of the configure-time option,
37471         --without-included-regex, to state accurately what the defaults are,
37472         and perhaps to give people an idea why using this option is risky.
37473
37474 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37475
37476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37477         loops on small arguments.  This attempts to avoid the problem
37478         Bruno Haible reported for AIX 4.3.2 in
37479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37480
37481 2007-02-23  Bruno Haible  <bruno@clisp.org>
37482
37483         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37484         Needed for help2man.
37485
37486 2007-02-23  Karl Berry  <karl@gnu.org>
37487
37488         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37489         exists, foo.h should be cvs-ignored, not committed.
37490
37491 2007-02-23  Eric Blake  <ebb9@byu.net>
37492
37493         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37494         * lib/stat-time.h (includes): Likewise.
37495         * lib/utimecmp.c (includes): Likewise.
37496         * lib/utimens.h (includes): Likewise.
37497         * lib/getdate.y (includes): Also include "timespec.h" for use
37498         internal to the module.
37499         * modules/utimens (Depends-on): Revert yesterday's patch.
37500         * modules/nanosleep (Depends-on): Add missing dependency.
37501
37502 2007-02-22  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/glob.c: Don't include getlogin_r.h.
37505
37506 2007-02-22  Jim Meyering  <jim@meyering.net>
37507
37508         * modules/utimens (Depends-on): Add timespec, required for
37509         utimens.h's inclusion of timespec.h.
37510
37511 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37512
37513         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37514         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37515         Schwab in
37516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37517         I'll try to think of a better way to fix the Solaris problem.
37518
37519         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37520         like glibc; on Solaris 10, it fails with errno == EINVAL.
37521         POSIX says the behavior is unspecified if the first argument is NULL,
37522         so play it safe and never pass NULL to the system getcwd.
37523
37524 2007-02-21  Jim Meyering  <jim@meyering.net>
37525
37526         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37527         of gettimeofday.  It would conflict with the one now always
37528         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37529         an IRIX 6.5 build failure.
37530
37531 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37532
37533         Minor fixups to port to Solaris 10 with Sun C 5.8.
37534         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37535         * modules/getcwd (Depends-on): Add dirfd.
37536         * lib/putenv.c (putenv): #undef it.
37537         (rpl_putenv): New decl.
37538         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37539
37540 2007-02-20  Bruno Haible  <bruno@clisp.org>
37541
37542         * modules/stdio-tests: New file.
37543         * tests/test-stdio.c: New file.
37544
37545         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37546         (Depends-on): Add stdio.
37547         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37548         (Include): Use <stdio.h> instead of vsnprintf.h.
37549         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37550         HAVE_DECL_VSNPRINTF.
37551         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37552
37553         * modules/snprintf (Files): Remove lib/snprintf.h.
37554         (Depends-on): Add stdio.
37555         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37556         (Include): Use <stdio.h> instead of snprintf.h.
37557         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37558         HAVE_DECL_SNPRINTF.
37559         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37560         * lib/getaddrinfo.c: Likewise.
37561
37562         * modules/stdio: New file.
37563         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37564         * lib/snprintf.h: Remove file.
37565         * lib/vsnprintf.h: Remove file.
37566         * lib/.cppi-disable: Remove snprintf.h.
37567         * m4/stdio_h.m4: New file.
37568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37569
37570 2007-02-20  Jim Meyering  <jim@meyering.net>
37571
37572         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37573         used by e.g., mingw.  From Bruno Haible.
37574
37575 2007-02-19  Bruno Haible  <bruno@clisp.org>
37576
37577         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37578         warnings.
37579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37580
37581 2007-02-19  Bruno Haible  <bruno@clisp.org>
37582
37583         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37584         from mingw users.
37585
37586 2007-02-19  Bruno Haible  <bruno@clisp.org>
37587
37588         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37589         warnings.
37590         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37591
37592 2007-02-19  Jim Meyering  <jim@meyering.net>
37593
37594         Don't use FD after a successful "fdopendir (fd)".
37595         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37596         Reset it by calling dirfd on the just-obtained DIR*.
37597
37598         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37599         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37600
37601 2007-02-18  Bruno Haible  <bruno@clisp.org>
37602
37603         * lib/readlink.c: Include <unistd.h>.
37604         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37605         HAVE_READLINK.
37606         * modules/readlink (Depends-on): Add unistd.
37607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37608         (Include): Add <unistd.h>.
37609
37610         * lib/getlogin_r.h: Remove file.
37611         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37612         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37613         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37614         HAVE_DECL_GETLOGIN_R.
37615         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37617         (Include): Use <unistd.h> instead of getlogin_r.h.
37618
37619         * lib/getcwd.h: Remove file.
37620         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37621         * lib/xgetcwd.c: Likewise.
37622         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37623         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37624         * modules/getcwd (Files): Remove lib/getcwd.h.
37625         (Depends-on): Add unistd.
37626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37627         (Include): Use <unistd.h> instad of getcwd.h.
37628
37629         * lib/ftruncate.c: Include <unistd.h> first.
37630         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37631         Set HAVE_FTRUNCATE.
37632         * modules/ftruncate (Depends-on): Add unistd.
37633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37634
37635         * lib/fchdir.c: Include <unistd.h> first.
37636         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37638         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37639         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37640         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37641
37642         * lib/dup2.c: Include <unistd.h> first.
37643         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37644         HAVE_DUP2.
37645         * modules/dup2 (Depends-on): Add unistd.
37646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37647
37648         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37649         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37650         REPLACE_CHOWN. Don't define chown as a macro here.
37651         * modules/chown (Depends-on): Add unistd.
37652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37653
37654         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37655         Add definition for GL_LINK_WARNING.
37656         (chown, dup2): New declarations.
37657         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37658         link warning.
37659         (ftruncate): New declaration.
37660         (getcwd): New declaration, taken from old getcwd.h.
37661         (getlogin_r): New declaration, taken from old getlogin_r.h.
37662         (readlink): New declaration.
37663         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37664         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37665         (gl_PREREQ_UNISTD): Remove macro.
37666         (gl_UNISTD_MODULE_INDICATOR): New macro.
37667         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37668         many new variables. Don't set UNISTD_H.
37669         * modules/unistd (Description): Change.
37670         (Depends-on): Add link-warning.
37671         (configure.ac): Update.
37672         (Makefile.am): Create unistd.h always. Substitute many new variables
37673         into it.
37674
37675 2007-02-18  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37678         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37679         HAVE_GETSUBOPT.
37680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37681         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37682         * lib/getsubopt.h: Remove file.
37683         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37684         (Depends-on): Add stdlib.
37685         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37686         (Includes): Use <stdlib.h> instead of getsubopt.h.
37687         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37688         Set HAVE_GETSUBOPT.
37689         * lib/getsubopt.c: Don't include getsubopt.h.
37690
37691 2007-02-18  Bruno Haible  <bruno@clisp.org>
37692
37693         * modules/fchdir (Depends-on): Add dup2.
37694
37695 2007-02-18  Bruno Haible  <bruno@clisp.org>
37696
37697         * lib/stdlib_.h: Handle glibc's special invocation convention
37698         specially.
37699
37700 2007-02-18  Bruno Haible  <bruno@clisp.org>
37701
37702         * modules/stdlib-tests: New file.
37703         * tests/test-stdlib.c: New file.
37704
37705         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37706         (Depends-on): Add stdlib.
37707         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37708         (Includes): Use <stdlib.h> instead of mkstemp.h.
37709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37710         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37711         * lib/mkstemp.c: Don't include mkstemp.h.
37712         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37713         * lib/stdlib--.h: Don't include mkstemp.h.
37714
37715         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37716         (Depends-on): Add stdlib.
37717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37718         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37719         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37720         HAVE_MKDTEMP.
37721         * lib/mkdtemp.c: Don't include mkdtemp.h.
37722         * lib/clean-temp.c: Don't include mkdtemp.h.
37723
37724         * modules/exit (Files): Remove lib/exit.h.
37725         (Depends-on): Add stdlib.
37726         (Makefile.am): Remove lib_SOURCES.
37727         (Include): Use <stdlib.h> instead of exit.h.
37728         * lib/argmatch.c: Don't include exit.h.
37729         * lib/execute.c: Likewise.
37730         * lib/pagealign_alloc.c: Likewise.
37731         * lib/pipe.c: Likewise.
37732         * lib/wait-process.c: Likewise.
37733         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37734         * lib/exitfail.c: Likewise.
37735         * lib/savewd.c: Likewise.
37736         * lib/xsetenv.c: Likewise.
37737
37738         * modules/stdlib: New file.
37739         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37740         and extra comments about mkstemp().
37741         * lib/exit.h: Remove file.
37742         * lib/mkdtemp.h: Remove file.
37743         * lib/mkstemp.h: Remove file.
37744         * m4/stdlib_h.m4: New file.
37745         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37746
37747 2007-02-18  Bruno Haible  <bruno@clisp.org>
37748
37749         * modules/math-tests: New file.
37750         * tests/test-math.c: New file.
37751
37752         * modules/math: New file.
37753         * modules/mathl (Files): Remove lib/mathl.h.
37754         (Depends-on): Add math.
37755         (Makefile.am): Don't mention mathl.h.
37756         (Include): Use <math.h> instead of mathl.h.
37757         * lib/math_.h: New file.
37758         * lib/mathl.h: Remove file.
37759         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37760         mathl.h.
37761         * lib/asinl.c: Likewise.
37762         * lib/atanl.c: Likewise.
37763         * lib/ceill.c: Likewise.
37764         * lib/cosl.c: Likewise.
37765         * lib/expl.c: Likewise.
37766         * lib/floorl.c: Likewise.
37767         * lib/frexpl.c: Likewise.
37768         * lib/ldexpl.c: Likewise.
37769         * lib/logl.c: Likewise.
37770         * lib/sincosl.c: Likewise.
37771         * lib/sinl.c: Likewise.
37772         * lib/sqrtl.c: Likewise.
37773         * lib/tanl.c: Likewise.
37774         * lib/trigl.c: Likewise.
37775         * m4/math_h.m4: New file.
37776         * MODULES.html.sh (Mathematics): Add math.
37777
37778 2007-02-17  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/wctype-tests: New file.
37781         * tests/test-wctype.c: New file.
37782
37783         * modules/wchar-tests: New file.
37784         * tests/test-wchar.c: New file.
37785
37786         * modules/unistd-tests: New file.
37787         * tests/test-unistd.c: New file.
37788
37789         * modules/time-tests: New file.
37790         * tests/test-time.c: New file.
37791
37792         * modules/sysexits-tests: New file.
37793         * tests/test-sysexits.c: New file.
37794
37795         * modules/sys_time-tests: New file.
37796         * tests/test-sys_time.c: New file.
37797
37798         * modules/sys_stat-tests: New file.
37799         * tests/test-sys_stat.c: New file.
37800
37801         * modules/sys_socket-tests: New file.
37802         * tests/test-sys_socket.c: New file.
37803
37804         * modules/sys_select-tests: New file.
37805         * tests/test-sys_select.c: New file.
37806
37807         * modules/string-tests: New file.
37808         * tests/test-string.c: New file.
37809
37810         * modules/stdbool-tests: New file.
37811         * tests/test-stdbool.c: New file.
37812
37813         * modules/netinet_in-tests: New file.
37814         * tests/test-netinet_in.c: New file.
37815
37816         * modules/inttypes-tests: New file.
37817         * tests/test-inttypes.c: New file.
37818
37819         * modules/fcntl-tests: New file.
37820         * tests/test-fcntl.c: New file.
37821
37822         * modules/byteswap-tests: New file.
37823         * tests/test-byteswap.c: New file.
37824
37825         * modules/arpa_inet-tests: New file.
37826         * tests/test-arpa_inet.c: New file.
37827
37828 2007-02-17  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37831         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37832         if the corresponding module is not enabled. Emit link warnings if
37833         the function is used nevertheless.
37834         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37835         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37836         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37837         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37838         * modules/inttypes (Depends-on): Add link-warning.
37839         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37840         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37841         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37842         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37843         * modules/imaxdiv (configure.ac): Likewise.
37844         * modules/strtoimax (configure.ac): Likewise.
37845         * modules/strtoumax (configure.ac): Likewise.
37846
37847 2007-02-17  Bruno Haible  <bruno@clisp.org>
37848
37849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37850         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37851         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37852         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37853
37854 2007-02-17  Bruno Haible  <bruno@clisp.org>
37855
37856         * modules/link-warning: New file.
37857         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37858         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37859         * modules/string (Depends-on): Add link-warning.
37860         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37861         string.h.
37862         * MODULES.html.sh (Support for building libraries and executables): Add
37863         link-warning.
37864
37865 2007-02-17  Bruno Haible  <bruno@clisp.org>
37866
37867         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37868         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37869         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37870         long lines.
37871
37872 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37873             Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/tmpfile: New file.
37876         * lib/tmpfile.c: New file.
37877         * m4/tmpfile.m4: New file.
37878         * MODULES.html.sh (func_all_modules): New section "Input/output".
37879
37880 2007-02-15  Bruno Haible  <bruno@clisp.org>
37881
37882         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37883         (supports_delete_on_close): New function.
37884         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37885
37886 2007-02-14  Bruno Haible  <bruno@clisp.org>
37887
37888         * modules/mbspcasecmp-tests: New file.
37889         * tests/test-mbspcasecmp.sh: New file.
37890         * tests/test-mbspcasecmp.c: New file.
37891
37892         New module mbspcasecmp.
37893         * modules/mbspcasecmp: New file.
37894         * lib/mbspcasecmp.c: New file.
37895         * lib/string_.h (strncasecmp): Change warning message.
37896         (mbspcasecmp): New declaration.
37897         * m4/mbspcasecmp.m4: New file.
37898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37899         GNULIB_MBSPCASECMP.
37900         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37901         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37902
37903 2007-02-14  Bruno Haible  <bruno@clisp.org>
37904
37905         * modules/mbsncasecmp-tests: New file.
37906         * tests/test-mbsncasecmp.sh: New file.
37907         * tests/test-mbsncasecmp.c: New file.
37908
37909         New module mbsncasecmp.
37910         * modules/mbsncasecmp: New file.
37911         * lib/mbsncasecmp.c: New file.
37912         * lib/string_.h (mbsncasecmp): New declaration.
37913         * m4/mbsncasecmp.m4: New file.
37914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37915         GNULIB_MBSNCASECMP.
37916         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37917         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37918
37919 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37920
37921         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37922         Verify that it doesn't overlap with our flags.
37923         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37924         do not have the desired effect in multibyte locales; instead, use
37925         mbscasecmp.
37926         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37927         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37928         we don't require GNU fnmatch ourselves (if our users require it, they
37929         should do so explicitly).
37930
37931         Fix regex code so it doesn't rely on strcasecmp.
37932         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37933         Otherwise, include gnulib's langinfo.h.
37934         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37935         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37936         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37937         * modules/regex (FILES): Remove m4/codeset.m4.
37938         (Depends-on): Add localcharset.  Remove strcase.
37939
37940 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37941
37942         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37943         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37944
37945 2007-02-13  Bruno Haible  <bruno@clisp.org>
37946
37947         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37949
37950 2007-02-12  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37953         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37954         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37955         time warning rather than a link error.
37956
37957 2007-02-12  Bruno Haible  <bruno@clisp.org>
37958
37959         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37960         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37961         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37962
37963 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37964
37965         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37966         args, not 2.
37967
37968 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37969
37970         New module 'time', so that apps can include <time.h> as per
37971         POSIX and GNU instead of separate include files like time_r.h
37972         and timegm.h.  This implementation tries out a simpler approach
37973         for replacing decls in standard include files (as compared to
37974         the string module), somewhat as an experiment.
37975
37976         * config/srclist.txt: Comment out mktime.c for now.
37977         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37978         since it doesn't apply any more.  Use generic wording instead.
37979         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37980         'time'.
37981         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37982         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37983         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37984         Don't include <sys/types.h>; no longer needed since we assume C89.
37985         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37986         * lib/strftime.c: Likewise.
37987         * lib/time_r.c: Likewise.
37988         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37989         * lib/nanosleep.c: Include <time.h> first, to check interface.
37990         * lib/strptime.c: Likewise.
37991         * lib/time_r.c: Likewise.
37992         * lib/timegm.c: Likewise.
37993         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37994         needed.
37995         * lib/timegm.c: Don't include timegm.h; no longer needed.
37996         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37997         time.h now handles any problems in that area.
37998         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37999         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38000         that time.h defines struct timespec.
38001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38002         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38003         handles that.
38004         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38005         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38006         needed.  Set REPLACE_LOCALTIME.
38007         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38008         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38009         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38010         nanosleep; time_h.m4 now does that.  Don't require
38011         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38012         module handles this now.
38013         * modules/getdate (Depends-on): Remove timespec.  Add time.
38014         * modules/nanosleep (Depends-on): Likewise.
38015         * modules/stat-time (Depends-on): Likewise.
38016         * modules/nanosleep (Include): Include time.h, not timespec.h.
38017         * modules/strptime (Files): Remove lib/strptime.h.
38018         (Depends-on): Add extensions, time.
38019         (Include): Include time.h, not strptime.h.
38020         * modules/time_r (Files): Remove lib/time_r.h.
38021         (Depends-on): Add time.
38022         (Include): Include time.h, not time_r.h.
38023         * modules/timegm: Likewise.
38024         * modules/timespec (Description): Now does timespec-related decls
38025         of our own, instead of struct timespec itself.
38026         (Depends-on): Add time; remove extensions.
38027         (Maintainer): Add self.
38028         * modules/utimecmp (Depends-on): Add time; remove timespec.
38029         * modules/utimens (Depends-on): Likewise.
38030         * modules/xnanosleep (Depends-on): Likewise.
38031
38032 2007-02-11  Bruno Haible  <bruno@clisp.org>
38033
38034         * lib/c-strstr.c: Include allocsa.h.
38035         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38036         * lib/c-strcasestr.c: Include allocsa.h.
38037         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38038         * lib/strcasestr.c: Include allocsa.h.
38039         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38040         * lib/mbsstr.c: Include allocsa.h.
38041         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38042         allocsa/freesa instead of malloc/free.
38043         * lib/mbscasestr.c: Include allocsa.h.
38044         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38045         allocsa/freesa instead of malloc/free.
38046         * modules/c-strstr (Depends-on): Add allocsa.
38047         * modules/c-strcasestr (Depends-on): Likewise.
38048         * modules/strcasestr (Depends-on): Likewise.
38049         * modules/mbsstr (Depends-on): Likewise.
38050         * modules/mbscasestr (Depends-on): Likewise.
38051
38052 2007-02-11  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38055
38056         * modules/mbsspn-tests: New file.
38057         * tests/test-mbsspn.sh: New file.
38058         * tests/test-mbsspn.c: New file.
38059
38060 2007-02-11  Bruno Haible  <bruno@clisp.org>
38061
38062         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38063
38064         * modules/mbspbrk-tests: New file.
38065         * tests/test-mbspbrk.sh: New file.
38066         * tests/test-mbspbrk.c: New file.
38067
38068 2007-02-11  Bruno Haible  <bruno@clisp.org>
38069
38070         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38071         unneeded cast.
38072
38073         * modules/mbscspn-tests: New file.
38074         * tests/test-mbscspn.sh: New file.
38075         * tests/test-mbscspn.c: New file.
38076
38077 2007-02-11  Bruno Haible  <bruno@clisp.org>
38078
38079         * modules/mbscasecmp-tests: New file.
38080         * tests/test-mbscasecmp.sh: New file.
38081         * tests/test-mbscasecmp.c: New file.
38082
38083 2007-02-11  Bruno Haible  <bruno@clisp.org>
38084
38085         Ensure O(n) worst-case complexity of mbscasestr.
38086         * lib/mbscasestr.c: Include stdbool.h.
38087         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38088         functions.
38089         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38090         the bookkeeping indicates that it's worth it.
38091         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38092
38093         * modules/mbscasestr-tests: New file.
38094         * tests/test-mbscasestr1.c: New file.
38095         * tests/test-mbscasestr2.sh: New file.
38096         * tests/test-mbscasestr2.c: New file.
38097         * tests/test-mbscasestr3.sh: New file.
38098         * tests/test-mbscasestr3.c: New file.
38099         * tests/test-mbscasestr4.sh: New file.
38100         * tests/test-mbscasestr4.c: New file.
38101         * m4/locale-tr.m4: New file.
38102
38103 2007-02-11  Bruno Haible  <bruno@clisp.org>
38104
38105         Ensure O(n) worst-case complexity of mbsstr.
38106         * lib/mbsstr.c: Include stdbool.h.
38107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38108         functions.
38109         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38110         bookkeeping indicates that it's worth it.
38111         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38112
38113         * modules/mbsstr-tests: New file.
38114         * tests/test-mbsstr1.c: New file.
38115         * tests/test-mbsstr2.sh: New file.
38116         * tests/test-mbsstr2.c: New file.
38117         * tests/test-mbsstr3.sh: New file.
38118         * tests/test-mbsstr3.c: New file.
38119         * m4/locale-fr.m4: New file.
38120
38121 2007-02-11  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/mbsrchr.c (mbsrchr): Fix bug.
38124
38125         * modules/mbsrchr-tests: New file.
38126         * tests/test-mbsrchr.sh: New file.
38127         * tests/test-mbsrchr.c: New file.
38128
38129 2007-02-11  Bruno Haible  <bruno@clisp.org>
38130
38131         * lib/mbschr.c (mbschr): Fix bug.
38132
38133         * modules/mbschr-tests: New file.
38134         * tests/test-mbschr.sh: New file.
38135         * tests/test-mbschr.c: New file.
38136         * m4/locale-zh.m4: New file.
38137
38138 2007-02-11  Bruno Haible  <bruno@clisp.org>
38139
38140         Support for copying multibyte string iterators.
38141         * lib/mbiter.h: Include <string.h>.
38142         (mbiter_multi_copy): New function.
38143         (mbi_copy): New macro.
38144         * lib/mbuiter.h: Include <string.h>.
38145         (mbuiter_multi_copy): New function.
38146         (mbui_copy): New macro.
38147
38148 2007-02-11  Bruno Haible  <bruno@clisp.org>
38149
38150         New module mbslen.
38151         * modules/mbslen: New file.
38152         * lib/mbslen.c: New file.
38153         * lib/string_.h (mbslen): New declaration.
38154         * m4/mbslen.m4: New file.
38155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38156         GNULIB_MBSLEN.
38157         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38158         * MODULES.html.sh (Internationalization functions): Add mbslen.
38159
38160 2007-02-11  Bruno Haible  <bruno@clisp.org>
38161
38162         Ensure O(n) worst-case complexity of strcasestr substitute.
38163         * lib/strcasestr.c: Include stdbool.h.
38164         (knuth_morris_pratt): New function.
38165         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38166         bookkeeping indicates that it's worth it.
38167         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38168
38169         * modules/strcasestr-tests: New file.
38170         * tests/test-strcasestr.c: New file.
38171
38172 2007-02-11  Bruno Haible  <bruno@clisp.org>
38173
38174         Ensure O(n) worst-case complexity of c_strcasestr.
38175         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38176         (knuth_morris_pratt): New function.
38177         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38178         the bookkeeping indicates that it's worth it.
38179         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38180
38181         * modules/c-strcasestr-tests: New file.
38182         * tests/test-c-strcasestr.c: New file.
38183
38184 2007-02-11  Bruno Haible  <bruno@clisp.org>
38185
38186         Ensure O(n) worst-case complexity of c_strstr.
38187         * lib/c-strstr.c: Include stdbool.h, string.h.
38188         (knuth_morris_pratt): New function.
38189         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38190         bookkeeping indicates that it's worth it.
38191         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38192
38193         * lib/c-strstr.c: Complete rewrite for maintainability.
38194
38195         * modules/c-strstr-tests: New file.
38196         * tests/test-c-strstr.c: New file.
38197
38198 2007-02-11  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38201         5.2.1 and earlier, whereby \055 was treated just like the range
38202         delimiter '-'.
38203         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38204
38205 2007-02-08  Bruno Haible  <bruno@clisp.org>
38206
38207         * modules/regex (Depends-on): Add stdbool.
38208         Reported by Dalibor Topic <robilad@kaffe.org>.
38209
38210 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38211
38212         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38213         Prefer returning from main to exiting from it.
38214         Remove unnecessary parens after sizeof.
38215
38216 2007-02-05  Bruno Haible  <bruno@clisp.org>
38217
38218         New module mbssep.
38219         * modules/mbssep: New file.
38220         * lib/mbssep.c: New file.
38221         * lib/string_.h (strsep): Add a conditional link warning.
38222         (mbssep): New declaration.
38223         * m4/mbssep.m4: New file.
38224         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38225         GNULIB_MBSSEP.
38226         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38227         * MODULES.html.sh (Internationalization functions): Add mbssep.
38228
38229 2007-02-05  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38232         Optimize search in case of 1 delimiter.
38233
38234 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38235
38236         * lib/acl.h: Include sys/types.h before sys/acl.h.
38237
38238 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38239
38240         Merge upstream fix for glibc bugzilla #3957:
38241
38242         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38243
38244         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38245         bit for RE_HAT_LISTS_NOT_NEWLINE.
38246         (build_charclass_op): Remove bogus comment.
38247
38248 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38249
38250         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38251
38252 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38253
38254         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38255         * lib/memmem.c [!defined _LIBC]: Include config.h.
38256
38257 2007-02-04  Bruno Haible  <bruno@clisp.org>
38258
38259         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38260         warning message.
38261
38262 2007-02-04  Bruno Haible  <bruno@clisp.org>
38263
38264         New module mbstok_r.
38265         * modules/mbstok_r: New file.
38266         * lib/mbstok_r.c: New file.
38267         * lib/string_.h (strtok_r): Change argument names to match the
38268         comments. Add a conditional link warning.
38269         (mbstok_r): New declaration.
38270         * m4/mbstok_r.m4: New file.
38271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38272         GNULIB_MBSTOK_R.
38273         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38274         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38275
38276 2007-02-04  Bruno Haible  <bruno@clisp.org>
38277
38278         New module mbsspn.
38279         * modules/mbsspn: New file.
38280         * lib/mbsspn.c: New file.
38281         * lib/string_.h (strspn): Add a conditional link warning.
38282         (mbsspn): New declaration.
38283         * m4/mbsspn.m4: New file.
38284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38285         GNULIB_MBSSPN.
38286         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38287         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38288
38289 2007-02-04  Bruno Haible  <bruno@clisp.org>
38290
38291         New module mbspbrk.
38292         * modules/mbspbrk: New file.
38293         * lib/mbspbrk.c: New file.
38294         * lib/string_.h (strpbrk): Add a conditional link warning.
38295         (mbspbrk): New declaration.
38296         * m4/mbspbrk.m4: New file.
38297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38298         GNULIB_MBSPBRK.
38299         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38300         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38301
38302 2007-02-04  Bruno Haible  <bruno@clisp.org>
38303
38304         New module mbscspn.
38305         * modules/mbscspn: New file.
38306         * lib/mbscspn.c: New file.
38307         * lib/string_.h (strcspn): Add a conditional link warning.
38308         (mbscspn): New declaration.
38309         * m4/mbscspn.m4: New file.
38310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38311         GNULIB_MBSCSPN.
38312         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38313         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38314
38315 2007-02-04  Bruno Haible  <bruno@clisp.org>
38316
38317         New module mbscasestr, reduced goal of strcasestr.
38318         * modules/mbscasestr: New file.
38319         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38320         (mbscasestr): Renamed from strcasestr.
38321         * lib/strcasestr.c: Don't include mbuiter.h.
38322         (strcasestr): Remove support for multibyte locales.
38323         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38324         Change the conditional link warning.
38325         (mbscasestr): New declaration.
38326         * m4/mbscasestr.m4: New file.
38327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38328         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38329         REPLACE_STRCASESTR.
38330         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38332         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38333         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38334         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38335         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38336         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38337         (Depends-on): Remove mbuiter.
38338         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38339
38340 2007-02-04  Bruno Haible  <bruno@clisp.org>
38341
38342         Simplify handling of strncasecmp.
38343         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38344         the conditional link warning.
38345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38346         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38347         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38348         * modules/strcase (configure.ac): Don't invoke
38349         gl_STRING_MODULE_INDICATOR.
38350         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38351
38352 2007-02-04  Bruno Haible  <bruno@clisp.org>
38353
38354         New module mbscasecmp, reduced goal of strcasecmp.
38355         * modules/mbscasecmp: New file.
38356         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38357         (mbscasecmp): Renamed from strcasecmp.
38358         * lib/strcasecmp.c: Don't include mbuiter.h.
38359         (strcasecmp): Remove support for multibyte locales.
38360         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38361         Change the conditional link warning.
38362         (mbscasecmp): New declaration.
38363         * m4/mbscasecmp.m4: New file.
38364         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38365         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38366         REPLACE_STRCASECMP.
38367         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38369         GNULIB_MBSCASECMP.
38370         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38371         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38372         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38373         (Depends-on): Remove mbuiter.
38374         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38375
38376 2007-02-04  Bruno Haible  <bruno@clisp.org>
38377
38378         New module mbsstr. Remove module strstr.
38379         * modules/mbsstr: New file.
38380         * modules/strstr: Remove file.
38381         * lib/mbsstr.c: Renamed from lib/strstr.c.
38382         (mbsstr): Renamed from strstr.
38383         * lib/string_.h (strstr): Remove declaration. Change the conditional
38384         link warning.
38385         (mbsstr): New declaration.
38386         * m4/mbsstr.m4: New file.
38387         * m4/strstr.m4: Remove file.
38388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38389         REPLACE_STRSTR.
38390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38391         Don't initialize GNULIB_STRSTR.
38392         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38393         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38394         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38395         (Support for systems lacking ANSI C 89): Remove strstr.
38396
38397 2007-02-04  Bruno Haible  <bruno@clisp.org>
38398
38399         New module mbsrchr.
38400         * modules/mbsrchr: New file.
38401         * lib/mbsrchr.c: New file.
38402         * lib/string_.h (strrchr): Add a conditional link warning.
38403         (mbsrchr): New declaration.
38404         * m4/mbsrchr.m4: New file.
38405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38406         GNULIB_MBSRCHR.
38407         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38408         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38409
38410 2007-02-04  Bruno Haible  <bruno@clisp.org>
38411
38412         New module mbschr.
38413         * modules/mbschr: New file.
38414         * lib/mbschr.c: New file.
38415         * lib/string_.h (strchr): Add a conditional link warning.
38416         (mbschr): New declaration.
38417         * m4/mbschr.m4: New file.
38418         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38419         GNULIB_MBSCHR.
38420         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38421         * MODULES.html.sh (Internationalization functions): Add mbschr.
38422
38423 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38424
38425         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38426
38427         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38428
38429 2007-02-04  Bruno Haible  <bruno@clisp.org>
38430
38431         New module description section 'configure.ac-early'.
38432         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38433         (func_get_autoconf_early_snippet): New function.
38434         (func_import, func_create_testdir): Use it. Remove special cases for
38435         modules 'extensions' and 'lock'.
38436         * modules/extensions (configure.ac-early): Require
38437         gl_USE_SYSTEM_EXTENSIONS.
38438         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38439
38440 2007-02-04  Bruno Haible  <bruno@clisp.org>
38441
38442         Make use of gcj-4.3's -fsource and -ftarget option.
38443         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38444         and if so try the options -fsource and -ftarget.
38445         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38446         source_version, ftarget_option, target_version arguments.
38447         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38448         (is_envjavac_oldgcj_14_14_usable): Renamed from
38449         is_envjavac_gcj_14_14_usable.
38450         (is_envjavac_oldgcj_14_13_usable): Renamed from
38451         is_envjavac_gcj_14_13_usable.
38452         (is_gcj_present): Update.
38453         (is_gcj_43, is_gcj43_usable): New functions.
38454         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38455         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38456         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38457         try the options -fsource and -ftarget.
38458
38459 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38460
38461         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38462         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38463         larger value.
38464
38465 2007-02-03  Jim Meyering  <jim@meyering.net>
38466
38467         Give tools a better chance to allocate space for very large buffers.
38468         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38469
38470         Make pwd and readlink work also when run with an unreadable parent dir
38471         on systems with openat support.
38472         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38473         provided getcwd function, even when we have openat support.
38474         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38475
38476 2007-02-02  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38479         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38480         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38481         portability problems if one of these functions is only used on specific
38482         platforms.
38483         Reported by Paul Eggert.
38484
38485 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38486
38487         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38488         is causing more trouble than it's curing.
38489         * lib/regex_internal.h (__mempcpy): Remove.
38490         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38491         (and make the code a tad smaller to boot).
38492         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38493
38494 2007-02-02  Jim Meyering  <jim@meyering.net>
38495
38496         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38497         section, not in the Makefile.am: one.
38498
38499 2007-02-02  Eric Blake  <ebb9@byu.net>
38500
38501         * lib/strchrnul.c: Always include config.h first.
38502
38503         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38504         gnulib strstr is not necessary here.
38505
38506 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38507
38508         * m4/socklen.m4: Fix typo.
38509
38510 2007-02-02  Eric Blake  <ebb9@byu.net>
38511
38512         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38513         * modules/netinet_in (Makefile.am): Likewise.
38514
38515 2007-02-01  Bruno Haible  <bruno@clisp.org>
38516
38517         * lib/string_.h (GL_LINK_WARNING): New macro.
38518         (strcasecmp, strstr, strcasestr): If provided by the system,
38519         conditionally define as a macro that leads to a warning instead of to
38520         an error.
38521         (strncasecmp): Conditionally define as a macro that leads to a warning.
38522
38523 2007-02-01  Karl Berry  <karl@gnu.org>
38524
38525         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38526
38527 2007-02-01  Bruno Haible  <bruno@clisp.org>
38528
38529         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38530         renamings.
38531
38532 2007-02-01  Eric Blake  <ebb9@byu.net>
38533
38534         * modules/regex (Depends-on): Revert dependence on mempcpy.
38535         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38536         module's definition of mempcpy.
38537         Reported by Paul Eggert.
38538
38539 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38540
38541         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38542         the symbol XYZ before redefining it.  This fixes a problem with
38543         programs that don't use XYZ, when compiled on systems that define
38544         XYZ to something else.
38545
38546 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38547
38548         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38549         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38550         writeable to group or other and (2) is intended to have a special
38551         mode bit that is set or cleared.  In such a case, the directory
38552         should be neither group- nor other-writeable until the special
38553         mode bits are right.
38554
38555 2007-01-31  Eric Blake  <ebb9@byu.net>
38556
38557         * modules/mountlist (Depends-on): Add strstr.
38558
38559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38560         bug.
38561         * modules/string (Makefile.am): Remove redundant replacement.
38562         * modules/regex (Depends-on): Add mempcpy.
38563
38564 2007-01-31  Bruno Haible  <bruno@clisp.org>
38565
38566         New module description field 'Link'.
38567         * gnulib-tool (func_usage): Document --extract-link-directive.
38568         (sed_extract_prog): Recognize 'Link' directive.
38569         (func_get_link_directive): New function.
38570         (func_import): Show summary of link directives.
38571         Handle --extract-link-directive option.
38572         * modules/acl (Link): New section.
38573         * modules/clock-time (Link): New section.
38574         * modules/euidaccess (Link): New section.
38575         * modules/gettext (Link): New section.
38576         * modules/iconv (Link): New section.
38577         * modules/lock (Link): New section.
38578         * modules/nanosleep (Link): New section.
38579         * modules/readline (Link): New section.
38580
38581 2007-01-27  Bruno Haible  <bruno@clisp.org>
38582
38583         Enforce the use of gnulib modules for unportable <string.h> functions.
38584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38585         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38586         (gl_HEADER_STRING_H_BODY): Require it.
38587         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38588         the symbol XYZ to one that gives a link error.
38589         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38590         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38591         * modules/mempcpy (configure.ac): Likewise.
38592         * modules/memrchr (configure.ac): Likewise.
38593         * modules/stpcpy (configure.ac): Likewise.
38594         * modules/stpncpy (configure.ac): Likewise.
38595         * modules/strcase (configure.ac): Likewise.
38596         * modules/strcasestr (configure.ac): Likewise.
38597         * modules/strchrnul (configure.ac): Likewise.
38598         * modules/strdup (configure.ac): Likewise.
38599         * modules/strndup (configure.ac): Likewise.
38600         * modules/strnlen (configure.ac): Likewise.
38601         * modules/strpbrk (configure.ac): Likewise.
38602         * modules/strsep (configure.ac): Likewise.
38603         * modules/strstr (configure.ac): Likewise.
38604         * modules/strtok_r (configure.ac): Likewise.
38605
38606 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38607
38608         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38609
38610 2007-01-30  Jim Meyering  <jim@meyering.net>
38611
38612         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38613
38614 2007-01-29  Bruno Haible  <bruno@clisp.org>
38615
38616         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38617         * lib/execute.c: Likewise.
38618         * lib/pipe.c: Likewise.
38619         * lib/printf-args.h: Likewise.
38620         * lib/printf-args.c: Likewise.
38621         * lib/printf-parse.c: Likewise.
38622         * lib/vasnprintf.c: Likewise.
38623
38624 2007-01-29  Eric Blake  <ebb9@byu.net>
38625
38626         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38627         declaration.
38628
38629 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38630
38631         * lib/strptime.h (strptime): Use 'restrict' for args where
38632         POSIX requires this.
38633         * lib/strptime.c (strptime): Likewise.
38634         Change license notice from LGPL to GPL, since gnulib-tool will
38635         change this as needed.
38636         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38637         defined.
38638         Include "strptime.h" first, to check interface.
38639         Do not #undef _LIBC and _NL_CURRENT.
38640         Do not include <stdlib.h>; no longer needed.
38641         Include "time_r.h" and declare ptime_locale_status
38642         only if _LIBC is not defined.
38643         (__P): Remove unused macro.
38644         (match_string): Bring back glibc version, but use it only if _LIBC
38645         is defined.
38646         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38647         Remove unnecessary assertion and abort() call.
38648         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38649         * m4/strptime.m4: Fix serial number comment.
38650         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38651         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38652         (Depends-on): Add time_r.
38653
38654 2007-01-29  Bruno Haible  <bruno@clisp.org>
38655
38656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38657         strptime.
38658         * modules/strptime (Depends-on): Add stdbool.
38659         * lib/strptime.h: Include <time.h> always. Add comments.
38660
38661 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38662
38663         * modules/strptime: New file.
38664         * lib/strptime.h: New file.
38665         * lib/strptime.c: New file.
38666         * m4/strptime.m4: New file.
38667
38668 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38669
38670         * MODULES.html.sh: New module mpsort.
38671         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38672
38673         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38674         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38675         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38676         All uses changed.
38677         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38678         All uses changed.
38679         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38680         to _Restrict_.
38681         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38682         the parameter matches the prototype.
38683
38684 2007-01-28  Jim Meyering  <jim@meyering.net>
38685
38686         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38687         sys/time.h here, reverting that part of the previous patch:
38688         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38689
38690 2007-01-28  Bruno Haible  <bruno@clisp.org>
38691
38692         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38693         value of $(SYS_TIME_H).
38694         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38695         remove it conditionally, too. [added by Jim Meyering]
38696         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38697         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38699         GETTIMEOFDAY_REPLACEMENT to 1.
38700
38701 2007-01-28  Bruno Haible  <bruno@clisp.org>
38702
38703         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38704         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38706         Set UNISTD_H instead of UNISTD_H2.
38707         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38708
38709 2007-01-28  Bruno Haible  <bruno@clisp.org>
38710
38711         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38712         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38713
38714 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38715
38716         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38717         (func_create_testdir): Ensure C locale for `grep' and `tr'
38718         character ranges.
38719         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38720         ACLOCAL_AMFLAGS parsing state machine.
38721
38722 2007-01-27  Bruno Haible  <bruno@clisp.org>
38723
38724         * modules/unistr/base: Update.
38725
38726 2007-01-27  Bruno Haible  <bruno@clisp.org>
38727
38728         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38729         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38730         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38731         modules/unistr/u32-mbtouc.
38732         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38733         * lib/unistr.h: Update.
38734         * lib/linebreak.c: Update.
38735         * modules/unistr/u32-mbtouc: Renamed from
38736         modules/unistr/u32-mbtouc-safe.
38737         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38738         * lib/unistr.h: Update.
38739         * lib/unistr/u32-to-u8.c: Update.
38740         * lib/unistr/u32-to-u16.c: Update.
38741
38742 2007-01-27  Bruno Haible  <bruno@clisp.org>
38743
38744         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38745         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38746         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38747         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38748         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38749         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38750         modules/unistr/u16-mbtouc.
38751         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38752         * lib/unistr.h: Update.
38753         * lib/linebreak.c: Update.
38754         * modules/linebreak: Update.
38755         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38756         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38757         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38758         * modules/unistr/u16-mbtouc: Renamed from
38759         modules/unistr/u16-mbtouc-safe.
38760         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38761         * lib/unistr.h: Update.
38762         * lib/unistr/u16-to-u8.c: Update.
38763         * modules/unistr/u16-to-u8: Update.
38764         * lib/unistr/u16-to-u32.c: Update.
38765         * modules/unistr/u16-to-u32: Update.
38766
38767 2007-01-27  Bruno Haible  <bruno@clisp.org>
38768
38769         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38770         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38771         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38772         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38773         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38774         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38775         modules/unistr/u8-mbtouc.
38776         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38777         * lib/unistr.h: Update.
38778         * lib/striconveh.c: Update.
38779         * modules/striconveh: Update.
38780         * lib/linebreak.c: Update.
38781         * modules/linebreak: Update.
38782         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38783         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38784         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38785         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38786         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38787         * lib/unistr.h: Update.
38788         * lib/striconveh.c: Update.
38789         * modules/striconveh: Update.
38790         * lib/unistr/u8-to-u16.c: Update.
38791         * modules/unistr/u8-to-u16: Update.
38792         * lib/unistr/u8-to-u32.c: Update.
38793         * modules/unistr/u8-to-u32: Update.
38794
38795 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38796
38797         Sync from Libtool.
38798         * lib/argz.c: Do not include strings.h nor memory.h, include
38799         string.h unconditionally.  Patch by Simon Josefsson.
38800
38801 2007-01-27  Bruno Haible  <bruno@clisp.org>
38802
38803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38804         from gl_HEADER_STRING_H_BODY.
38805         (gl_HEADER_STRING_H_BODY): Require it.
38806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38809         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38811         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38814         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38817         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38818         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38821
38822 2007-01-27  Bruno Haible  <bruno@clisp.org>
38823
38824         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38825         check_PROGRAMS into noinst_PROGRAMS.
38826         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38827         check_PROGRAMS in this case.
38828         (func_import): Set for_test to false.
38829         (func_create_testdir): Set for_test to true.
38830
38831 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38832             Bruno Haible  <bruno@clisp.org>
38833
38834         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38835         (Depends-on): Add string.
38836         (Includes): Use <string.h> instead of strcasestr.h.
38837         * modules/string (Makefile.am): Also substitute the value of
38838         REPLACE_STRCASESTR.
38839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38840         assume strcasestr is declared in <string.h> not <strings.h>. Also
38841         set REPLACE_STRCASESTR.
38842         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38843         REPLACE_STRCASESTR.
38844         * lib/strcasestr.h: Remove file.
38845         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38846         * lib/string_.h (strcasestr): New declaration.
38847
38848 2007-01-27  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/string_.h: Use 'extern'.
38851
38852 2007-01-27  Jim Meyering  <jim@meyering.net>
38853
38854         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38855         of set-but-not-used local, "q".
38856
38857         * lib/mempcpy.c: Include <config.h> before <string.h>.
38858         This fixes a compilation error on HP-UX, due to the system's
38859         "restrict"-using mempcpy prototype.
38860
38861 2007-01-26  Bruno Haible  <bruno@clisp.org>
38862
38863         Small optimization.
38864         * lib/javacomp.c: Include c-strstr.h.
38865          (is_envjavac_gcj): Use c_strstr instead of strstr.
38866         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38867
38868 2007-01-26  Bruno Haible  <bruno@clisp.org>
38869
38870         * MODULES.html.sh (Unicode string functions): Add the new modules.
38871
38872         * modules/uniconv/u32-strconv-to-locale: New file.
38873         * lib/uniconv/u32-strconv-to-locale.c: New file.
38874
38875         * modules/uniconv/u16-strconv-to-locale: New file.
38876         * lib/uniconv/u16-strconv-to-locale.c: New file.
38877
38878         * modules/uniconv/u8-strconv-to-locale: New file.
38879         * lib/uniconv/u8-strconv-to-locale.c: New file.
38880
38881         * modules/uniconv/u32-strconv-from-locale: New file.
38882         * lib/uniconv/u32-strconv-from-locale.c: New file.
38883
38884         * modules/uniconv/u16-strconv-from-locale: New file.
38885         * lib/uniconv/u16-strconv-from-locale.c: New file.
38886
38887         * modules/uniconv/u8-strconv-from-locale: New file.
38888         * lib/uniconv/u8-strconv-from-locale.c: New file.
38889
38890         * modules/uniconv/u32-strconv-to-enc: New file.
38891         * lib/uniconv/u32-strconv-to-enc.c: New file.
38892         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38893         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38894
38895         * modules/uniconv/u16-strconv-to-enc: New file.
38896         * lib/uniconv/u16-strconv-to-enc.c: New file.
38897         * lib/uniconv/u-strconv-to-enc.h: New file.
38898         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38899         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38900
38901         * modules/uniconv/u8-strconv-to-enc: New file.
38902         * lib/uniconv/u8-strconv-to-enc.c: New file.
38903         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38904         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38905
38906         * modules/uniconv/u32-strconv-from-enc: New file.
38907         * lib/uniconv/u32-strconv-from-enc.c: New file.
38908         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38909         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38910
38911         * modules/uniconv/u16-strconv-from-enc: New file.
38912         * lib/uniconv/u16-strconv-from-enc.c: New file.
38913         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38914         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38915
38916         * modules/uniconv/u8-strconv-from-enc: New file.
38917         * lib/uniconv/u8-strconv-from-enc.c: New file.
38918         * lib/uniconv/u-strconv-from-enc.h: New file.
38919         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38920         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38921
38922         * modules/uniconv/u32-conv-from-enc: New file.
38923         * lib/uniconv/u32-conv-from-enc.c: New file.
38924         * modules/uniconv/u32-conv-from-enc-tests: New file.
38925         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38926
38927         * modules/uniconv/u16-conv-from-enc: New file.
38928         * lib/uniconv/u16-conv-from-enc.c: New file.
38929         * lib/uniconv/u-conv-from-enc.h: New file.
38930         * modules/uniconv/u16-conv-from-enc-tests: New file.
38931         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38932
38933         * modules/uniconv/u8-conv-from-enc: New file.
38934         * lib/uniconv/u8-conv-from-enc.c: New file.
38935         * modules/uniconv/u8-conv-from-enc-tests: New file.
38936         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38937
38938         * modules/uniconv/base: New file.
38939         * lib/uniconv.h: New file.
38940
38941 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38942
38943         * doc/gnulib-tool.texi (Initial import): Update to match current
38944         behavior with strdup module.
38945         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38946         * lib/memmem.h: Remove; all uses removed.  This is now done
38947         by <string.h>.
38948         * lib/mempcpy.h: Likewise.
38949         * lib/memrchr.h: Likewise.
38950         * lib/stpcpy.h: Likewise.
38951         * lib/stpncpy.h: Likewise.
38952         * lib/strcase.h: Likewise.
38953         * lib/strchrnul.h: Likewise.
38954         * lib/strdup.h: Likewise.
38955         * lib/strndup.h: Likewise.
38956         * lib/strnlen.h: Likewise.
38957         * lib/strpbrk.h: Likewise.
38958         * lib/strsep.h: Likewise.
38959         * lib/strstr.h: Likewise.
38960         * lib/strtok_r.h: Likewise.
38961         * lib/string_.h: New file.
38962         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38963         Rely on <string.h> instead.
38964         * lib/canon-host.c: Likewise.
38965         * lib/chdir-long.c: Likewise.
38966         * lib/concatpath.c: Likewise.
38967         * lib/exclude.c: Likewise.
38968         * lib/fchdir.c: Likewise.
38969         * lib/getaddrinfo.c: Likewise.
38970         * lib/getcwd.c: Likewise.
38971         * lib/getsubopt.c: Likewise.
38972         * lib/glob.c: Likewise.
38973         * lib/hard-locale.c: Likewise.
38974         * lib/iconvme.c: Likewise.
38975         * lib/javacomp.c: Likewise.
38976         * lib/mempcpy.c: Likewise.
38977         * lib/memrchr.c: Likewise.
38978         * lib/regex_internal.h: Likewise.
38979         * lib/stpncpy.c: Likewise.
38980         * lib/strcasecmp.c: Likewise.
38981         * lib/strchrnul.c: Likewise.
38982         * lib/strdup.c: Likewise.
38983         * lib/striconv.c: Likewise.
38984         * lib/striconveh.c: Likewise.
38985         * lib/striconveha.c: Likewise.
38986         * lib/strncasecmp.c: Likewise.
38987         * lib/strndup.c: Likewise.
38988         * lib/strnlen.c: Likewise.
38989         * lib/strsep.c: Likewise.
38990         * lib/strstr.c: Likewise.
38991         * lib/strtok_r.c: Likewise.
38992         * lib/userspec.c: Likewise.
38993         * lib/w32spawn.h: Likewise.
38994         * lib/xstrndup.c: Likewise.
38995         * lib/mountlist.c (strstr): Remove decl.
38996         * m4/string_h.m4: New file.
38997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38998         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38999         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39000         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39001         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39002         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39003         Set REPLACE_STRCASECMP if necessary.
39004         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39005         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39006         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39007         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39008         HAVE_DECL_STRDUP if necessary.
39009         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39010         since gl_FUNC_STRNDUP does that now.
39011         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39012         Check for decl here...
39013         (gl_PREREQ_STRNLEN): ... not here.
39014         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39015         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39016         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39017         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39018         necessary.
39019         * modules/string: New file.
39020         * modules/memmem (Files): Remove special-purpose include file.
39021         (Depends-on): Add string.
39022         (Include): Include <string.h>, not the removed file.
39023         * modules/mempcpy: Likewise.
39024         * modules/memrchr: Likewise.
39025         * modules/stpcpy: Likewise.
39026         * modules/stpncpy: Likewise.
39027         * modules/strcase: Likewise.
39028         * modules/strchrnul: Likewise.
39029         * modules/strdup: Likewise.
39030         * modules/strndup: Likewise.
39031         * modules/strnlen: Likewise.
39032         * modules/strpbrk: Likewise.
39033         * modules/strsep: Likewise.
39034         * modules/strstr: Likewise.
39035         * modules/strtok_r: Likewise.
39036         * tests/test-dirname.c: Don't include "strdup.h", since
39037         <string.h> now suffices.
39038         * tests/test-memmem.c: Don't include "memmem.h", since
39039         <string.h> now suffices.
39040
39041 2007-01-25  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39044         *resultp is 0.
39045
39046         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39047         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39048         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39049         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39050
39051         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39052         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39053         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39054         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39055         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39056         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39057
39058 2007-01-24  Bruno Haible  <bruno@clisp.org>
39059
39060         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39061         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39062         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39063         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39064         gl_FUNC_FTS_CORE.
39065         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39066         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39067         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39068         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39069         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39070         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39071         gl_FUNC_FCHOWNAT.
39072         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39073         gl_FUNC_STRFTIME.
39074         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39075         Reported by Ralf Wildenhues.
39076
39077 2007-01-24  Bruno Haible  <bruno@clisp.org>
39078
39079         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39080         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39081         gl_GETADDRINFO.
39082         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39083         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39084         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39085
39086 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39087
39088         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39089         Don't use 'exit'; just return from 'main'.
39090         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39091
39092         * lib/fnmatch_.h: Readjust white space and comments to match
39093         glibc, to avoid spurious diffs.
39094
39095 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39096
39097         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39098         2004-12-01 change by Jakub Jelinek, since this code won't compile
39099         if !LIBC.  Problem reported by Bob Proulx.
39100
39101 2007-01-23  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/striconveh.c: Include c-strcaseeq.h.
39104         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39105         * modules/striconveh (Depends-on): Add c-strcaseeq.
39106
39107 2007-01-23  Bruno Haible  <bruno@clisp.org>
39108
39109         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39110
39111         * modules/c-strcaseeq: New file.
39112         * lib/c-strcaseeq.h: New file.
39113
39114         * modules/streq: New file.
39115         * lib/streq.h: New file.
39116
39117 2007-01-23  Bruno Haible  <bruno@clisp.org>
39118
39119         * modules/striconveha-tests: New file.
39120         * tests/test-striconveha.c: New file.
39121
39122         * lib/striconveha.h: Include <stdbool.h>.
39123         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39124         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39125         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39126         (mem_iconveha): New function.
39127         (str_iconveha_notranslit): Renamed from str_iconveha.
39128         (str_iconveha): New function.
39129         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39130         c-strcase.
39131
39132 2007-01-23  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39135         encodings without forgiving before trying any encoding with handler.
39136         (str_iconveha): Try all encodings without forgiving before trying any
39137         encoding with handler.
39138
39139 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39140
39141         Import the following changes from libc.
39142
39143         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39144
39145         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39146
39147         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39148
39149         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39150         normal_bracket label.
39151
39152         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39153
39154         [BZ #361]
39155         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39156         to normal_bracket after fetching the next character.
39157
39158 2007-01-22  Bruno Haible  <bruno@clisp.org>
39159
39160         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39161         argument.
39162         * lib/striconveh.c (iconv_carefully_1): New function.
39163         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39164         argument.
39165         (str_cd_iconveh): Update.
39166         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39167         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39168         * tests/test-striconveh.c (MAGIC): New macro.
39169         (new_offsets): New function.
39170         (main): Test call with and without offsets.
39171
39172 2007-01-22  Bruno Haible  <bruno@clisp.org>
39173
39174         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39175         * modules/sys_select (Makefile.am): Likewise.
39176         * modules/sys_socket (Makefile.am): Likewise.
39177         * modules/sys_time (Makefile.am): Likewise.
39178
39179 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39180
39181         * modules/gettimeofday (License): Change from GPL to LGPL, since
39182         gettimeofday is a library function.
39183
39184 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39185
39186         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39187
39188 2007-01-21  Bruno Haible  <bruno@clisp.org>
39189
39190         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39191
39192 2007-01-21  Bruno Haible  <bruno@clisp.org>
39193
39194         * modules/striconveha: New file.
39195         * lib/striconveha.h: New file.
39196         * lib/striconveha.c: New file.
39197         * MODULES.html.sh (Internationalization functions): Add striconveha.
39198         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39199         string.
39200         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39201
39202 2007-01-21  Bruno Haible  <bruno@clisp.org>
39203
39204         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39205         * lib/striconveh.c (str_iconveh): Likewise.
39206
39207 2007-01-21  Bruno Haible  <bruno@clisp.org>
39208
39209         * lib/striconveh.h (mem_iconveh): New declaration.
39210         * lib/striconveh.c (mem_iconveh): New function.
39211         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39212
39213 2007-01-21  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39216
39217         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39218         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39219         original result buffer.
39220         (str_cd_iconveh): Update.
39221         * tests/test-striconveh.c (main): Update.
39222
39223         * lib/striconv.h (mem_cd_iconv): Change specification.
39224         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39225         result buffer.
39226         (str_cd_iconv): Update.
39227         * tests/test-striconv.c (main): Update.
39228
39229 2007-01-21  Bruno Haible  <bruno@clisp.org>
39230
39231         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39232
39233 2007-01-20  Jim Meyering  <jim@meyering.net>
39234
39235         * lib/userspec.c (parse_with_separator): If a user or group string
39236         starts with "+", skip the corresponding name-to-ID look-up, since
39237         such a look-up must fail: user and group names may not include "+".
39238
39239 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39240
39241         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39242         since we now assume the sys_time module.
39243         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39244         check for sys/time.h; no longer needed.
39245         * modules/poll (Depends-on): Depend on sys_time.
39246
39247 2007-01-18  Bruno Haible  <bruno@clisp.org>
39248
39249         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39250         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39251
39252         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39253         gettimeofday.
39254
39255         * tests/test-gettimeofday.c: Include <time.h>.
39256         (dummy): Remove variable.
39257
39258         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39259         gl_HEADER_SYS_TIME_H.
39260         (gl_HEADER_SYS_TIME_H): New macro.
39261
39262         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39263         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39264         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39265         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39266         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39268         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39269         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39270         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39271         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39272         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39273
39274         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39275         last change; it caused a compilation error when cross-compiling to
39276         Cygwin.
39277
39278 2007-01-18  Jim Meyering  <jim@meyering.net>
39279
39280         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39281         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39282         than the race-prone "test -d sys || mkdir sys".
39283         (configure.ac): Use AC_PROG_MKDIR_P.
39284         * modules/sys_select: Likewise.
39285         * modules/sys_socket: Likewise.
39286         * modules/sys_time: Likewise.
39287
39288 2007-01-18  Eric Blake  <ebb9@byu.net>
39289
39290         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39291         replace gettimeofday.
39292         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39293         name, to avoid infinite recursion.
39294
39295 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39296
39297         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39298         module sys_time.
39299         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39300         assume timespec.h defines struct timeval.
39301         * lib/settime.c: Likewise.
39302         * lib/utimens.c: Likewise.
39303         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39304         since we now assume the gettimeofday module.
39305         * lib/tempname.c (__gen_tempname): Likewise.
39306         * lib/gettimeofday.h: Remove.
39307         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39308         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39309         Include <time.h>, for 'time()'.
39310         (localtime_buffer_addr): Also use this workaround if
39311         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39312         to simplify the uses.  All uses changed.
39313         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39314         that #undef is inside {}, and 'const' follows type name consistently.
39315         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39316         (gettimeofday): Do not use the maximum possible value for
39317         tv->tv_usec, since that might break usages other than ls.c.
39318         Instead, we'll leave ls.c alone.  This undoes today's patch
39319         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39320         we've never observed the problem but might as well keep the
39321         canary.
39322         * lib/nanosleep.c: Include timespec.h first, for interface check.
39323         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39324         now assume the sys_time module.
39325         * lib/tempname.c: Likewise.
39326         * lib/timespec.h: Likewise.
39327         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39328         needed.
39329         * lib/strftime.c: Likewise.
39330         * lib/timespec.h: Likewise.
39331         * lib/posixtm.c: Include posixtm.h first, for interface check.
39332         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39333         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39334         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39335         * lib/sys_time_.h: New file.
39336         * lib/timespec.h (struct timespec): Use long int, not long.
39337         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39338         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39339         Remove obsolescent call to AC_HEADER_TIME.
39340         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39342         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39343         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39344         Likewise.
39345         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39346         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39347         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39348         into the sys_time module.  Check for gettimeofday just once.
39349         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39350         for gettimeofday signature to just check the signature.  Merely
39351         compile it, since linking doesn't test signature.  Improve test for
39352         whether gettimeofday.o is actually needed.
39353         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39354         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39355         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39356         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39357         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39358         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39359         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39360         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39361         than worrying about sys/time.h.
39362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39363         Don't bother worrying about TIME_WITH_SYS_TIME.
39364         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39365         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39366         * m4/sys_time_h.m4: New file.
39367         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39368         Don't include sys/time.h.  Return from main rather than exiting.
39369         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39370         all uses changed.
39371         * modules/gethrxtime (Depends-on): Add sys_time.
39372         * modules/gettime (Depends-on): Likewise.
39373         * modules/gettimeofday (Depends-on): Likewise.
39374         * modules/nanosleep (Depends-on): Likewise.
39375         * modules/settime (Depends-on): Likewise.
39376         * modules/tempname (Depends-on): Likewise.
39377         * modules/utimens (Depends-on): Likewise.
39378         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39379         (Include:) Change back to <sys/time.h>.
39380         (Maintainer:) Add self.
39381         * modules/sys_time: New file.
39382         * modules/tempname (Depends-on): Add gettimeofday.
39383         * tests/test-gettimeofday.c: Include <sys/time.h>
39384         rather than gettimeofday.h.
39385
39386 2007-01-17  Bruno Haible  <bruno@clisp.org>
39387
39388         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39389         the license default to GPL.
39390         (func_create_testdir): Don't complain if a module is LGPL and its
39391         tests module depends on GPLed modules.
39392
39393 2007-01-17  Bruno Haible  <bruno@clisp.org>
39394
39395         * lib/gettimeofday.c (gettimeofday): Add code for the case
39396         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39397         maximum possible value for tv->tv_usec, rather than the minimum one.
39398
39399 2005-10-08  Martin Lambers  <marlam@marlam.de>
39400 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39401 2007-01-16  Bruno Haible  <bruno@clisp.org>
39402
39403         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39404         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39405         gl_FUNC_GETTIMEOFDAY.
39406         (Include): Add gettimeofday.h.
39407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39408         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39409         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39410         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39411         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39412         * lib/gettimeofday.h: New file.
39413         * lib/gettimeofday.c: Include <sys/timeb.h>.
39414         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39415         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39416         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39417         fall back on time().
39418
39419         * tests/test-gettimeofday.c: New file.
39420         * modules/gettimeofday-tests: New file.
39421
39422 2007-01-16  Eric Blake  <ebb9@byu.net>
39423
39424         * modules/fnmatch (Depends-on): Depend on wchar.
39425         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39426         * m4/fnmatch.m4: Likewise.
39427         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39428         * m4/mbchar.m4: Likewise.
39429         * modules/mbswidth (Depends-on): Depend on wchar.
39430         * lib/mbswidth.c: Assume <wchar.h>.
39431         * m4/mbswidth.m4: Likewise.
39432         * modules/quotearg (Depends-on): Depend on wchar.
39433         * lib/quotearg.c: Assume <wchar.h>.
39434         * m4/quotearg.m4: Likewise.
39435         * modules/regex (Depends-on): Depend on wchar.
39436         * lib/regex_internal.h: Assume <wchar.h>.
39437         * m4/regex.m4: Likewise.
39438         * modules/stdint (Depends-on): Depend on wchar.
39439         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39440         * m4/stdint.m4: Likewise.
39441         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39442         * modules/strftime (Depends-on): Depend on wchar.
39443         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39444         * modules/strtol (Depends-on): Depend on wchar.
39445         * lib/strtol.c: Assume <wchar.h>.
39446         * modules/wcwidth (Depends-on): Depend on wchar.
39447         * lib/wcwidth.h: Assume <wchar.h>.
39448         * m4/wcwidth.m4: Likewise.
39449
39450 2007-01-16  Bruno Haible  <bruno@clisp.org>
39451
39452         * modules/csharpexec-script: New, created from...
39453         * modules/csharpexec: ... this.
39454
39455 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39456
39457         * modules/javaexec-script: New, created from...
39458         * modules/javaexec: ... this.
39459
39460 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39461
39462         * modules/poll (Dependencies): Add sys_select.
39463
39464 2007-01-15  Jim Meyering  <jim@meyering.net>
39465
39466         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39467         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39468         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39469         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39470
39471 2007-01-15  Bruno Haible  <bruno@clisp.org>
39472
39473         * modules/striconveh: New file.
39474         * lib/striconveh.h: New file.
39475         * lib/striconveh.c: New file.
39476         * MODULES.html.sh (Internationalization functions): Add striconveh.
39477
39478         * modules/striconveh-tests: New file.
39479         * tests/test-striconveh.c: New file.
39480
39481 2007-01-15  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39484         not from GNU libiconv or GNU libc.
39485
39486 2007-01-15  Bruno Haible  <bruno@clisp.org>
39487
39488         * doc/gnulib-intro.texi (Copyright): Explain the different license
39489         terms for module descriptions, autoconf macros, tests, documentation.
39490
39491 2007-01-14  Bruno Haible  <bruno@clisp.org>
39492
39493         * modules/striconv-tests: New file.
39494         * tests/test-striconv.c: New file.
39495
39496 2007-01-14  Bruno Haible  <bruno@clisp.org>
39497
39498         * modules/iconv-tests: New file.
39499         * tests/test-iconv.c: New file.
39500
39501 2007-01-14  Bruno Haible  <bruno@clisp.org>
39502
39503         * gnulib-tool (func_get_license): For test modules, use the license of
39504         the main module.
39505
39506 2007-01-14  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39509         if iconv is found to exist.
39510
39511 2007-01-14  Bruno Haible  <bruno@clisp.org>
39512
39513         * modules/c-ctype-tests: New file.
39514         * tests/test-c-ctype.c: New file.
39515
39516 2007-01-14  Bruno Haible  <bruno@clisp.org>
39517
39518         * modules/binary-io-tests: New file.
39519         * tests/test-binary-io.sh: New file.
39520         * tests/test-binary-io.c: New file.
39521
39522 2007-01-14  Bruno Haible  <bruno@clisp.org>
39523
39524         * modules/array-oset-tests: New file.
39525         * tests/test-array_oset.c: New file.
39526
39527 2007-01-14  Bruno Haible  <bruno@clisp.org>
39528
39529         * modules/array-list-tests: New file.
39530         * tests/test-array_list.c: New file.
39531
39532 2007-01-14  Bruno Haible  <bruno@clisp.org>
39533
39534         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39535         and make.
39536         Reported by Simon Josefsson in
39537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39538
39539 2007-01-14  Bruno Haible  <bruno@clisp.org>
39540
39541         * modules/allocsa-tests: New file.
39542         * tests/test-allocsa.c: New file.
39543
39544 2007-01-14  Bruno Haible  <bruno@clisp.org>
39545
39546         * modules/fchdir (Depends-on): Add absolute-header.
39547         * modules/unistd (Depends-on): Likewise.
39548
39549 2006-12-30  Bruno Haible  <bruno@clisp.org>
39550
39551         * modules/fchdir: New file.
39552         * modules/unistd (Files): Add lib/unistd_.h.
39553         (Makefile.am): Generate unistd.h from unistd_.h.
39554         * lib/fchdir.c: New file.
39555         * lib/dirent_.h: New file.
39556         * lib/unistd_.h: New file.
39557         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39558         * m4/fchdir.m4: New file.
39559         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39560         (gl_HEADER_UNISTD): Invoke it.
39561         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39562         function.
39563         * lib/backupfile.c (opendir, closedir): Undefine.
39564         * lib/chown.c (open, close): Undefine.
39565         * lib/clean-temp.c (open, close): Undefine.
39566         * lib/copy-file.c (open, close): Undefine.
39567         * lib/execute.c (open, close): Undefine.
39568         * lib/fsusage.c (open, close): Undefine.
39569         * lib/gc-gnulib.c (open, close): Undefine.
39570         * lib/getcwd.c (opendir, closedir): Undefine.
39571         * lib/glob.c (opendir, closedir): Undefine.
39572         * lib/javacomp.c (open, close): Undefine.
39573         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39574         * lib/openat-proc.c (open, close): Undefine.
39575         * lib/pagealign_alloc.c (open, close): Undefine.
39576         * lib/pipe.c (open, close): Undefine.
39577         * lib/progreloc.c (open, close): Undefine.
39578         * lib/savedir.c (opendir, closedir): Undefine.
39579         * lib/utime.c (open, close): Undefine.
39580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39581
39582 2007-01-10  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39585
39586 2007-01-12  Eric Blake  <ebb9@byu.net>
39587
39588         Provide a robust <wchar.h>.  Further simplifications are now
39589         possible in other modules, but not included here.
39590         * modules/wchar: New module.
39591         * m4/wchar.m4: New file.
39592         * lib/wchar_.h: Likewise.
39593         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39594         of the new module.
39595         * MODULES.html.sh (Extended multibyte and wide character utilities):
39596         New section.
39597
39598 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39601         to a reasonable default for memory allocation.
39602         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39603         file system that reports garbage st_size values for symlinks.
39604         Problem reported by Liyang Hu.
39605
39606 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39607
39608         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39609         Emacs .#* auto-save files).
39610
39611 2007-01-11  Bruno Haible  <bruno@clisp.org>
39612
39613         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39614         directory.
39615
39616 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39617
39618         Use @...@ consistently in lib/wctype_.h.
39619         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39620         on it being set to 1 or 0.
39621         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39622         go back to AC_SUBSTing it.
39623         * modules/wctype (Makefile.am): Undo previous change.
39624
39625 2007-01-10  Eric Blake  <ebb9@byu.net>
39626
39627         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39628         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39629         * modules/wctype (Makefile.am): Likewise.
39630         Reported by Chris McGuire.
39631
39632 2007-01-10  Jim Meyering  <jim@meyering.net>
39633
39634         fts.c: a small readability/maintainability improvement
39635         * lib/fts.c (fts_read): Make this code slightly more readable and
39636         maintainable by hoisting the "sp->fts_cur = p" assignments to
39637         immediately follow the statements that set P.  Derived from
39638         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39639
39640 2007-01-10  Eric Blake  <ebb9@byu.net>
39641
39642         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39643         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39645         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39646         Reported by Chris McGuire.
39647
39648 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39649
39650         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39651         in sed script.
39652
39653 2007-01-09  Bruno Haible  <bruno@clisp.org>
39654
39655         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39656         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39657         variables.
39658         (func_module): Use them.
39659
39660 2007-01-09  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/unistr/base: New file.
39663         * lib/unistr.h: New file.
39664
39665         * modules/unistr/u8-to-u16: New file.
39666         * lib/unistr/u8-to-u16.c: New file.
39667
39668         * modules/unistr/u8-to-u32: New file.
39669         * lib/unistr/u8-to-u32.c: New file.
39670
39671         * modules/unistr/u16-to-u8: New file.
39672         * lib/unistr/u16-to-u8.c: New file.
39673
39674         * modules/unistr/u16-to-u32: New file.
39675         * lib/unistr/u16-to-u32.c: New file.
39676
39677         * modules/unistr/u32-to-u8: New file.
39678         * lib/unistr/u32-to-u8.c: New file.
39679
39680         * modules/unistr/u32-to-u16: New file.
39681         * lib/unistr/u32-to-u16.c: New file.
39682
39683         * modules/unistr/u8-check: New file.
39684         * modules/unistr/u16-check: New file.
39685         * modules/unistr/u32-check: New file.
39686         * lib/unistr/u8-check.c: New file.
39687         * lib/unistr/u16-check.c: New file.
39688         * lib/unistr/u32-check.c: New file.
39689
39690         * modules/unistr/u8-chr: New file.
39691         * modules/unistr/u16-chr: New file.
39692         * modules/unistr/u32-chr: New file.
39693         * lib/unistr/u8-chr.c: New file.
39694         * lib/unistr/u16-chr.c: New file.
39695         * lib/unistr/u32-chr.c: New file.
39696
39697         * modules/unistr/u8-cmp: New file.
39698         * modules/unistr/u16-cmp: New file.
39699         * modules/unistr/u32-cmp: New file.
39700         * lib/unistr/u8-cmp.c: New file.
39701         * lib/unistr/u16-cmp.c: New file.
39702         * lib/unistr/u32-cmp.c: New file.
39703
39704         * modules/unistr/u8-cpy: New file.
39705         * modules/unistr/u16-cpy: New file.
39706         * modules/unistr/u32-cpy: New file.
39707         * lib/unistr/u8-cpy.c: New file.
39708         * lib/unistr/u16-cpy.c: New file.
39709         * lib/unistr/u32-cpy.c: New file.
39710         * lib/unistr/u-cpy.h: New file.
39711
39712         * modules/unistr/u8-cpy-alloc: New file.
39713         * modules/unistr/u16-cpy-alloc: New file.
39714         * modules/unistr/u32-cpy-alloc: New file.
39715         * lib/unistr/u8-cpy-alloc.c: New file.
39716         * lib/unistr/u16-cpy-alloc.c: New file.
39717         * lib/unistr/u32-cpy-alloc.c: New file.
39718         * lib/unistr/u-cpy-alloc.h: New file.
39719
39720         * modules/unistr/u8-endswith: New file.
39721         * modules/unistr/u16-endswith: New file.
39722         * modules/unistr/u32-endswith: New file.
39723         * lib/unistr/u8-endswith.c: New file.
39724         * lib/unistr/u16-endswith.c: New file.
39725         * lib/unistr/u32-endswith.c: New file.
39726         * lib/unistr/u-endswith.h: New file.
39727
39728         * modules/unistr/u8-mblen: New file.
39729         * modules/unistr/u16-mblen: New file.
39730         * modules/unistr/u32-mblen: New file.
39731         * lib/unistr/u8-mblen.c: New file.
39732         * lib/unistr/u16-mblen.c: New file.
39733         * lib/unistr/u32-mblen.c: New file.
39734
39735         * modules/unistr/u8-mbtouc: New file.
39736         * modules/unistr/u16-mbtouc: New file.
39737         * modules/unistr/u32-mbtouc: New file.
39738         * lib/unistr/u8-mbtouc.c: New file.
39739         * lib/unistr/u16-mbtouc.c: New file.
39740         * lib/unistr/u32-mbtouc.c: New file.
39741
39742         * modules/unistr/u8-mbtouc-safe: New file.
39743         * modules/unistr/u16-mbtouc-safe: New file.
39744         * modules/unistr/u32-mbtouc-safe: New file.
39745         * lib/unistr/u8-mbtouc-safe.c: New file.
39746         * lib/unistr/u16-mbtouc-safe.c: New file.
39747         * lib/unistr/u32-mbtouc-safe.c: New file.
39748
39749         * modules/unistr/u8-move: New file.
39750         * modules/unistr/u16-move: New file.
39751         * modules/unistr/u32-move: New file.
39752         * lib/unistr/u8-move.c: New file.
39753         * lib/unistr/u16-move.c: New file.
39754         * lib/unistr/u32-move.c: New file.
39755         * lib/unistr/u-move.h: New file.
39756
39757         * modules/unistr/u8-next: New file.
39758         * modules/unistr/u16-next: New file.
39759         * modules/unistr/u32-next: New file.
39760         * lib/unistr/u8-next.c: New file.
39761         * lib/unistr/u16-next.c: New file.
39762         * lib/unistr/u32-next.c: New file.
39763
39764         * modules/unistr/u8-prev: New file.
39765         * modules/unistr/u16-prev: New file.
39766         * modules/unistr/u32-prev: New file.
39767         * lib/unistr/u8-prev.c: New file.
39768         * lib/unistr/u16-prev.c: New file.
39769         * lib/unistr/u32-prev.c: New file.
39770
39771         * modules/unistr/u8-set: New file.
39772         * modules/unistr/u16-set: New file.
39773         * modules/unistr/u32-set: New file.
39774         * lib/unistr/u8-set.c: New file.
39775         * lib/unistr/u16-set.c: New file.
39776         * lib/unistr/u32-set.c: New file.
39777         * lib/unistr/u-set.h: New file.
39778
39779         * modules/unistr/u8-startswith: New file.
39780         * modules/unistr/u16-startswith: New file.
39781         * modules/unistr/u32-startswith: New file.
39782         * lib/unistr/u8-startswith.c: New file.
39783         * lib/unistr/u16-startswith.c: New file.
39784         * lib/unistr/u32-startswith.c: New file.
39785         * lib/unistr/u-startswith.h: New file.
39786
39787         * modules/unistr/u8-stpcpy: New file.
39788         * modules/unistr/u16-stpcpy: New file.
39789         * modules/unistr/u32-stpcpy: New file.
39790         * lib/unistr/u8-stpcpy.c: New file.
39791         * lib/unistr/u16-stpcpy.c: New file.
39792         * lib/unistr/u32-stpcpy.c: New file.
39793         * lib/unistr/u-stpcpy.h: New file.
39794
39795         * modules/unistr/u8-stpncpy: New file.
39796         * modules/unistr/u16-stpncpy: New file.
39797         * modules/unistr/u32-stpncpy: New file.
39798         * lib/unistr/u8-stpncpy.c: New file.
39799         * lib/unistr/u16-stpncpy.c: New file.
39800         * lib/unistr/u32-stpncpy.c: New file.
39801         * lib/unistr/u-stpncpy.h: New file.
39802
39803         * modules/unistr/u8-strcat: New file.
39804         * modules/unistr/u16-strcat: New file.
39805         * modules/unistr/u32-strcat: New file.
39806         * lib/unistr/u8-strcat.c: New file.
39807         * lib/unistr/u16-strcat.c: New file.
39808         * lib/unistr/u32-strcat.c: New file.
39809         * lib/unistr/u-strcat.h: New file.
39810
39811         * modules/unistr/u8-strchr: New file.
39812         * modules/unistr/u16-strchr: New file.
39813         * modules/unistr/u32-strchr: New file.
39814         * lib/unistr/u8-strchr.c: New file.
39815         * lib/unistr/u16-strchr.c: New file.
39816         * lib/unistr/u32-strchr.c: New file.
39817
39818         * modules/unistr/u8-strcmp: New file.
39819         * modules/unistr/u16-strcmp: New file.
39820         * modules/unistr/u32-strcmp: New file.
39821         * lib/unistr/u8-strcmp.c: New file.
39822         * lib/unistr/u16-strcmp.c: New file.
39823         * lib/unistr/u32-strcmp.c: New file.
39824
39825         * modules/unistr/u8-strcpy: New file.
39826         * modules/unistr/u16-strcpy: New file.
39827         * modules/unistr/u32-strcpy: New file.
39828         * lib/unistr/u8-strcpy.c: New file.
39829         * lib/unistr/u16-strcpy.c: New file.
39830         * lib/unistr/u32-strcpy.c: New file.
39831         * lib/unistr/u-strcpy.h: New file.
39832
39833         * modules/unistr/u8-strcspn: New file.
39834         * modules/unistr/u16-strcspn: New file.
39835         * modules/unistr/u32-strcspn: New file.
39836         * lib/unistr/u8-strcspn.c: New file.
39837         * lib/unistr/u16-strcspn.c: New file.
39838         * lib/unistr/u32-strcspn.c: New file.
39839         * lib/unistr/u-strcspn.h: New file.
39840
39841         * modules/unistr/u8-strdup: New file.
39842         * modules/unistr/u16-strdup: New file.
39843         * modules/unistr/u32-strdup: New file.
39844         * lib/unistr/u8-strdup.c: New file.
39845         * lib/unistr/u16-strdup.c: New file.
39846         * lib/unistr/u32-strdup.c: New file.
39847         * lib/unistr/u-strdup.h: New file.
39848
39849         * modules/unistr/u8-strlen: New file.
39850         * modules/unistr/u16-strlen: New file.
39851         * modules/unistr/u32-strlen: New file.
39852         * lib/unistr/u8-strlen.c: New file.
39853         * lib/unistr/u16-strlen.c: New file.
39854         * lib/unistr/u32-strlen.c: New file.
39855         * lib/unistr/u-strlen.h: New file.
39856
39857         * modules/unistr/u8-strmblen: New file.
39858         * modules/unistr/u16-strmblen: New file.
39859         * modules/unistr/u32-strmblen: New file.
39860         * lib/unistr/u8-strmblen.c: New file.
39861         * lib/unistr/u16-strmblen.c: New file.
39862         * lib/unistr/u32-strmblen.c: New file.
39863
39864         * modules/unistr/u8-strmbtouc: New file.
39865         * modules/unistr/u16-strmbtouc: New file.
39866         * modules/unistr/u32-strmbtouc: New file.
39867         * lib/unistr/u8-strmbtouc.c: New file.
39868         * lib/unistr/u16-strmbtouc.c: New file.
39869         * lib/unistr/u32-strmbtouc.c: New file.
39870
39871         * modules/unistr/u8-strncat: New file.
39872         * modules/unistr/u16-strncat: New file.
39873         * modules/unistr/u32-strncat: New file.
39874         * lib/unistr/u8-strncat.c: New file.
39875         * lib/unistr/u16-strncat.c: New file.
39876         * lib/unistr/u32-strncat.c: New file.
39877         * lib/unistr/u-strncat.h: New file.
39878
39879         * modules/unistr/u8-strncmp: New file.
39880         * modules/unistr/u16-strncmp: New file.
39881         * modules/unistr/u32-strncmp: New file.
39882         * lib/unistr/u8-strncmp.c: New file.
39883         * lib/unistr/u16-strncmp.c: New file.
39884         * lib/unistr/u32-strncmp.c: New file.
39885
39886         * modules/unistr/u8-strncpy: New file.
39887         * modules/unistr/u16-strncpy: New file.
39888         * modules/unistr/u32-strncpy: New file.
39889         * lib/unistr/u8-strncpy.c: New file.
39890         * lib/unistr/u16-strncpy.c: New file.
39891         * lib/unistr/u32-strncpy.c: New file.
39892         * lib/unistr/u-strncpy.h: New file.
39893
39894         * modules/unistr/u8-strnlen: New file.
39895         * modules/unistr/u16-strnlen: New file.
39896         * modules/unistr/u32-strnlen: New file.
39897         * lib/unistr/u8-strnlen.c: New file.
39898         * lib/unistr/u16-strnlen.c: New file.
39899         * lib/unistr/u32-strnlen.c: New file.
39900         * lib/unistr/u-strnlen.h: New file.
39901
39902         * modules/unistr/u8-strpbrk: New file.
39903         * modules/unistr/u16-strpbrk: New file.
39904         * modules/unistr/u32-strpbrk: New file.
39905         * lib/unistr/u8-strpbrk.c: New file.
39906         * lib/unistr/u16-strpbrk.c: New file.
39907         * lib/unistr/u32-strpbrk.c: New file.
39908         * lib/unistr/u-strpbrk.h: New file.
39909
39910         * modules/unistr/u8-strrchr: New file.
39911         * modules/unistr/u16-strrchr: New file.
39912         * modules/unistr/u32-strrchr: New file.
39913         * lib/unistr/u8-strrchr.c: New file.
39914         * lib/unistr/u16-strrchr.c: New file.
39915         * lib/unistr/u32-strrchr.c: New file.
39916
39917         * modules/unistr/u8-strspn: New file.
39918         * modules/unistr/u16-strspn: New file.
39919         * modules/unistr/u32-strspn: New file.
39920         * lib/unistr/u8-strspn.c: New file.
39921         * lib/unistr/u16-strspn.c: New file.
39922         * lib/unistr/u32-strspn.c: New file.
39923         * lib/unistr/u-strspn.h: New file.
39924
39925         * modules/unistr/u8-strstr: New file.
39926         * modules/unistr/u16-strstr: New file.
39927         * modules/unistr/u32-strstr: New file.
39928         * lib/unistr/u8-strstr.c: New file.
39929         * lib/unistr/u16-strstr.c: New file.
39930         * lib/unistr/u32-strstr.c: New file.
39931         * lib/unistr/u-strstr.h: New file.
39932
39933         * modules/unistr/u8-strtok: New file.
39934         * modules/unistr/u16-strtok: New file.
39935         * modules/unistr/u32-strtok: New file.
39936         * lib/unistr/u8-strtok.c: New file.
39937         * lib/unistr/u16-strtok.c: New file.
39938         * lib/unistr/u32-strtok.c: New file.
39939         * lib/unistr/u-strtok.h: New file.
39940
39941         * modules/unistr/u8-uctomb: New file.
39942         * modules/unistr/u16-uctomb: New file.
39943         * modules/unistr/u32-uctomb: New file.
39944         * lib/unistr/u8-uctomb.c: New file.
39945         * lib/unistr/u16-uctomb.c: New file.
39946         * lib/unistr/u32-uctomb.c: New file.
39947
39948         * MODULES.html.sh (Unicode string functions): Add the new modules.
39949
39950 2007-01-08  Bruno Haible  <bruno@clisp.org>
39951
39952         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39953         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39954         subdirectories.
39955
39956 2007-01-08  Karl Berry  <karl@gnu.org>
39957
39958         * doc/error.texi: mention that main() fns must set program_name
39959         when progname is used.
39960
39961 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39962
39963         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39964         WCTYPE_H is empty, for the benefit of builds from non-distclean
39965         directories.  Problem reported by Eric Blake in
39966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39967
39968 2007-01-08  Bruno Haible  <bruno@clisp.org>
39969
39970         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39971         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39972         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39973         PROVIDE_CANONICALIZE_FILENAME_MODE.
39974         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39975
39976 2007-01-08  Bruno Haible  <bruno@clisp.org>
39977
39978         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39979         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39980         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39981         * lib/fts.c: Likewise.
39982         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39983
39984 2006-12-25  Bruno Haible  <bruno@clisp.org>
39985
39986         * modules/utf8-ucs4-safe: New file.
39987         * lib/utf8-ucs4-safe.h: New file.
39988         * lib/unistr/utf8-ucs4-safe.c: New file.
39989
39990         * modules/utf16-ucs4-safe: New file.
39991         * lib/utf16-ucs4-safe.h: New file.
39992         * lib/unistr/utf16-ucs4-safe.c: New file.
39993
39994         * MODULES.html.sh (Unicode string functions): Add the new modules.
39995
39996 2007-01-08  Bruno Haible  <bruno@clisp.org>
39997
39998         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39999         (Depends-on): Add unitypes.
40000         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40001         (u8_mbtouc_aux): Move out to separate file.
40002         (u8_mbtouc): Use ucs4_t, uint8_t types.
40003         * lib/unistr/utf8-ucs4.c: New file.
40004
40005         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40006         (Depends-on): Add unitypes.
40007         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40008         (u16_mbtouc_aux): Move out to separate file.
40009         (u16_mbtouc): Use ucs4_t, uint16_t types.
40010         * lib/unistr/utf16-ucs4.c: New file.
40011
40012         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40013         (Depends-on): Add unitypes.
40014         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40015         (u8_uctomb_aux): Move out to separate file.
40016         (u8_uctomb): Use ucs4_t, uint8_t types.
40017         * lib/unistr/ucs4-utf8.c: New file.
40018
40019         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40020         (Depends-on): Add unitypes.
40021         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40022         (u16_uctomb_aux): Move out to separate file.
40023         (u16_uctomb): Use ucs4_t, uint16_t types.
40024         * lib/unistr/ucs4-utf16.c: New file.
40025
40026 2006-12-25  Bruno Haible  <bruno@clisp.org>
40027
40028         * modules/unitypes: New file.
40029         * lib/unitypes.h: New file.
40030         * MODULES.html.sh (func_all_modules): New section "Unicode string
40031         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40032         this section. Add unitypes.
40033
40034 2007-01-08  Bruno Haible  <bruno@clisp.org>
40035
40036         Avoid variable names that conflict with those from libtool.
40037         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40038         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40039         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40040         library_names_spec to acl_library_names_spec, hardcode_* to
40041         acl_hardcode_*.
40042         Reported by Ralf Wildenhues.
40043
40044 2007-01-08  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40047         definition.
40048         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40049         definition.
40050         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40051         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40052         definition.
40053         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40054         definition.
40055         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40056         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40057         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40058         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40059         definition.
40060         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40061         definition.
40062         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40063         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40064         GC_USE_<algorithm>.
40065         * lib/gc-libgcrypt.c: Likewise.
40066         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40067         * modules/gc-arctwo (configure.ac): Likewise.
40068         * modules/gc-des (configure.ac): Likewise.
40069         * modules/gc-hmac-md5 (configure.ac): Likewise.
40070         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40071         * modules/gc-md2 (configure.ac): Likewise.
40072         * modules/gc-md4 (configure.ac): Likewise.
40073         * modules/gc-md5 (configure.ac): Likewise.
40074         * modules/gc-random (configure.ac): Likewise.
40075         * modules/gc-rijndael (configure.ac): Likewise.
40076         * modules/gc-sha1 (configure.ac): Likewise.
40077
40078 2007-01-08  Bruno Haible  <bruno@clisp.org>
40079
40080         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40081         macro definition.
40082         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40083         definition.
40084         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40085         definition.
40086         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40087         * modules/fcntl-safer (configure.ac): Likewise.
40088         * modules/fopen-safer (configure.ac): Likewise.
40089         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40090         GNULIB_FWRITEERROR macro definition.
40091
40092 2007-01-08  Bruno Haible  <bruno@clisp.org>
40093
40094         * m4/gnulib-common.m4: New file.
40095         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40096         (func_get_filelist): Add m4/gnulib-common.m4.
40097
40098 2007-01-08  Bruno Haible  <bruno@clisp.org>
40099
40100         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40101         command.
40102
40103 2007-01-08  Jim Meyering  <jim@meyering.net>
40104
40105         Use a more robust test for a "can't happen" condition.
40106         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40107         narrowed the st_size value.  Presuming the "can't happen" condition
40108         is true, that narrowing could conceivably convert an invalid st_size
40109         value into a valid one.  Instead, use a change based on Matthew
40110         Woehlke's original patch.
40111
40112         Slight readability improvement: use an assert-like macro
40113         in place of literal "abort ()" uses.
40114         * lib/fts.c (fts_assert): Define.
40115         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40116         Use this macro instead of a bare 'abort'.
40117
40118 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40119
40120         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40121         simply work around them.
40122         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40123         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40124         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40125         declaring.
40126         Don't bother to define as macros, since the standard doesn't require it.
40127         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40128         longer worry about IRIX 5.3.
40129         (HAVE_WCTYPE_CTMP_BUG): Remove.
40130
40131 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40132
40133         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40134         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40135         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40136         Problems reported by Georg Schwarz for IRIX 5.3.
40137
40138         * gnulib-tool (autoconf_minversion): Take the maximum version number
40139         found, not the minimum.  Problem reported by James Youngman.
40140
40141 2007-01-03  Karl Berry  <karl@gnu.org>
40142
40143         * doc/error.texi: new file, explaining interaction with progname.
40144         * doc/gnulib.texi: include it.  Update copyright.
40145
40146 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40147
40148         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40149         AC_CANONICAL_HOST, to improve autobuild outputs.
40150
40151 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40152             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40153
40154         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40155         sockets, server sockets, and other file descriptors.  Count errors
40156         to compute the return value.  Reorder the code a bit to be easier
40157         to follow.  Don't set event bits that were not requested (except
40158         POLLERR and POLLHUP).
40159
40160 2007-01-01  Bruno Haible  <bruno@clisp.org>
40161
40162         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40163
40164 2007-01-03  Jim Meyering  <jim@meyering.net>
40165
40166         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40167
40168 2007-01-02  Bruno Haible  <bruno@clisp.org>
40169
40170         * modules/settime (Include): Require timespec.h.
40171         * modules/nanosleep (Include): Likewise.
40172
40173 2007-01-01  Bruno Haible  <bruno@clisp.org>
40174
40175         * gnulib-tool (func_emit_copyright_notice): Bump year.
40176         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40177
40178 2007-01-01  Bruno Haible  <bruno@clisp.org>
40179
40180         Improve support for OpenBSD.
40181         * build-aux/config.rpath (libname_spec): Export.
40182         (library_names_spec): New variable. Export.
40183         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40184         library_names_spec from the config.rpath output. Locate shared library
40185         through the name pattern in library_names_spec.
40186
40187 2007-01-01  Eric Blake  <ebb9@byu.net>
40188
40189         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40190
40191 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40194         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40195         assume the C locale, and avoid an "eval" that could cause trouble.
40196         Problem with SORT reported by Bob Proulx.
40197
40198         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40199         Define.  Trivial patch from Henning Nielsen Lund, originally
40200         sent to bug-grep@gnu.org today.
40201
40202 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40203
40204         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40205         struct stat.  Problem reported by Henning Nielsen Lund.
40206         * lib/acl.c: Include acl.h first, to check interface.  Don't
40207         bother to include sys/types.h and sys/stat.h again.
40208
40209 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40210
40211         Import the following change from libc; problem reported by
40212         Sven Verdoolaege.
40213
40214         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40215
40216         [BZ #1373]
40217         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40218
40219 2006-12-28  Jim Meyering  <jim@meyering.net>
40220
40221         * build-aux/announce-gen: Do not assume that the package
40222         builds any of tar.gz, tar.bz2, and .xdelta files.
40223         Suggestion from Simon Josefsson.
40224
40225 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40226
40227         * modules/announce-gen: New file.
40228
40229 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40230
40231         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40232         handles its gotchas now.
40233         * lib/mbswidth.c: Likewise.
40234         * lib/wcwidth.h: Likewise.
40235         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40236         and iswcntrl; the wctype module does this stuff now.
40237         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40239         * modules/mbchar (Depends-on): Add wctype.
40240         * modules/mbswidth (Depends-on): Likewise.
40241         * modules/wcwidth (Depends-on): Likewise.
40242
40243 2006-12-27  Eric Blake  <ebb9@byu.net>
40244
40245         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40246         module uses more than what <wctype.h> is required to provide.
40247
40248 2006-12-26  Eric Blake  <ebb9@byu.net>
40249
40250         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40251
40252 2006-12-26  Eric Blake  <ebb9@byu.net>
40253
40254         * modules/absolute-header: New module.
40255         * modules/fcntl (Depends-on): Depend on it.
40256         * modules/inttypes (Depends-on): Likewise.
40257         * modules/stdint (Depends-on): Likewise.
40258         * modules/sys_stat (Depends-on): Likewise.
40259         * modules/wctype (Depends-on): Likewise.
40260         * MODULES.html.sh (Support for building libraries and
40261         executables): Document it.
40262
40263 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40264
40265         * gnulib-tool (SED): Remove, undoing previous change.
40266         The problem was that it broke coreutils on Solaris, because
40267         "sed --posix" leaked into a makefile.
40268         (sed): New alias, if 'alias' and GNU sed.
40269
40270 2006-12-24  Jim Meyering  <jim@meyering.net>
40271
40272         Work around an fchownat bug in glibc-2.4:
40273         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40274         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40275         in spite of the -P option.
40276         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40277         New macros.
40278         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40279         * modules/openat (Files): Add lib/fchownat.c.
40280         * lib/openat.c (fchownat): Don't define here.  Move to...
40281         * lib/fchownat.c: ...this new file.
40282
40283 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40284
40285         Fix bug reported by Bruno Haible in
40286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40287         where quotearg.c didn't compile on Mac OS X 10.2 because it
40288         lacks <wchar.h> and wint_t.
40289         * lib/wctype_.h (__wctype_wint_t): New type.
40290         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40291         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40292         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40293         Arg is now of type __wctype_wint_t, not wint_t.
40294         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40295         substitute HAVE_WINT_T.
40296         * modules/wctype (Files): Add m4/wint_t.m4.
40297         (wctype.h): Substitute HAVE_WINT_T.
40298
40299 2006-12-23  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40302
40303 2006-12-23  Bruno Haible  <bruno@clisp.org>
40304
40305         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40306         S_ISLNK.
40307         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40308         mingw.
40309
40310 2006-12-22  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/copy-file.c: Include acl.h.
40313         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40314         Close the file descriptors only after being done with copy_acl.
40315         * modules/copy-file (Depends-on): Add acl.
40316
40317 2006-12-22  Bruno Haible  <bruno@clisp.org>
40318
40319         * gnulib-tool (SED): New variable.
40320         Use $SED instead of sed everywhere.
40321
40322 2006-12-22  Bruno Haible  <bruno@clisp.org>
40323
40324         * modules/no-c++: New file.
40325         * m4/no-c++.m4: New file.
40326         * MODULES.html.sh (Support for building libraries and executables):
40327         Add no-c++.
40328
40329 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40330
40331         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40332         Include <limits.h>, and use its INT_MAX to rewrite the
40333         j loop so that it does not overflow 'int'.  Problem reported by
40334         Ralf Wildenhues in
40335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40336         Play it safe by shifting left by 1 rather than multiplying by 2,
40337         as GCC is less likely to optimize this away when the value
40338         is signed (when it assumes overflow leads to undefined behavior).
40339         Also, don't assume time_t uses two's complement.
40340
40341 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * MODULES.html.sh: New module wctype.
40344         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40345         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40346         <wctype.h>, since the new wctype module should fix this.
40347         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40348         the wctype module should arrange for it.
40349         * lib/regex_internal.h: Likewise.
40350         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40351         since the wctype module should handle this now.
40352         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40353         * modules/fnmatch (Depends-on): Add wctype.
40354         * modules/quotearg (Depends-on): Likewise.
40355         * modules/regex (Depends-on): Likewise.
40356
40357 2006-12-19  Bruno Haible  <bruno@clisp.org>
40358
40359         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40360         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40361
40362 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40363
40364         * modules/savewd (Depends-on): Fix dependency on fcntl.
40365
40366 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40367
40368         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40369         conforms to C99, rather than relying on the user's environment
40370         setting of STDINT_H.
40371
40372 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40373         and Eric Blake  <ebb9@byu.net>
40374
40375         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40376         This is more consistent with the other defines here.
40377         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40378         Port to z/OS.  Problem reported by Paul Gilmartin.
40379         Change local vars to use gl_ prefix rather than ac_.
40380         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40381         with other defines.
40382         * modules/double-slash-root: New module.
40383         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40384         (Depends-on): Add double-slash-root.
40385         * MODULES.html.sh (File system functions): Mention new module.
40386
40387 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40388
40389         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40390         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40391         This is for the benefit of gzip, which doesn't do i18n.
40392
40393 2006-12-12  Jim Meyering  <jim@meyering.net>
40394
40395         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40396         Reported by Andreas Schwab <schwab@suse.de>.
40397
40398 2006-12-12  Bruno Haible  <bruno@clisp.org>
40399
40400         Merge these changes.
40401         2006-09-05  Bruno Haible  <bruno@clisp.org>
40402         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40403         iconv_alloc succeeded.
40404         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40405         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40406         test for " && dest " at the end - dest is always != NULL there. Call
40407         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40408         with 2xNULL arguments, also to flush the state storage. Handle the
40409         IRIX iconv behaviour. Realloc the final result, to throw away unused
40410         memory.
40411
40412 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40415         and fchmodat unconditionally, since glibc 2.4 has them.
40416         Problem reported by Arkadiusz Miskiewicz.
40417
40418 2006-12-10  Bruno Haible  <bruno@clisp.org>
40419
40420         * gnulib-tool (func_import): Show the include files only for those
40421         modules that are copied and specified.
40422         Reported by Karl Berry.
40423
40424 2006-12-08  Jim Meyering  <jim@meyering.net>
40425
40426         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40427         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40428
40429         * build-aux/announce-gen: Add two new options, both optional:
40430         --bootstrap-tools=TOOL_LIST
40431               a comma-separated list of tools, e.g.,
40432               autoconf,automake,bison,gnulib
40433         --gnulib-snapshot-date=DATE
40434               if gnulib is in the bootstrap tool list,
40435               then report this as the snapshot date.
40436               If not specified, use the current date/time.
40437               If you specify a date here, be sure it's UTC.
40438
40439 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40440
40441         * tests/test-argp-2.sh: Fix test to match actual output.
40442         (func_compare): Fix sed script to be portable.
40443
40444 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40445
40446         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40447         workaround for this case.  It is not autoconfigured now; offhand
40448         it's hard to see how to autoconfigure it.
40449
40450 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40451
40452         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40453         a directory that is about to be chowned.  Such a directory's
40454         initial file permissions should permit the owner only and this
40455         should not be changed until after the chown, since the group and
40456         other bits would be incorrect if they granted permission before
40457         the chown.
40458
40459         Fix porting problem for iswctype reported by Georg Schwarz in:
40460         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40461         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40462         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40463         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40464         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40465
40466 2006-12-03  Jim Meyering  <jim@meyering.net>
40467
40468         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40469         p->fts_statp may not yet be defined.
40470         (fts_read): Instead, set it in the caller, once p->fts_statp is
40471         sure to be defined, and corresponds to a top-level directory.
40472         This bug made du -x fail.  Here's the coreutils test case:
40473         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40474         Reported by Mike Frysinger.
40475
40476 2006-12-01  Jim Meyering  <jim@meyering.net>
40477
40478         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40479         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40480         Reported by Simon Josefsson.
40481
40482 2006-11-30  Jim Meyering  <jim@meyering.net>
40483
40484         * m4/warning.m4: Use the all-permissive copyright notice
40485         recommended by RMS (rather than LGPL).
40486         * m4/vararrays.m4: Likewise.
40487         * m4/flexmember.m4: Likewise.
40488
40489 2006-11-29  Bruno Haible  <bruno@clisp.org>
40490
40491         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40492         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40493         using +=.
40494         Reported by Simon Josefsson <simon@josefsson.org>.
40495
40496 2006-11-28  James Youngman <jay@gnu.org>
40497
40498         * README: Advise users that they might find the bug-gnulib@gnu.org
40499         and autotools-announce@gnu.org mailing lists useful.
40500
40501 2006-11-28  Bruno Haible  <bruno@clisp.org>
40502
40503         * m4/ptrdiff_max.m4: Remove file.
40504
40505 2006-11-21  Bruno Haible  <bruno@clisp.org>
40506
40507         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40508         _AC_COMPUTE_INT.
40509         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40510         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40511         _AC_COMPUTE_INT.
40512         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40513         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40514         _AC_COMPUTE_INT.
40515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40516
40517 2006-11-28  Jim Meyering  <jim@meyering.net>
40518
40519         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40520         warning from "gcc -Wshadow" about shadowing the builtin.
40521
40522 2006-11-27  Bruno Haible  <bruno@clisp.org>
40523
40524         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40525         _AC_COMPUTE_INT.
40526         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40527
40528 2006-11-27  Bruno Haible  <bruno@clisp.org>
40529             Paul Eggert  <eggert@cs.ucla.edu>
40530
40531         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40532
40533 2006-11-26  Bruno Haible  <bruno@clisp.org>
40534
40535         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40536         noinst_LTLIBRARIES.
40537
40538 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40539             Bruno Haible  <bruno@clisp.org>
40540
40541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40542         if compiling with "gcc -ansi".
40543
40544 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40545
40546         Fix some incompatibilities with gcc -ansi -pedantic.
40547         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40548         if compiling pedantically with GCC, unless it's C99 or later.
40549         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40550         it mishandles gcc -ansi -pedantic as well.
40551         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40552         if gcc -pedantic.
40553         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40554         initializers for struct if -pedantic, unless it's C99 or later.
40555
40556 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40557
40558         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40559         Don't close an fd more than once. Identical atimes indicate
40560         success, not failure.
40561
40562 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40563
40564         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40565
40566 2006-11-23  Jim Meyering  <jim@meyering.net>
40567
40568         * build-aux/announce-gen: New file.  From coreutils.
40569
40570 2006-11-22  Jim Meyering  <jim@meyering.net>
40571
40572         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40573         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40574         (fts_read): Use a temporary to narrow the overused st_size member
40575         before using it in a switch statement.  Reported by Matthew Woehlke.
40576
40577         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40578         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40579
40580 2006-11-20  Bruno Haible  <bruno@clisp.org>
40581
40582         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40583         changequote instead of pairs of brackets.
40584         Reported by Andreas Schwab <schwab@suse.de>.
40585
40586 2006-11-21  Jim Meyering  <jim@meyering.net>
40587
40588         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40589         so as to remain compatible with older compilers.
40590         Patch from Michael Deutschmann.
40591
40592 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40593
40594         * MODULES.html.sh (File system functions): Add openat.
40595
40596         * lib/openat.h (rpl_fstatat): New macro, if
40597         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40598         (fstatat): Define to rpl_fstatat under the same conditions,
40599         unless COMPILING_FSTATAT.
40600         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40601         seems to have the bug.
40602         * lib/fstatat.c: New file.
40603         * modules/openat (Files): Add it.
40604
40605 2006-11-20  Bruno Haible  <bruno@clisp.org>
40606
40607         * Makefile: New file.
40608
40609 2006-11-20  Jim Meyering  <jim@meyering.net>
40610
40611         The beginnings of syntax-related checks for gnulib.
40612         * lib/Makefile: New file.
40613         * lib/t-idcache: New script.  Ensure that the two halves of
40614         idcache.c stay in sync.
40615
40616         * lib/idcache.c: Adjust comments in user- and group- portions to
40617         be more accurate, and to be consistent with one another.
40618
40619 2006-11-20  Jim Meyering  <jim@meyering.net>
40620
40621         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40622         continue using the flexible array member (thus, this module performs
40623         half as many malloc calls), with the addition that...
40624         (getgroup, getuser): Consistently record a non-match via an empty
40625         "name" string, and map an empty string match to a NULL return value.
40626         * modules/idcache (Depends-on): Re-add flexmember.
40627
40628         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40629         (getuidbyname, getgroup, getgidbyname): Likewise.
40630
40631         Use cleaner syntax: NULL rather than 0.
40632         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40633
40634 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40635
40636         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40637         It mishandled the case where the group was missing.
40638         Problem reported by Greg Schafer.
40639         * modules/idcache: Likewise.
40640
40641 2006-11-18  Jim Meyering  <jim@meyering.net>
40642
40643         * check-module (%exempt_header): Add exception for some
40644         conditionally-included headers.
40645
40646         * modules/i-ring (Depends-on): Add verify.
40647         (License): Change to LGPL.
40648
40649 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40650
40651         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40652         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40653         and inttostr.h.  Use snprintf rather than uinttostr, so that
40654         LGPLed code doesn't depend on GPLed.
40655
40656 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40657
40658         * modules/inline (License): Change from GPL to LGPL.
40659
40660 2006-11-17  Jim Meyering  <jim@meyering.net>
40661
40662         * modules/d-type (License): Switch to LGPL.
40663
40664 2006-11-15  Bruno Haible  <bruno@clisp.org>
40665
40666         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40667
40668 2006-11-15  Eric Blake  <ebb9@byu.net>
40669
40670         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40671         the module dependency.
40672
40673 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40674             Bruno Haible  <bruno@clisp.org>
40675
40676         * gnulib-tool (func_create_testdir): Add license consistency check.
40677
40678 2006-11-15  Eric Blake  <ebb9@byu.net>
40679
40680         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40681         random "(cached)" in configure output.
40682
40683 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40684
40685         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40686         test for conforming inttypes.h is both announced and cached.
40687
40688         * MODULES.html.sh (seen_modules, seen_files): New variables.
40689         (func_module): Rewrite to use a few less gnulib-tool and sed
40690         invocations.  Avoid a couple of quadratic algorithms for ...
40691         (missed_modules, missed_files): ... these, with ...
40692         (func_append, func_tmpdir): ... these new functions, from
40693         gnulib-tool.  Analogously, install traps for cleanup.
40694
40695         * tests/test-gc.c (main): Remove unused variables.
40696         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40697
40698 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40699
40700         * modules/inttostr (License): Change to LGPL.
40701
40702 2006-11-14  Eric Blake  <ebb9@byu.net>
40703
40704         * modules/tempname (License): Change to LGPL.
40705
40706 2006-11-14  Eric Blake  <ebb9@byu.net>
40707
40708         * doc/functions.texi (Function Portability): *printf functions on
40709         Cygwin now understand all POSIX size specifiers.
40710
40711 2006-11-14  Bruno Haible  <bruno@clisp.org>
40712
40713         * modules/c-ctype (License): Change to LGPL.
40714
40715 2006-11-12  Bruno Haible  <bruno@clisp.org>
40716
40717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40718         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40719         for GNOME libraries, for which the include files are installed in
40720         subdirectories of $prefix/include.
40721
40722 2006-11-12  Bruno Haible  <bruno@clisp.org>
40723
40724         * m4/lib-link.m4: Require at least autoconf-2.54.
40725         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40726         name to underscores for the --with option.
40727
40728 2006-11-13  Bruno Haible  <bruno@clisp.org>
40729
40730         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40731         the tests directory.
40732         Reported by Ralf Wildenhues.
40733
40734 2006-11-13  Bruno Haible  <bruno@clisp.org>
40735
40736         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40737         (func_emit_initmacro_end): Undo the override here.
40738         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40739         Works around the famous automake error in coreutils.
40740
40741 2006-11-13  Eric Blake  <ebb9@byu.net>
40742
40743         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40744         element, not its node.
40745
40746 2006-11-12  Bruno Haible  <bruno@clisp.org>
40747
40748         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40749         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40750
40751 2006-11-12  Bruno Haible  <bruno@clisp.org>
40752
40753         * gnulib-tool: New option --local-symlink.
40754         (func_usage): Document it.
40755         (lsymbolic): New variable.
40756         (func_import, func_create_testdir): If --symlink was not specified,
40757         test whether --local-symlink was specified and the file comes from
40758         the local_gnulib_dir.
40759
40760 2006-11-12  Bruno Haible  <bruno@clisp.org>
40761
40762         * gnulib-tool (func_ln): New function.
40763         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40764
40765 2006-11-12  Bruno Haible  <bruno@clisp.org>
40766
40767         Finish support for source files in subdirectories.
40768         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40769         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40770         AUTOMAKE_OPTIONS.
40771         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40772
40773 2006-11-12  Bruno Haible  <bruno@clisp.org>
40774
40775         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40776         EXTRA_lib_SOURCES augmentation.
40777         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40778
40779 2006-11-12  Jim Meyering  <jim@meyering.net>
40780
40781         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40782         file descriptors.  This also averts a failure on systems with
40783         native openat support when a traversed directory lacks "x" access.
40784         * lib/fts_.h: Include "i-ring.h"
40785         (struct FTS) [fts_fd_ring]: New member.
40786         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40787         (FCHDIR): Add parentheses.
40788         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40789         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40790         When descending, rather than simply closing the previous
40791         fts_cwd_fd value, push that file descriptor onto the ring.
40792         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40793         (fts_open): Initialize the new fd_ring member.
40794         (fts_close): Clear the ring.
40795         (fts_safe_changedir): When possible, use our new fd_ring to skip
40796         the diropen and fstat and dev/ino comparison that would normally
40797         accompany a virtual `chdir ("..")'.
40798
40799         * modules/fts (Depends-on): Add i-ring.
40800         * modules/i-ring: New module.
40801         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40802         * m4/i-ring.m4: New file.
40803
40804 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40805
40806         * gnulib-tool (func_create_testdir): Fix replacement of
40807         `build-aux' in configure.ac.  Run autotools in gltests
40808         subdirectory.
40809         (func_create_testdir, func_create_megatestdir, test): There is
40810         no need for '--force' in most autotool invocations in a new
40811         tree.  Actually fail the whole test if any of the tools, or the
40812         configure or make stages fail.
40813
40814         Sync from Automake.
40815         * build-aux/gnupload: Revert last change.  Add pointer to upload
40816         instructions of the GNU Maintenance Instructions.
40817         Suggestion by Karl Berry.
40818
40819 2006-11-10  Jim Meyering  <jim@meyering.net>
40820
40821         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40822
40823 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40824
40825         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40826         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40827         (bind_textdomain_codeset) [! ENABLE_NLS]:
40828         Evaluate all the arguments.  That way, callers get compatible behavior
40829         if the arguments have side effects.  Also, it avoids some GCC
40830         diagnostics in some cases; Joel E. Denny reported problems when Bison
40831         was configured with --enable-gcc-warnigs.
40832
40833 2006-11-10  Jim Meyering  <jim@meyering.net>
40834
40835         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40836         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40837         account.
40838
40839 2006-11-10  Jim Meyering  <jim@meyering.net>
40840
40841         * modules/inline: New file/module.
40842         * modules/xalloc (Files): Remove m4/inline.m4.
40843         (Depends-on): Add inline, instead.
40844         * modules/oset: Likewise.
40845         * modules/list: Likewise.
40846
40847 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40848
40849         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40850         Problem reported by Matthew Woehlke.
40851
40852 2006-11-09  Bruno Haible  <bruno@clisp.org>
40853
40854         * lib/tempname.c (gen_tempname): Remove variant that invokes
40855         __gen_tempname.
40856         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40857         __gen_tempname.
40858
40859 2006-11-08  Bruno Haible  <bruno@clisp.org>
40860
40861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40862         to 'yes' instead of 'cross-compiling'.
40863
40864 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         * lib/quotearg.h (quotearg_free): New decl.
40867         * lib/quotearg.c (quotearg_free): New function.
40868         (slot0, nslots, slotvec0, slotvec):
40869         Now file-scope so that quotearg_free can get at them.
40870
40871 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40872
40873         Sync from Automake.
40874         * build-aux/gnupload: Add missing 'gnu' to example URL.
40875         Report by Karl Berry.
40876
40877 2006-11-08  Bruno Haible  <bruno@clisp.org>
40878
40879         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40880         Suggested by Paul Eggert.
40881
40882 2006-11-08  Jim Meyering  <jim@meyering.net>
40883
40884         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40885         It's already included if !_LIBC.
40886         (fts_safe_changedir): Add a comment.
40887
40888 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40889
40890         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40891         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40892         Matthew Woehlke.
40893
40894         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40895         definitions up, to avoid colliding with change below.
40896         (static_inline) [HAVE_INLINE]: New macro.
40897         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40898         Provide extern decls when !HAVE_INLINE.  Do not define unless
40899         static_inline is defined, either by us or by xmalloc.c.  Use
40900         static_inline rather than static inline.
40901         (XCALLOC): Optimize sizeof(T) = 1 case.
40902         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40903
40904 2006-11-07  Bruno Haible  <bruno@clisp.org>
40905
40906         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40907         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40908         AC_C_INLINE.
40909         * modules/xalloc (Files): Add m4/inline.m4.
40910
40911 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40912
40913         * README: Fix typo.
40914         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40915         (Miscellanous Notes): ...from this.
40916
40917 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40918
40919         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40920         Mention that offsetof should be used instead of sizeof.
40921         From Bruno Haible.
40922
40923 2006-11-07  Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40926
40927 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40928
40929         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40930         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40931         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40932         (gl_tree_add_before, gl_tree_add_after):
40933         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40934         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40935         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40936         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40937         (gl_linked_add_after, gl_linked_add_at): Likewise.
40938         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40939         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40940         (gl_tree_add_before, gl_tree_add_after): Likewise.
40941         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40942         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40943         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40944
40945 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40946
40947         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40948
40949 2006-11-06  Bruno Haible  <bruno@clisp.org>
40950
40951         * m4/inline.m4: New file.
40952         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40953         * modules/list (Files): Add m4/inline.m4.
40954         * modules/oset (Files): Likewise.
40955
40956 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40957
40958         * lib/idcache.c: Include <stddef.h>, for offsetof.
40959         (struct userid.name): Change from char * to a flexible array member.
40960         All uses changed.
40961         * modules/idcache (Depends-on): Add flexmember.
40962
40963         * MODULES.html.sh (Core language properties): New module flexmember.
40964         * modules/flexmember, m4/flexmember.m4: New files.
40965
40966         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40967         inline functions that are identical with the old xnmalloc_inline,
40968         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40969         that we can avoid some unnecessary integer multiplications and
40970         divisions in the common case where the element size is known at
40971         compile time.
40972         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40973         needed.
40974         (xnboundedmalloc): Remove.
40975         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40976         arguments, for consistency with rest of this header.
40977         (xcharalloc): Rewrite using XNMALLOC.
40978         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40979         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40980         versions have been moved to lib/xalloc.h and renamed to be the
40981         non-*_inline versions.
40982         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40983         and xnrealloc functions, since those functions are now inline and
40984         now call us.
40985         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40986         renaming described above.
40987         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40988         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40989         captures the dependency in AC_C_INLINE.
40990
40991         New module canonicalize-lgpl, proposed by Charles Wilson in
40992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40993         with a few small changes afterwards.
40994         * MODULES.html.sh (File system functions): New module
40995         canonicalize-lgpl.
40996         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40997         and canonicalize_file_name.
40998         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40999         * modules/canonicalize-lgpl: New files.
41000
41001 2006-11-05  Bruno Haible  <bruno@clisp.org>
41002
41003         * gnulib-tool (func_import, func_create_testdir): Create directories
41004         also for files in subdirectories of lib/.
41005
41006 2006-11-05  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41009         ANSI C compliant.
41010
41011 2006-11-03  Bruno Haible  <bruno@clisp.org>
41012
41013         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41014         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41015         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41016         (xnboundedmalloc): New inline function.
41017         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41018         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41019         xmalloc.
41020         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41021         xmalloc.
41022         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41023         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41024         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41025         xmalloc.
41026         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41027         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41028         xmalloc.
41029         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41030         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41031         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41032         xmalloc.
41033         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41034         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41035         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41036         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41037         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41038         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41039         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41040
41041 2006-11-03  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/c-ctype.h [C++]: Define functions without name mangling.
41044         * lib/fwriteerror.h [C++]: Likewise.
41045         * lib/gcd.h [C++]: Likewise.
41046         * lib/linebreak.h [C++]: Likewise.
41047
41048 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41049
41050         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41051         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41052         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41053         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41054         Check for functions and headers just once.
41055         Check for declaration of canonicalize_file_name.
41056         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41057
41058 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41059
41060         * gnulib-tool (func_import): Fix typo in actioncmd.
41061
41062 2006-11-02  Bruno Haible  <bruno@clisp.org>
41063
41064         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41065         newline sequence in the Makefile.am snippet as a space, like "make"
41066         does.
41067         Reported by Roger Persson <perrog@gmail.com>.
41068
41069 2006-11-01  Bruno Haible  <bruno@clisp.org>
41070
41071         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41072         already declared in <string.h>.
41073         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41074
41075 2006-11-01  Bruno Haible  <bruno@clisp.org>
41076
41077         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41078         * lib/strcase.h: Include <string.h>.
41079         (strcasecmp): Define to rpl_strcasecmp here.
41080
41081 2006-11-01  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41084
41085 2006-11-01  Eric Blake  <ebb9@byu.net>
41086
41087         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41088
41089         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41090
41091 2006-10-29  Bruno Haible  <bruno@clisp.org>
41092
41093         Make it compile in C++ mode.
41094         * lib/full-write.c (full_rw): Add a cast.
41095
41096 2006-11-01  Bruno Haible  <bruno@clisp.org>
41097
41098         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41099         be POSIX compliant.
41100         Reported by Roger Persson <perrog@gmail.com>.
41101
41102 2006-11-01  Eric Blake  <ebb9@byu.net>
41103
41104         * lib/getopt_.h: Fix comments.
41105
41106 2006-10-31  Eric Blake  <ebb9@byu.net>
41107
41108         * modules/tmpdir (Depends-on): Add sys_stat.
41109         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41110         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41111         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41112         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41113         tempname.
41114
41115 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41116
41117         Avoid some C++ diagnostics reported by Bruno Haible.
41118         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41119         xmalloc.
41120         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41121         (struct slotvec): Move to top level.
41122         (quotearg_n_options): Rewrite to avoid xmalloc.
41123         * lib/xalloc.h (xcharalloc): New function.
41124         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41125         [defined __cplusplus]: Add function template that provides result
41126         type propagation.  This part of the change is from Bruno Haible.
41127
41128 2006-10-29  Bruno Haible  <bruno@clisp.org>
41129
41130         Make it compile in C++ mode.
41131         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41132         * lib/strnlen1.c (strnlen1): Cast memchr result.
41133         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41134         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41135         (create_temp_dir): Rename local variable 'template'.
41136         (compile_csharp_using_sscli): Add cast.
41137         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41138         * lib/findprog.c (find_in_path): Likewise.
41139         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41140         * lib/wait-process.c (register_slave_subprocess): Likewise.
41141
41142 2006-10-22  Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/tsearch: New file.
41145         * lib/tsearch.h: New file.
41146         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41147         * m4/tsearch.m4: New file.
41148         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41149
41150 2006-10-29  Eric Blake  <ebb9@byu.net>
41151
41152         * lib/arcfour.c: Assume config.h.
41153         * lib/arctwo.c: Likewise.
41154         * lib/base64.c: Likewise.
41155         * lib/check-version.c: Likewise.
41156         * lib/crc.c: Likewise.
41157         * lib/des.c: Likewise.
41158         * lib/gc-gnulib.c: Likewise.
41159         * lib/gc-libgcrypt.c: Likewise.
41160         * lib/gc-pbkdf2-sha1.c: Likewise.
41161         * lib/getaddrinfo.c: Likewise.
41162         * lib/getdelim.c: Likewise.
41163         * lib/getline.c: Likewise.
41164         * lib/hmac-md5.c: Likewise.
41165         * lib/hmac-sha1.c: Likewise.
41166         * lib/iconvme.c: Likewise.
41167         * lib/md2.c: Likewise.
41168         * lib/md4.c: Likewise.
41169         * lib/memxor.c: Likewise.
41170         * lib/read-file.c: Likewise.
41171         * lib/readline.c: Likewise.
41172         * lib/rijndael-alg-fst.c: Likewise.
41173         * lib/rijndael-api-fst.c: Likewise.
41174         * lib/xgetdomainname.c: Likewise.
41175
41176 2006-10-28  Eric Blake  <ebb9@byu.net>
41177
41178         * lib/xstrndup.c: Assume config.h.
41179
41180 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41181
41182         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41183         stat-macros.h is now for our own macros, whereas stat_h is for
41184         macros in the <sys/stat.h> name space.
41185         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41186         (STAT_MACROS_H): Remove.
41187         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41188         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41189         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41190         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41191         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41192         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41193         Move these macros to ...
41194         * lib/stat_.h: here.  Don't include stat-macros.h.
41195         * lib/canonicalize.c: Don't include stat-macros.h.
41196         * lib/chown.c: Likewise.
41197         * lib/euidaccess.c: Likewise.
41198         * lib/file-type.c: Likewise.
41199         * lib/filemode.c: Likewise.
41200         * lib/glob.c: Likewise.
41201         * lib/isapipe.c: Likewise.
41202         * lib/lchown.c: Likewise.
41203         * lib/lstat.c: Likewise.
41204         * lib/mkdir-p.c: Likewise.
41205         * lib/rmdir.c: Likewise.
41206         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41208         unless mkdir isn't declared, to speed up 'configure'.
41209         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41210         would define all the S_* symbols.
41211         * modules/canonicalize (Depends-on):
41212         Depend on sys_stat, not stat-macros.
41213         * modules/chown: Likewise.
41214         * modules/euidaccess: Likewise.
41215         * modules/filemode: Likewise.
41216         * modules/file-type: Likewise.
41217         * modules/glob: Likewise.
41218         * modules/isapipe: Likewise.
41219         * modules/lchown: Likewise.
41220         * modules/lstat: Likewise.
41221         * modules/mkancesdirs: Likewise.
41222         * modules/rmdir: Likewise.
41223         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41224         * modules/modechange: Likewise.
41225         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41226         (configure.ac): Remove gl_STAT_MACROS.
41227         * modules/sys_stat (Depends-on): Remove stat-macros.
41228
41229 2006-10-27  Bruno Haible  <bruno@clisp.org>
41230
41231         * m4/signed.m4: Remove file.
41232         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41233         invocation.
41234         * modules/vasnprintf (Files): Remove m4/signed.m4.
41235
41236 2006-10-27  Bruno Haible  <bruno@clisp.org>
41237
41238         Update to GNU gettext 0.16.
41239         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41240         m4/inttypes-h.m4, m4/signed.m4.
41241         * m4/gettext.m4: Update to GNU gettext 0.16.
41242         * m4/intl.m4: New file, from GNU gettext.
41243         * m4/intldir.m4: New file, from GNU gettext.
41244         * config/srclist.txt: Update
41245
41246 2006-10-27  Eric Blake  <ebb9@byu.net>
41247
41248         * MODULES.html.sh: Document tempname.
41249         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41250         dependencies.
41251         (Files): Move lib/tempname.c...
41252         * modules/tempname: ...to this new module.
41253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41254         (gl_PREREQ_TEMPNAME): Move...
41255         * m4/tempname.m4: ...to this new file.
41256         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41257         * modules/sys_stat (Depends-on): Add stat-macros.
41258         * lib/stat_.h (includes): Pick up stat macros.
41259         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41260         if stat macros are broken.
41261         * lib/tempname.c (includes): No need to include "stat-macros.h".
41262         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41263         (direxists, __path_search) [!_LIBC]: Don't compile these in
41264         gnulib; the tmpdir module covers that.
41265         * lib/tempname.h: New file.
41266
41267 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41268
41269         * COPYING: Explain how gnulib-tool converts licence headers.
41270         Almost all wording by Eric Blake.
41271
41272 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41273
41274         * lib/mbchar.h (is_basic_table): Make read-only.
41275         * lib/mbchar.c (is_basic_table): Likewise.
41276         Reported by John Darrington.
41277
41278 2006-10-25  Bruno Haible  <bruno@clisp.org>
41279
41280         * lib/progname.h (set_program_name): Undefine before defining.
41281
41282 2006-10-25  Bruno Haible  <bruno@clisp.org>
41283
41284         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41285         false for non-gcc C++ compilers.
41286         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41287
41288 2006-10-24  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41291         iconv implementations like Irix iconv.
41292
41293 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41294
41295         * modules/vararrays: New file.
41296         * m4/vararrays.m4: New file, taken from diffutils.
41297         * MODULES.html.sh: New module vararrays.
41298
41299 2006-10-24  Karl Berry  <karl@gnu.org>
41300
41301         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41302         Don't call GNU Unix.
41303
41304 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41305
41306         * users.txt: Add Libtool.
41307
41308         Sync from Libtool:
41309
41310         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41313         to gnulib's policy of including config.h unconditionally.
41314
41315 2006-10-24  Bruno Haible  <bruno@clisp.org>
41316
41317         * modules/wcwidth (Files): Add m4/wint_t.m4.
41318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41319         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41320
41321 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41322
41323         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41324         to pacify GCC with some -W flags enabled.  Problem reported by
41325         Bruno Haible.
41326
41327 2006-10-24  Jim Meyering  <jim@meyering.net>
41328
41329         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41330         Reported by Karl Berry.
41331
41332 2006-10-23  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41335
41336 2006-10-24  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/gl_list.h: Use C comment style, not C++ comment style.
41339
41340 2006-10-23  Eric Blake  <ebb9@byu.net>
41341
41342         * lib/getaddrinfo.c (includes): Add missing include.
41343
41344 2006-10-23  Bruno Haible  <bruno@clisp.org>
41345             Paul Eggert  <eggert@cs.ucla.edu>
41346
41347         Ability to rename obstack_free.
41348         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41349         obstack_free.
41350         (obstack_free): Invoke the __obstack_free macro.
41351         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41352
41353 2006-10-23  Bruno Haible  <bruno@clisp.org>
41354             Paul Eggert  <eggert@cs.ucla.edu>
41355
41356         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41357         __argc, __argv from the declaration. (They are defined as macros on
41358         mingw.)
41359
41360 2006-10-22  Bruno Haible  <bruno@clisp.org>
41361
41362         * doc/gnulib-intro.texi: New file.
41363         * doc/gnulib.texi: Include it.
41364
41365 2006-10-21  Bruno Haible  <bruno@clisp.org>
41366
41367         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41368         "Introduction", "Miscellanous Notes", "Particular Modules".
41369
41370 2006-10-21  Bruno Haible  <bruno@clisp.org>
41371
41372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41373         Change mostlyclean-local rule to avoid sh syntax error from bash
41374         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41375
41376 2006-10-23  Jim Meyering  <jim@meyering.net>
41377
41378         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41379         in place of snprintf.
41380
41381         * modules/inttostr (Files): Add lib/uinttostr.c.
41382         * lib/uinttostr.c (inttostr): New file/function.
41383         * lib/inttostr.h (uinttostr): Declare.
41384         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41385         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41386         Add uinttostr.
41387         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41388
41389 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41390
41391         * lib/canonicalize.c (ELOOP): Define if not already defined.
41392         Problem reported by Bruno Haible in
41393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41394
41395 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41396
41397         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41398         Problem reported by Perry Smith and Ville Laurikari.
41399
41400         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41401         uses.
41402
41403 2006-10-19  Bruno Haible  <bruno@clisp.org>
41404
41405         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41406         for mingw.
41407
41408 2006-10-19  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41411         Needed for mingw.
41412
41413 2006-10-19  Bruno Haible  <bruno@clisp.org>
41414
41415         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41416
41417 2006-10-19  Bruno Haible  <bruno@clisp.org>
41418
41419         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41420         it.
41421
41422 2006-10-19  Bruno Haible  <bruno@clisp.org>
41423
41424         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41425         invocation.
41426
41427 2006-10-19  Bruno Haible  <bruno@clisp.org>
41428
41429         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41430         mountlist by default.
41431
41432 2006-10-16  Bruno Haible  <bruno@clisp.org>
41433
41434         * lib/c-strstr.c: Include c-strstr.h.
41435
41436 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41437
41438         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41439         in a slash.
41440
41441 2006-10-18  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/lock.h [C++]: Wrap definitions in extern "C".
41444
41445 2006-10-18  Bruno Haible  <bruno@clisp.org>
41446
41447         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41448         gl_LIBOBJS list.
41449
41450 2006-10-18  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41453
41454 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41455
41456         * lib/xstrtol.h: Include gettext.h.
41457         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41458         Problem reported by Eric Blake.
41459         * modules/xstrtol (Depends-on): Add gettext-h.
41460
41461 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41462
41463         * lib/strftime.c (advance): New macro.
41464         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41465         incomplete type, so you can't add 0 to it.  Problem and patch
41466         reported by Eelco Dolstra for dietlibc.
41467
41468 2006-10-18  Jim Meyering  <jim@meyering.net>
41469
41470         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41471         type for a local, and rename it: s/up/user_proc/.
41472
41473 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41474
41475         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41476         READ_UTMP_USER_PROCESS.
41477         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41478
41479 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41480
41481         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41482         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41483
41484 2006-10-17  Eric Blake  <ebb9@byu.net>
41485
41486         * lib/sigprocmask.c (sigprocmask): Fix typo.
41487
41488         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41489
41490         * modules/clean-temp (Makefile.am): Don't add to make output...
41491         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41492         config.h.
41493
41494 2006-10-17  Bruno Haible  <bruno@clisp.org>
41495
41496         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41497         differently if DEFAULT_TEXT_DOMAIN is set.
41498
41499 2006-10-16  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/clean-temp.c: Include fwriteerror.h.
41502
41503 2006-10-16  Bruno Haible  <bruno@clisp.org>
41504
41505         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41506
41507 2006-10-16  Bruno Haible  <bruno@clisp.org>
41508
41509         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41510         * lib/sigprocmask.h: Include <sys/types.h>.
41511         (sigset_t): Use the system's definition if present.
41512
41513 2006-10-17  Eric Blake  <ebb9@byu.net>
41514
41515         * lib/xvasprintf.c (includes): Assume config.h.
41516         * lib/xasprintf.c (includes): Likewise.
41517
41518 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41519
41520         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41521         at least as wide as intmax_t.
41522
41523 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41524
41525         (Imported from Automake.)
41526         * build-aux/gnupload: Update to version 1.1 of directive file.
41527
41528 2006-10-16  Eric Blake  <ebb9@byu.net>
41529
41530         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41531         match Automake 1.10a.
41532
41533 2006-10-14  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/sigprocmask: New file.
41536         * lib/sigprocmask.h: New file.
41537         * lib/sigprocmask.c: New file.
41538         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41539         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41540         request sigprocmask.o.
41541         (gl_PREREQ_SIGPROCMASK): New macro.
41542         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41543         (Depends-on): Add sigprocmask.
41544         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41545         gt_SIGNALBLOCKING. Test for 'raise' only once.
41546         * lib/fatal-signal.c: Include sigprocmask.h.
41547         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41548         unblock_fatal_signals): Define always.
41549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41550         sigprocmask.
41551
41552 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41553
41554         Sync from Automake.
41555         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41556         which incorrectly sets the mode of an existing destination
41557         directory.  In some cases the unpatched install-sh could do the
41558         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41559         system.  We hope this is rare in practice, but it's clearly worth
41560         fixing.  Problem reported by Alex Unleashed in
41561         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41562         Also, don't bother to check for -m bugs unless we're using -m;
41563         suggested by Stepan Kasal.
41564
41565 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41566
41567         Sync from Automake.
41568         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41569         `-c' flag, so they appear at the same position as in %FASTDEP%
41570         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41571         which ignores unknown options only after the first non-option.
41572         Bug report against M4 by Nelson H. F. Beebe.
41573
41574 2006-10-13  Jim Meyering  <jim@meyering.net>
41575
41576         Fix a bug in yesterday's change.
41577         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41578         p->fts_statp->st_dev would be used uninitialized.
41579         Ensures that we always call fts_stat on the very first entry.
41580         Miklos Szeredi reported that find -xdev stopped working.
41581
41582 2006-10-12  Bruno Haible  <bruno@clisp.org>
41583
41584         * gnulib-tool (func_get_automake_snippet): Append an automatically
41585         computed EXTRA_DIST augmentation.
41586         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41587         * modules/alloca-opt (Makefile.am): Likewise.
41588         * modules/allocsa (Makefile.am): Likewise.
41589         * modules/arcfour (Makefile.am): Likewise.
41590         * modules/arctwo (Makefile.am): Likewise.
41591         * modules/argmatch (Makefile.am): Likewise.
41592         * modules/argz (Makefile.am): Likewise.
41593         * modules/atexit (Makefile.am): Likewise.
41594         * modules/backupfile (Makefile.am): Likewise.
41595         * modules/byteswap (Makefile.am): Likewise.
41596         * modules/c-strtod (Makefile.am): Likewise.
41597         * modules/c-strtold (Makefile.am): Likewise.
41598         * modules/calloc (Makefile.am): Likewise.
41599         * modules/canon-host (Makefile.am): Likewise.
41600         * modules/canonicalize (Makefile.am): Likewise.
41601         * modules/chdir-long (Makefile.am): Likewise.
41602         * modules/chdir-safer (Makefile.am): Likewise.
41603         * modules/check-version (Makefile.am): Likewise.
41604         * modules/chown (Makefile.am): Likewise.
41605         * modules/cloexec (Makefile.am): Likewise.
41606         * modules/close-stream (Makefile.am): Likewise.
41607         * modules/closeout (Makefile.am): Likewise.
41608         * modules/crc (Makefile.am): Likewise.
41609         * modules/csharpexec (Makefile.am): Likewise.
41610         * modules/cycle-check (Makefile.am): Likewise.
41611         * modules/des (Makefile.am): Likewise.
41612         * modules/dev-ino (Makefile.am): Likewise.
41613         * modules/dirfd (Makefile.am): Likewise.
41614         * modules/dirname (Makefile.am): Likewise.
41615         * modules/dup2 (Makefile.am): Likewise.
41616         * modules/eealloc (Makefile.am): Likewise.
41617         * modules/error (Makefile.am): Likewise.
41618         * modules/euidaccess (Makefile.am): Likewise.
41619         * modules/exclude (Makefile.am): Likewise.
41620         * modules/exitfail (Makefile.am): Likewise.
41621         * modules/fcntl-safer (Makefile.am): Likewise.
41622         * modules/fcntl (Makefile.am): Likewise.
41623         * modules/file-type (Makefile.am): Likewise.
41624         * modules/fileblocks (Makefile.am): Likewise.
41625         * modules/filemode (Makefile.am): Likewise.
41626         * modules/filenamecat (Makefile.am): Likewise.
41627         * modules/fnmatch (Makefile.am): Likewise.
41628         * modules/fopen-safer (Makefile.am): Likewise.
41629         * modules/fpending (Makefile.am): Likewise.
41630         * modules/fprintftime (Makefile.am): Likewise.
41631         * modules/free (Makefile.am): Likewise.
41632         * modules/fsusage (Makefile.am): Likewise.
41633         * modules/ftruncate (Makefile.am): Likewise.
41634         * modules/fts (Makefile.am): Likewise.
41635         * modules/gc-arcfour (Makefile.am): Likewise.
41636         * modules/gc-des (Makefile.am): Likewise.
41637         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41638         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41639         * modules/gc-md4 (Makefile.am): Likewise.
41640         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41641         * modules/gc-sha1 (Makefile.am): Likewise.
41642         * modules/gc (Makefile.am): Likewise.
41643         * modules/getaddrinfo (Makefile.am): Likewise.
41644         * modules/getcwd (Makefile.am): Likewise.
41645         * modules/getdelim (Makefile.am): Likewise.
41646         * modules/getdomainname (Makefile.am): Likewise.
41647         * modules/getgroups (Makefile.am): Likewise.
41648         * modules/gethostname (Makefile.am): Likewise.
41649         * modules/gethrxtime (Makefile.am): Likewise.
41650         * modules/getline (Makefile.am): Likewise.
41651         * modules/getloadavg (Makefile.am): Likewise.
41652         * modules/getlogin_r (Makefile.am): Likewise.
41653         * modules/getndelim2 (Makefile.am): Likewise.
41654         * modules/getopt (Makefile.am): Likewise.
41655         * modules/getpagesize (Makefile.am): Likewise.
41656         * modules/getpass-gnu (Makefile.am): Likewise.
41657         * modules/getpass (Makefile.am): Likewise.
41658         * modules/getsubopt (Makefile.am): Likewise.
41659         * modules/gettime (Makefile.am): Likewise.
41660         * modules/gettimeofday (Makefile.am): Likewise.
41661         * modules/getugroups (Makefile.am): Likewise.
41662         * modules/getusershell (Makefile.am): Likewise.
41663         * modules/glob (Makefile.am): Likewise.
41664         * modules/group-member (Makefile.am): Likewise.
41665         * modules/hard-locale (Makefile.am): Likewise.
41666         * modules/hash (Makefile.am): Likewise.
41667         * modules/hmac-md5 (Makefile.am): Likewise.
41668         * modules/hmac-sha1 (Makefile.am): Likewise.
41669         * modules/human (Makefile.am): Likewise.
41670         * modules/idcache (Makefile.am): Likewise.
41671         * modules/imaxabs (Makefile.am): Likewise.
41672         * modules/imaxdiv (Makefile.am): Likewise.
41673         * modules/inet_ntop (Makefile.am): Likewise.
41674         * modules/inet_pton (Makefile.am): Likewise.
41675         * modules/intprops (Makefile.am): Likewise.
41676         * modules/inttostr (Makefile.am): Likewise.
41677         * modules/inttypes (Makefile.am): Likewise.
41678         * modules/isapipe (Makefile.am): Likewise.
41679         * modules/javaversion (Makefile.am): Likewise.
41680         * modules/lchmod (Makefile.am): Likewise.
41681         * modules/lchown (Makefile.am): Likewise.
41682         * modules/localcharset (Makefile.am): Likewise.
41683         * modules/long-options (Makefile.am): Likewise.
41684         * modules/lstat (Makefile.am): Likewise.
41685         * modules/malloc (Makefile.am): Likewise.
41686         * modules/mathl (Makefile.am): Likewise.
41687         * modules/mbchar (Makefile.am): Likewise.
41688         * modules/md2 (Makefile.am): Likewise.
41689         * modules/md4 (Makefile.am): Likewise.
41690         * modules/md5 (Makefile.am): Likewise.
41691         * modules/memcasecmp (Makefile.am): Likewise.
41692         * modules/memchr (Makefile.am): Likewise.
41693         * modules/memcmp (Makefile.am): Likewise.
41694         * modules/memcoll (Makefile.am): Likewise.
41695         * modules/memcpy (Makefile.am): Likewise.
41696         * modules/memmem (Makefile.am): Likewise.
41697         * modules/memmove (Makefile.am): Likewise.
41698         * modules/mempcpy (Makefile.am): Likewise.
41699         * modules/memrchr (Makefile.am): Likewise.
41700         * modules/memset (Makefile.am): Likewise.
41701         * modules/memxor (Makefile.am): Likewise.
41702         * modules/mkancesdirs (Makefile.am): Likewise.
41703         * modules/mkdir-p (Makefile.am): Likewise.
41704         * modules/mkdir (Makefile.am): Likewise.
41705         * modules/mkdtemp (Makefile.am): Likewise.
41706         * modules/mkstemp (Makefile.am): Likewise.
41707         * modules/mktime (Makefile.am): Likewise.
41708         * modules/modechange (Makefile.am): Likewise.
41709         * modules/mountlist (Makefile.am): Likewise.
41710         * modules/nanosleep (Makefile.am): Likewise.
41711         * modules/obstack (Makefile.am): Likewise.
41712         * modules/openat (Makefile.am): Likewise.
41713         * modules/pagealign_alloc (Makefile.am): Likewise.
41714         * modules/pathmax (Makefile.am): Likewise.
41715         * modules/physmem (Makefile.am): Likewise.
41716         * modules/poll (Makefile.am): Likewise.
41717         * modules/posixtm (Makefile.am): Likewise.
41718         * modules/posixver (Makefile.am): Likewise.
41719         * modules/putenv (Makefile.am): Likewise.
41720         * modules/quote (Makefile.am): Likewise.
41721         * modules/quotearg (Makefile.am): Likewise.
41722         * modules/raise (Makefile.am): Likewise.
41723         * modules/read-file (Makefile.am): Likewise.
41724         * modules/readline (Makefile.am): Likewise.
41725         * modules/readlink (Makefile.am): Likewise.
41726         * modules/readtokens (Makefile.am): Likewise.
41727         * modules/readutmp (Makefile.am): Likewise.
41728         * modules/realloc (Makefile.am): Likewise.
41729         * modules/regex (Makefile.am): Likewise.
41730         * modules/rename-dest-slash (Makefile.am): Likewise.
41731         * modules/rename (Makefile.am): Likewise.
41732         * modules/rijndael (Makefile.am): Likewise.
41733         * modules/rmdir (Makefile.am): Likewise.
41734         * modules/rpmatch (Makefile.am): Likewise.
41735         * modules/safe-read (Makefile.am): Likewise.
41736         * modules/safe-write (Makefile.am): Likewise.
41737         * modules/same-inode (Makefile.am): Likewise.
41738         * modules/same (Makefile.am): Likewise.
41739         * modules/save-cwd (Makefile.am): Likewise.
41740         * modules/savedir (Makefile.am): Likewise.
41741         * modules/setenv (Makefile.am): Likewise.
41742         * modules/settime (Makefile.am): Likewise.
41743         * modules/sha1 (Makefile.am): Likewise.
41744         * modules/sig2str (Makefile.am): Likewise.
41745         * modules/snprintf (Makefile.am): Likewise.
41746         * modules/stat-macros (Makefile.am): Likewise.
41747         * modules/stat-time (Makefile.am): Likewise.
41748         * modules/stdbool (Makefile.am): Likewise.
41749         * modules/stdint (Makefile.am): Likewise.
41750         * modules/stdlib-safer (Makefile.am): Likewise.
41751         * modules/stpcpy (Makefile.am): Likewise.
41752         * modules/stpncpy (Makefile.am): Likewise.
41753         * modules/strcase (Makefile.am): Likewise.
41754         * modules/strcasestr (Makefile.am): Likewise.
41755         * modules/strchrnul (Makefile.am): Likewise.
41756         * modules/strcspn (Makefile.am): Likewise.
41757         * modules/strdup (Makefile.am): Likewise.
41758         * modules/strerror (Makefile.am): Likewise.
41759         * modules/strftime (Makefile.am): Likewise.
41760         * modules/strndup (Makefile.am): Likewise.
41761         * modules/strnlen (Makefile.am): Likewise.
41762         * modules/strpbrk (Makefile.am): Likewise.
41763         * modules/strsep (Makefile.am): Likewise.
41764         * modules/strstr (Makefile.am): Likewise.
41765         * modules/strtod (Makefile.am): Likewise.
41766         * modules/strtoimax (Makefile.am): Likewise.
41767         * modules/strtok_r (Makefile.am): Likewise.
41768         * modules/strtol (Makefile.am): Likewise.
41769         * modules/strtoll (Makefile.am): Likewise.
41770         * modules/strtoul (Makefile.am): Likewise.
41771         * modules/strtoull (Makefile.am): Likewise.
41772         * modules/strtoumax (Makefile.am): Likewise.
41773         * modules/strverscmp (Makefile.am): Likewise.
41774         * modules/sys_socket (Makefile.am): Likewise.
41775         * modules/sys_stat (Makefile.am): Likewise.
41776         * modules/sysexits (Makefile.am): Likewise.
41777         * modules/time_r (Makefile.am): Likewise.
41778         * modules/timegm (Makefile.am): Likewise.
41779         * modules/timespec (Makefile.am): Likewise.
41780         * modules/tmpfile-safer (Makefile.am): Likewise.
41781         * modules/trim (Makefile.am): Likewise.
41782         * modules/unistd-safer (Makefile.am): Likewise.
41783         * modules/unlinkdir (Makefile.am): Likewise.
41784         * modules/unlocked-io (Makefile.am): Likewise.
41785         * modules/userspec (Makefile.am): Likewise.
41786         * modules/utime (Makefile.am): Likewise.
41787         * modules/utimecmp (Makefile.am): Likewise.
41788         * modules/utimens (Makefile.am): Likewise.
41789         * modules/vasnprintf (Makefile.am): Likewise.
41790         * modules/vasprintf (Makefile.am): Likewise.
41791         * modules/vsnprintf (Makefile.am): Likewise.
41792         * modules/xalloc (Makefile.am): Likewise.
41793         * modules/xgetcwd (Makefile.am): Likewise.
41794         * modules/xnanosleep (Makefile.am): Likewise.
41795         * modules/xreadlink (Makefile.am): Likewise.
41796         * modules/xstrtod (Makefile.am): Likewise.
41797         * modules/xstrtol (Makefile.am): Likewise.
41798         * modules/xstrtold (Makefile.am): Likewise.
41799         * modules/yesno (Makefile.am): Likewise.
41800         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41801
41802 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * modules/error (Makefile.am): Distribute files through
41805         EXTRA_DIST, not lib_SOURCES.
41806
41807 2006-10-12  Eric Blake  <ebb9@byu.net>
41808
41809         * modules/error (Makefile.am): Distribute files in /lib.
41810         * modules/obstack (Makefile.am): Likewise.
41811
41812 2006-10-12  Bruno Haible  <bruno@clisp.org>
41813
41814         * modules/acl (Makefile.am): Distribute all files in lib/ through
41815         EXTRA_DIST.
41816         * modules/arcfour (Makefile.am): Likewise.
41817         * modules/arctwo (Makefile.am): Likewise.
41818         * modules/argmatch (Makefile.am): Likewise.
41819         * modules/argz (Makefile.am): Likewise.
41820         * modules/atexit (Makefile.am): Likewise.
41821         * modules/backupfile (Makefile.am): Likewise.
41822         * modules/c-strtod (Makefile.am): Likewise.
41823         * modules/c-strtold (Makefile.am): Likewise.
41824         * modules/calloc (Makefile.am): Likewise.
41825         * modules/canon-host (Makefile.am): Likewise.
41826         * modules/canonicalize (Makefile.am): Likewise.
41827         * modules/chdir-long (Makefile.am): Likewise.
41828         * modules/chdir-safer (Makefile.am): Likewise.
41829         * modules/check-version (Makefile.am): Likewise.
41830         * modules/chown (Makefile.am): Likewise.
41831         * modules/cloexec (Makefile.am): Likewise.
41832         * modules/close-stream (Makefile.am): Likewise.
41833         * modules/closeout (Makefile.am): Likewise.
41834         * modules/crc (Makefile.am): Likewise.
41835         * modules/cycle-check (Makefile.am): Likewise.
41836         * modules/des (Makefile.am): Likewise.
41837         * modules/dirfd (Makefile.am): Likewise.
41838         * modules/dirname (Makefile.am): Likewise.
41839         * modules/dup2 (Makefile.am): Likewise.
41840         * modules/euidaccess (Makefile.am): Likewise.
41841         * modules/exclude (Makefile.am): Likewise.
41842         * modules/exitfail (Makefile.am): Likewise.
41843         * modules/fcntl-safer (Makefile.am): Likewise.
41844         * modules/file-type (Makefile.am): Likewise.
41845         * modules/fileblocks (Makefile.am): Likewise.
41846         * modules/filemode (Makefile.am): Likewise.
41847         * modules/filenamecat (Makefile.am): Likewise.
41848         * modules/fnmatch (Makefile.am): Likewise.
41849         * modules/fopen-safer (Makefile.am): Likewise.
41850         * modules/fpending (Makefile.am): Likewise.
41851         * modules/fprintftime (Makefile.am): Likewise.
41852         * modules/free (Makefile.am): Likewise.
41853         * modules/fsusage (Makefile.am): Likewise.
41854         * modules/ftruncate (Makefile.am): Likewise.
41855         * modules/fts (Makefile.am): Likewise.
41856         * modules/gc (Makefile.am): Likewise.
41857         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41858         * modules/getaddrinfo (Makefile.am): Likewise.
41859         * modules/getcwd (Makefile.am): Likewise.
41860         * modules/getdelim (Makefile.am): Likewise.
41861         * modules/getdomainname (Makefile.am): Likewise.
41862         * modules/getgroups (Makefile.am): Likewise.
41863         * modules/gethostname (Makefile.am): Likewise.
41864         * modules/gethrxtime (Makefile.am): Likewise.
41865         * modules/getline (Makefile.am): Likewise.
41866         * modules/getloadavg (Makefile.am): Likewise.
41867         * modules/getlogin_r (Makefile.am): Likewise.
41868         * modules/getopt (Makefile.am): Likewise.
41869         * modules/getpass (Makefile.am): Likewise.
41870         * modules/getpass-gnu (Makefile.am): Likewise.
41871         * modules/getsubopt (Makefile.am): Likewise.
41872         * modules/gettime (Makefile.am): Likewise.
41873         * modules/gettimeofday (Makefile.am): Likewise.
41874         * modules/getugroups (Makefile.am): Likewise.
41875         * modules/getusershell (Makefile.am): Likewise.
41876         * modules/glob (Makefile.am): Likewise.
41877         * modules/group-member (Makefile.am): Likewise.
41878         * modules/hard-locale (Makefile.am): Likewise.
41879         * modules/hash (Makefile.am): Likewise.
41880         * modules/hmac-md5 (Makefile.am): Likewise.
41881         * modules/hmac-sha1 (Makefile.am): Likewise.
41882         * modules/human (Makefile.am): Likewise.
41883         * modules/idcache (Makefile.am): Likewise.
41884         * modules/imaxabs (Makefile.am): Likewise.
41885         * modules/imaxdiv (Makefile.am): Likewise.
41886         * modules/inet_ntop (Makefile.am): Likewise.
41887         * modules/inet_pton (Makefile.am): Likewise.
41888         * modules/inttostr (Makefile.am): Likewise.
41889         * modules/isapipe (Makefile.am): Likewise.
41890         * modules/lchown (Makefile.am): Likewise.
41891         * modules/long-options (Makefile.am): Likewise.
41892         * modules/lstat (Makefile.am): Likewise.
41893         * modules/malloc (Makefile.am): Likewise.
41894         * modules/mathl (Makefile.am): Likewise.
41895         * modules/mbchar (Makefile.am): Likewise.
41896         * modules/md2 (Makefile.am): Likewise.
41897         * modules/md4 (Makefile.am): Likewise.
41898         * modules/md5 (Makefile.am): Likewise.
41899         * modules/memcasecmp (Makefile.am): Likewise.
41900         * modules/memchr (Makefile.am): Likewise.
41901         * modules/memcmp (Makefile.am): Likewise.
41902         * modules/memcoll (Makefile.am): Likewise.
41903         * modules/memcpy (Makefile.am): Likewise.
41904         * modules/memmem (Makefile.am): Likewise.
41905         * modules/memmove (Makefile.am): Likewise.
41906         * modules/mempcpy (Makefile.am): Likewise.
41907         * modules/memrchr (Makefile.am): Likewise.
41908         * modules/memset (Makefile.am): Likewise.
41909         * modules/memxor (Makefile.am): Likewise.
41910         * modules/mkancesdirs (Makefile.am): Likewise.
41911         * modules/mkdir (Makefile.am): Likewise.
41912         * modules/mkdir-p (Makefile.am): Likewise.
41913         * modules/mkdtemp (Makefile.am): Likewise.
41914         * modules/mkstemp (Makefile.am): Likewise.
41915         * modules/mktime (Makefile.am): Likewise.
41916         * modules/modechange (Makefile.am): Likewise.
41917         * modules/mountlist (Makefile.am): Likewise.
41918         * modules/nanosleep (Makefile.am): Likewise.
41919         * modules/openat (Makefile.am): Likewise.
41920         * modules/pagealign_alloc (Makefile.am): Likewise.
41921         * modules/physmem (Makefile.am): Likewise.
41922         * modules/poll (Makefile.am): Likewise.
41923         * modules/posixtm (Makefile.am): Likewise.
41924         * modules/posixver (Makefile.am): Likewise.
41925         * modules/putenv (Makefile.am): Likewise.
41926         * modules/quote (Makefile.am): Likewise.
41927         * modules/quotearg (Makefile.am): Likewise.
41928         * modules/raise (Makefile.am): Likewise.
41929         * modules/read-file (Makefile.am): Likewise.
41930         * modules/readline (Makefile.am): Likewise.
41931         * modules/readlink (Makefile.am): Likewise.
41932         * modules/readtokens (Makefile.am): Likewise.
41933         * modules/readutmp (Makefile.am): Likewise.
41934         * modules/realloc (Makefile.am): Likewise.
41935         * modules/regex (Makefile.am): Likewise.
41936         * modules/rename (Makefile.am): Likewise.
41937         * modules/rename-dest-slash (Makefile.am): Likewise.
41938         * modules/rijndael (Makefile.am): Likewise.
41939         * modules/rmdir (Makefile.am): Likewise.
41940         * modules/rpmatch (Makefile.am): Likewise.
41941         * modules/safe-read (Makefile.am): Likewise.
41942         * modules/safe-write (Makefile.am): Likewise.
41943         * modules/same (Makefile.am): Likewise.
41944         * modules/save-cwd (Makefile.am): Likewise.
41945         * modules/savedir (Makefile.am): Likewise.
41946         * modules/setenv (Makefile.am): Likewise.
41947         * modules/settime (Makefile.am): Likewise.
41948         * modules/sha1 (Makefile.am): Likewise.
41949         * modules/sig2str (Makefile.am): Likewise.
41950         * modules/snprintf (Makefile.am): Likewise.
41951         * modules/stdlib-safer (Makefile.am): Likewise.
41952         * modules/stpcpy (Makefile.am): Likewise.
41953         * modules/stpncpy (Makefile.am): Likewise.
41954         * modules/strcase (Makefile.am): Likewise.
41955         * modules/strcasestr (Makefile.am): Likewise.
41956         * modules/strchrnul (Makefile.am): Likewise.
41957         * modules/strcspn (Makefile.am): Likewise.
41958         * modules/strdup (Makefile.am): Likewise.
41959         * modules/strerror (Makefile.am): Likewise.
41960         * modules/strftime (Makefile.am): Likewise.
41961         * modules/strndup (Makefile.am): Likewise.
41962         * modules/strnlen (Makefile.am): Likewise.
41963         * modules/strpbrk (Makefile.am): Likewise.
41964         * modules/strsep (Makefile.am): Likewise.
41965         * modules/strstr (Makefile.am): Likewise.
41966         * modules/strtod (Makefile.am): Likewise.
41967         * modules/strtoimax (Makefile.am): Likewise.
41968         * modules/strtok_r (Makefile.am): Likewise.
41969         * modules/strtol (Makefile.am): Likewise.
41970         * modules/strtoll (Makefile.am): Likewise.
41971         * modules/strtoul (Makefile.am): Likewise.
41972         * modules/strtoull (Makefile.am): Likewise.
41973         * modules/strtoumax (Makefile.am): Likewise.
41974         * modules/strverscmp (Makefile.am): Likewise.
41975         * modules/time_r (Makefile.am): Likewise.
41976         * modules/timegm (Makefile.am): Likewise.
41977         * modules/tmpfile-safer (Makefile.am): Likewise.
41978         * modules/unistd-safer (Makefile.am): Likewise.
41979         * modules/unlinkdir (Makefile.am): Likewise.
41980         * modules/userspec (Makefile.am): Likewise.
41981         * modules/utime (Makefile.am): Likewise.
41982         * modules/utimecmp (Makefile.am): Likewise.
41983         * modules/utimens (Makefile.am): Likewise.
41984         * modules/vasnprintf (Makefile.am): Likewise.
41985         * modules/vasprintf (Makefile.am): Likewise.
41986         * modules/vsnprintf (Makefile.am): Likewise.
41987         * modules/xalloc (Makefile.am): Likewise.
41988         * modules/xgetcwd (Makefile.am): Likewise.
41989         * modules/xnanosleep (Makefile.am): Likewise.
41990         * modules/xreadlink (Makefile.am): Likewise.
41991         * modules/xstrtod (Makefile.am): Likewise.
41992         * modules/xstrtol (Makefile.am): Likewise.
41993         * modules/xstrtold (Makefile.am): Likewise.
41994         * modules/yesno (Makefile.am): Likewise.
41995
41996 2006-10-12  Jim Meyering  <jim@meyering.net>
41997
41998         * m4/getloadavg.m4: Revert the change below.
41999
42000         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42001         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42002         fail with a symlink, which is what coreutils' ./bootstrap now
42003         creates by default.
42004
42005 2006-10-12  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42008         mingw.
42009         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42010         MSVC and mingw explicitly.
42011
42012 2006-10-11  Simon Josefsson  <jas@extundo.com>
42013             Bruno Haible  <bruno@clisp.org>
42014
42015         Add support for multiple gnulib-tool invocations in the scope of a
42016         single configure.ac file.
42017         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42018         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42019         with the same contents as the _LIBADD variable.
42020         (func_emit_initmacro_start, func_emit_initmacro_end,
42021         func_emit_initmacro_done): New functions.
42022         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42023         gl_LIBOBJS and gl_LTLIBOBJS.
42024
42025 2006-10-11  Bruno Haible  <bruno@clisp.org>
42026
42027         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42028         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42029         autoreconf. Instead, invoke autopoint explicitly but move back the
42030         *.m4 files from gnulib.
42031
42032 2006-10-11  Bruno Haible  <bruno@clisp.org>
42033
42034         * gnulib-tool (func_usage): Make module names after --create-testdir
42035         optional.
42036         (func_create_testdir): If no module was specified, use nearly all
42037         modules.
42038
42039 2006-10-12  Jim Meyering  <jim@meyering.net>
42040
42041         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42042         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42043         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42044         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42045         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42046         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42047         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42048         (fts_set_stat_required): New function.
42049         (fts_open): Defer the calls to fts_stat, if possible or requested.
42050         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42051         into fts_stat itself.
42052         (fts_read): Perform any required (deferred) fts_stat call.
42053         (fts_build): Likewise, for the directory we're about to open and read.
42054         In the readdir loop, carefully decide whether each entry will require
42055         an eventual call to fts_stat, using dirent.d_type info if available.
42056         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42057         a command line argument into this function.  Update all callers.
42058         Map a return value of FTS_DOT to FTS_D for a command line argument.
42059         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42060         Thanks to Miklos Szeredi for his tenacity and for the initial
42061         bug report about "find" failing on a FUSE-based file system.
42062
42063         * lib/fts.c (fts_open): Use consistent indentation.
42064
42065 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42066
42067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42068         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42069         reported by Jim Meyering.  All uses of cache variables renamed
42070         to match Autoconf's.
42071         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42072         the other one.
42073
42074         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42075         Fix misspelling in diagnostic.
42076
42077 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42078
42079         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42080         defined.  Problem reported by Matthew Woehlke.
42081
42082         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42083         Add support for Tandem NonStop R series.
42084         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42085         Use new macro.
42086
42087         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42088         (has_trailing_slash): Omit size arg; all callers changed.
42089         Omit 'inline', since it doesn't help performance and we'd
42090         need to configure it.
42091         Don't count //, ///, etc. as having a trailing slash.
42092         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42093         (rpl_rename_dest_slash): On failure, use rename's errno rather
42094         than (in some cases) an incorrect or junk errno.
42095         Simplify code by removing need to compute length; this does
42096         cause it to make two passes instead of one over the file name,
42097         but it's worth it.
42098
42099         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42100         change, since Autoconf's version may no longer be appropriate now
42101         that we are using CVS Autoconf's version.  Add support for Tandem.
42102
42103 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42104             Bruno Haible  <bruno@clisp.org>
42105
42106         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42107         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42108         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42109         gl_AC_TYPE_LONG_LONG.
42110
42111         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42112         instead of HAVE_LONG_LONG.
42113         * lib/printf-args.c (printf_fetchargs): Likewise.
42114         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42115         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42116         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42117         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42118         gl_AC_TYPE_LONG_LONG.
42119
42120 2006-10-11  Bruno Haible  <bruno@clisp.org>
42121
42122         * m4/longlong.m4: Add comments.
42123         * m4/ulonglong.m4: Likewise.
42124
42125 2006-10-10  Bruno Haible  <bruno@clisp.org>
42126
42127         Make it possible to #define stpcpy, strdup to aliases.
42128         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42129         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42130
42131 2006-10-10  Bruno Haible  <bruno@clisp.org>
42132
42133         Make it possible to #define gcd to an alias.
42134         * lib/gcd.c: Include config.h.
42135
42136 2006-10-10  Bruno Haible  <bruno@clisp.org>
42137
42138         Make it possible to #define c_isascii to an alias.
42139         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42140         defined. Undefine the macros before defining them, to avoid gcc
42141         warnings.
42142         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42143         define NO_C_CTYPE_MACROS early.
42144
42145 2006-10-10  Bruno Haible  <bruno@clisp.org>
42146
42147         Make it possible to #define set_program_name to an alias.
42148         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42149         ENABLE_RELOCATABLE early.
42150
42151 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42152
42153         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42154         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42155         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42156         More generally, don't assume that 64-bit signed int is available
42157         if unsigned int is, and vice versa.
42158         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42159         unsigned symbols, not on their signed counterparts.
42160         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42161         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42162         (UINT64_C, UINTMAX_C):
42163         Likewise.
42164         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42165         unsigned counterparts.
42166         (Have_long_long, Unsigned): New macros.
42167         (Int): Renamed from INT.
42168         (strtoimax): Use the new macros.
42169         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42170         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42171         * modules/inttypes (inttypes.h): Substitute
42172         HAVE_UNSIGNED_LONG_LONG_INT.
42173         * modules/stdint (stdint.h): Likewise.
42174         (Files): Add m4/ulonglong.m4.
42175
42176 2006-10-10  Bruno Haible  <bruno@clisp.org>
42177
42178         Fix a gcc -Wshadow warning.
42179         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42180         to 'bucket'.
42181         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42182         gl_linked_indexof_from_to): Likewise.
42183         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42184         Likewise.
42185         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42186         Likewise.
42187         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42188         Reported by Eric Blake.
42189
42190 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42191
42192         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42193         for NetBSD.  Problem reported by Bruno Haible.
42194
42195 2006-10-09  Jim Meyering  <jim@meyering.net>
42196
42197         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42198         Patch from Bruno Haible.
42199
42200 2006-10-09  Jim Meyering  <jim@meyering.net>
42201
42202         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42203         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42204         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42205
42206 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42207
42208         Don't include <config.h> twice; this doesn't work in some cases,
42209         e.g., when config.h has "#define intmax_t long long int" and
42210         we include <config.h>, <inttypes.h>, <config.h> in that order.
42211         Problem reported by Matthew Woehlke in:
42212         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42213         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42214         * lib/fts-cycle.c: Don't include config.h.
42215         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42216         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42217         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42218         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42219         inttypes.h.
42220         * lib/xstrtoumax.c: Likewise.
42221         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42222         __strtol and the like, so that this module is more like its siblings.
42223         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42224         Remove; no longer needed now that we assume gnulib inttypes.h.
42225
42226 2006-10-08  Bruno Haible  <bruno@clisp.org>
42227
42228         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42229         option.
42230
42231 2006-10-07  Jim Meyering  <jim@meyering.net>
42232
42233         * modules/inttypes (inttypes.h): Revert what seems to have been
42234         an inadvertent part of today's change: use "|", not "/" in the
42235         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42236
42237 2006-10-07  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/sublist: New file.
42240
42241 2006-10-07  Bruno Haible  <bruno@clisp.org>
42242
42243         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42244         * modules/argz (argz.h): Likewise.
42245         * modules/arpa_inet (arpa/inet.h): Likewise.
42246         * modules/byteswap (byteswap.h): Likewise.
42247         * modules/configmake (configmake.h): Likewise.
42248         * modules/fcntl (fcntl.h): Likewise.
42249         * modules/fnmatch (fnmatch.h): Likewise.
42250         * modules/getopt (getopt.h): Likewise.
42251         * modules/glob (glob.h): Likewise.
42252         * modules/inttypes (inttypes.h): Likewise.
42253         * modules/netinet_in (netinet/in.h): Likewise.
42254         * modules/poll (poll.h): Likewise.
42255         * modules/stdbool (stdbool.h): Likewise.
42256         * modules/stdint (stdint.h): Likewise.
42257         * modules/sys_select (sys/select.h): Likewise.
42258         * modules/sys_socket (sys/socket.h): Likewise.
42259         * modules/sys_stat (sys/stat.h): Likewise.
42260         * modules/sysexits (sysexits.h): Likewise.
42261         * modules/unistd (unistd.h): Likewise.
42262         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42263         Add a "DO NOT EDIT" comment to the generated file.
42264         (func_import): Likewise for gnulib-comp.m4.
42265
42266 2006-10-07  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/gl_sublist.h: New file.
42269         * lib/gl_sublist.c: New file.
42270
42271 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42272
42273         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42274         name (relative to the original working directory) and the file
42275         name component (relative to the temporary working directory).  All
42276         callers changed.
42277         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42278         * lib/mkdir-p.c (make_dir_parents): Likewise.
42279         * lib/mkdir-p.h (make_dir_parents): Likewise.
42280
42281 2006-10-06  Eric Blake  <ebb9@byu.net>
42282
42283         Define several macros for use by the clean-temp module.
42284         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42285         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42286         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42287
42288         * lib/clean-temp.h (close_stream_temp): New declaration.
42289         * lib/clean-temp.c (includes): Pull in headers according to what
42290         other modules are in use.
42291         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42292
42293 2006-10-06  Bruno Haible  <bruno@clisp.org>
42294
42295         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42296         instead of fopen, fwriteerror.
42297
42298 2006-10-06  Bruno Haible  <bruno@clisp.org>
42299
42300         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42301         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42302         int.
42303         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42304         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42305         Return an error indicator.
42306         Suggested by Eric Blake.
42307
42308 2006-10-06  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42311         Reported by Eric Blake.
42312
42313 2006-10-06  Bruno Haible  <bruno@clisp.org>
42314
42315         * modules/closeout (Description): Mention stderr too.
42316
42317 2006-10-06  Bruno Haible  <bruno@clisp.org>
42318         and Paul Eggert  <eggert@cs.ucla.edu>
42319
42320         * lib/closeout.c (close_stdout): Also close stderr.
42321         * lib/closeout.h: Update comment.
42322
42323 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42326         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42327         * lib/dirchownmod.c: Include lchown.h.
42328         * lib/lchown.c: Don't include files that lchown.h now includes.
42329         Don't declare chown, since lchown.h now does that.
42330         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42331         (lchown): Define to rpl_chown if lchown is declared but
42332         does not exist.  Declare using a prototype if lchown is not
42333         declared.  Add a copyright notice.
42334         * lib/mkstemp.h: Include <unistd.h>.
42335         * lib/openat.c: Include lchown.h.
42336
42337         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42338         we now test for that separately.
42339         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42340         rather than O_NOFOLLOW, when testing whether it's possible to
42341         avoid a race condition reliably.
42342         * lib/savewd.c (savewd_chdir): Likewise.
42343
42344         Remove macros that are no longer needed now that stdint.h is
42345         reliable.
42346         * lib/fsusage.c (UINTMAX_MAX): Remove.
42347         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42348         * lib/utimecmp.c (SIZE_MAX): Remove.
42349
42350         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42351
42352         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42353         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42354         O_NOATIME works.
42355
42356 2006-10-05  Bruno Haible  <bruno@clisp.org>
42357
42358         * lib/gl_list.h (gl_sortedlist_search_from_to,
42359         gl_sortedlist_indexof_from_to): New declarations.
42360         (gl_list_implementation): New fields sortedlist_search_from_to,
42361         sortedlist_indexof_from_to.
42362         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42363         inline functions.
42364         * lib/gl_list.c (gl_sortedlist_search_from_to,
42365         gl_sortedlist_indexof_from_to): New functions.
42366         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42367         function.
42368         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42369         (gl_array_sortedlist_search_from_to): New function.
42370         (gl_array_list_implementation): Update.
42371         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42372         function.
42373         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42374         (gl_carray_sortedlist_search_from_to): New function.
42375         (gl_carray_list_implementation): Update.
42376         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42377         gl_linked_sortedlist_indexof_from_to): New functions.
42378         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42379         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42380         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42381         gl_tree_sortedlist_indexof_from_to): New functions.
42382         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42383         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42384         Update.
42385         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42386         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42387         Update.
42388
42389 2006-10-05  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42392         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42393         (struct gl_list_implementation): Add fields search_from_to,
42394         indexof_from_to. Remove fields search, indexof.
42395         (gl_list_search): Use the search_from_to method.
42396         (gl_list_search_from, gl_list_search_from_to): New functions.
42397         (gl_list_indexof): Use the indexof_from_to method.
42398         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42399         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42400         (gl_list_search_from, gl_list_search_from_to): New functions.
42401         (gl_list_indexof): Use the indexof_from_to method.
42402         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42403         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42404         gl_array_indexof. Add start_index, end_index arguments.
42405         (gl_array_search_from_to): Renamed from gl_array_search. Add
42406         start_index, end_index arguments.
42407         (gl_array_remove, gl_array_list_implementation): Update.
42408         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42409         gl_carray_indexof. Add start_index, end_index arguments.
42410         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42411         start_index, end_index arguments.
42412         (gl_carray_remove, gl_carray_list_implementation): Update.
42413         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42414         gl_linked_search. Add start_index, end_index arguments.
42415         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42416         start_index, end_index arguments.
42417         (gl_linked_remove): Update.
42418         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42419         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42420         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42421         field to 'size_t'.
42422         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42423         gl_tree_search. Add start_index, end_index arguments.
42424         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42425         start_index, end_index arguments.
42426         (gl_tree_remove): Update.
42427         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42428         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42429         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42430         function.
42431         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42432         gl_tree_search. Add start_index, end_index arguments.
42433         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42434         start_index, end_index arguments.
42435         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42436         Update.
42437         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42438
42439 2006-10-05  Bruno Haible  <bruno@clisp.org>
42440
42441         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42442
42443         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42444         fwriteerror_temp): New declarations.
42445         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42446         (descriptors): New variable.
42447         (cleanup): First, close the descriptors.
42448         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42449         fclose_temp, fwriteerror_temp): New functions.
42450
42451 2006-10-04  Jim Meyering  <jim@meyering.net>
42452
42453         * lib/fts.c (fts_open): Tiny comment change.
42454
42455 2006-10-04  Bruno Haible  <bruno@clisp.org>
42456
42457         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42458         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42459         gl_LOCK_BODY.
42460         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42461         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42462         gl_LOCK_EARLY_BODY.
42463         (gl_LOCK): Require gl_LOCK_BODY.
42464
42465 2006-10-04  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42468         (gl_oset_search_atleast): New declaration.
42469         (struct gl_oset_implementation): Add field 'search_atleast'.
42470         (gl_oset_search_atleast): New inline function.
42471         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42472         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42473         (gl_array_oset_implementation): Update.
42474         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42475         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42476         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42477
42478 2006-10-04  Bruno Haible  <bruno@clisp.org>
42479
42480         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42481
42482 2006-10-03  Bruno Haible  <bruno@clisp.org>
42483
42484         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42485         from gl_avltreehash_list_implementation.
42486
42487 2006-10-03  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/gl_oset.c (gl_oset_add): Fix return type.
42490
42491 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42492
42493         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42494
42495 2006-10-02  Eric Blake  <ebb9@byu.net>
42496
42497         * modules/strnlen (Depends-on): Add extensions.
42498
42499 2006-10-02  Eric Blake  <ebb9@byu.net>
42500
42501         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42502         definition in 2.60+.
42503
42504 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42505
42506         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42507         checks.
42508
42509 2006-10-02  Bruno Haible  <bruno@clisp.org>
42510
42511         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42512         to the AUTOMAKE_OPTIONS.
42513         Reported by Jim Meyering.
42514
42515 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42516
42517         Work around bug in Solaris 10 /proc file system:
42518         /proc/self/fd/NNN/.. isn't the parent directory of
42519         the directory whose file descriptor is NNN.  This needs to
42520         be worked around at run time, not compile time, since a
42521         program might be built on Solaris 8, where things work, and
42522         run on Solaris 10.
42523         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42524         to use the following interface instead:
42525         (OPENAT_BUFFER_SIZE): New macro.
42526         (openat_proc_name): New function.
42527         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42528         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42529         Likewise.
42530         * lib/openat-proc.c: New file.
42531         * modules/openat (Files): Add lib/openat-proc.c.
42532         (Depends-on): Add same-inode, stdbool.
42533         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42534
42535 2006-09-29  Bruno Haible  <bruno@clisp.org>
42536
42537         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42538         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42539         argument. Set stdout_closed before testing for ferror, not after.
42540         (fwriteerror, fwriteerror_no_ebadf): New functions.
42541
42542 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42543
42544         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42545
42546 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42547
42548         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42549         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42550
42551 2006-09-28  Jim Meyering  <jim@meyering.net>
42552
42553         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42554         Include <unistd.h>.
42555
42556 2006-09-28  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42559         * modules/linkedhash-list (Depends-on): Likewise.
42560         * modules/rbtreehash-list (Depends-on): Likewise.
42561
42562 2006-09-28  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/strndup.h: Simplify the redefinition of strndup.
42565         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42567
42568 2006-09-28  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42571         * lib/gl_linkedhash_list.c: Likewise.
42572         * lib/gl_rbtreehash_list.c: Likewise.
42573
42574 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42575
42576         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42577         getaddrinfo.
42578
42579         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42580         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42581         it causes <stdio_ext.h> to cause a compile-time error.
42582         Problem reported by Nelson H. F. Beebe.
42583         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42584         of HAVE_DECL___PENDING.
42585
42586         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42587         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42588         declaration.
42589
42590 2006-09-27  Jim Meyering  <jim@meyering.net>
42591
42592         This file could end up with a definition for a function
42593         named __strndup, rather than rpl_strndup on a system with
42594         incomplete weak_alias support.
42595         * lib/strndup.c (strndup): Rename from __strndup.
42596         Remove #defines that used to map __strndup to strndup.
42597         Don't use K&R prototypes.
42598         Remove LIBC-related code, since this file is not sync'd with glibc.
42599         * lib/strndup.h: Revamp, accordingly.
42600         * m4/strndup.m4: Modernize.
42601
42602 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * modules/savewd (Depends-on): Add 'raise'.
42605         * lib/savewd.c: Include <signal.h>, for 'raise'.
42606
42607 2006-09-26  Jim Meyering  <jim@meyering.net>
42608
42609         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42610         when we detect Darwin 8.7.0's acl_get_file bug.
42611         Rearrange to perform the new (below) run-test while $LIBS
42612         contains any acl-related library.  Set USE_ACL at the end.
42613         (gl_ACL_GET_FILE): New function.
42614
42615 2006-09-26  Eric Blake  <ebb9@byu.net>
42616
42617         * lib/verror.c: Include <config.h> unconditionally.
42618
42619 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42620
42621         * modules/clock-time (Maintainer): Add self.
42622         * modules/getlogin_r (Depends-on): Add extensions.
42623
42624 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42625
42626         * modules/clock-time: New module.
42627         * modules/nanosleep (Depends-on): Add clock-time.
42628         * modules/gethrxtime (Depends-on): Likewise.
42629         * modules/gettime (Depends-on): Likewise.
42630         * modules/settime (Depends-on): Likewise.
42631
42632         * modules/fts-lgpl: Depend on openat.
42633         * modules/mkancesdirs: Depend on savewd.
42634         * modules/mkdir-p: Likewise.
42635
42636 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42637
42638         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42639
42640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42641         `gl_have_arbitrary_file_name_length_limit' to
42642         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42643         actually works between configure runs.
42644
42645 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42646             Bruno Haible  <bruno@clisp.org>
42647
42648         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42649
42650 2006-09-25  Jim Meyering  <jim@meyering.net>
42651
42652         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42653         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42654
42655 2006-09-25  Eric Blake  <ebb9@byu.net>
42656
42657         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42658         exec's in 2006-09-18 patch when shuffling fds.
42659
42660 2006-09-25  Bruno Haible  <bruno@clisp.org>
42661
42662         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42663         Reported by Jim Meyering.
42664
42665 2006-09-24  Jim Meyering  <jim@meyering.net>
42666
42667         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42668         compare a pointer against a literal "0".  That caused failures with
42669         at least HP-UX's hpcc.
42670
42671 2006-09-22  Simon Josefsson  <jas@extundo.com>
42672
42673         * modules/gc-sha1:
42674         * modules/gc-md4:
42675         * modules/gc-hmac-sha1:
42676         * modules/gc-hmac-md5:
42677         * modules/gc-des:
42678         * modules/gc-arcfour: Distribute more files.
42679
42680 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42681
42682         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42683         (gl_linked_iterator_from_to): Initialize struct completely.
42684         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42685         (gl_tree_iterator_from_to): Likewise
42686         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42687         * lib/gl_array_list.c [lint] (gl_array_iterator)
42688         (gl_array_iterator_from_to): Likewise.
42689         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42690         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42691         (gl_carray_iterator_from_to): Likewise.
42692
42693         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42694         * lib/md4.c (md4_process_block): Remove unused variable.
42695         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42696         parentheses for clarity.
42697
42698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42699
42700         * modules/bison-i18n (Depends-on): Add gettext.
42701
42702 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42703
42704         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42705         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42706         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42707         also add missing comma that caused broken test.
42708         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42709         stdlib.h, for `abort'.
42710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42711         variables.
42712         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42713         include unistd.h if present, for `rmdir'.
42714         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42715         variables.
42716         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42717         in the process include standard headers for prototypes.
42718         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42719         gets declared on GNU/Linux.
42720         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42721         unistd.h, for `rmdir'.
42722         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42723
42724         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42725         always true.
42726         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42727
42728         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42729
42730 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42731
42732         * gnulib-tool (func_version): Create output all at once.  This
42733         may help avoid triggering unnecessary SIGPIPEs, and at any
42734         rate it doesn't hurt.
42735
42736 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42737             Bruno Haible  <bruno@clisp.org>
42738
42739         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42740         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42741         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42742
42743         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42744         (gl_FUNC_VASPRINTF): Invoke it.
42745
42746 2006-09-22  Bruno Haible  <bruno@clisp.org>
42747
42748         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42749         getloadavg.c as first argument.
42750
42751 2006-09-22  Bruno Haible  <bruno@clisp.org>
42752
42753         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42754         at the beginning of the gl_INIT macro.
42755         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42756         gl_GETLOADAVG.
42757
42758 2006-09-22  Bruno Haible  <bruno@clisp.org>
42759
42760         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42761         module.
42762         Suggested by Ralf Wildenhues.
42763
42764 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42765
42766         Import this patch from libc:
42767
42768         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42769
42770         * lib/regex_internal.c (re_string_reconstruct): Handle
42771         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42772         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42773         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42774         re_string_context_at.
42775
42776         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42777         now requires it.
42778         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42779         gl_REGEX now does it for us.
42780         (gl_REGEX): Add test taken from
42781         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42782
42783         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42784         Check that large offsets work.  Modernize Autoconf usages.
42785         Prefer "yes" to mean a good thing rather than a bad.
42786         Don't put "#define mkstemp" in config.h, as this might interfere
42787         with standard system headers that "#define mkstemp mkstemp64".
42788
42789         * modules/mkstemp (Depends-on): Add extensions, so that
42790         mkstemp is visible on some platforms.
42791         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42792         (Include): Change to "mkstemp.h" from <stdlib.h>.
42793         (Files): Add mkstemp.h.
42794
42795         * lib/mkstemp.h: New file, since some standard headers
42796         #define mkstemp.
42797         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42798         Include "mkstemp.h".
42799         Make the _LIBC code resemble glibc original more,
42800         e.g., use K&R style.
42801         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42802         (mkstemp): Remove, since mkstemp.h does this for us.
42803         * lib/stdlib--.h: Include mkstemp.h.
42804
42805         Import this patch from libc:
42806
42807         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42808
42809         * lib/tempname.c (__gen_tempname): Change attempts_min
42810         into a macro.  Use preprocessor to decide how to initialize
42811         attempts [Coverity CID 67].
42812
42813 2006-09-20  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/mkdtemp.c: Import from libc.
42816         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42817                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42818                 attempts_min into a macro.  Use preprocessor to decide how to
42819                 initialize attempts [Coverity CID 67].
42820         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42821                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42822                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42823
42824 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42825
42826         * gnulib-tool (func_exit): New function, to allow to pass the
42827         exit status portably through the trap.  Use everywhere.
42828         (--help, --version): Signal a write error.
42829         (trap): catch SIGPIPE, for write errors.
42830         Exit at the end of the trap, with the correct exit status.
42831
42832 2006-09-19  Karl Berry  <karl@gnu.org>
42833
42834         * doc/gnulib.texi: note about the license texinfo files.
42835
42836 2006-09-19  Eric Blake  <ebb9@byu.net>
42837
42838         * gnulib-tool: Avoid space-tab.
42839
42840 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42841
42842         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42843         that prevented coreutils 6.1 from building.  Problem reported
42844         by Petter Reinholdtsen.
42845
42846 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42847
42848         * gnulib-tool (avoidlist): Fix typo that broke options like
42849         --avoid=lock that are used by coreutils bootstrap.
42850
42851 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42852
42853         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42854         more systematically.
42855
42856 2006-09-18  Jim Meyering  <jim@meyering.net>
42857
42858         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42859
42860 2006-09-18  Bruno Haible  <bruno@clisp.org>
42861
42862         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42863
42864 2006-09-18  Bruno Haible  <bruno@clisp.org>
42865
42866         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42867         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42868         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42869         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42870         * m4/gettext.m4: Require autoconf >= 2.52.
42871         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42872         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42873         of gl_cv_header_inttypes_h.
42874
42875 2006-09-18  Bruno Haible  <bruno@clisp.org>
42876
42877         * lib/javaversion.c: Include configmake.h.
42878
42879 2006-09-18  Bruno Haible  <bruno@clisp.org>
42880
42881         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42882         avoid that the while loops be executed in a subshell.
42883
42884 2006-09-18  Bruno Haible  <bruno@clisp.org>
42885
42886         * MODULES.html.sh (func_module): Break long lines.
42887         Suggested by Bruce Korb <bkorb@gnu.org>.
42888
42889 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42890
42891         Speed up by a factor of 1.12.
42892         * gnulib-tool (nl): New variable.
42893         (func_import): Rewrite include directive extraction to only read each
42894         directive once.
42895
42896 2006-09-17  Bruno Haible  <bruno@clisp.org>
42897
42898         * modules/javaversion (Makefile.am): Remove DEFS setting.
42899         (Depends-on): Add configmake, for PKGDATADIR definition.
42900
42901 2006-09-17  Bruno Haible  <bruno@clisp.org>
42902
42903         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42904
42905 2006-09-17  Bruno Haible  <bruno@clisp.org>
42906
42907         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42908         (func_modules_transitive_closure, func_modules_add_dummy,
42909         func_modules_to_filelist, func_import, func_create_testdir,
42910         func_create_megatestdir, ...): Use it wherever possible.
42911         Suggested by Ralf Wildenhues.
42912
42913 2006-09-16  Karl Berry  <karl@gnu.org>
42914
42915         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42916         to avoid sectioning errors.
42917         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42918         [ifinfo]: blank line after @center-ed titles.
42919         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42920         Spell FSF address consistently with others.
42921         (These changes approved by rms.)
42922
42923 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42924
42925         Speed up by a factor of 1.61.
42926         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42927         already checked module names again.
42928
42929 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42930
42931         Speed up by a factor of 1.13.
42932         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42933         for new_files, and the input to func_add_or_update.
42934
42935 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42936
42937         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42938         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42939
42940 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42941
42942         * modules/mkancesdirs (Depends-on): Add fcntl.
42943         * modules/savewd: New file.
42944         * MODULES.html.sh (File system functions): Add savewd.
42945
42946         * modules/configmake (Makefile.am): Add support for the
42947         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42948
42949 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         * m4/savewd.m4: New file.
42952
42953 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42954
42955         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42956         (dirchownmod): New arg FD.  All callers changed.
42957         Use FD rather than opening the directory ourself, as opening is
42958         now the caller's responsibility.
42959         * lib/dirchownmod.h: Likewise.
42960         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42961         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42962         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42963         (test_dir): Remove.
42964         (mkancesdirs): Return length of prefix of FILE that has already
42965         been made, or -2 if there is a child doing the work.  Redo
42966         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42967         ".", and treat ".." specially since it might stray back into
42968         already-created areas.  Use a subprocess if necessary.  New arg
42969         WD; all users changed.  MAKE_DIR function should now return 1
42970         if it creates a directory that is not readable.  Return -2 if
42971         a child process is spun off.
42972         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42973         Adjust signature to match code.
42974         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42975         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42976         all users changed.
42977         * lib/savewd.c, lib/savewd.h: New files.
42978
42979 2006-09-15  Jim Meyering  <jim@meyering.net>
42980
42981         * modules/rename-dest-slash: New module.
42982         * MODULES.html.sh (posix_compat): Add it here.
42983
42984         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42985
42986 2006-09-15  Jim Meyering  <jim@meyering.net>
42987
42988         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42989         file.
42990
42991         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42992
42993 2006-09-15  Jim Meyering  <jim@meyering.net>
42994
42995         * lib/rename-dest-slash.c (has_trailing_slash): Use
42996         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42997         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42998         test before testing whether SRC is a directory.
42999         Suggestions from Bruno Haible.
43000
43001         Avoid a warning about an unused variable.
43002         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43003         into the #ifdef block where it's used.
43004
43005         * lib/rename-dest-slash.c: New file.
43006
43007 2006-09-14  Bruno Haible  <bruno@clisp.org>
43008
43009         * lib/allocsa.c: Include <config.h> unconditionally.
43010         * lib/asnprintf.c: Likewise.
43011         * lib/asprintf.c: Likewise.
43012         * lib/c-strcasecmp.c: Likewise.
43013         * lib/c-strcasestr.c: Likewise.
43014         * lib/c-strncasecmp.c: Likewise.
43015         * lib/c-strstr.c: Likewise.
43016         * lib/classpath.c: Likewise.
43017         * lib/clean-temp.c: Likewise.
43018         * lib/concatpath.c: Likewise.
43019         * lib/copy-file.c: Likewise.
43020         * lib/csharpcomp.c: Likewise.
43021         * lib/csharpexec.c: Likewise.
43022         * lib/execute.c: Likewise.
43023         * lib/fatal-signal.c: Likewise.
43024         * lib/findprog.c: Likewise.
43025         * lib/fwriteerror.c: Likewise.
43026         * lib/gl_array_list.c: Likewise.
43027         * lib/gl_array_oset.c: Likewise.
43028         * lib/gl_avltree_list.c: Likewise.
43029         * lib/gl_avltree_oset.c: Likewise.
43030         * lib/gl_avltreehash_list.c: Likewise.
43031         * lib/gl_carray_list.c: Likewise.
43032         * lib/gl_linked_list.c: Likewise.
43033         * lib/gl_linkedhash_list.c: Likewise.
43034         * lib/gl_list.c: Likewise.
43035         * lib/gl_oset.c: Likewise.
43036         * lib/gl_rbtree_list.c: Likewise.
43037         * lib/gl_rbtree_oset.c: Likewise.
43038         * lib/gl_rbtreehash_list.c: Likewise.
43039         * lib/imaxabs.c: Likewise.
43040         * lib/imaxdiv.c: Likewise.
43041         * lib/javacomp.c: Likewise.
43042         * lib/javaexec.c: Likewise.
43043         * lib/javaversion.c: Likewise.
43044         * lib/linebreak.c: Likewise.
43045         * lib/localcharset.c: Likewise.
43046         * lib/lock.c: Likewise.
43047         * lib/mbchar.c: Likewise.
43048         * lib/mbswidth.c: Likewise.
43049         * lib/mkdtemp.c: Likewise.
43050         * lib/pipe.c: Likewise.
43051         * lib/printf-args.c: Likewise.
43052         * lib/printf-parse.c: Likewise.
43053         * lib/progname.c: Likewise.
43054         * lib/progreloc.c: Likewise.
43055         * lib/readlink.c: Likewise.
43056         * lib/sh-quote.c: Likewise.
43057         * lib/stpcpy.c: Likewise.
43058         * lib/stpncpy.c: Likewise.
43059         * lib/strcasecmp.c: Likewise.
43060         * lib/strcasestr.c: Likewise.
43061         * lib/strcspn.c: Likewise.
43062         * lib/striconv.c: Likewise.
43063         * lib/strncasecmp.c: Likewise.
43064         * lib/strnlen1.c: Likewise.
43065         * lib/strstr.c: Likewise.
43066         * lib/strtok_r.c: Likewise.
43067         * lib/tls.c: Likewise.
43068         * lib/tmpdir.c: Likewise.
43069         * lib/unicodeio.c: Likewise.
43070         * lib/unsetenv.c: Likewise.
43071         * lib/vasnprintf.c: Likewise.
43072         * lib/vasprintf.c: Likewise.
43073         * lib/wait-process.c: Likewise.
43074         * lib/xallocsa.c: Likewise.
43075         * lib/xsetenv.c: Likewise.
43076         * lib/xstriconv.c: Likewise.
43077
43078 2006-09-13  Simon Josefsson  <jas@extundo.com>
43079
43080         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43081         that internally, suggested by Ralf Wildenhues
43082         <Ralf.Wildenhues@gmx.de>.
43083
43084 2006-09-13  Simon Josefsson  <jas@extundo.com>
43085
43086         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43087         @LIBOBJS@.
43088         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43089
43090 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43091
43092         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43093         longer worry about uses that don't define HAVE_CONFIG_H.
43094         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43095         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43096         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43097         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43098         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43099         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43100         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43101         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43102         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43103         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43104         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43105         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43106         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43107         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43108         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43109         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43110         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43111         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43112         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43113         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43114         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43115         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43116         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43117         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43118         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43119         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43120         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43121         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43122         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43123         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43124         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43125         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43126         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43127         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43128         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43129         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43130         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43131         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43132         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43133         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43134         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43135         Likewise.
43136
43137 2006-09-13  Eric Blake  <ebb9@byu.net>
43138
43139         * lib/getopt.c: Fix typo in last commit.
43140
43141 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43142
43143         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43144         dgettext.
43145
43146 2006-09-12  Jim Meyering  <jim@meyering.net>
43147
43148         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43149         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43150         Reported by Nelson H. F. Beebe.
43151
43152 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43153
43154         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43155         program_invocation_name and program_invocation_short_name are
43156         initialized.
43157         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43158         and program_invocation_short_name to argp.h, so they are visible
43159         to user programs.
43160         * lib/argp.h: Likewise
43161
43162 2006-09-10  Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43165         m4/inttypes_h.m4, m4/uintmax_t.m4.
43166
43167 2006-09-10  Bruno Haible  <bruno@clisp.org>
43168
43169         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43170         gl_AC_TYPE_UINTMAX_T.
43171
43172 2006-09-10  Bruno Haible  <bruno@clisp.org>
43173
43174         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43175
43176 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43177
43178         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43179         convention.  Text proposed by Bruno Haible.
43180         (struct argp_option): Document the use of N_() wrappers.
43181
43182         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43183         '\v', and translate the two parts separately, instead of feeding
43184         the whole string to gettext.  This allows to exclude
43185         '\v' from the strings visible to the translator by writing doc
43186         strings as N_("..") "\v" N_("..").
43187
43188 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43189
43190         * config/srclist.txt: Undo latest change; the bug was fixed.
43191
43192 2006-09-09  Bruno Haible  <bruno@clisp.org>
43193
43194         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43195         assignments if building a library without libtool.
43196         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43197         in func_emit_lib_Makefile_am.
43198         (func_import): When building a static library libfoo.a, arrange to
43199         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43200         (func_create_testdir): Likewise.
43201         * modules/gc (configure.ac, Makefile.am): If building statically,
43202         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43203         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43204         * modules/striconv (configure.ac, Makefile.am): Likewise.
43205         Based on a suggestion by Ralf Wildenhues.
43206
43207 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43208
43209         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43210         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43211         Also:
43212
43213         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43214         Add year_2050_test to catch glibc bug 2821
43215         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43216
43217         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43218         Prefer #ifdef to #if.
43219
43220         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43221         Return from 'main' instead of calling 'exit'.
43222
43223 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43224
43225         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43226         returned the maximum time_t value rather than (time_t) -1.
43227         Problem originally reported by William Bardwell
43228         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43229
43230         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43231         Moved to here ...
43232         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43233         ... from here.
43234
43235 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43236
43237         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43238         2821 is fixed.
43239
43240 2006-09-08  Jim Meyering  <jim@meyering.net>
43241
43242         Don't make generated files read-only.  That would bother too many
43243         people.  However, do retain the ability to work when targets are
43244         read-only: remove the destination and temporary files before writing
43245         them (when generated via sed or echo), or by using the -f option for
43246         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43247         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43248         * modules/byteswap, modules/configmake, modules/fcntl:
43249         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43250         * modules/localcharset, modules/netinet_in, modules/poll:
43251         * modules/stdbool, modules/stdint, modules/sys_select:
43252         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43253
43254 2006-09-08  Jim Meyering  <jim@meyering.net>
43255
43256         Avoid new build failure on FreeBSD 6.0.
43257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43258         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43259         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43260
43261 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43262
43263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43264
43265 2006-09-07  Jim Meyering  <jim@meyering.net>
43266
43267         Fix global typo in last change: use chmod u-w, not chmod u-x.
43268         Spotted by Paul Eggert and Bruce Korb.
43269         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43270         * modules/byteswap, modules/configmake, modules/fcntl:
43271         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43272         * modules/localcharset, modules/netinet_in, modules/poll:
43273         * modules/stdbool, modules/stdint, modules/sys_select:
43274         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43275
43276 2006-09-06  Jim Meyering  <jim@meyering.net>
43277
43278         Make generated files be read-only.
43279         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43280         Ensure that each generated file is now read-only.
43281         * modules/argz: Likewise.
43282         * modules/arpa_inet: Likewise.
43283         * modules/byteswap: Likewise.
43284         * modules/configmake: Likewise.
43285         * modules/fcntl: Likewise.
43286         * modules/fnmatch: Likewise.
43287         * modules/getopt: Likewise.
43288         * modules/glob: Likewise.
43289         * modules/inttypes: Likewise.
43290         * modules/netinet_in: Likewise.
43291         * modules/poll: Likewise.
43292         * modules/stdbool: Likewise.
43293         * modules/stdint: Likewise.
43294         * modules/sys_select: Likewise.
43295         * modules/sys_socket: Likewise.
43296         * modules/sys_stat: Likewise.
43297         * modules/sysexits: Likewise.
43298         * modules/localcharset: Same as above, but continue using temporary
43299         file named "t-$@" (why different?) rather than the "$@-t" used
43300         everywhere else.
43301
43302         * modules/sysexits (Makefile.am): Replace literal occurrences
43303         of "sysexit.h" more readable, and more consistent, "$@".
43304
43305 2006-09-06  Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/striconv: New file.
43308         * modules/xstriconv: New file.
43309         * MODULES.html.sh (Internationalization functions): Add striconv,
43310         xstriconv.
43311
43312 2006-09-06  Bruno Haible  <bruno@clisp.org>
43313
43314         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43315         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43316         not using libtool correctly.
43317
43318 2006-09-06  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/striconv.h: New file.
43321         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43322         iconvstring.c.
43323         * lib/xstriconv.h: New file.
43324         * lib/xstriconv.c: New file.
43325
43326 2006-09-06  Bruno Haible  <bruno@clisp.org>
43327
43328         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43329         lib_..._LDFLAGS.
43330
43331 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43332
43333         * lib/argz_.h: Sync from Libtool.
43334
43335         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43336                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43337
43338         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43339
43340 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43341
43342         * modules/trim: New file.
43343
43344 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43345
43346         * lib/trim.h: New file.
43347         * lib/trim.c: New file.
43348
43349 2006-09-05  Bruno Haible  <bruno@clisp.org>
43350
43351         * MODULES.html.sh (String handling): Add trim.
43352
43353 2006-09-04  Karl Berry  <karl@gnu.org>
43354
43355         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43356         until next release.
43357
43358 2006-09-03  Bruno Haible  <bruno@clisp.org>
43359
43360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43361         correctly.
43362
43363 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43364
43365         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43366         not gl_GETLOADAVG.  Omit unneeded semicolons.
43367         Problems reported by Ralf Wildenhues in
43368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43369         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43370         at the end, which is the usual gnulib style.
43371
43372         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43373         of doing all the work ourselves.
43374         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43375         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43376
43377 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43378
43379         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43380         Problem reported by Ralf Wildenhues in
43381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43382
43383         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43384         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43385
43386 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43387
43388         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43389         yesterday's patch by changing test -n to test -z.
43390
43391 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43392
43393         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43394         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43395         the former is now obsolescent.
43396
43397         * modules/chdir-long (Depends-on): Add fcntl.
43398
43399 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43400
43401         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43402         obsolescent, and programs should use gnulib instead.
43403         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43404         but with prefixes changed.
43405
43406 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43407
43408         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43409         or stdbool.h, because they might not exist while configuring.
43410
43411         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43412         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43413         does that for us.
43414         (O_DIRECTORY): Remove.
43415
43416 2006-08-31  Eric Blake  <ebb9@byu.net>
43417
43418         * gnulib-tool: Don't let emacs change spaces to TAB.
43419
43420 2006-08-31  Bruno Haible  <bruno@clisp.org>
43421
43422         * gnulib-tool: When calling func_import more than once, do it in a
43423         subshell.
43424         Reported by Eric Blake <ebb9@byu.net>.
43425
43426 2006-08-31  Bruno Haible  <bruno@clisp.org>
43427
43428         * gnulib-tool (nl): Remove variable.
43429         (sed_transform_lib_file): Use more robust test for config-h module.
43430         (func_import): Fix typo in 2006-08-25 patch.
43431
43432 2006-08-31  Bruno Haible  <bruno@clisp.org>
43433
43434         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43435         specified, augment Makefile.am variables instead of assigning them.
43436
43437 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43438
43439         Work around a bug in both the Linux and SunOS 64-bit kernels:
43440         nanosleep mishandles sleeps for longer than 2**31 seconds.
43441         Problem reported by Frank v Waveren in
43442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43444         Check for nanosleep bug.
43445         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43446
43447 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43448
43449         Work around a bug in both the Linux and SunOS 64-bit kernels:
43450         nanosleep mishandles sleeps for longer than 2**31 seconds.
43451         Problem reported by Frank v Waveren in
43452         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43453         * lib/nanosleep.c (BILLION): New constant.
43454         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43455         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43456         implementation.
43457
43458 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43459
43460         * modules/nanosleep (Depends-on): Add gettime.
43461
43462 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43463         and Simon Josefsson  <jas@extundo.com>
43464         and Oskar Liljeblad  <oskar@osk.mine.nu>
43465
43466         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43467         * gnulib-tool (func_import): New license type 'unmodifiable license
43468         text'.
43469         * modules/fdl: Use it.  Longer description.
43470         * module/gpl, module/lgpl: New files.
43471
43472 2006-08-30  Jim Meyering  <jim@meyering.net>
43473
43474         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43475         shadowing the parameter.
43476
43477 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43478
43479         Sync from Libtool:
43480
43481         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43482
43483         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43484         sharing with gnulib.  Report by Eric Blake.
43485
43486 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43487
43488         * modules/isapipe: New file.
43489         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43490
43491 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43492
43493         * modules/configmake (Makefile.am): Add a comment, and omit
43494         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43495         by Bruno Haible.
43496
43497 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43498
43499         * m4/isapipe.m4: New file.
43500
43501 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43502
43503         * lib/isapipe.c, lib/isapipe.h: New files.
43504
43505 2006-08-29  Jim Meyering  <jim@meyering.net>
43506
43507         * modules/configmake (Makefile.am): Make configmake.h depend on
43508         Makefile.  Otherwise, a stale configmake.h could hang around.
43509
43510 2006-08-29  Eric Blake  <ebb9@byu.net>
43511
43512         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43513         resolution of upstream bug 3044.
43514
43515 2006-08-29  Bruno Haible  <bruno@clisp.org>
43516
43517         * modules/localcharset (Depends-on): Add configmake.
43518         (Makefile.am): Remove setting of LIBDIR through DEFS.
43519
43520 2006-08-29  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43523         defined.
43524
43525 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43526
43527         * modules/fcntl: New file.
43528         * modules/chdir-safer (Depends-on): Add fcntl.
43529         * modules/fts: Likewise.
43530         * modules/mkdir-p: Likewise.
43531
43532         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43533         This undoes the most recent change, since we're now addressing the
43534         problem in a different way.
43535
43536         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43537         into output, since the output might be called Makefile.am even
43538         if $makefile_name is something different.
43539         (func_import): Use $makefile_am rather than
43540         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43541         empty.
43542
43543         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43544
43545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43546
43547         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43548         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43549         recent change to stdint.m4, since we're now addressing the problem in a
43550         different way.
43551
43552 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43553
43554         * m4/fcntl_h.m4: New file.
43555
43556 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43557
43558         * lib/fcntl_.h: New file.
43559         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43560         the fcntl module.
43561         * lib/dirchownmod.c: Likewise.
43562         * lib/fts.c: Likewise.
43563
43564         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43565         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43566         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43567         just before including <inttypes.h>, to avoid circular inclusion.
43568
43569 2006-08-28  Jim Meyering  <jim@meyering.net>
43570
43571         * doc/visibility.texi: Actually read and correct the grammar of the
43572         sentence affected by yesterday's change.
43573
43574 2006-08-28  Eric Blake  <ebb9@byu.net>
43575
43576         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43577         needs wrapper.
43578
43579 2006-08-28  Eric Blake  <ebb9@byu.net>
43580
43581         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43582
43583 2006-08-28  Eric Blake  <ebb9@byu.net>
43584
43585         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43586
43587 2006-08-28  Bruno Haible  <bruno@clisp.org>
43588
43589         * modules/c-strstr: New file, from GNU gettext.
43590         * MODULES.html.sh (String handling): Add c-strstr.
43591
43592 2006-08-28  Bruno Haible  <bruno@clisp.org>
43593
43594         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43595         macros.
43596         Reported by Eric Blake.
43597
43598 2006-08-28  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43601         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43602         * lib/vasprintf.c: Include errno.h, limits.h.
43603         (EOVERFLOW): New fallback definition.
43604         (vasprintf): Test here whether the string length is > INT_MAX.
43605         * lib/vsnprintf.c: Include errno.h, limits.h.
43606         (EOVERFLOW): New fallback definition.
43607         (vsnprintf): Fix bug when generated string was too long for the buffer.
43608         Test here whether the string length is > INT_MAX.
43609
43610 2006-08-28  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/inttypes_.h (SCNX*): Remove definitions.
43613         Reported by Eric Blake.
43614
43615 2006-08-28  Bruno Haible  <bruno@clisp.org>
43616
43617         * lib/c-strstr.h: New file, from GNU gettext.
43618         * lib/c-strstr.c: New file, from GNU gettext.
43619
43620 2006-08-28  Bruno Haible  <bruno@clisp.org>
43621
43622         * gnulib-tool: Reorder some statements.
43623
43624 2006-08-28  Bruno Haible  <bruno@clisp.org>
43625
43626         * gnulib-tool: New option --makefile-name.
43627         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43628         $makefile_name.
43629         (func_import): Write $makefile_name to the cache file, and read it from
43630         there unless explicitly specified. Use $makefile_name as file name
43631         instead of Makefile.am. Adjust the recommendations accordingly.
43632
43633 2006-08-28  Bruno Haible  <bruno@clisp.org>
43634
43635         * gnulib-tool (func_verify_module): Check against misapplying patch.
43636
43637 2006-08-28  Bruno Haible  <bruno@clisp.org>
43638
43639         * gnulib-tool (func_relativize, func_relconcat): New functions.
43640         Give an error if --local-dir is given with --update.
43641         Remove trailing slashes from $local_gnulib_dir.
43642         (func_import): Store the relativized $local_gnulib_dir in
43643         gnulib-cache.m4, and read it from there if not specified explicitly.
43644
43645 2006-08-28  Bruno Haible  <bruno@clisp.org>
43646
43647         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43648         is the current directory. Respect also $local_gnulib_dir.
43649
43650 2006-08-28  Bruno Haible  <bruno@clisp.org>
43651             Simon Josefsson  <jas@extundo.com>
43652
43653         BeOS portability.
43654         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43655
43656 2006-08-27  Jim Meyering  <jim@meyering.net>
43657
43658         * doc/visibility.texi: Remove duplicate word: "pointer".
43659
43660 2006-08-26  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43663         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43664         (Makefile.am): Create inttypes.h from inttypes_.h.
43665         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43666
43667         * modules/imaxabs: New file.
43668
43669         * modules/imaxdiv: New file.
43670
43671 2006-08-26  Bruno Haible  <bruno@clisp.org>
43672
43673         * m4/inttypes.m4: New file.
43674         * m4/_inttypes_h.m4: Remove file.
43675         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43676         PRI_MACROS_BROKEN.
43677         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43678
43679         * m4/imaxabs.m4: New file.
43680
43681         * m4/imaxdiv.m4: New file.
43682
43683 2006-08-26  Bruno Haible  <bruno@clisp.org>
43684
43685         * lib/inttypes_.h: New file.
43686         * lib/inttypes.h: Remove file.
43687         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43688
43689         * lib/imaxabs.c: New file.
43690
43691         * lib/imaxdiv.c: New file.
43692
43693 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         New config-h module, so that "make" output needn't be cluttered
43696         by -DHAVE_CONFIG_H.
43697         * MODULES.html.sh (Support for building libraries and executables):
43698         Add config-h.
43699         * modules/config-h: New file.
43700         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43701         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43702         the config-h module is used.
43703
43704         New configmake module, so that "make" output needn't be cluttered
43705         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43706         * MODULES.html.sh (Support for building libraries and executables):
43707         Add configmake.
43708         * modules/configmake: New file.
43709
43710 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43711
43712         * m4/config-h.m4: New file.
43713
43714 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43715
43716         * config/srclist.txt: Add elisp-comp.
43717
43718 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43719
43720         * MODULES.html.sh (Support for building libraries and executables):
43721         Add elisp-comp.
43722         * build-aux/elisp-comp: New file.
43723         * modules/elisp-comp: New file.
43724
43725 2006-08-24  Bruno Haible  <bruno@clisp.org>
43726
43727         * gnulib-tool (func_create_testdir): Use non-default values of
43728         sourcebase and m4base.
43729
43730 2006-08-24  Bruno Haible  <bruno@clisp.org>
43731
43732         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43733         HTML structure.
43734
43735 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43736
43737         * modules/openat (Depends-on): Add lchown.
43738
43739 2006-08-23  Bruno Haible  <bruno@clisp.org>
43740
43741         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43742         of gl_LOCK_EARLY instead of gl_LOCK.
43743
43744 2006-08-23  Bruno Haible  <bruno@clisp.org>
43745
43746         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43747         on OSF/1 to no.
43748         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43749
43750 2006-08-23  Bruno Haible  <bruno@clisp.org>
43751
43752         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43753         as unusable.
43754
43755         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43756         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43757         (gl_LOCK): New macro.
43758
43759 2006-08-22  Simon Josefsson  <jas@extundo.com>
43760
43761         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43762         to md5 module.
43763
43764 2006-08-22  Simon Josefsson  <jas@extundo.com>
43765
43766         * MODULES.html.sh: Add "Support for maintaining and release
43767         projects".
43768
43769         * build-aux/gnupload: New file, from coreutils.
43770
43771 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43772
43773         Avoid the need for AC_LIBSOURCES in m4 macros.
43774         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43775         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43776         * modules/check-version (EXTRA_DIST): Add check-version.h.
43777         * modules/crc (EXTRA_DIST): Add crc.h.
43778         * modules/des (EXTRA_DIST): Add des.h.
43779         * modules/gc (EXTRA_DIST): Add gc.h.
43780         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43781         * modules/getline (EXTRA_DIST): Add getline.h.
43782         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43783         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43784         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43785         * modules/md2 (EXTRA_DIST): Add md2.h.
43786         * modules/md4 (EXTRA_DIST): Add md4.h.
43787         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43788         * modules/read-file (EXTRA_DIST): Add read-file.h.
43789         * modules/readline (EXTRA_DIST): Add readline.h.
43790         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43791         rijndael-api-fst.h.
43792
43793 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43794
43795         * m4/rijndael.m4 (gl_ARCFOUR):
43796         * m4/arctwo.m4 (gl_ARCTWO):
43797         * m4/check-version.m4 (gl_CHECK_VERSION):
43798         * m4/crc.m4 (gl_CRC):
43799         * m4/des.m4 (gl_DES):
43800         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43801         * m4/gc.m4 (gl_GC):
43802         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43803         * m4/getline.m4 (gl_FUNC_GETLINE):
43804         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43805         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43806         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43807         * m4/md2.m4 (gl_MD2):
43808         * m4/md4.m4 (gl_MD4):
43809         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43810         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43811         * m4/readline.m4 (gl_FUNC_READLINE):
43812         * m4/rijndael.m4 (gl_RIJNDAEL):
43813         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43814         to get the necessary .h files and whatnot.
43815
43816 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43817
43818         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43819         gnulib rather than the other way around.
43820         * config/srclistvars.sh (COREUTILS): Remove.
43821
43822 2006-08-22  Jim Meyering  <jim@meyering.net>
43823
43824         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43825
43826         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43827
43828 2006-08-22  Eric Blake  <ebb9@byu.net>
43829
43830         * modules/regexprops-generic: New file.
43831         * MODULES.html.sh (Support for building documentation): List it.
43832
43833 2006-08-22  Eric Blake  <ebb9@byu.net>
43834
43835         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43836         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43837         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43838         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43839
43840 2006-08-22  Bruno Haible  <bruno@clisp.org>
43841
43842         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43843         and lib_LTLIBRARIES like the other lib_* variables.
43844
43845 2006-08-22  Bruno Haible  <bruno@clisp.org>
43846
43847         * build-aux/x-to-1.in: New file, from GNU gettext.
43848
43849 2006-08-22  Bruno Haible  <bruno@clisp.org>
43850
43851         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43852         <utmpx.h> exists.
43853
43854 2006-08-22  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43857         <utmpx.h> exists.
43858
43859 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43860
43861         BeOS portability.
43862         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43863         exist.
43864         Problem reported by Bruno Haible.
43865
43866 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43867
43868         Avoid the need for AC_LIBSOURCES in m4 macros.
43869         * modules/acl (EXTRA_DIST): Add acl.h.
43870         * modules/argmatch (Files): Add m4/argmatch.m4.
43871         (configure.ac): Add gl_ARGMATCH.
43872         (EXTRA_DIST): Renamed from lib_SOURCES, for
43873         consistency with the other modules.  Remove argmatch.c.
43874         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43875         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43876         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43877         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43878         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43879         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43880         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43881         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43882         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43883         * modules/closeout (EXTRA_DIST): Add closeout.h.
43884         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43885         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43886         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43887         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43888         dirname.h; remove basename.c and stripslash.c.
43889         * modules/exclude (EXTRA_DIST): Add exclude.h.
43890         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43891         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43892         * modules/file-type (EXTRA_DIST): Add file-type.h.
43893         * modules/filemode (EXTRA_DIST): Add filemode.h.
43894         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43895         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43896         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43897         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43898         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43899         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43900         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43901         * modules/getdate (EXTRA_DIST): Add getdate.c.
43902         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43903         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43904         * modules/getpass (EXTRA_DIST): Add getpass.h.
43905         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43906         * modules/group-member (EXTRA_DIST): Add group-member.h.
43907         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43908         * modules/hash (EXTRA_DIST): Add hash.h.
43909         * modules/human (EXTRA_DIST): Add human.h.
43910         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43911         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43912         * modules/lchown (EXTRA_DIST): Add lchown.h.
43913         * modules/long-options (EXTRA_DIST): Add long-options.h.
43914         * modules/lstat (EXTRA_DIST): Add lstat.h.
43915         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43916         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43917         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43918         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43919         * modules/memxor (EXTRA_DIST): Add memxor.h.
43920         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43921         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43922         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43923         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43924         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43925         * modules/physmem (EXTRA_DIST): Add physmem.h.
43926         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43927         * modules/posixver (EXTRA_DIST): Add posixver.h.
43928         * modules/quote (EXTRA_DIST): Add quote.h.
43929         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43930         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43931         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43932         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43933         regex_internal.h regexec.c.
43934         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43935         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43936         * modules/same (EXTRA_DIST): Add same.h.
43937         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43938         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43939         * modules/savedir (EXTRA_DIST): Add savedir.h.
43940         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43941         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43942         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43943         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43944         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43945         * modules/strdup (EXTRA_DIST): Add strdup.h.
43946         * modules/strftime (EXTRA_DIST): Add strftime.h.
43947         * modules/strndup (EXTRA_DIST): Add strndup.h.
43948         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43949         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43950         * modules/time_r (EXTRA_DIST): Add time_r.h.
43951         * modules/timespec (EXTRA_DIST): Add timespec.h.
43952         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43953         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43954         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43955         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43956         * modules/userspec (EXTRA_DIST): Add userspec.h.
43957         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43958         * modules/utimens (EXTRA_DIST): Add utimens.h.
43959         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43960         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43961         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43962         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43963         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43964         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43965         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43966         * modules/yesno (EXTRA_DIST): Add yesno.h.
43967
43968 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43971
43972         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43973         * m4/dev-ino.m4, same-inode.m4: Remove.
43974
43975         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43976         * m4/acl.m4 (AC_FUNC_ACL):
43977         * m4/backupfile.m4 (gl_BACKUPFILE):
43978         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43979         * m4/canon-host.m4 (gl_CANON_HOST):
43980         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43982         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43983         * m4/cloexec.m4 (gl_CLOEXEC):
43984         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43985         * m4/closeout.m4 (gl_CLOSEOUT):
43986         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43987         * m4/dirname.m4 (gl_DIRNAME):
43988         * m4/exclude.m4 (gl_EXCLUDE):
43989         * m4/exitfail.m4 (gl_EXITFAIL):
43990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43991         * m4/file-type.m4 (gl_FILE_TYPE):
43992         * m4/filemode.m4 (gl_FILEMODE):
43993         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43994         * m4/fpending.m4 (gl_FUNC_FPENDING):
43995         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43996         * m4/fts.m4 (gl_FUNC_FTS):
43997         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43998         * m4/getdate.m4 (gl_GETDATE):
43999         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44000         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44001         * m4/getpass.m4 (gl_FUNC_GETPASS):
44002         * m4/gettime.m4 (gl_GETTIME):
44003         * m4/getugroups.m4 (gl_GETUGROUPS):
44004         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44005         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44006         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44007         * m4/hash.m4 (gl_HASH):
44008         * m4/idcache.m4 (gl_IDCACHE):
44009         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44010         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44011         * m4/long-options.m4 (gl_LONG_OPTIONS):
44012         * m4/lstat.m4 (gl_FUNC_LSTAT):
44013         * m4/md5.m4 (gl_MD5):
44014         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44015         * m4/memcoll.m4 (gl_MEMCOLL):
44016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44018         * m4/memxor.m4 (gl_MEMXOR):
44019         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44020         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44021         * m4/modechange.m4 (gl_MODECHANGE):
44022         * m4/mountlist.m4 (gl_MOUNTLIST):
44023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44024         * m4/openat.m4 (gl_FUNC_OPENAT):
44025         * m4/pathmax.m4 (gl_PATHMAX):
44026         * m4/physmem.m4 (gl_PHYSMEM):
44027         * m4/posixtm.m4 (gl_POSIXTM):
44028         * m4/posixver.m4 (gl_POSIXVER):
44029         * m4/quote.m4 (gl_QUOTE):
44030         * m4/quotearg.m4 (gl_QUOTEARG):
44031         * m4/readtokens.m4 (gl_READTOKENS):
44032         * m4/readutmp.m4 (gl_READUTMP):
44033         * m4/regex.m4 (gl_REGEX):
44034         * m4/safe-read.m4 (gl_SAFE_READ):
44035         * m4/safe-write.m4 (gl_SAFE_WRITE):
44036         * m4/same.m4 (gl_SAME):
44037         * m4/save-cwd.m4 (gl_SAVE_CWD):
44038         * m4/savedir.m4 (gl_SAVEDIR):
44039         * m4/settime.m4 (gl_SETTIME):
44040         * m4/sha1.m4 (gl_SHA1):
44041         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44042         * m4/stat-macros.m4 (gl_STAT_MACROS):
44043         * m4/stat-time.m4 (gl_STAT_TIME):
44044         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44045         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44046         * m4/strdup.m4 (gl_FUNC_STRDUP):
44047         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44048         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44049         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44050         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44051         * m4/time_r.m4 (gl_TIME_R):
44052         * m4/timespec.m4 (gl_TIMESPEC):
44053         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44054         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44055         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44056         * m4/userspec.m4 (gl_USERSPEC):
44057         * m4/utimecmp.m4 (gl_UTIMECMP):
44058         * m4/utimens.m4 (gl_UTIMENS):
44059         * m4/xalloc.m4 (gl_XALLOC):
44060         * m4/xgetcwd.m4 (gl_XGETCWD):
44061         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44062         * m4/xreadlink.m4 (gl_XREADLINK):
44063         * m4/xstrtod.m4 (gl_XSTRTOD):
44064         * m4/yesno.m4 (gl_YESNO):
44065         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44066         to get the necessary .h files and whatnot.
44067
44068 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44069             Bruno Haible  <bruno@clisp.org>
44070
44071         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44072         /bin/sh understanding of '!' conditional negation.
44073
44074 2006-08-21  Jim Meyering  <jim@meyering.net>
44075
44076         * modules/openat (Depends-on): Really alphabetize.
44077
44078         * modules/acl (Depends-on): Add error and quote.
44079
44080         * check-module (find_included_lib_files): Add at-func.c to the
44081         ok-to-include-more-than-once white list.
44082
44083         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44084
44085 2006-08-21  Bruno Haible  <bruno@clisp.org>
44086
44087         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44088         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44089         Reported by Martin Lambers <marlam@marlam.de>.
44090
44091 2006-08-21  Bruno Haible  <bruno@clisp.org>
44092
44093         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44094         specify an installation location, don't emit a noinst_LIBRARIES or
44095         noinst_LTLIBRARIES assignment.
44096
44097 2006-08-21  Bruno Haible  <bruno@clisp.org>
44098
44099         BeOS portability.
44100         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44101         BeOS has mbrtowc() but no <wctype.h>.
44102
44103 2006-08-21  Bruno Haible  <bruno@clisp.org>
44104
44105         BeOS portability.
44106         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44107         exist.
44108
44109 2006-08-21  Bruno Haible  <bruno@clisp.org>
44110
44111         BeOS portability.
44112         * lib/mbchar.h: Include <wctype.h> only if it exists.
44113
44114 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         Remove files that are no longer needed by their respective modules.
44117         * m4/obstack.m4: Remove.
44118         * m4/strerror_r.m4: Remove.
44119         * m4/uint32_t.m4: Remove.
44120         * m4/uintptr_t.m4: Remove.
44121         * m4/ullong_max.m4: Remove.
44122         * m4/xstrtoimax.m4: Remove.
44123         * m4/xstrtoumax.m4: Remove.
44124
44125         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44126         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44127         dependencies now capture this.
44128
44129         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44130         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44131         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44132         * m4/human.m4 (gl_HUMAN): Likewise.
44133         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44134         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44135
44136         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44137
44138         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44139         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44140         stdint.
44141         * m4/human.m4 (gl_HUMAN): Likewise.
44142         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44143         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44144         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44145         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44146         * m4/xstrtol (gl_XSTRTOL): Likewise.
44147
44148         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44149         AC_TYPE_LONG_LONG_INT.
44150         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44151         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44152         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44153         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44154
44155         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44156         on stdbool.
44157
44158         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44159         (gl_PREREQ_XSTRTOUL): Remove.
44160
44161         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44162
44163         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44164         mode.
44165
44166 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44167
44168         Add and change modules to make it easier for coreutils to use
44169         gnulib-tool.
44170         * modules/backupfile (Files): Remove m4/d-ino.m4.
44171         (Depends-on): Add d-ino.
44172         * modules/cycle-check (Depends-on): Add stdint.
44173         (lib_SOURCES): Add cycle-check.h.
44174         * modules/d-ino: New module.
44175         * modules/d-type: New module.
44176         * modules/error (Files): Remove m4/strerror_r.m4.
44177         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44178         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44179         m4/inttypes_h.m4, m4/uintmax_t.m4.
44180         (Depends-on): Add stdint.
44181         (lib_SOURCES): Add fsusage.h.
44182         * modules/getcwd (Files): Remove d-ino.m4.
44183         (Depends-on): Add d-ino.
44184         * modules/getndelim2 (Depends-on): Add stdint.
44185         * modules/glob (Files): Remove m4/d-type.m4.
44186         (Depends-on): Add d-type.
44187         * modules/host-os: New module.
44188         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44189         m4/inttypes_h.m4, m4/uintmax_t.m4.
44190         * Depends-on: Add stdint.
44191         (lib_SOURCES): Add human.h.
44192         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44193         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44194         m4/uintmax_t.m4, m4/ulonglong.m4.
44195         (Depends-on): Add stdint.
44196         (EXTRA_DIST): Add inttostr.h.
44197         * modules/lchmod: New module.
44198         * modules/link-follow: New module.
44199         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44200         (Depends-on): Add lchmod.
44201         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44202         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44203         (Depends-on): Add stdint.
44204         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44205         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44206         (Depends-on): Add stdint.
44207         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44208         * modules/perl: New module.
44209         * modules/regex (Depends-on): Add stdint.
44210         * modules/rmdir-errno: New module.
44211         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44212         m4/intmax_t.m4.
44213         (Depends-on): Add stdint.
44214         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44215         m4/uintmax_t.m4.
44216         (Depends-on): Add stdint.
44217         * modules/unlink-busy: New module.
44218         * modules/utimecmp (Depends-on): Add stdint.
44219         * modules/uptime: New module.
44220         * modules/winsz-ioctl: New module.
44221         * modules/winsz-termios: New module.
44222         * modules/xnanosleep (Depends-on): Add nanosleep.
44223         * modules/ullong_max: Remove.
44224         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44225         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44226         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44227         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44228         (Depends-on): Add inttypes.
44229         (lib_SOURCES): Add xstrtol.h.
44230         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44231         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44232         * MODULES.html.sh: Move 'assert' into the assert section.
44233         Move 'dummy' into the linking section.
44234         Remove ullong_max.
44235         Add section for compatibility checks for POSIX:2001 functions,
44236         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44237         winsz-ioctl, and winsz-termios into it.
44238         Add lchmod.
44239         Add top-level Misc section and put host-os, perl, and uptime
44240         into it.
44241
44242 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44243
44244         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44245         now assume the stdint module.  Do not include inttypes.h.
44246         * lib/fsusage.h: Likewise.
44247         * lib/getndelim2.c: Likewise.
44248         * lib/human.h: Likewise.
44249         * lib/inttostr.h: Likewise.
44250         * lib/obstack.c: Likewise.
44251         * lib/regex_internal.h: Likewise.
44252         * lib/tempname.c: Likewise.
44253         * lib/utimecmp.c: Likewise.
44254         * lib/xstrtol.h: Likewise.
44255
44256         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44257
44258         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44259         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44260         * lib/xtime.h: Likewise.
44261
44262 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44263
44264         * modules/openat (Files): Add lib/fchmodat.c.
44265         Fixes problem reported by Jay Youngman.
44266
44267 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44268
44269         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44270         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44271
44272 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44273             Bruno Haible  <bruno@clisp.org>
44274
44275         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44276         and is a script that invokes bison. Tighten the code. Add comments.
44277
44278 2006-08-18  Jim Meyering  <jim@meyering.net>
44279
44280         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44281         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44282         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44283         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44284
44285 2006-08-18  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/bison-i18n: New file.
44288         * MODULES.html.sh (Internationalization functions): Add it.
44289
44290 2006-08-18  Bruno Haible  <bruno@clisp.org>
44291
44292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44293         sys/statvfs.h. When getmntinfo was found, check its declaration and
44294         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44295
44296 2006-08-18  Bruno Haible  <bruno@clisp.org>
44297
44298         * m4/bison-i18n.m4: New file, from bison.
44299
44300 2006-08-18  Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44303         (ME_DUMMY): Treat "kernfs" as a dummy.
44304         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44305
44306 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44307
44308         Update from coreutils.
44309
44310         2006-08-15  Jim Meyering  <jim@meyering.net>
44311
44312         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44313
44314         2006-01-17  Jim Meyering  <jim@meyering.net>
44315
44316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44317
44318         2006-01-11  Jim Meyering  <jim@meyering.net>
44319
44320         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44321         Check for the lchmod function.
44322
44323 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44324
44325         Update from coreutils.
44326
44327         * lib/__fpending.h: Add copyright notice.
44328         * lib/fprintftime.h: Likewise.
44329         * lib/savedir.c: Use (C) in copyright notice.
44330         * lib/savedir.h: Likewise.
44331
44332         2006-08-15  Jim Meyering  <jim@meyering.net>
44333
44334         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44335         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44336         in support of the EXPECTED_ERRNO macro.
44337         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44338         definitions.  Instead, define the appropriate symbols and include
44339         "at-func.c".
44340         * lib/mkdirat.c (mkdirat): Likewise.
44341         * lib/fchmodat.c (fchmodat): Likewise.
44342         (ENOSYS): Remove definition.
44343         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44344         it.  Don't include "unistd--.h" -- it wasn't ever used.
44345
44346         2006-01-17  Jim Meyering  <jim@meyering.net>
44347
44348         Rewrite fts.c not to change the current working directory,
44349         by using openat, fstatat, fdopendir, etc..
44350
44351         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44352         (HAVE_OPENAT_SUPPORT): Define.
44353         [_LIBC] (fchdir): Don't undef or define; no longer used.
44354         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44355         Now, this `function' always succeeds, and consumes its file descriptor
44356         parameter -- so callers must not close such FDs.  Update callers.
44357         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44358         (diropen): Add parameter, SP.  Adjust all callers.
44359         Implement using diropen_fd, rather than open.
44360         (fts_open): Initialize new member, fts_cwd_fd.
44361         Remove fts_rft-setting code.
44362         (fts_close): Close fts_cwd_fd, if necessary.
44363         (__opendir2): Define in terms of opendir or opendirat,
44364         depending on whether the FST_NOCHDIR flag is set.
44365         (fts_build): Since fts_safe_changedir consumes its FD, and since
44366         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44367         and close the dup'd file descriptor upon failure.
44368         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44369         (fts_safe_changedir): Tweak semantics to reflect that this function
44370         now calls cwd_advance_fd and hence consumes its FD argument.
44371         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44372         [struct FTS] (fts_rft): Remove now-unused member.
44373         [struct FTS] (fts_cycle.state): Improve comment.
44374
44375         * lib/openat.c (openat_needs_fchdir): New function.
44376         * lib/openat.h (openat_needs_fchdir): Declare it.
44377
44378 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44379
44380         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44381         Problem and fix reported by Pádraig Brady in
44382         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44383
44384 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44387
44388 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * lib/memcoll.c (memcoll): Optimize for the common case where the
44391         arguments are bytewise equal.
44392
44393 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44394
44395         * doc/regexprops-generic.texi: Add a copyright notice.
44396
44397 2006-08-15  Bruno Haible  <bruno@clisp.org>
44398
44399         * modules/tmpdir (License): Change to LGPL.
44400
44401 2006-08-15  Bruno Haible  <bruno@clisp.org>
44402
44403         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44404         module.
44405
44406 2006-08-14  Simon Josefsson  <jas@extundo.com>
44407
44408         * config/srclist.txt: Add gnupload.
44409
44410 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44411
44412         Change copyright notice from LGPL 2 to GPL 2, since that's the
44413         standard form used in the gnulib repository.
44414         * tests/test-lock.c: Likewise.
44415         * tests/test-stdint.c: Likewise.
44416         * tests/test-tls.c: Likewise.
44417
44418         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44419         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44420         Add copyright notice.
44421
44422         * check-module: Add copyright notice.  Output a copyright
44423         notice if "--version" is specified.
44424         * modules/COPYING: New file.
44425         * tests/test-getaddrinfo.c: Add copyright notice.
44426         * tests/test-verify.c: Likewise.
44427
44428 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44429
44430         Change copyright notice from LGPL 2 to GPL 2, since that's the
44431         standard form used in the gnulib repository.
44432         * lib/lock.c: LGPL -> GPL.
44433         * lib/lock.h: Likewise.
44434         * lib/strnlen1.c: Likewise.
44435         * lib/strnlen1.h: Likewise.
44436         * lib/tls.c: Likewise.
44437         * lib/tls.h: Likewise.
44438         * lib/tmpdir.c: Likewise.
44439
44440         * lib/TODO: Remove; this belongs only in coreutils.
44441
44442 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44443
44444         Add copyright notices to long-enough files that lack them, since
44445         otherwise the files aren't clearly free.  Use the same notice that
44446         getdate.texi already uses.
44447         * doc/alloca-opt.texi: Add copyright notice.
44448         * doc/alloca.texi: Likewise.
44449         * doc/ctime.texi: Likewise.
44450         * doc/functions.texi: Likewise.
44451         * doc/gcd.texi: Likewise.
44452         * doc/gnulib-tool.texi: Likewise.
44453         * doc/inet_ntoa.texi: Likewise.
44454         * doc/visibility.texi: Likewise.
44455
44456         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44457         * doc/quote.texi: Add copyright notice.
44458
44459         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44460         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44461         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44462         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44463         is now obsolete, and give a pointer to the Sun list.
44464         Add copyright notice.
44465
44466 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * config/srclistvars.sh: Add copyright notice.
44469
44470 2006-08-14  Eric Blake  <ebb9@byu.net>
44471
44472         Import the following change from libc:
44473
44474         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44475
44476         Upstream bug 2997.
44477         * lib/misc/error.c: Add space between program name and message if file
44478         name is missing.
44479
44480 2006-08-12  Karl Berry  <karl@gnu.org>
44481
44482         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44483         remove, these originate in gnulib now.
44484
44485 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44486
44487         * doc/Makefile (standards.info standards.html standards.dvi):
44488         Also depend on make-stds.texi.
44489
44490 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44491
44492         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44493         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44494
44495         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44496         in wchar_t.  Problem reported by Eric Blake.
44497
44498         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44499         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44500         Also, help the compiler to keep LEN in a register.
44501
44502 2006-08-11  Eric Blake  <ebb9@byu.net>
44503
44504         * users.txt: Sort.  Add tar.
44505
44506 2006-08-11  Bruno Haible  <bruno@clisp.org>
44507
44508         * users.txt: New file.
44509
44510 2006-08-11  Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44513         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44514
44515 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44516
44517         * modules/snprintf (Depends-on): Remove minmax.
44518         (Maintainer): Add self and Bruno.
44519
44520 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44521
44522         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44523         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44524         (EOVERFLOW): Define if the system does not.
44525         Do not include "minmax.h"; it wasn't used.
44526         (snprintf): Don't assume size_t promotes to an unsigned type.
44527         Fix bug when generated string was too long for the buffer: the
44528         buffer's contents are supposed to be the initial prefix of the
44529         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44530         exceeds INT_MAX; do the check ourselves.
44531
44532         Import the following changes from libc:
44533
44534         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44535
44536         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44537         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44538         set wc to the byte which couldn't be converted.
44539         (re_string_reconstruct): Don't clear valid_raw_len before calling
44540         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44541         tip_context using re_string_context_at.
44542
44543         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44544
44545         * lib/posix/regex.h: g++ still cannot handled [restrict].
44546
44547         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44548
44549         * lib/posix/regex.h: Remove special handling for VMS.
44550
44551 2006-08-10  Jim Meyering  <jim@meyering.net>
44552
44553         * modules/same-inode: New module.
44554         * modules/dev-ino: New module.
44555         * modules/cycle-check: Depend on these modules, rather than simply
44556         including their .h files.
44557         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44558         required via m4/cycle-check.m4.
44559         * modules/same: Depend on new same-inode module, rather than
44560         including same-inode.h.
44561         * modules/chdir-safer: New file.
44562
44563         * modules/chown (Depends-on): Add stat-macros.
44564
44565 2006-08-10  Jim Meyering  <jim@meyering.net>
44566
44567         * m4/cycle-check.m4: New file.
44568         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44569         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44570
44571 2006-08-10  Eric Blake  <ebb9@byu.net>
44572
44573         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44574         in from original proposal.
44575
44576 2006-08-10  Eric Blake  <ebb9@byu.net>
44577         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44578
44579         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44580         namespace.
44581
44582 2006-08-10  Bruno Haible  <bruno@clisp.org>
44583
44584         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44585         as well.
44586
44587 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44588
44589         Sync from coreutils.
44590
44591         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44592
44593         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44594         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44595
44596 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44597
44598         * modules/restrict: Remove; no longer needed now that we assume
44599         Autoconf 2.59 or later.
44600         * MODULES.html.sh: Remove 'restrict'.
44601         * modules/argp (Depends-on): Remove 'restrict'.
44602         * modules/base64 (Depends-on): Likewise.
44603         * modules/gc (Depends-on): Likewise.
44604         * modules/getaddrinfo (Depends-on): Likewise.
44605         * modules/glob (Depends-on): Likewise.
44606         * modules/inet_ntop (Depends-on): Likewise.
44607         * modules/inet_pton (Depends-on): Likewise.
44608         * modules/memxor (Depends-on): Likewise.
44609         * modules/regex (Depends-on): Likewise.
44610         * modules/strtok_r (Depends-on): Likewise.
44611         * modules/time_r (Depends-on): Likewise.
44612
44613 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44614
44615         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44616         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44617         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44618         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44619         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44620         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44621         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44622         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44623
44624         Merge from coreutils.
44625         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44626         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44627         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44628         * m4/time_r.m4 (gl_TIME_R): Likewise.
44629
44630 2006-08-09  Karl Berry  <karl@gnu.org>
44631
44632         * config/srclist.txt: no more gettext-tools, per Bruno.
44633
44634 2006-08-08  Eric Blake  <ebb9@byu.net>
44635
44636         * modules/verror: New module.
44637         * MODULES.html.sh: Document it.
44638
44639 2006-08-08  Eric Blake  <ebb9@byu.net>
44640
44641         * lib/verror.h, lib/verror.c: New files.
44642
44643 2006-08-08  Eric Blake  <ebb9@byu.net>
44644
44645         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44646         verror_at_line output complies with GNU Coding Standards even when
44647         file is NULL.
44648
44649 2006-08-07  Bruno Haible  <bruno@clisp.org>
44650
44651         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44652         versions of AIX.
44653         Reported by Ralf Wildenhues.
44654
44655 2006-08-07  Bruno Haible  <bruno@clisp.org>
44656
44657         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44658         in an AC_DEFUN. Needed so that the autoconf snippets can use
44659         AC_REQUIRE.
44660
44661 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44662
44663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44664         Initialize pkgdata_DATA.
44665         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44666         overriding it.
44667
44668 2006-08-06  Eric Blake  <ebb9@byu.net>
44669
44670         * lib/error.h: Fold in some upstream changes from glibc.
44671         * lib/error.c: Likewise.
44672
44673 2006-08-04  Bruno Haible  <bruno@clisp.org>
44674
44675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44676         Make the mostlyclean-local rule depend on mostlyclean-generic.
44677         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44678
44679 2006-07-31  Bruno Haible  <bruno@clisp.org>
44680
44681         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44682         <stdlib.h>, <string.h>.
44683
44684 2006-07-30  Bruno Haible  <bruno@clisp.org>
44685
44686         * modules/readlink (License): Change to LGPL.
44687
44688 2006-07-30  Bruno Haible  <bruno@clisp.org>
44689
44690         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44691         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44692         set PKGDATADIR to point to it.
44693
44694 2006-07-30  Bruno Haible  <bruno@clisp.org>
44695
44696         * modules/csharpexec (configure.ac): Comment out macro invocation.
44697         * modules/javaexec (configure.ac): Likewise.
44698         * modules/javacomp-script (configure.ac): Likewise.
44699
44700         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44701
44702 2006-07-30  Bruno Haible  <bruno@clisp.org>
44703
44704         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44705         linked-list.
44706
44707 2006-07-30  Bruno Haible  <bruno@clisp.org>
44708
44709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44710
44711 2006-07-30  Bruno Haible  <bruno@clisp.org>
44712
44713         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44714         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44715         get removed.
44716
44717 2006-07-29  Bruno Haible  <bruno@clisp.org>
44718
44719         Make it possible for gnulib-tool to work with locally modified or
44720         augmented gnulib repositories.
44721         * gnulib-tool (func_usage): Document --local-dir option.
44722         (local_gnulib_dir): New variable.
44723         Handle --local-dir option.
44724         (func_lookup_file): New function.
44725         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44726         (func_get_description, func_get_filelist, func_get_description,
44727         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44728         func_get_automake_snippet, func_get_include_directive,
44729         func_get_license, func_get_maintainer): Use func_lookup_file.
44730         (func_import, func_create_testdir): Use func_lookup_file.
44731
44732 2006-07-29  Bruno Haible  <bruno@clisp.org>
44733
44734         * modules/setenv (Depends-on): Add unistd.
44735
44736 2006-07-29  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44739
44740 2006-07-29  Bruno Haible  <bruno@clisp.org>
44741
44742         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44743
44744 2006-07-29  Bruno Haible  <bruno@clisp.org>
44745
44746         * gnulib-tool (import, update): If there is no Makefile.am, look at
44747         aclocal.m4, instead of bailing out.
44748
44749 2006-07-29  Bruno Haible  <bruno@clisp.org>
44750
44751         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44752         Categorize the options by when they are useful.
44753
44754 2006-07-29  Bruno Haible  <bruno@clisp.org>
44755
44756         * gnulib-tool (func_usage): Document option --no-libtool.
44757         Handle option --no-libtool.
44758         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44759         for changed semantics of $libtool variable.
44760         (func_import): Likewise. If libtool is not used, show this through
44761         an option --no-libtool.
44762         (func_create_testdir): Update.
44763
44764 2006-07-29  Bruno Haible  <bruno@clisp.org>
44765
44766         * gnulib-tool (func_import): Extend error message about missing
44767         --doc-base.
44768
44769 2006-07-29  Bruno Haible  <bruno@clisp.org>
44770
44771         * gnulib-tool (func_import): Don't create the $docbase directory if
44772         there is no file to store there.
44773
44774 2006-07-29  Bruno Haible  <bruno@clisp.org>
44775
44776         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44777         relevant, look for configure.ac there, not in the current directory.
44778         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44779
44780 2006-07-29  Bruno Haible  <bruno@clisp.org>
44781
44782         * gnulib-tool (SORT): New variable.
44783         (func_usage): Undocument --assume-autoconf option.
44784         Remove --assume-autoconf option handling.
44785         (autoconf_minversion): Determine from the contents of configure.ac.
44786         (func_import): Remove autoconf_minversion handling.
44787         Suggested by Eric Blake.
44788
44789 2006-07-29  Bruno Haible  <bruno@clisp.org>
44790
44791         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44792
44793 2006-07-29  Bruno Haible  <bruno@clisp.org>
44794
44795         * config/srclist.txt (*setenv.[ch]): Remove rules.
44796
44797 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44798
44799         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44800
44801 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44802
44803         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44804         arpa/inet.h.
44805
44806 2006-07-28  Simon Josefsson  <jas@extundo.com>
44807
44808         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44809         * modules/inet_pton (Depends-on): Likewise.
44810
44811 2006-07-28  Simon Josefsson  <jas@extundo.com>
44812
44813         * m4/netinet_in_h.m4: New file.
44814
44815 2006-07-28  Simon Josefsson  <jas@extundo.com>
44816
44817         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44818         #include's.
44819
44820 2006-07-28  Simon Josefsson  <jas@extundo.com>
44821
44822         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44823         #include's.
44824
44825 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44826
44827         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44828         setgid on directories only if they set these bits.
44829         * lib/modechange.h: Remove obsolete comment about masks.
44830
44831 2006-07-28  Eric Blake  <ebb9@byu.net>
44832
44833         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44834         macro expansion.
44835
44836 2006-07-28  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44839
44840 2006-07-28  Bruno Haible  <bruno@clisp.org>
44841
44842         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44843
44844 2006-07-28  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44847         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44848         Define fallbacks.
44849         Avoids link error on FreeBSD 4.x.
44850         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44851
44852         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44853         encoding.
44854         * lib/mbswidth.c (iswcntrl): Likewise.
44855
44856 2006-07-27  Bruno Haible  <bruno@clisp.org>
44857
44858         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44859         test.
44860
44861 2006-07-27  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44864         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44865         defined.
44866
44867 2006-07-26  Eric Blake  <ebb9@byu.net>
44868
44869         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44870
44871 2006-07-26  Eric Blake  <ebb9@byu.net>
44872
44873         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44874         like mingw that lack mkstemp.
44875         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44876         avoid compilation warning on mingw.
44877
44878 2006-07-26  Bruno Haible  <bruno@clisp.org>
44879
44880         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44881         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44882         INT_FAST*_MIN, INTPTR_MIN.
44883
44884 2006-07-25  Bruno Haible  <bruno@clisp.org>
44885
44886         * modules/version-etc (Depends-on): Add stdarg.
44887
44888 2006-07-25  Bruno Haible  <bruno@clisp.org>
44889
44890         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44891         complex commands.
44892
44893 2006-07-25  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44896         defined in <stdarg.h> or config.h.
44897
44898 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44899
44900         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44901         (gl_STDIO_SAFER): Remove.
44902
44903 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44904
44905         * MODULES.html.sh (File stream based Input/Output):
44906         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44907         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44908         * modules/fopen-safer, modules/tmpfile-safer: New files.
44909         * modules/stdio-safer: Remove.
44910
44911 2006-07-24  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/tmpdir: New file.
44914         * MODULES.html.sh (File system functions): Add it.
44915
44916 2006-07-24  Bruno Haible  <bruno@clisp.org>
44917
44918         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44919         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44920
44921 2006-07-24  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/clean-temp: New file.
44924
44925 2006-07-24  Bruno Haible  <bruno@clisp.org>
44926
44927         * m4/tmpdir.m4: New file, from GNU gettext.
44928
44929 2006-07-24  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/tmpdir.h: New file, from GNU gettext.
44932         * lib/tmpdir.c: New file, from GNU gettext.
44933
44934 2006-07-24  Bruno Haible  <bruno@clisp.org>
44935
44936         * lib/clean-temp.h: New file, from GNU gettext.
44937         * lib/clean-temp.c: New file, from GNU gettext.
44938
44939 2006-07-23  Eric Blake  <ebb9@byu.net>
44940
44941         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44942         (Depends-on): Add binary-io.
44943
44944 2006-07-23  Eric Blake  <ebb9@byu.net>
44945
44946         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44947
44948 2006-07-23  Eric Blake  <ebb9@byu.net>
44949
44950         * lib/tmpfile-safer.c: New file.
44951         * lib/stdio-safer.h (fopen_safer): Add prototype.
44952         * lib/stdio--.h (tmpfile): Make safer.
44953
44954 2006-07-23  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44957         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44958         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44959         gl_linked_remove_at): Use it.
44960
44961 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44962         and Simon Josefsson <jas@extundo.com>
44963
44964         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44965
44966         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44967
44968 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44969
44970         * modules/close-stream: New file.
44971         * modules/closeout (Description): Make it clear that it exits
44972         with a diagnostic on error.
44973         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44974         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44975
44976 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44977
44978         * m4/close-stream.m4: New file.
44979
44980 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         * lib/close-stream.c, lib/close-stream.h: New files.
44983
44984 2006-07-22  Bruno Haible  <bruno@clisp.org>
44985
44986         Merge from GNU gettext 0.15.
44987
44988         2006-05-01  Bruno Haible  <bruno@clisp.org>
44989
44990                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44991
44992         2006-07-22  Bruno Haible  <bruno@clisp.org>
44993
44994                 * modules/javaversion: New file.
44995                 * MODULES.html.sh (Java): Add javaversion.
44996
44997         2006-03-12  Bruno Haible  <bruno@clisp.org>
44998
44999                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45000
45001         2005-12-04  Bruno Haible  <bruno@clisp.org>
45002
45003                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45004                 (untested).
45005
45006         2006-06-21  Bruno Haible  <bruno@clisp.org>
45007
45008                 Avoid warnings from recent versions of mcs.
45009                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45010                 -o, -L, -r any more. Use options documented since mcs-1.0
45011                 instead. Similarly for -g.
45012
45013         2005-12-04  Bruno Haible  <bruno@clisp.org>
45014
45015                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45016                 .resources, not .resource.
45017
45018         2005-07-09  Bruno Haible  <bruno@clisp.org>
45019
45020                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45021                 add a .dll suffix.
45022                 Reported by Mark Junker <mjscod@gmx.de>.
45023
45024         2006-07-22  Bruno Haible  <bruno@clisp.org>
45025
45026                 * modules/gettext: Upgrade to gettext-0.15.
45027                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45028                 m4/visibility.m4.
45029                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45030
45031 2006-07-22  Bruno Haible  <bruno@clisp.org>
45032
45033         Merge from GNU gettext 0.15.
45034
45035         2006-03-25  Bruno Haible  <bruno@clisp.org>
45036
45037                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45038
45039         2006-07-21  Bruno Haible  <bruno@clisp.org>
45040
45041                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45042                 "1.1".
45043
45044         2006-05-09  Bruno Haible  <bruno@clisp.org>
45045
45046                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45047                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45048                 for the conftestver execution.
45049
45050         2006-05-01  Bruno Haible  <bruno@clisp.org>
45051
45052                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45053                 optional target-version argument. Verify that the compiler
45054                 groks source of the specified source-version, or add -source
45055                 option as necessary. Verify that the compiler produces
45056                 bytecode in the specified target-version, or add -target and
45057                 -source options as necessary. Make the result of the test
45058                 available as variable CONF_JAVAC. Also log error output in
45059                 config.log.
45060
45061         2006-03-11  Bruno Haible  <bruno@clisp.org>
45062
45063                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45064
45065         2006-05-09  Bruno Haible  <bruno@clisp.org>
45066
45067                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45068                 CLASSPATH_SEPARATOR to a semicolon.
45069
45070         2006-03-12  Bruno Haible  <bruno@clisp.org>
45071
45072                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45073                 available as variable CONF_JAVA, for subsequent autoconf
45074                 tests. Also log error output in config.log.
45075
45076         2006-07-19  Bruno Haible  <bruno@clisp.org>
45077
45078                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45079                 that getline works on glibc2 systems. Needed to avoid trouble
45080                 in relocatable.c.
45081                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45082
45083         2005-12-04  Bruno Haible  <bruno@clisp.org>
45084
45085                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45086                 launcher (untested).
45087
45088         2005-12-04  Bruno Haible  <bruno@clisp.org>
45089
45090                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45091
45092         2006-07-22  Bruno Haible  <bruno@clisp.org>
45093
45094                 * gettext.m4: Update from GNU gettext-0.15.
45095                 * nls.m4: Likewise.
45096                 * po.m4: Likewise.
45097                 * inttypes-pri.m4: Likewise.
45098                 * inttypes-h.m4: Renamed from inttypes.m4.
45099                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45100
45101 2006-07-22  Bruno Haible  <bruno@clisp.org>
45102
45103         Merge from GNU gettext 0.15.
45104
45105         2005-07-05  Bruno Haible  <bruno@clisp.org>
45106
45107                 * printf-args.c (printf_fetchargs): Work around broken
45108                 definition of wint_t on mingw.
45109
45110         2005-02-12  Bruno Haible  <bruno@clisp.org>
45111
45112                 * xallocsa.h: Add extern "C" for C++.
45113
45114         2006-05-17  Bruno Haible  <bruno@clisp.org>
45115
45116                 Cygwin portability.
45117                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45118
45119         2006-04-30  Bruno Haible  <bruno@clisp.org>
45120
45121                 * progreloc.c: Include <mach-o/dyld.h> if available.
45122                 (find_executable): Use _NSGetExecutablePath when possible.
45123
45124         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45125
45126                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45127                 function.
45128
45129         2005-12-29  Bruno Haible  <bruno@clisp.org>
45130
45131                 * progreloc.c (set_program_name_and_installdir): Fix
45132                 compilation error.
45133
45134         2005-12-04  Bruno Haible  <bruno@clisp.org>
45135
45136                 Cygwin portability.
45137                 * progreloc.c: Include <windows.h> also on Cygwin.
45138                 (find_executable): Add support for Cygwin.
45139                 (set_program_name_and_installdir): Handle also platforms with
45140                 nonempty EXEEXT.
45141
45142         2006-07-11  Bruno Haible  <bruno@clisp.org>
45143
45144                 * javacomp.c: Fix a comment.
45145                 Reported by Jim Meyering.
45146
45147         2006-04-30  Bruno Haible  <bruno@clisp.org>
45148
45149                 * javacomp.h (compile_java_class): Add source_version,
45150                 target_version arguments.
45151                 * javacomp.c: Rewritten to choose only a compiler that
45152                 respects the specified source_version and target_version.
45153
45154         2006-06-27  Bruno Haible  <bruno@clisp.org>
45155
45156                 Assume correct S_ISDIR macro.
45157                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45158
45159         2006-07-22  Bruno Haible  <bruno@clisp.org>
45160
45161                 * javaversion.h: New file, from GNU gettext.
45162                 * javaversion.c: New file, from GNU gettext.
45163                 * javaversion.java: New file, from GNU gettext.
45164                 * javaversion.class: New file, from GNU gettext.
45165
45166         2006-05-17  Bruno Haible  <bruno@clisp.org>
45167
45168                 Cygwin portability.
45169                 * javaexec.c (execute_java_class): Test for jview program
45170                 also on Cygwin.
45171
45172         2006-04-09  Bruno Haible  <bruno@clisp.org>
45173
45174                 * fatal-signal.c: Don't include string.h.
45175                 (at_fatal_signal): Use a copying loop instead of memcpy.
45176
45177         2005-12-04  Bruno Haible  <bruno@clisp.org>
45178
45179                 * csharpexec.c: Add support for 'clix' launcher (untested).
45180                 (execute_csharp_using_sscli): New function.
45181                 (execute_csharp_program): Call it.
45182
45183         2006-06-21  Bruno Haible  <bruno@clisp.org>
45184
45185                 Avoid warnings from recent versions of mcs.
45186                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45187                 -o, -L, -r any more. Use options documented since mcs-1.0
45188                 instead. Similarly for -g.
45189
45190         2005-07-09  Bruno Haible  <bruno@clisp.org>
45191
45192                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45193                 add a .dll suffix.
45194                 Reported by Mark Junker <mjscod@gmx.de>.
45195
45196         2006-06-17  Bruno Haible  <bruno@clisp.org>
45197
45198                 * config.charset: Update for NetBSD 3.0.
45199
45200         2006-05-17  Bruno Haible  <bruno@clisp.org>
45201
45202                 Cygwin portability.
45203                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45204
45205         2006-05-16  Bruno Haible  <bruno@clisp.org>
45206
45207                 * localcharset.c [CYGWIN]: Include <windows.h>.
45208                 (get_charset_aliases): For Cygwin, return the same CPxxx
45209                 aliases list as under WIN32.
45210                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45211                 the environment variables. Fall back to GetACP().
45212
45213         2006-04-05  Bruno Haible  <bruno@clisp.org>
45214
45215                 * config.charset: Update Juan Manuel Guerrero's address.
45216
45217         2005-02-12  Bruno Haible  <bruno@clisp.org>
45218
45219                 * allocsa.h: Add extern "C" for C++.
45220
45221         2005-02-10  Bruno Haible  <bruno@clisp.org>
45222
45223                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45224                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45225
45226         2006-07-22  Bruno Haible  <bruno@clisp.org>
45227
45228                 * gettext.h: Update to GNU gettext-0.15.
45229
45230 2006-07-22  Bruno Haible  <bruno@clisp.org>
45231
45232         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45233         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45234         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45235
45236 2006-07-21  Eric Blake  <ebb9@byu.net>
45237
45238         * modules/stdlib-safer: New file.
45239         * MODULES.html.sh (File stream based Input/Output): Add
45240         stdlib-safer.
45241
45242 2006-07-21  Eric Blake  <ebb9@byu.net>
45243
45244         * lib/stdlib-safer.h: New file from coreutils, required by
45245         stdlib--.h.
45246
45247 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45250
45251 2006-07-20  Bruno Haible  <bruno@clisp.org>
45252
45253         * gnulib-tool: Recognize new option --assume-autoconf.
45254         (autoconf_minversion): New variable.
45255         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45256
45257 2006-07-20  Bruno Haible  <bruno@clisp.org>
45258
45259         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45260
45261 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45262
45263         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45264         Reindent and repaginate.
45265
45266 2006-07-19  Derek Price  <derek@ximbiot.com>
45267
45268         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45269         Correct grammar.
45270
45271 2006-07-17  Bruno Haible  <bruno@clisp.org>
45272
45273         * modules/list: New file.
45274         * modules/array-list: New file.
45275         * modules/carray-list, modules/carray-list-tests: New files.
45276         * modules/linked-list, modules/linked-list-tests: New files.
45277         * modules/avltree-list, modules/avltree-list-tests: New files.
45278         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45279         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45280         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45281         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45282         * modules/oset: New file.
45283         * modules/array-oset: New file.
45284         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45285         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45286         * tests/test-carray_list.c: New file.
45287         * tests/test-linked_list.c: New file.
45288         * tests/test-avltree_list.c: New file.
45289         * tests/test-rbtree_list.c: New file.
45290         * tests/test-linkedhash_list.c: New file.
45291         * tests/test-avltreehash_list.c: New file.
45292         * tests/test-rbtreehash_list.c: New file.
45293         * tests/test-avltree_oset.c: New file.
45294         * tests/test-rbtree_oset.c: New file.
45295         * MODULES.html.sh (Container data structures): New section.
45296
45297 2006-07-17  Bruno Haible  <bruno@clisp.org>
45298
45299         * m4/gl_list.m4: New file.
45300
45301 2006-07-17  Bruno Haible  <bruno@clisp.org>
45302
45303         * lib/gl_list.h: New file.
45304         * lib/gl_list.c: New file.
45305         * lib/gl_array_list.h: New file.
45306         * lib/gl_array_list.c: New file.
45307         * lib/gl_carray_list.h: New file.
45308         * lib/gl_carray_list.c: New file.
45309         * lib/gl_linked_list.h: New file.
45310         * lib/gl_linked_list.c: New file.
45311         * lib/gl_anylinked_list1.h: New file.
45312         * lib/gl_anylinked_list2.h: New file.
45313         * lib/gl_avltree_list.h: New file.
45314         * lib/gl_avltree_list.c: New file.
45315         * lib/gl_anyavltree_list1.h: New file.
45316         * lib/gl_anyavltree_list2.h: New file.
45317         * lib/gl_rbtree_list.h: New file.
45318         * lib/gl_rbtree_list.c: New file.
45319         * lib/gl_anyrbtree_list1.h: New file.
45320         * lib/gl_anyrbtree_list2.h: New file.
45321         * lib/gl_anytree_list1.h: New file.
45322         * lib/gl_anytree_list2.h: New file.
45323         * lib/gl_linkedhash_list.h: New file.
45324         * lib/gl_linkedhash_list.c: New file.
45325         * lib/gl_anyhash_list1.h: New file.
45326         * lib/gl_anyhash_list2.h: New file.
45327         * lib/gl_avltreehash_list.h: New file.
45328         * lib/gl_avltreehash_list.c: New file.
45329         * lib/gl_rbtreehash_list.h: New file.
45330         * lib/gl_rbtreehash_list.c: New file.
45331         * lib/gl_anytreehash_list1.h: New file.
45332         * lib/gl_anytreehash_list2.h: New file.
45333
45334         * lib/gl_oset.h: New file.
45335         * lib/gl_oset.c: New file.
45336         * lib/gl_array_oset.h: New file.
45337         * lib/gl_array_oset.c: New file.
45338         * lib/gl_avltree_oset.h: New file.
45339         * lib/gl_avltree_oset.c: New file.
45340         * lib/gl_rbtree_oset.h: New file.
45341         * lib/gl_rbtree_oset.c: New file.
45342         * lib/gl_anytree_oset.h: New file.
45343
45344 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45345
45346         * m4/mkancesdirs.m4: New file.
45347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45348         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45349         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45350         it.
45351
45352 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45355         * lib/mkancesdirs.h: New files.
45356         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45357         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45358         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45359         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45360         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45361         callers changed.  Revamp internals significantly, by not
45362         attempting to create directories that are temporarily more
45363         permissive than the final results.  Do not attempt to use
45364         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45365         This removes some race conditions, fixes some bugs, and simplifies
45366         things.  Use new dirchownmod function to do owner and mode changes.
45367         * lib/mkdir-p.h: Likewise.
45368         * lib/modechange.c (octal_to_mode): New function.
45369         (struct mode_change): New member mentioned.
45370         (make_node_op_equals): New arg mentioned.  All callers changed.
45371         (mode_compile): Keep track of which mode bits the user has explicitly
45372         mentioned.
45373         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45374         New arg PMODE_BITS, to keep track of which mode bits the user
45375         mentioned; it treats S_ISUID and S_ISGID speciall.
45376         All callers changed.
45377         * lib/modechange.h: Likewise.
45378
45379 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45380
45381         * MODULES.html.sh: Add mkancestors.
45382         * modules/mkancesdirs: New module.
45383         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45384         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45385         The chdir-safer and afs files are now orphans; I'll remove them
45386         unless someone speaks up.
45387         Add lib/dirchownmod.c, lib/dirchownmod.h.
45388         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45389         Add lchown, mkancesdirs.
45390         (Maintainer): Add self.
45391
45392 2006-07-15  Karl Berry  <karl@gnu.org>
45393
45394         * gnulib-tool: help message wording/arrangement.
45395
45396 2006-07-14  Simon Josefsson  <jas@extundo.com>
45397
45398         * doc/gnulib.texi (Libtool and Windows): New section.
45399
45400 2006-07-12  Simon Josefsson  <jas@extundo.com>
45401
45402         * modules/gendocs (License): Fix license, approved by Karl.
45403
45404 2006-07-12  Eric Blake  <ebb9@byu.net>
45405
45406         * MODULES.html.sh: Add gendocs.
45407
45408 2006-07-11  Eric Blake  <ebb9@byu.net>
45409
45410         * modules/fdl: New module, to install doc/fdl.texi.
45411         * MODULES.html.sh: Add new section for documentation modules.
45412         * gnulib-tool: Avoid space-tab.
45413         (--doc-base): New option, to manage files from doc.
45414
45415 2006-07-11  Eric Blake  <ebb9@byu.net>
45416
45417         * m4/absolute-header.m4: Fix comments to match recent change.
45418
45419 2006-07-11  Eric Blake  <ebb9@byu.net>
45420
45421         * gnulib-tool: List --doc-base before --tests-base.
45422
45423 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45424
45425         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45426
45427 2006-07-11  Bruno Haible  <bruno@clisp.org>
45428
45429         * README: Mention where to put documentation.
45430
45431 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45432
45433         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45434
45435 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45436
45437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45438         to stdint.m4.
45439
45440 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45441
45442         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45443         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45444         "no/such/file/stdint.h" when there is no such file, so that
45445         the resulting C code can be parsed by dodgy compilers.
45446         Problems reported by Bob Proulx.
45447
45448 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45449
45450         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45451         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45452         macros into the GNU _D_EXACT_NAMLEN.
45453         * lib/savedir.c:  Likewise.
45454         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45455
45456 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45457         and Paul Eggert  <eggert@cs.ucla.edu>
45458
45459         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45460         * m4/savedir.m4:
45461         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45462         macros into the GNU _D_EXACT_NAMLEN.
45463
45464 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45465
45466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45467         around the absolute name, to work around a problem with the HP-UX
45468         11.23 native C compiler, reported by Bob Proulx.
45469
45470 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45471
45472         * doc/maintain.texi, make-stds.texi: Sync from
45473         <http://savannah.gnu.org/projects/gnustandards>.
45474
45475 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45476
45477         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45478
45479 2006-07-09  Jim Meyering  <jim@meyering.net>
45480
45481         * m4/glob.m4: Remove a doubled word in a comment.
45482
45483 2006-07-09  Jim Meyering  <jim@meyering.net>
45484
45485         * lib/argp-pv.c: Remove a doubled word in a comment.
45486         * lib/check-version.c (check_version): Likewise.
45487         * lib/javacomp.c (compile_java_class): Likewise.
45488
45489 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45490
45491         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45492         for the benefit of people using Autoconf 2.60.  If you want to
45493         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45494         (or m4/onceonly.m4, if pre-2.57) manually.
45495
45496 2006-07-08  Jim Meyering  <jim@meyering.net>
45497
45498         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45499         comment.
45500         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45501         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45502         comment.
45503
45504 2006-07-08  Jim Meyering  <jim@meyering.net>
45505
45506         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45507
45508 2006-07-07  Simon Josefsson  <jas@extundo.com>
45509
45510         * tests/test-crc.c: Change expected crc value, the test vector
45511         were probably computed using the old broken crc.c?
45512
45513 2006-07-06  Simon Josefsson  <jas@extundo.com>
45514
45515         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45516         now the canonical place for the M4 file).
45517
45518         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45519         from the sys_socket dependency now.
45520
45521         * modules/inet_pton (Files): Ditto.
45522
45523         * modules/inet_ntop (Files): Ditto.
45524
45525 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45526
45527         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45528         not gl_PREREQ_GETUSERSHELL.
45529
45530 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45531
45532         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45533         with only one argument, for Autoconf 2.60.
45534         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45535         expand to nothing, so add a shell command to avoid syntax error.
45536         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45537
45538 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45539
45540         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45541
45542 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45543
45544         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45545         no longer needed.  Check for isblank decl.
45546         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45547         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45548         of existence.
45549
45550 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45551
45552         * lib/getloadavg.c: Use __VMS, not VMS.
45553         * lib/getopt.c: Likewise.
45554         * lib/getpagesize.h: Likewise.
45555         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45556         and probably does not work.
45557
45558 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45559
45560         * lib/.cppi-disable: Add wcwidth.
45561         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45562         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45563         (ISGRAPH): Remove.  All uses changed to isgraph.
45564         (FOLD) [!defined _LIBC]: Remove special case.
45565         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45566         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45567         HAVE_ISBLANK.
45568         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45569         case.
45570
45571 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45572
45573         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45574         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45575         brackets.  Other minor changes to suppress some compiler
45576         warnings.
45577
45578 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45579         and Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45582         of invoking obsolescent AC_HEADER_DIRENT macro.
45583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45584         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45585         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45587         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45588         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45589         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45590         * m4/readdir.m4: Remove; no longer needed.
45591
45592 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45593         and Paul Eggert  <eggert@cs.ucla.edu>
45594
45595         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45596         Don't worry about this obsolete case any more.
45597         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45598         directories.
45599         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45600         worry about this obsolete case any more.
45601         * lib/fts.c: Likewise.
45602         * lib/getcwd.c: Likewise.
45603         * lib/glob.h: Likewise.
45604         * lib/savedir.c: Likewise.
45605
45606 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45607
45608         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45609         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45610         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45611         needed.
45612         All uses removed.
45613         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45614         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45615         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45616         needed.
45617         * m4/getdate.m4 (gl_GETDATE): Likewise.
45618         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45619         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45620         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45621         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45622         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45623         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45624         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45625         needed.
45626
45627 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45628
45629         * lib/memcasecmp.c: Include <limits.h>.
45630         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45631         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45632         Don't assume isdigit succeeds only on '0' through '9'.
45633
45634 2006-07-05  Eric Blake  <ebb9@byu.net>
45635
45636         * modules/getaddrinfo (Depends-on): Add snprintf.
45637
45638 2006-07-05  Eric Blake  <ebb9@byu.net>
45639
45640         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45641         to avoid 'header present but could not be compiled' on cygwin.
45642
45643 2006-07-05  Eric Blake  <ebb9@byu.net>
45644
45645         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45646         missing from netdb.h.
45647         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45648
45649 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45650
45651         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45652         no longer needed.
45653         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45654         * m4/getdate.m4 (gl_GETDATE): Likewise.
45655         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45656         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45657         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45658         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45659         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45660
45661 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45662
45663         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45664         All uses of is_space replaced by isspace.
45665         * lib/exit.h: Don't talk about STDC_HEADERS.
45666         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45667         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45668         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45669         replaced by isprint etc.
45670         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45671         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45672         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45673         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45674         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45675         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45676
45677 2006-07-05  Bruno Haible  <bruno@clisp.org>
45678
45679         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45680         the function exists, before testing against AIX.
45681         Reported by Martin Lambers <marlam@marlam.de>.
45682
45683 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45684
45685         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45686         From Mark D. Baushke.
45687
45688 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45689
45690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45691         to the absolute name, not just one, to bypass Sun C 5.8's
45692         "warning: #include of /usr/include/... may be non-portable".
45693
45694 2006-07-04  Eric Blake  <ebb9@byu.net>
45695
45696         * modules/dirname-tests: New test module.
45697         * tests/test-dirname.c: New file, replacing dirname.c
45698         TEST_DIRNAME section that was recently deleted.
45699
45700 2006-07-04  Bruno Haible  <bruno@clisp.org>
45701
45702         Assume ANSI C header files and <ctype.h> functions.
45703         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45704         (mbsnwidth): Use isprint, iscntrl instead.
45705
45706 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45707
45708         Merge from coreutils.
45709         * MODULES.html.sh: Add xstrtold.
45710         * modules/xstrtold: New file.
45711         * modules/cycle-check (Files): Add lib/same-inode.h.
45712         * modules/dirname (Files): Add m4/double-slash-root.m4.
45713         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45714         * modules/mkdir-p (Files): Add lib/same-inode.h.
45715         * modules/same (Files): Add lib/same-inode.h.
45716
45717 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45718
45719         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45720         This is to keep the terminology clean; POSIX talks about
45721         "absolute pathnames", not "full pathnames", but the GNU
45722         Coding Standards say to use "path" for something else;
45723         so use "absolute" to keep both sides happy.
45724         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45725         Set gl_absolute_header, not gl_full_header_path.
45726         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45727         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45728         All uses changed.
45729
45730         Merge from coreutils.
45731
45732         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45733
45734         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45735         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45736         want to require the building of c-strtod.o.
45737         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45738         needs -lm directly.
45739         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45740
45741         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45742
45743         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45744         --as-needed option if available.  Problem reported by Albert Chin in
45745         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45746         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45747         cc merely issues a bunch of annoying warnings for --as-needed
45748         (this problem was reported by Bob Proulx).  Also, try linking with
45749         -lm to detect a bug in binutils 2.16 (this problem was reported
45750         by Ralf Wildenhues).
45751
45752         2006-06-18  Jim Meyering  <jim@meyering.net>
45753
45754         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45755         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45756         macro.
45757         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45758         also check for glibc-2.4's abort-inducing bug.
45759
45760         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45761         Low-probability clean-up should be to use rmdir to get rid of
45762         the just-created directory, not unlink.
45763
45764         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45765         configure fail, and request a bug report to inform us about it.
45766         Add a comment that, barring reports to the contrary, in 2007 we'll
45767         assume ftruncate is universally available.
45768
45769         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45770
45771         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45772
45773         2006-03-12  Jim Meyering  <jim@meyering.net>
45774
45775         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45776         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45777         * m4/same.m4 (gl_SAME): Likewise.
45778         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45779
45780         2006-03-11  Eric Blake  <ebb9@byu.net>
45781
45782         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45783         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45784         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45785         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45786
45787 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45788
45789         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45790         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45791         reported by Mark D. Baushke, one in
45792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45793
45794         Merge from coreutils.
45795
45796         * lib/.cppi-disable: Add stdint_.h.
45797         * lib/.cvsignore: Add stdint.h.
45798
45799         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45800
45801         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45802         both double and long double versions.
45803         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45804         * lib/xstrtold.c: New file.
45805         * lib/xstrtod.h (xstrtold): New decl.
45806
45807         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45808
45809         * lib/filemode.c (setst): Remove.
45810         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45811         (arguably) clearer, and the generated code is a bit smaller on my
45812         Debian GNU/Linux stable x86 host.
45813
45814         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45815
45816         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45817         Assume that filemode.h includes sys/types.h and sys/stat.h.
45818         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45819         (ftypelet): Reorder to put common cases first, for efficiency.
45820         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45821         to do 'M'.
45822         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45823         of 10, for compatibility with FreeBSD.  All callers changed.
45824         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45825         types that can't be deduced solely from st_mode.  First arg is now a
45826         const pointer.
45827         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45828         (strmode): Renamed from mode_string.
45829         (filemodestring): New decl.
45830         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45831         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45832         needed.
45833         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45834
45835         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45836
45837         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45838         fsusage.h now does that.  Include fsusage.h first, to test interface.
45839         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45840         at most one method (the old code could have generated decls that
45841         didn't conform to C89, not that this was ever exercised).
45842         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45843
45844         2006-03-19  Jim Meyering  <jim@meyering.net>
45845
45846         Work even in a chroot where d_ino values for entries in "/"
45847         don't match the stat.st_ino values for the same names.
45848         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45849         number, iterate through all entries again, using lstat instead.
45850         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45851         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45852
45853         * lib/getcwd.c (__getcwd): Clarify a comment.
45854         Use memcpy in place of a call to strcpy.
45855
45856         2006-03-12  Jim Meyering  <jim@meyering.net>
45857
45858         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45859         matches that of the current directory (which we're about to chdir ".."
45860         out of), then save the dev-ino of the parent, instead.
45861
45862         * lib/same-inode.h (SAME_INODE): New file/macro.
45863         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45864         Include "same-inode.h", instead.
45865         * lib/same.c: Likewise.
45866         * lib/cycle-check.h: Include "same-inode.h".
45867         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45868         * lib/cycle-check.c (SAME_INODE): Remove definition.
45869         * lib/root-dev-ino.h: Include "same-inode.h".
45870
45871         2006-03-11  Eric Blake  <ebb9@byu.net>
45872
45873         * lib/same.c (same_name): s/base_name/last_component/
45874         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45875         * lib/filenamecat.c (file_name_concat): Likewise.
45876
45877         2006-03-11  Eric Blake  <ebb9@byu.net>,
45878                     Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45881         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45882         drive prefix.
45883         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45884         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45885         (last_component): New method.
45886         * lib/dirname.c (dir_len): Determine when drive letters need a
45887         subsequent slash.  Preserve // when it is special.
45888         (dir_name): Don't append dot when drive letter is absolute.
45889         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45890         * lib/basename.c (base_name): New semantics - malloc the result.
45891         Preserve // when it is special.  Preserve relative files that look
45892         like drive letters.
45893         (base_len): Preserve // when it is special.
45894         (last_component): New method, similar to old base_name semantics.
45895         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45896         base_name.  Strip redundant slashes from ///.
45897
45898 2006-07-03  Jim Meyering  <jim@meyering.net>
45899
45900         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45901         macro is used before the first cycle_check call.
45902
45903 2006-07-03  Eric Blake  <ebb9@byu.net>
45904
45905         * modules/dirname (Depends-on): Add xstrndup.
45906
45907 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45908
45909         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45910         test cases, so that config.log is a bit easier to follow.
45911
45912 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45913
45914         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45915         both are 64 bits, since this seems to be the tradition, and this
45916         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45917         we ever run into a host that prefers long long to long in this
45918         case, we'll need another configure-time test.  Problem reported by
45919         Jim Meyering.
45920
45921 2006-07-02  Eric Blake  <ebb9@byu.net>
45922
45923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45924
45925 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45926
45927         * modules/inttypes (Depends-on): No longer depends on stdint.
45928         * modules/stdint (Description): Say more about assumptions.
45929         Say that the fast types might differ.  Say macros are used.
45930         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45931         (Makefile.am): Revise list of substituted symbols to match
45932         new stdint.m4.
45933         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45934         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45935         * tests/test-stdint.c (verify_same_types)
45936         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45937         the code conforms to C99/C89.
45938         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45939         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45940
45941 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45942
45943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45944         but fix a bug, by requiring at least 64 bits.
45945         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45946         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45947         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45948         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45949
45950         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45951         changes.  Make 2.59 a prerequisite.  Check and substitute for
45952         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45953         inttypes.h.  Do not use special include files; just use the
45954         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45955         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45956         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45957         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45958         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45959         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45960         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45961         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45962         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45963         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45964         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45965         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45966         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45967         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45968         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45969         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45970         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45971         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45972         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45973         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45974         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45975         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45976         not check for things that C99 does not require, e.g., int8_t.  If
45977         a test isn't needed unless <stdint.h> isn't working, and is
45978         unlikely to be needed for any other reason, then don't do it
45979         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45980         size_t, since we assume C89 freestanding at least.  Do not check
45981         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45982         the right thing even if the types are not defined.  Instead use:
45983         (gl_STDINT_TYPE_PROPERTIES): New macro.
45984         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45985         testing whether <sys/types.h> clashes, as Autoconf does this for
45986         us now.  All uses removed.
45987         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45988         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45989         (gl_CHECK_TYPE_SAME):
45990         Remove; no longer needed.
45991         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45992         exists, since we'll return 0 anyway in that case.
45993         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45994
45995 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45996
45997         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45998         possible collision with system files.
45999         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46000         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46001         WCHAR_MIN and WCHAR_MAX in this case.
46002         (<stddef.h>): Do not include; no longer needed.
46003         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46004         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46005         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46006         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46007         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46008         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46009         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46010         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46011         !defined(__c99))]: Include in this case too, since it's harmless
46012         now.
46013         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46014         dangerous to do so.
46015         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46016         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46017         (_STDINT_MIN, _STDINT_MAX): New macros.
46018         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46019         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46020         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46021         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46022         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46023         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46024         macros, not typedefs; this simplifies things quite a bit.
46025         Use long int for all types narrower than int64_t.
46026         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46027         Define in terms of long long int or int64_t or long int,
46028         not int64_t or int32_t.  This saves some compile-time testing.
46029         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46030         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46031         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46032         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46033         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46034         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46035         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46036         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46037         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46038         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46039         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46040         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46041         undef any previous version and define our own version, for
46042         simplicity and consistency with the new macros for types.
46043         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46044         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46045         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46046         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46047         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46048         @WINT_T_SUFFIX@ to keep things simple here.
46049         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46050         Simplify by assuming typical 8/16/32/64 host, since we're
46051         already doing that elsewhere anyway.
46052         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46053         and assume long long int is 64 bits if available.  This
46054         speeds up 'configure'.
46055
46056 2006-07-01  Eric Blake  <ebb9@byu.net>
46057
46058         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46059         Reported by Andreas Buening.
46060
46061 2006-07-01  Eric Blake  <ebb9@byu.net>
46062
46063         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46064
46065 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46066
46067         * lib/getaddrinfo.c: fixed typo
46068
46069 2006-06-29  Jim Meyering  <jim@meyering.net>
46070
46071         * modules/strftime (Maintainer): Add my name, since with the
46072         FPRINTFTIME changes strftime.c has forked from glibc.
46073
46074 2006-06-29  Eric Blake  <ebb9@byu.net>
46075
46076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46077
46078 2006-06-29  Eric Blake  <ebb9@byu.net>
46079
46080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46081
46082 2006-06-29  Eric Blake  <ebb9@byu.net>
46083
46084         * lib/stat_.h: New file.
46085
46086 2006-06-29  Eric Blake  <ebb9@byu.net>
46087
46088         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46089         unused static function.
46090
46091 2006-06-29  Eric Blake  <ebb9@byu.net>
46092
46093         * doc/functions.texi (Function Portability): Document missing lstat
46094         on mingw.
46095
46096 2006-06-29  Eric Blake  <ebb9@byu.net>
46097
46098         * MODULES.html.sh: Add sys_stat.
46099         * modules/sys_stat: New module.
46100         * modules/mkstemp (Depends-on): Add sys_stat.
46101
46102 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46103
46104         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46105
46106 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46107
46108         * m4/c-bs-a.m4: Removed.
46109
46110 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46111
46112         * lib/strftime.c: Assume strftime() exists.
46113
46114 2006-06-29  Derek Price  <derek@ximbiot.com>
46115
46116         * modules/c-bs-a: Removed - \a is C89.
46117         * MODULES.html.sh: Remove c-bs-a.
46118
46119 2006-06-29  Bruno Haible  <bruno@clisp.org>
46120
46121         * modules/wcwidth (License): Change to LGPL.
46122
46123 2006-06-28  Simon Josefsson  <jas@extundo.com>
46124
46125         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46126         on _WIN32.
46127
46128         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46129         getnameinfo.
46130
46131 2006-06-28  Simon Josefsson  <jas@extundo.com>
46132
46133         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46134
46135 2006-06-28  Simon Josefsson  <jas@extundo.com>
46136
46137         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46138         functions there.  It will succeed on Windows XP, but on Windows
46139         2000 and (presumably) earlier, it will fail, and use the internal
46140         re-implementation.
46141         (use_win32_p): New function.
46142         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46143         Support AI_NUMERICSERV to disable getservbyname.
46144         (getnameinfo): New function, only supports
46145         NI_NUMERICHOST|NI_NUMERICSERV for now.
46146
46147         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46148         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46149         getnameinfo.
46150
46151 2006-06-28  Eric Blake  <ebb9@byu.net>
46152
46153         * modules/wcwidth: New file.
46154         * modules/mbchar (Depends-on): Add wcwidth.
46155         * modules/mbswidth (Depends-on): Add wcwidth.
46156         * MODULES.html.sh: Add wcwidth.
46157
46158 2006-06-28  Eric Blake  <ebb9@byu.net>
46159
46160         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46161         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46162
46163 2006-06-28  Eric Blake  <ebb9@byu.net>
46164
46165         * lib/xvasprintf.h: Fix comments.
46166
46167 2006-06-28  Eric Blake  <ebb9@byu.net>
46168
46169         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46170         * lib/mbswidth.c (wcwidth): Move from here...
46171         * lib/wcwidth.h: ...to this new file.
46172
46173 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46174
46175         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46176
46177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46178         it's obsolete.
46179         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46180
46181 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46182
46183         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46184         Autoconf 2.60 says this stuff was obsolete.
46185
46186 2006-06-28  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46189
46190 2006-06-28  Bruno Haible  <bruno@clisp.org>
46191
46192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46193         gt_TYPE_WCHAR_T.
46194
46195 2006-06-28  Bruno Haible  <bruno@clisp.org>
46196
46197         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46198         declaration for wcwidth.
46199         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46200
46201 2006-06-28  Bruno Haible  <bruno@clisp.org>
46202
46203         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46204         (mkdir): Define using _mkdir.
46205
46206 2006-06-28  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/getaddrinfo.h: Fix POSIX URL.
46209         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46210         _WIN32.
46211         (use_win32_p): Make static.
46212         (getaddrinfo): Reject service name if it is empty or does not consist
46213         solely of decimal digits, or if its value is > 65535.
46214         (getnameinfo): Remove useless casts.
46215
46216 2006-06-27  Simon Josefsson  <jas@extundo.com>
46217
46218         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46219         Eggert and Martin Lambers.
46220
46221 2006-06-27  Simon Josefsson  <jas@extundo.com>
46222
46223         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46224         Eggert and Martin Lambers.
46225
46226 2006-06-27  Bruno Haible  <bruno@clisp.org>
46227
46228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46229         result to 0, not to empty.
46230         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46231
46232 2006-06-27  Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46235
46236 2006-06-26  Simon Josefsson  <jas@extundo.com>
46237
46238         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46239         present.
46240
46241 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46242
46243         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46244         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46246
46247 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46248
46249         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46250
46251 2006-06-26  Bruno Haible  <bruno@clisp.org>
46252
46253         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46254
46255 2006-06-26  Bruno Haible  <bruno@clisp.org>
46256
46257         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46258
46259 2006-06-26  Bruno Haible  <bruno@clisp.org>
46260
46261         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46262         SGI C compiler in pre-C99 mode.
46263         Suggested by Mark D. Baushke and Larry Jones.
46264
46265 2006-06-26  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46268         WCHAR_MAX.
46269         Reported by Mark D. Baushke and Larry Jones.
46270
46271 2006-06-26  Bruno Haible  <bruno@clisp.org>
46272
46273         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46274         in pre-C99 mode.
46275         Suggested by Mark D. Baushke and Larry Jones.
46276
46277 2006-06-23  Simon Josefsson  <jas@extundo.com>
46278             Bruno Haible  <bruno@clisp.org>
46279
46280         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46281         Emit mostlyclean-local rule.
46282         (func_emit_tests_Makefile_am): Likewise.
46283         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46284
46285 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46286
46287         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46288
46289 2006-06-23  Bruno Haible  <bruno@clisp.org>
46290
46291         * tests/test-stdint.c: Update to match ISO C 99 Technical
46292         Corrigendum 1.
46293
46294 2006-06-23  Bruno Haible  <bruno@clisp.org>
46295
46296         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46297
46298 2006-06-23  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/stdint_.h: Treat IRIX like OpenBSD.
46301
46302 2006-06-23  Bruno Haible  <bruno@clisp.org>
46303
46304         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46305         ISO C 99 Technical Corrigendum 1.
46306
46307 2006-06-22  Simon Josefsson  <jas@extundo.com>
46308
46309         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46310         MinGW.
46311
46312 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46313
46314         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46315         needed.  Some compiler complained about some of them.  Problem reported
46316         by Larry Jones in
46317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46318
46319 2006-06-21  Simon Josefsson  <jas@extundo.com>
46320
46321         * tests/test-getaddrinfo.c: New file.
46322
46323         * modules/getaddrinfo-tests: New file.
46324
46325         * MODULES.html.sh: Add inet_pton.
46326
46327         * modules/inet_pton: New file.
46328
46329 2006-06-21  Simon Josefsson  <jas@extundo.com>
46330
46331         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46332         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46333         of using the (limited) gnulib implementation on Windows XP.
46334
46335         * m4/inet_pton.m4: New file.
46336
46337 2006-06-21  Simon Josefsson  <jas@extundo.com>
46338
46339         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46340         variable.
46341
46342         * lib/socket_.h: Don't define WINVER.
46343
46344         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46345         slightly modified to work in gnulib.
46346
46347 2006-06-21  Simon Josefsson  <jas@extundo.com>
46348
46349         * doc/gnulib.texi (Windows sockets): Add.
46350
46351 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46352
46353         * lib/read-file.c (fread_file): Start with buffer allocation of
46354         0 bytes rather than 1 byte; this simplifies the code.
46355         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46356         code to free buffer and save/restore errno.
46357         (internal_read_file): Remove unused local.
46358
46359 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46360
46361         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46362         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46363         Problem reported by Denis Excoffier in
46364         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46365
46366 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46367
46368         * modules/sys_socket, modules/socklen: Include sys/types since
46369         FreeBSD 4.x's sys/socket.h needs it.
46370
46371 2006-06-19  Simon Josefsson  <jas@extundo.com>
46372
46373         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46374
46375 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46376
46377         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46378
46379 2006-06-19  Bruno Haible  <bruno@clisp.org>
46380
46381         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46382         and FULL_PATH_INTTYPES_H in angle brackets.
46383         Reported by Mark D. Baushke <mdb@gnu.org>.
46384
46385 2006-06-17  Eric Blake  <ebb9@byu.net>
46386
46387         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46388         errno.
46389
46390 2006-06-17  Bruno Haible  <bruno@clisp.org>
46391
46392         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46393         <sys/inttypes.h>.
46394
46395 2006-06-17  Bruno Haible  <bruno@clisp.org>
46396
46397         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46398         whether errno is declared. Assume <errno.h> declares errno.
46399
46400 2006-06-17  Bruno Haible  <bruno@clisp.org>
46401
46402         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46403
46404 2006-06-17  Bruno Haible  <bruno@clisp.org>
46405
46406         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46407         problem on Solaris 2.5.1.
46408
46409 2006-06-16  Eric Blake  <ebb9@byu.net>
46410
46411         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46412         * lib/unicodeio.c [!defined errno]: Likewise.
46413         * lib/strtol.c [!defined errno]: Likewise.
46414         * lib/strtod.c [!defined errno]: Likewise.
46415
46416 2006-06-15  Eric Blake  <ebb9@byu.net>
46417
46418         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46419
46420 2006-06-15  Eric Blake  <ebb9@byu.net>
46421
46422         * config/srclist.txt (ssize_t.m4): Lose sync.
46423
46424 2006-06-15  Bruno Haible  <bruno@clisp.org>
46425
46426         * modules/stdint (Files): Include m4/full-header-path.m4,
46427         m4/size_max.m4, m4/wchar_t.m4.
46428         (Makefile.am): Many more substitutions.
46429         * modules/stdint-tests: New file.
46430         * tests/test-stdint.c: New file.
46431
46432 2006-06-15  Bruno Haible  <bruno@clisp.org>
46433
46434         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46435         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46436         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46437         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46438         gl_CHECK_TYPE_SAME): New macros.
46439
46440 2006-06-15  Bruno Haible  <bruno@clisp.org>
46441
46442         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46443
46444 2006-06-15  Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/stdint_.h: Rewritten to be fully auto-configured.
46447         Fixes bug on HP-UX/IA64.
46448
46449 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         * lib/getdate.y (__attribute__): Don't define if already defined.
46452         Problem reported by Larry Jones.
46453         * lib/utimens.c (__attribute__): Likewise.
46454
46455 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46458         reported by Andreas Schwab.
46459
46460 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46461             Bruno Haible  <bruno@clisp.org>
46462
46463         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46464         check for the declaration of strnlen and a run test that exposes the
46465         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46466         rpl_strndup.
46467
46468 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46469             Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46472
46473 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46474
46475         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46476         compile test, for Tru64 4.0D.
46477
46478 2006-05-28  Karl Berry  <karl@gnu.org>
46479
46480         * config/srclist.txt (printf-args.c): lose sync.
46481
46482 2006-05-26  Martin Lambers  <marlam@marlam.de>
46483
46484         * lib/getpass.c: Updates the test for the native W32 API, and adds
46485         missing includes, thus fixing compilation warnings.
46486
46487 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46488
46489         * lib/exclude.c (exclude_fnmatch): New function.
46490         (excluded_file_name): Call exclude_fnmatch.
46491         * lib/exclude.h (excluded_file_name): New prototype
46492
46493 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46494
46495         * lib/tempname.c (small_open, large_open): New macros.
46496         (__open, __open64) [!_LIBC]: Remove.
46497         (__gen_tempname): Use small_open and large_open instead of __open
46498         and __open64.  This fixes a portability bug on HP-UX 11.11i
46499         reported by Simon Wing-Tang in
46500         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46501
46502 2006-05-24  Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46505         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46506         Reported by Thorsten Maerz <torte@netztorte.de> via
46507         Aaron Stone <aaron@serendipity.cx>.
46508
46509 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46510
46511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46512         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46513         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46514         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46515         not really conditional on the cache.
46516         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46517
46518 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46519
46520         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46521         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46522         (my_usleep): Don't mishandle maximum value.
46523
46524 2006-05-19  Jim Meyering  <jim@meyering.net>
46525
46526         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46527
46528 2006-05-17  Bruno Haible  <bruno@clisp.org>
46529
46530         Cygwin portability.
46531         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46532
46533 2006-05-17  Bruno Haible  <bruno@clisp.org>
46534
46535         * lib/stdint_.h: Fix recognition of Cygwin.
46536
46537 2006-05-15  Bruno Haible  <bruno@clisp.org>
46538
46539         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46540         on libtool patch by Ralf Wildenhues.
46541
46542 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46543
46544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46545         test for C99 conformance; (bool) 0.5 is an integer constant
46546         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46547         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46548
46549 2006-05-11  Simon Josefsson  <jas@extundo.com>
46550
46551         * m4/xvasprintf.m4: Fix obvious typo.
46552
46553 2006-05-11  Jim Meyering  <jim@meyering.net>
46554
46555         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46556         James Lemley.
46557
46558 2006-05-10  Simon Josefsson  <jas@extundo.com>
46559
46560         * lib/md4.c: Typo fix, update copyright years.
46561         (K1, K2): Don't use L because it turn computations into 64-bit on
46562         64-bit platforms.
46563
46564 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46565
46566         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46567         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46568         unwanted sign propagation, e.g., on hosts with 64-bit int.
46569         There still are some problems with reeelly weird theoretical hosts
46570         (e.g., 33-bit int) but it's not worth worrying about now.
46571         * lib/sha1.c (rol): Likewise.
46572         (K1, K2, K3, K4): Remove unnecessary L suffix.
46573
46574 2006-05-10  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/des.c: Cast to avoid warnings.
46577
46578 2006-05-09  Bruno Haible  <bruno@clisp.org>
46579
46580         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46581         (Depends-on): Depend also on xsize, stdarg.
46582         (configure.ac): Add gl_XVASPRINTF.
46583
46584 2006-05-09  Bruno Haible  <bruno@clisp.org>
46585
46586         * m4/xvasprintf.m4: New file.
46587
46588 2006-05-09  Bruno Haible  <bruno@clisp.org>
46589
46590         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46591         (EOVERFLOW): Define fallback value.
46592         (xstrcat): New function.
46593         (xvasprintf): Recognize the special case of a string concatenation.
46594
46595 2006-05-08  Eric Blake  <ebb9@byu.net>
46596
46597         * gnulib-tool (func_version): Base copyright year on CVS date.
46598         (func_emit_copyright_notice): New function.
46599         (func_emit_lib_Makefile_am): Use it.
46600         (func_emit_tests_Makefile_am): Likewise.
46601         (func_import): Likewise.
46602
46603 2006-05-08  Bruno Haible  <bruno@clisp.org>
46604
46605         * modules/stdarg: New file.
46606         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46607
46608 2006-05-08  Bruno Haible  <bruno@clisp.org>
46609
46610         * m4/stdarg.m4: New file, from GNU gettext.
46611
46612 2006-05-08  Bruno Haible  <bruno@clisp.org>
46613
46614         * config/srclist.txt (build-aux/config.rpath): different from latest
46615         release.
46616
46617 2006-05-08  Bruno Haible  <bruno@clisp.org>
46618
46619         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46620
46621 2006-05-05  Jim Meyering  <jim@meyering.net>
46622
46623         * m4/warning.m4: New file, derived from bison's file by the same name.
46624
46625 2006-05-03  Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/stdint_.h: Shorter URL.
46628         * lib/inttypes.h: Likewise.
46629
46630 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46633
46634 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46635
46636         * lib/verify.h: Document the internals better.  Most of this change
46637         was written by Bruno Haible.
46638
46639 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46640
46641         * doc/verify.texi: New file, partly based on a proposal by
46642         Bruno Haible.
46643
46644 2006-05-02  Bruno Haible  <bruno@clisp.org>
46645
46646         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46647         test from here...
46648         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46649
46650 2006-04-29  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46653         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46654
46655 2006-04-29  Bruno Haible  <bruno@clisp.org>
46656
46657         * gnulib-tool: Make --update option actually work.
46658
46659 2006-04-29  Bruno Haible  <bruno@clisp.org>
46660
46661         * doc/gcd.texi: New file.
46662         * doc/gnulib.texi: Include it.
46663
46664 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46665
46666         * lib/getdate.y (get_date): When adding relative date, start with the
46667         initial time, not with the result of the first mktime call.
46668
46669 2006-04-25  Bruno Haible  <bruno@clisp.org>
46670
46671         * gnulib-tool (func_import): Output the include directives in three
46672         blocks, sorted separately.
46673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46674
46675 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46676
46677         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46678         to define main with arguments, for C++.  Reported by Eric Blake.
46679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46680         Prefer 'int main ()' to 'int main (void)', for C++.
46681         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46682         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46683         for 'main', for C99 and C++.
46684
46685 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46686
46687         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46688         Don't assume that exit status -1 is valid.
46689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46690         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46691         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46692         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46693         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46694         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46695         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46696         functions can be used without declaring them, or that you can
46697         exit with status -1.
46698         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46699
46700 2006-04-24  Karl Berry  <karl@gnu.org>
46701
46702         * config/srclist.txt (longdouble.m4): sync lost.
46703
46704 2006-04-24  Eric Blake  <ebb9@byu.net>
46705
46706         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46707
46708 2006-04-24  Bruno Haible  <bruno@clisp.org>
46709
46710         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46711         poll() implementation in AIX.
46712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46713
46714 2006-04-24  Bruno Haible  <bruno@clisp.org>
46715
46716         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46717         assigned exactly once.
46718
46719 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46720             Bruno Haible  <bruno@clisp.org>
46721
46722         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46723         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46724         for AM_CPPFLAGS.
46725
46726 2006-04-23  Bruno Haible  <bruno@clisp.org>
46727
46728         * modules/copy-file: Depend on unistd.
46729         * modules/execute: Likewise.
46730         * modules/fatal-signal: Likewise.
46731         * modules/findprog: Likewise.
46732         * modules/mkdtemp : Likewise.
46733         * modules/pipe: Likewise.
46734         * modules/wait-process: Likewise.
46735
46736 2006-04-23  Bruno Haible  <bruno@clisp.org>
46737
46738         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46739         condition was already detected.
46740         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46741
46742 2006-04-23  Bruno Haible  <bruno@clisp.org>
46743
46744         * lib/copy-file.c: Include <unistd.h> unconditionally.
46745         * lib/execute.c: Likewise.
46746         * lib/fatal-signal.c: Likewise.
46747         * lib/findprog.c: Likewise.
46748         * lib/mkdtemp.c: Likewise.
46749         * lib/pipe.h: Likewise.
46750         * lib/pipe.c: Likewise.
46751         * lib/wait-process.h: Likewise.
46752
46753 2006-04-23  Bruno Haible  <bruno@clisp.org>
46754
46755         * gnulib-tool (func_usage): Fix --import description. Document
46756         --update.
46757         (func_import): Create temporary file in a temporary directory, if
46758         --dry-run is specified. Silence errors from 'grep' when there are no
46759         m4 files in $m4dir.
46760         (func_create_testdir): Silence errors from 'grep' when there are no
46761         m4 files in $m4dir.
46762         Reported by Karl Berry <karl@freefriends.org>.
46763
46764 2006-04-20  Bruno Haible  <bruno@clisp.org>
46765
46766         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46767         one argument, so that the code will be portable to Autoconf 2.60.
46768         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46769         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46770         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46771
46772 2006-04-19  Derek Price  <derek@ximbiot.com>
46773             Eric Blake  <ebb9@byu.net>
46774
46775         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46776         rather than "/full/path.h".  Update comment to match.  Shorten &
46777         generalize m4_translit call via AS_TR_CPP.
46778
46779 2006-04-19  Derek Price  <derek@ximbiot.com>
46780             Eric Blake  <ebb9@byu.net>
46781
46782         * lib/inttypes.h: Correct grammar in comment.
46783
46784 2006-04-18  Derek Price  <derek@ximbiot.com>
46785             Paul Eggert  <eggert@cs.ucla.edu>
46786
46787         * modules/inttypes: New file.
46788         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46789
46790 2006-04-18  Derek Price  <derek@ximbiot.com>
46791             Paul Eggert  <eggert@cs.ucla.edu>
46792
46793         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46794         New files.
46795
46796 2006-04-18  Derek Price  <derek@ximbiot.com>
46797             Paul Eggert  <eggert@cs.ucla.edu>
46798
46799         * lib/inttypes.h: New file.
46800         * lib/strtoimax.c: Assume <inttypes.h>.
46801
46802 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46803
46804         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46805         isn't mounted.  Problem reported by Kir Kolyshkin.
46806
46807 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46808
46809         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46810         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46811         Derek R. Price.
46812         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46813         implementation.
46814
46815 2006-04-12  Eric Blake  <ebb9@byu.net>
46816
46817         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46818         is now done automatically by the corresponding Autoconf macro.
46819
46820 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46821
46822         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46823         time_r.h.
46824
46825 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         Merge regex changes from libc, removing some of our
46828         POSIX-conformance changes that were rejected and redoing them in a
46829         less-intrusive way.
46830
46831         * lib/regcomp.c (re_compile_internal, init_dfa):
46832         Length arg is now size_t, not Idx.  All uses changed.
46833         (peek_token): Forward decl now says internal_function.
46834         (__re_error_msgid, __re_error_msgid_idx):
46835         Now static rather than extern with attribute_hidden.
46836         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46837         For some reason libc prefers K&R style defns for external functions.
46838         (regerror) [!defined _LIBC]: Likewise.
46839         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46840         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46841         (build_range_exp, build_collating_symbol):
46842         Use K&R-style defn.
46843         (re_compile_fastmap): Use '\0' to memset, not 0.
46844         (utf8_sb_map): Make the calculations more obvious.
46845         (init_dfa, parse_bracket_exp, build_charclass_op):
46846         Call calloc and cast result, as glibc does.
46847         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46848         (build_range_exp, build_collating_symbol):
46849         Now internal functions.
46850
46851         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46852
46853         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46854         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46855         Don't depend on VMS; depend on __VMS instead, for POSIX
46856         namespace cleanness.
46857         (regoff_t): Define to ssize_t, not long int.
46858
46859         Remove the REG_ macros named below.  Instead, make the old names
46860         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46861         __USE_GNU_REGEX.
46862         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46863         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46864         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46865         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46866         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46867         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46868         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46869         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46870         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46871         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46872         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46873         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46874         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46875         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46876         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46877         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46878         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46879         (REG_NREGS):
46880         Remove.  All uses replaced by the old RE_* names.
46881         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46882         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46883         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46884         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46885         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46886         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46887         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46888         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46889         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46890         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46891         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46892         Don't bother having these macros be independent of each others'
46893         values, since they no longer exist in the POSIX name space.
46894
46895         Rename the following member names back to their old names,
46896         unless !__USE_GNU_REGEX.  All uses changed back.
46897         (buffer): Renamed from re_buffer.
46898         (allocated): Renamed from re_allocated.
46899         (used): Renamed from re_used.
46900         (syntax): Renamed from re_syntax.
46901         (fastmap): Renamed from re_fastmap.
46902         (translate): Renamed from re_translate.
46903         (can_be_null): Renamed from re_can_be_null.
46904         (regs_allocated): Renamed from re_regs_allocated.
46905         (fastmap_accurate): Renamed from re_fastmap_accurate.
46906         (no_sub): Renamed from re_no_sub.
46907         (not_bol): Renamed from re_not_bol.
46908         (not_eol): Renamed from re_not_eol.
46909         (newline_anchor): Renamed from re_newline_anchor.
46910         (num_regs): Renamed from rm_num_regs.
46911         (start): Renamed from rm_start.
46912         (end): Renamed from rm_end.
46913
46914         (free_state): Move up a bit.
46915
46916         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46917         #define to be empty.
46918         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46919         when that is what is intended.
46920         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46921         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46922         (MAX): New macro.
46923         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46924         All uses changed back to re_malloc, etc.  It's now the caller's
46925         responsibility to check for overflow; all callers changed.
46926         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46927         (re_x2nrealloc): Remove.
46928         (free_state): Remove decl.
46929
46930         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46931         (re_set_registers, re_exec):
46932         Use K&R-style defn.
46933
46934         2006-01-31  Roland McGrath  <roland@redhat.com>
46935
46936         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46937         Reported by Mike Frysinger <vapier@gentoo.org>.
46938
46939         2006-01-15  Andreas Jaeger  <aj@suse.de>
46940
46941         [BZ #1950]
46942         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46943         build_wcs_upper_buffer change.
46944         (build_wcs_upper_buffer): Change return type.
46945
46946         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46947
46948         * lib/regex_internal.h: Include <stdint.h> if available.
46949
46950         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46951
46952         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46953
46954         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46955
46956         * lib/regcomp.c: Adjust for changed secondary hash function.
46957
46958         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46959
46960         * lib/regex.h: Pretty printing.
46961         Clean up namespace a bit.
46962
46963         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46964
46965         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46966         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46967
46968         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46969                     Ulrich Drepper  <drepper@redhat.com>
46970
46971         [BZ #1302]
46972         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46973         changed.
46974         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46975
46976         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46977
46978         [BZ #281]
46979         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46980         * lib/regcomp.c: Remove unnecessary uses of
46981         unsigned RE_TRANSLATE_TYPE.
46982         * lib/regex_internal.h: Likewise.
46983         * lib/regex_internal.c: Likewise.
46984         * lib/regexec.c: Likewise.
46985         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46986
46987         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46988
46989         * lib/regexec.c (find_recover_state): Remove unnecessary
46990         initialization.
46991         (transit_state_bkref): Make DFA a const pointer.
46992         (get_subexp): Likewise.
46993         (check_arrival): Likewise.
46994         (update_cur_sifted_state): Likewise.
46995         (re_search_internal): Likewise.
46996         (prune_impossible_nodes): Likewise.
46997         (acquire_init_state_context): Likewise.
46998         (proceed_next_node): Likewise.
46999         (set_regs): Likewise.
47000         (free_fail_stack_return): Likewise.
47001         (check_arrival_expand_ecl): Mark DFA parameter as const.
47002         (check_arrival_expand_ecl_sub): Likewise.
47003         (check_subexp_limits): Likewise.
47004         (sub_epsilon_src_nodes):  Likewise.
47005         (add_epsilon_src_nodes):  Likewise.
47006         (merge_state_array): Likewise.
47007         (update_regs): Likewise.
47008         (build_trtable): Likewise.
47009         (sift_states_backward): Mark MCTX parameter as const.
47010         (build_sifted_states): Likewise.
47011         (update_cur_sifted_state): Likewise.
47012         (sift_states_mkref): Likewise.
47013         (check_arrival_expand_ecl): Mark eclosure as const.
47014         (check_dst_limits_calc_pos_1): Likewise.
47015         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47016         pointer.
47017
47018         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47019
47020         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47021         (transit_state_sb): Likewise.
47022         (transit_state_mb): Likewise.
47023         (sift_states_iter_mb): Likewise.
47024         (check_arrival_add_next_nodes): Likewise.
47025         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47026         [_LIBC] (re_search_2_stub): Use mempcpy.
47027
47028         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47029         mbrtowc for very simple UTF-8 case.
47030
47031         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47032         a pointer-to-const.
47033         (re_acquire_state_context): Likewise.
47034         * lib/regex_internal.h: Adjust prototypes.
47035
47036         * lib/regex.c: Prevent using C++ compilers.
47037
47038         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47039         (re_acquire_state_context): Likewise.
47040
47041 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * modules/regex (Depends-on): Add ssize_t.
47044
47045 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47046
47047         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47048         translation table.
47049
47050 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47051
47052         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47053
47054 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47055             Bruno Haible  <bruno@clisp.org>
47056
47057         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47058         <sys/types.h> and <inttypes.h>.
47059
47060 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47061
47062         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47063         `__error_t_defined', so argp.h will not typedef the former.
47064
47065 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47066
47067         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47068         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47069         glibc names.  Even if glibc is changed to conform to POSIX, the
47070         traditional names will be available anyway, since regex depends on
47071         the extensions module.  Also, fix a longstanding typo in the
47072         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47073         reported by Emanuele Giaquinta.  Also, change sense of cached
47074         variable, so that the message makes sense.
47075
47076 2006-03-24  Simon Josefsson  <jas@extundo.com>
47077
47078         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47079         including some doc fixes.
47080         (base64_encode_alloc): Fix +1 bug on allocation failures.
47081
47082 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47083
47084         * lib/base64.c (base64_encode): Do not read past end of array with
47085         unsanitized input on systems with CHAR_BIT > 8.
47086
47087 2006-03-24  Eric Blake  <ebb9@byu.net>
47088
47089         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47090
47091 2006-03-22  Karl Berry  <karl@gnu.org>
47092
47093         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47094         * config/srclistvars.sh (COREUTILS): new var.
47095
47096 2006-03-17  Jim Meyering  <jim@meyering.net>
47097
47098         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47099         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47100
47101 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47102
47103         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47104         no longer needs it.  Instead, check that regoff_t is as least
47105         as wide as ptrdiff_t.
47106
47107         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47108         so that our regex.h stays compatible with the installed regex.
47109         This is helpful for installers who configure --without-included-regex.
47110         Problem reported by Emanuele Giaquinta.
47111
47112 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47113
47114         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47115         Typedef to long int, not to off_, as POSIX will likely change
47116         in that direction.
47117
47118 2006-03-15  Eric Blake  <ebb9@byu.net>
47119
47120         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47121
47122 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47123
47124         * lib/argp-help.c (validate_uparams): Fix typo
47125         * lib/argp-parse.c (argp_default_options): Consistently begin help
47126         messages with a lowercase letter.
47127
47128 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47129
47130         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47131         overrun buffers and shouldn't be used (much as gets shouldn't be
47132         used).
47133         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47134
47135 2006-03-08  Simon Josefsson  <jas@extundo.com>
47136
47137         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47138         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47139
47140 2006-03-08  Simon Josefsson  <jas@extundo.com>
47141
47142         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47143         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47144
47145 2006-03-08  Simon Josefsson  <jas@extundo.com>
47146
47147         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47148         signal that configure disabled the device.
47149
47150 2006-03-08  Simon Josefsson  <jas@extundo.com>
47151
47152         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47153         languages.
47154
47155 2006-03-07  Simon Josefsson  <jas@extundo.com>
47156
47157         * modules/getopt (Depends-on): Add unistd.
47158
47159         * modules/unistd: New file.
47160
47161 2006-03-07  Simon Josefsson  <jas@extundo.com>
47162
47163         * modules/gc-random: New file.
47164
47165 2006-03-07  Simon Josefsson  <jas@extundo.com>
47166
47167         * m4/unistd_h.m4: New file.
47168
47169 2006-03-07  Simon Josefsson  <jas@extundo.com>
47170
47171         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47172         test to be side-effect free by storing the result in the cache
47173         variable gl_cv_lib_readline, and moving the assignment of
47174         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47175         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47176
47177 2006-03-07  Simon Josefsson  <jas@extundo.com>
47178
47179         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47180         error on missing devices (the functions will return an error).
47181
47182         * m4/gc.m4: Move random stuff to gc-random.m4
47183
47184 2006-03-07  Simon Josefsson  <jas@extundo.com>
47185
47186         * lib/unistd_.h: New file.
47187
47188 2006-03-07  Simon Josefsson  <jas@extundo.com>
47189
47190         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47191
47192 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47193
47194         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47195         Problem reported by Juan Manuel Guerrero.
47196
47197 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47198
47199         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47200         the unistd module.
47201         * lib/getlogin_r.c: Likewise.
47202         * lib/getlogin_r.h: Likewise.
47203         * lib/glob.c: Likewise.
47204         * lib/pagealign_alloc.c: Likewise.
47205         * lib/unistd_.h: Remove; no longer needed.
47206
47207 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47210         Add unistd.
47211         * modules/c-stack (Depends-on): Add unistd.
47212         * modules/getlogin_r: Likewise.
47213         * modules/glob: Likewise.
47214         * modules/pagealign_alloc: Likewise.
47215         * modules/unistd (Files): Remove lib/unistd_.h.
47216         (EXTRA_DIST): Remove.
47217         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47218         need unistd_.h.
47219         (MOSTLYCLEANFILES): Remove unistd.h-t.
47220
47221 2006-03-03  Simon Josefsson  <jas@extundo.com>
47222
47223         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47224
47225 2006-03-03  Simon Josefsson  <jas@extundo.com>
47226
47227         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47228         libidn and bison.
47229
47230 2006-03-03  Simon Josefsson  <jas@extundo.com>
47231
47232         * build-aux/maint.mk: Add indent target.
47233
47234 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47235
47236         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47237         our replacement poll.h in any case, to avoid a differing
47238         declaration from a system header.  Seen on AIX.
47239
47240 2006-03-01  Simon Josefsson  <jas@extundo.com>
47241
47242         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47243         <kasal@ucw.cz>.
47244
47245 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47246
47247         * modules/gettime (Depends-on): Add extensions module.
47248         * modules/nanosleep (Depends-on): Likewise.
47249         * modules/settime (Depends-on): Likewise.
47250
47251 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47252
47253         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47254         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47255         pedantically.
47256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47257         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47258
47259         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47260         not "==".  Reported by Ralf Wildenhues.
47261
47262 2006-03-01  Karl Berry  <karl@gnu.org>
47263
47264         * doc/Copyright/request-*: new files, synced from gnuorg.
47265
47266 2006-03-01  Karl Berry  <karl@gnu.org>
47267
47268         * config/srclist.txt (Copyright/*): new entries.
47269
47270 2006-02-28  Simon Josefsson  <jas@extundo.com>
47271
47272         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47273
47274 2006-02-27  Simon Josefsson  <jas@extundo.com>
47275
47276         * lib/base64.h: Indent #define's.  From Jim Meyering
47277         <jim@meyering.net>.
47278
47279 2006-02-27  Jim Meyering  <jim@meyering.net>
47280
47281         Revert the change of 2006-02-24, so these files can continue
47282         to be sync'd from gettext.
47283         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47284         of `config.h'.
47285
47286 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47287
47288         * modules/intprops: New file.
47289         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47290         Add intprops.
47291         * modules/getloadavg (Files): Remove lib/intprops.h.
47292         (Depends-on): Add intprops.
47293         * modules/human: Likewise.
47294         * modules/inttostr: Likewise.
47295         * modules/openat: Likewise.
47296         * modules/sig2str: Likewise.
47297         * modules/userspec: Likewise.
47298         * modules/utimecmp: Likewise.
47299         * modules/xnanosleep: Likewise.
47300         * modules/xstrtol: Likewise.
47301
47302 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47303
47304         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47305         * modules/lock-tests (TESTS): Use $(EXEEXT).
47306         * modules/tls-tests: Likewise.
47307         * modules/argp-tests: Likewise.
47308         (check_PROGRAMS): New var, replacing...
47309         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47310
47311 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47312
47313         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47314         `config.h'.
47315
47316 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47317
47318         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47319
47320 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47321
47322         Sync from coreutils.
47323         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47324         gl_CHDIR_SAFER.
47325
47326 2006-02-22  Jim Meyering  <jim@meyering.net>
47327
47328         Sync from coreutils.
47329         * m4/chdir-safer.m4: New file.
47330
47331 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47332
47333         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47334         AT_FDCWD exceeds INT_MAX.
47335         * lib/openat.h (AT_FDCWD): Likewise.
47336
47337 2006-02-17  Eric Blake  <address@hidden>
47338
47339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47340
47341 2006-02-16  Simon Josefsson  <jas@extundo.com>
47342
47343         * modules/getaddrinfo (Depends-on): Add sys_socket.
47344
47345 2006-02-15  Simon Josefsson  <jas@extundo.com>
47346
47347         * build-aux/maint.mk: Add dsyntax-check rule.
47348
47349 2006-02-15  Eric Blake  <ebb9@byu.net>
47350
47351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47352         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47353         'present but cannot compile' warnings on cygwin.
47354         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47355         use ws2tcpip.h if sys/socket.h works.
47356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47357         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47358
47359 2006-02-14  Simon Josefsson  <jas@extundo.com>
47360
47361         * modules/maintainer-makefile (Files): Rename.
47362
47363         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47364         and (the local) Makefile.cfg to maint-cfg.mk.
47365
47366         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47367         to the latter.
47368
47369         * modules/maintainer-makefile: New module.
47370
47371         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47372         severaly stripped to make it possible to build it up from scratch
47373         with reliable tests.
47374
47375         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47376         fixes to permit overriding the default actions when configure and
47377         makefile are not available.
47378
47379 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         Sync from coreutils.
47382         * modules/lstat (Depends-on): Don't depend on xalloc.
47383         (License): Change from GPL to LGPL, since this is now simply a
47384         replacement for a libc function.
47385
47386 2006-02-14  Jim Meyering  <jim@meyering.net>
47387
47388         Sync from coreutils.
47389
47390         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47391         failure on deficient systems, and simplify gnulib lgpl dependencies.
47392         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47393         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47394
47395         * lib/xalloc-die.c: Remove unused definition of N_.
47396
47397 2006-02-14  Jim Meyering  <jim@meyering.net>
47398
47399         Sync from coreutils.
47400         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47401         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47402         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47403         double-quote uses of that variable, to accommodate the rare case in
47404         which getmntent is available in none of the libraries checked.  This
47405         happens at least on FreeBSD 5.0.
47406
47407 2006-02-13  Simon Josefsson  <jas@extundo.com>
47408
47409         * gnulib-tool (Usage): Fix --import, from
47410         karl@freefriends.org (Karl Berry).
47411
47412 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47413
47414         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47415
47416 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47417
47418         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47419         "autoupdate" on 2005-12-12.
47420
47421 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47422
47423         * modules/closeout (Depends-on): Remove atexit.
47424
47425 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47426
47427         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47428         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47429
47430 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47433         __EXTENSIONS__ if this causes compilation to fail.  Problem
47434         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47435         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47436
47437 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47438
47439         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47440         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47442         All uses changed.
47443
47444 2006-01-26  Simon Josefsson  <jas@extundo.com>
47445
47446         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47447         prototype is visible on mingw32.
47448
47449         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47450         for mingw32.
47451
47452         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47453         mingw32).
47454
47455 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47456
47457         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47458         attempt to open for write; this always fails, at least on POSIX
47459         hosts.  This reinstates the 2006-01-09 change, which was
47460         inadvertently removed.
47461
47462 2006-01-26  Bruno Haible  <bruno@clisp.org>
47463
47464         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47465         Reported by Paul Eggert.
47466
47467 2006-01-26  Bruno Haible  <bruno@clisp.org>
47468             Paul Eggert  <eggert@cs.ucla.edu>
47469
47470         * lib/stdbool_.h (_Bool)
47471         [(! (defined __cplusplus || defined __BEOS__)
47472           && !defined __GNUC__
47473           && !(defined __HP_cc || defined __xlc__
47474                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47475                || defined __sgi))]:
47476         #define to signed char in these cases too; this simplifies
47477         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47478         etc., separately) and makes it more conservative.
47479
47480 2006-01-25  Simon Josefsson  <jas@extundo.com>
47481
47482         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47483         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47484         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47485
47486 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47487
47488         * lib/argp-namefrob.h: Bugfix. Remove stray #
47489
47490 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47491
47492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47493         so that we test the test.
47494         Check for yet another HP-UX cc bug involving *bool |= bool.
47495
47496 2006-01-25  Karl Berry  <karl@gnu.org>
47497
47498         * config/srclist.txt (vasnprintf.c): sync lost.
47499
47500 2006-01-25  Jim Meyering  <jim@meyering.net>
47501
47502         Sync from the stable (b5) branch of coreutils:
47503
47504         * lib/fts.c (fts_children): Don't let close() clobber errno from
47505         failed fchdir().
47506
47507         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47508         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47509         a dangling symlink.  That can also happen at least for ELOOP.
47510         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47511         FYI, this bug predates the inclusion of fts.c in coreutils.
47512
47513         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47514         in their own block, so pre-c99 compilers don't object.
47515
47516         Avoid the double-free (first in fts_read, second in fts_close) that
47517         would occur when an `active' directory is made inaccessible (e.g.,
47518         via chmod a-x) during a traversal.
47519         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47520         before returning.  Reproduce this failure by
47521         mkdir -p a/b; cd a; chmod a-x . b
47522         Reported by Stavros Passas.
47523
47524 2006-01-25  Jim Meyering  <jim@meyering.net>
47525
47526         * lib/fileblocks.c: Remove more useless parentheses.
47527         * lib/readutmp.h: Likewise.
47528
47529 2006-01-25  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47532         warnings.
47533         Reported by Paul Eggert.
47534
47535 2006-01-25  Bruno Haible  <bruno@clisp.org>
47536
47537         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47538         rid of a trap command. For Solaris sh.
47539         Reported by Mark D. Baushke <mdb@gnu.org>.
47540
47541 2006-01-24  Simon Josefsson  <jas@extundo.com>
47542
47543         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47544         Bruno.
47545
47546 2006-01-24  Karl Berry  <karl@gnu.org>
47547
47548         * config/srclist.txt (argp-namefrob.h): sync lost.
47549
47550 2006-01-24  Jim Meyering  <jim@meyering.net>
47551
47552         * modules/openat (Files): Add lib/intprops.h.
47553         From Mark D. Baushke.
47554
47555 2006-01-24  Jim Meyering  <jim@meyering.net>
47556
47557         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47558         Reported by Mark D. Baushke.
47559
47560 2006-01-24  Jim Meyering  <jim@meyering.net>
47561
47562         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47563
47564 2006-01-24  Bruno Haible  <bruno@clisp.org>
47565
47566         * modules/strnlen (Maintainer): Change from glibc to all.
47567
47568 2006-01-24  Bruno Haible  <bruno@clisp.org>
47569
47570         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47571         Patch by Paul Eggert.
47572
47573 2006-01-24  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47576         already has it.
47577         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47578         2005-11-26.
47579
47580         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47581         'signed char' to avoid problems with the built-in _Bool type.
47582         Reported by Paul Eggert on 2005-11-26.
47583
47584 2006-01-24  Bruno Haible  <bruno@clisp.org>
47585
47586         * gnulib-tool (func_import): Avoid constructing complicated sed
47587         expressions inside backquote.
47588         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47589
47590 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47591
47592         These changes imported from libc.
47593         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47594         test and two separate function calls.
47595         * lib/strndup.c (__strndup): Add libc_hidden_def.
47596
47597 2006-01-23  Simon Josefsson  <jas@extundo.com>
47598
47599         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47600         Remove the test_*_SOURCES variable: automake infers it by default.
47601         * modules/tls-tests: Likewise.
47602
47603 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47604
47605         Work around porting bugs reported by Dieter in
47606         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47607         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47608         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47609         Include "getopt.h" first, to check interface.
47610         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47611         !HAVE_DECL_GETENV.
47612         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47613         (__strndup): Revert to K&R-style function dfns, the glibc style.
47614         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47615         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47616         Include strnlen.h first, to get prototype properly.
47617         (strnlen): Renamed from __strnlen.
47618         Remove weak alias.
47619
47620 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47621
47622         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47623
47624 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47625
47626         * config/srclist.txt: Adjust to reflect glibc reorganization.
47627         This affects only comments.
47628
47629 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47630
47631          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47632          Reported by Bruce Korb <bkorb@gnu.org>.
47633
47634 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47635
47636         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47637         to pacify gcc -Wswitch-default.
47638
47639 2006-01-22  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47642         temporary buffer for sprintf, take into account the precision also
47643         for 'd', 'i', 'u', 'o', 'x', 'X'.
47644
47645 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47646
47647         * modules/argp-tests: New module
47648         * tests/test-argp.c: New file
47649         * tests/test-argp-2.sh: New file
47650
47651 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47652
47653         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47654         (__argp_base_name): Removed
47655         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47656         typo.
47657         (__argp_base_name): Provide macro definition or extern declaration
47658         depending on the configuration
47659
47660 2006-01-20  Simon Josefsson  <jas@extundo.com>
47661
47662         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47663
47664 2006-01-20  Simon Josefsson  <jas@extundo.com>
47665
47666         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47667
47668 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47671         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47672         Suggested by Bruno Haible.
47673
47674 2006-01-20  Karl Berry  <karl@gnu.org>
47675
47676         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47677         until changes propagate, I guess.
47678
47679 2006-01-19  Simon Josefsson  <jas@extundo.com>
47680
47681         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47682
47683 2006-01-19  Simon Josefsson  <jas@extundo.com>
47684
47685         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47686
47687 2006-01-19  Simon Josefsson  <jas@extundo.com>
47688
47689         * gnulib-tool: Set check_PROGRAMS.
47690
47691         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47692         modules/des-tests, modules/gc-arcfour-tests,
47693         modules/gc-arctwo-tests, modules/gc-des-tests,
47694         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47695         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47696         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47697         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47698         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47699         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47700         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47701         test_*_SOURCES.
47702
47703 2006-01-18  Simon Josefsson  <jas@extundo.com>
47704
47705         * modules/socklen (Depends-on): Depend on sys_socket.
47706
47707 2006-01-18  Simon Josefsson  <jas@extundo.com>
47708
47709         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47710         modules/des-tests, modules/gc-arcfour-tests,
47711         modules/gc-arctwo-tests, modules/gc-des-tests,
47712         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47713         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47714         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47715         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47716         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47717         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47718         $(EXEEXT) to automake TESTS variable, for mingw32.
47719
47720 2006-01-17  Simon Josefsson  <jas@extundo.com>
47721
47722         * modules/socklen (Include): Need sys/socket.h.
47723
47724 2006-01-17  Bruno Haible  <bruno@clisp.org>
47725
47726         * modules/ssize_t (Include): Add <sys/types.h>.
47727
47728 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47729
47730         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47731         it's not portable and it doesn't work with cross-compiles.
47732         Problem reported by Bruno Haible.  Fix missing-$ typo in
47733         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47734         -zignore from being used with Sun's C compiler.
47735
47736 2006-01-12  Simon Josefsson  <jas@extundo.com>
47737
47738         * lib/base64.c: Fix warning, reported by Bruno Haible
47739         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47740
47741 2006-01-12  Bruno Haible  <bruno@clisp.org>
47742
47743         * modules/ldd: New file.
47744         * build-aux/ldd.sh.in: New file.
47745         * MODULES.html.sh (Support for building libraries and executables): Add
47746         ldd.
47747
47748 2006-01-12  Bruno Haible  <bruno@clisp.org>
47749
47750         * m4/ldd.m4: New file.
47751
47752 2006-01-12  Bruno Haible  <bruno@clisp.org>
47753
47754         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47755         endless loop while replacing $auxdir with build-aux.
47756
47757 2006-01-11  Simon Josefsson  <jas@extundo.com>
47758
47759         * lib/stdint_.h (SIZE_MAX): Add missing (.
47760
47761 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47762
47763         Sync from coreutils.
47764         * lib/md5.c: Fix commentary typos.
47765         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47766         * lib/md5.h (__attribute__): Remove; unused.
47767         * lib/sha1.c: Fix commentary to match md5 better.
47768         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47769         so that we don't need to worry about alignment.  All uses changed.
47770         This merges the 2005-10-28 md5 change into sha1.
47771
47772 2006-01-11  Jim Meyering  <jim@meyering.net>
47773
47774         Sync from coreutils.
47775         * lib/md5.c (OP): Fix spacing.
47776
47777 2006-01-11  Bruno Haible  <bruno@clisp.org>
47778
47779         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47780         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47781         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47782
47783 2006-01-11  Bruno Haible  <bruno@clisp.org>
47784
47785         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47786         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47787         the "early" section as well.
47788
47789 2006-01-11  Bruno Haible  <bruno@clisp.org>
47790
47791         Avoid "ar: no archive members specified" error on MacOS X.
47792         * gnulib-tool (func_modules_add_dummy): New function.
47793         (func_import, func_create_testdir): Invoke it.
47794
47795 2006-01-11  Bruno Haible  <bruno@clisp.org>
47796
47797         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47798         with $auxdir in AC_CONFIG_FILES statements.
47799
47800 2006-01-11  Bruno Haible  <bruno@clisp.org>
47801
47802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47803         Initialize also noinst_HEADERS to empty.
47804
47805 2006-01-11  Bruno Haible  <bruno@clisp.org>
47806
47807         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47808         variables.
47809         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47810         autoreconf.
47811
47812 2006-01-11  Bruno Haible  <bruno@clisp.org>
47813
47814         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47815         overridable by the user.
47816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47817
47818 2006-01-10  Simon Josefsson  <jas@extundo.com>
47819
47820         * modules/sys_socket: New file.
47821
47822 2006-01-10  Simon Josefsson  <jas@extundo.com>
47823
47824         * m4/sys_socket_h.m4: New file.
47825
47826 2006-01-10  Simon Josefsson  <jas@extundo.com>
47827
47828         * lib/socket_.h: New file.
47829
47830 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47831
47832         * modules/readutmp (Maintainer): Add myself.
47833
47834 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47835
47836         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47837         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47838         People who are still concerned with buggy memcmp implementations
47839         can invoke gl_FUNC_MEMCMP themselves.
47840
47841 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47842
47843         * lib/regex_internal.h (BITSET_WORD_BITS):
47844         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47845         preprocessor mishandles large unsigned values as if they were signed.
47846         Problem reported by Claudio Fontana in
47847         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47848
47849 2006-01-10  Jim Meyering  <jim@meyering.net>
47850
47851         Avoid the double-free (first in fts_read, second in fts_close) that
47852         would occur when an `active' directory is made inaccessible (e.g.,
47853         via chmod a-x) during a traversal.
47854         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47855         before returning.  Reproduce this failure by
47856         mkdir -p a/b; cd a; chmod a-x . b
47857         Reported by Stavros Passas.
47858
47859         Sync from coreutils.
47860         * lib/sha1.c: Tweak grammar in a comment.
47861
47862 2006-01-10  Jim Meyering  <jim@meyering.net>
47863
47864         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47865         Patch by Joerg Sonnenberger.
47866
47867 2006-01-10  Bruno Haible  <bruno@clisp.org>
47868
47869         * modules/readutmp: Depend on module free.
47870         * modules/strtok_r: Depend on module restrict.
47871
47872 2006-01-10  Bruno Haible  <bruno@clisp.org>
47873
47874         * modules/gettext (configure.ac): Add an invocation of
47875         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47876
47877 2006-01-10  Bruno Haible  <bruno@clisp.org>
47878
47879         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47880         Reported by Werner Lemberg <wl@gnu.org>.
47881
47882 2006-01-10  Bruno Haible  <bruno@clisp.org>
47883
47884         * lib/localcharset.c: Update from GNU gettext.
47885
47886 2006-01-10  Bruno Haible  <bruno@clisp.org>
47887
47888         * lib/argp.h (__const): Remove macro. Use const instead.
47889         * lib/argp-fmtstream.h (__const): Likewise.
47890         * lib/glob_.h (__const): Remove macro.
47891         * lib/glob-libc.h: Use const instead of __const.
47892
47893 2006-01-10  Bruno Haible  <bruno@clisp.org>
47894
47895         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47896         variable.
47897         Needed to avoid an automake error regarding the 'gettext' module.
47898
47899 2006-01-09  Simon Josefsson  <jas@extundo.com>
47900
47901         * modules/inet_ntop (Depends-on): Add restrict.
47902
47903 2006-01-09  Simon Josefsson  <jas@extundo.com>
47904
47905         * modules/gc-rijndael-tests (License): Put under LGPL.
47906
47907         * modules/gc-des-tests (License): Likewise.
47908
47909         * modules/gc-arcfour-tests (License): Likewise.
47910
47911         * modules/gc-arctwo-tests (License): Likewise.
47912
47913         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47914
47915         * modules/gc-hmac-sha1-tests (Files): Likewise.
47916
47917         * modules/gc-hmac-md5-tests (License): Likewise.
47918
47919         * modules/gc-sha1-tests (License): Likewise.
47920
47921         * modules/gc-md5-tests (License): Likewise.
47922
47923         * modules/gc-md4-tests (License): Likewise.
47924
47925         * modules/gc-md2-tests (License): Likewise.
47926
47927         * modules/gc-tests (License): Likewise.
47928
47929         * modules/des-tests (License): Likewise.
47930
47931         * modules/md4-tests (License): Likewise.
47932
47933         * modules/md2-tests (License): Likewise.
47934
47935 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47936
47937         Sync from coreutils:
47938
47939         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47940         * modules/lib-ignore: New file.
47941         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47942         chdir-safer.m4, lchmod.m4.
47943         * modules/openat: Add mkdirat.c, openat-priv.h.
47944
47945 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         Sync from coreutils.
47948         * m4/lib-ignore.m4: New file.
47949         * m4/lchmod.m4: New file.
47950
47951 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         Sync from coreutils.
47954         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47955         for write access: POSIX says that must fail.
47956         * lib/fts.c (diropen): Likewise.
47957         * lib/save-cwd.c (save_cwd): Likewise.
47958         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47959         well, for minor improvements on hosts that lack O_DIRECTORY.
47960         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47961         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47962         Fall back on chown if open failed with EACCES.
47963
47964         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47965         Report an error at compile-time if only a 1-second nominal clock
47966         resolution is found.
47967
47968         * lib/lchmod.h: New file.
47969         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47970         (make_dir_parents): Use lchown rather than chown, and
47971         lchmod rather than chmod.
47972
47973         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47974         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47975         "proc" reported by n0dalus.
47976
47977         * lib/mountlist.c: Include <limits.h>.
47978         (dev_from_mount_options)
47979         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47980         New function.  It no longer assumes "dev=" has the System V meaning
47981         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47982         (read_file_system_list)
47983         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47984         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47985         dev= in that case.
47986
47987         * lib/posixtm.h (PDS_PRE_2000): New macro.
47988         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47989         allow_century.  All usages changed.  Reject dates outside the range
47990         1969-1999 if PDS_PRE_2000 is used.
47991
47992 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47993
47994         Sync from coreutils.
47995         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47996         (Time of day items): Mention the possibility of leap seconds.
47997         Problem reported by Dr. David Alan Gilbert.
47998
47999 2006-01-09  Jim Meyering  <jim@meyering.net>
48000
48001         Sync from coreutils.
48002
48003         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48004
48005         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48006
48007         * lib/modechange.c (mode_compile): Reject an invalid mode string
48008         that starts with an octal digit.  From Andreas Gruenbacher.
48009
48010         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48011         and dup to open_safer and dup_safer, respectively.
48012         (openat_permissive): Fix typo in comment.
48013
48014         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48015         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48016         (_): Remove; no longer needed.
48017         (openat): Renamed from rpl_openat; no need for rpl_openat
48018         since openat.h renames openat for us.
48019         Replace most of the body with a call to openat_permissive,
48020         to avoid duplicate code.
48021         Port to (probably hypothetical) environments were mode_t is
48022         wider than int.
48023         (openat_permissive): Require mode arg, so that we can check
48024         types better.  Put it just after flags.  Change cwd failure
48025         indicator from pointer-to-bool to pointer-to-errno-value.
48026         All callers changed.
48027         Invoke openat_save_fail and/or openat_restore_fail if
48028         cwd_errno is null, so that openat can call us.
48029         (openat_permissive, fdopendir, fstatat, unlinkat):
48030         Simplify errno handling to avoid some duplicate code,
48031         as it's OK to set errno on success.
48032         * lib/openat.h: Revamp code so that function macros depend on
48033         __OPENAT_PREFIX only, not also on AT_FDCWD.
48034         (openat_ro): Remove.  Caller changed to use openat_permissive.
48035         (openat_permissive): Now a macro, if not a function.
48036         (openat_restore_fail, openat_save_fail): Now always functions,
48037         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48038
48039         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48040         and openat.c.
48041         * lib/mkdirat.c: Include openat-priv.h.
48042         Remove definitions of macros defined therein.
48043         * lib/openat.c: Likewise.
48044
48045         * lib/mkdirat.c (mkdirat): New file and function.
48046         * lib/openat.h (mkdirat): Declare.
48047
48048         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48049
48050         * lib/openat.h (openat_permissive): Declare.
48051         (openat_ro): Define.
48052
48053         * lib/openat.c (EXPECTED_ERRNO): New macro.
48054         (openat_permissive): New function -- used in remove.c rewrite.
48055         (all functions): Set errno just before returning, only if there
48056         was an actual failure.
48057         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48058
48059         Emulate openat-family functions using Linux's procfs, if possible.
48060         Idea and some code based on Ulrich Drepper's glibc changes.
48061
48062         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48063         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48064         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48065         before falling back on save_cwd and restore_cwd.
48066         (fdopendir, fstatat, unlinkat): Likewise.
48067
48068         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48069         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48070
48071         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48072         as second argument to va_arg.  Otherwise, some versions of gcc
48073         warn that `if this code is reached, the program will abort'.
48074
48075 2006-01-09  Jim Meyering  <jim@meyering.net>
48076
48077         Sync from coreutils.
48078         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48079         Require openat-priv.h.
48080
48081 2006-01-09  Bruno Haible  <bruno@clisp.org>
48082
48083         * modules/strnlen (Include): Use strnlen.h.
48084
48085 2006-01-09  Bruno Haible  <bruno@clisp.org>
48086
48087         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48088
48089 2006-01-09  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/sysexit_.h (EX_OK): New macro.
48092         Suggested by Martin Lambers <marlam@marlam.de>.
48093
48094 2006-01-09  Bruno Haible  <bruno@clisp.org>
48095
48096         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48097         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48098
48099 2006-01-09  Bruno Haible  <bruno@clisp.org>
48100
48101         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48102         numbers.
48103
48104 2006-01-09  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48107         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48108         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48109         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48110
48111 2006-01-09  Bruno Haible  <bruno@clisp.org>
48112
48113         * build-aux/javacomp.sh.in: New file, moved from lib/.
48114         * modules/javacomp-script (Files): Update.
48115         (configure.ac): Add AC_CONFIG_FILES invocation.
48116         (EXTRA_DIST): Remove variable.
48117
48118         * build-aux/javaexec.sh.in: New file, moved from lib/.
48119         * modules/javaexec (Files): Update.
48120         (configure.ac): Add AC_CONFIG_FILES invocation.
48121         (EXTRA_DIST): Remove javaexec.sh.in.
48122
48123         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48124         * modules/csharpcomp-script (Files): Update.
48125         (configure.ac): Add AC_CONFIG_FILES invocation.
48126         (EXTRA_DIST): Remove variable.
48127
48128         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48129         * modules/csharpexec (Files): Update.
48130         (configure.ac): Add AC_CONFIG_FILES invocation.
48131         (EXTRA_DIST): Remove csharpexec.sh.in.
48132
48133 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48134
48135         Sync from coreutils.
48136
48137         Add POSIX ACL support
48138         * lib/acl.h (copy_acl, set_acl): Add declarations.
48139         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48140         systems other than Linux.
48141         (chmod_or_fchmod): New function: use fchmod when possible,
48142         and chmod otherwise.
48143         (file_has_acl): Add a POSIX ACL implementation, with a
48144         Linux-specific subcase.
48145         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48146         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48147         acls are unsupported.
48148         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48149         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48150         are unsupported.
48151
48152 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48153
48154         Sync from coreutils.
48155         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48156
48157 2006-01-07  Bruno Haible  <bruno@clisp.org>
48158
48159         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48160         gl_EARLY.
48161
48162 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48163
48164         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48165         Problem reported for Mingw by Mark Junker.
48166
48167 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48168
48169         * README: Gnulib normally doesn't generate a tarball.
48170
48171 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48174         long int, not int, for nanosecond counts, so that people who are
48175         used to POSIX struct timespec won't be surprised.  Reported by Jim
48176         Meyering.
48177
48178 2005-12-28  Bruno Haible  <bruno@clisp.org>
48179
48180         * build-aux/config.rpath: Update from GNU gettext.
48181
48182 2005-12-16  Jim Meyering  <jim@meyering.net>
48183
48184         * modules/fprintftime: New module.
48185         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48186
48187 2005-12-16  Jim Meyering  <jim@meyering.net>
48188
48189         * m4/fprintftime.m4: New file.
48190
48191 2005-12-16  Jim Meyering  <jim@meyering.net>
48192
48193         * lib/fprintftime.c, lib/fprintftime.h: New files.
48194
48195 2005-12-15  Simon Josefsson  <jas@extundo.com>
48196
48197         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48198         new m4/socklen.m4.
48199
48200 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48201
48202         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48203         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48204
48205 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48206
48207         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48208         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48209         struct uparams is valid. Fall back to the default values if it is
48210         not.
48211
48212 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48213
48214         * modules/argp (Files): Add argp-pin.c
48215         (Depends-on): dirname
48216         (lib_SOURCES): Add argp-pin.c
48217
48218 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48219
48220         * m4/argp.m4:  Check if program_invocation_name and
48221         program_invocation_short_name are declared and define appropriate
48222         macros if they are not.
48223
48224 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48225
48226         * lib/argp-help.c (__argp_base_name): New function
48227         (__argp_short_program_name): Rewrite using __argp_base_name
48228         * lib/argp-namefrob.h: Define program_invocation_name and
48229         program_invocation_short_name if requested
48230         (__argp_base_name): Add prototype
48231         * lib/argp-parse.c (argp_def): Use gettext wrappers
48232         (argp_default_parser): Use __argp_base_name
48233         * lib/argp-pin.c: New file. Defines program_invocation_name and
48234         program_invocation_short_name on systems that lack them.
48235
48236 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48237
48238         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48239         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48240         porting problem reported by Georg Schwarz in
48241         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48242
48243 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48244
48245         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48246         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48247         porting problem reported by Georg Schwarz in
48248         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48249
48250 2005-12-05  Bruno Haible  <bruno@clisp.org>
48251
48252         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48253         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48254         Reported by Mark Junker <mjscod@gmx.de>.
48255
48256 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48259         Use implementation from Albert Chin, with some
48260         comments/corrections by Stepan Kasal and myself.
48261
48262 2005-12-02  Bruno Haible  <bruno@clisp.org>
48263
48264         * gnulib-tool (func_import): Accept GPLed build tool modules when
48265         --lgpl is given.
48266         * modules/csharpcomp-script: New file.
48267         * modules/csharpcomp: Depend on it.
48268         * modules/javacomp-script: New file.
48269         * modules/javacomp: Depend on it.
48270         Suggested by Simon Josefsson.
48271
48272 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48273
48274         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48275         statement, to work around an HP-UX 10.20 compiler bug reported by
48276         Peter O'Gorman.
48277
48278 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48279
48280         * modules/savedir (Depends-on): Add openat.
48281
48282 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48285         (uintmax_t) [defined uintmax_t]: Do not declare.
48286         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48287         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48288         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48289         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48290         sake of portability to weird hosts that C allows (though we don't
48291         know of any practical examples).
48292
48293         * lib/savedir.h (fdsavedir): New decl.
48294         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48295         contains most of the former guts of savedir.
48296         (savedir): Use savedirstream.
48297         Include "openat.h".
48298
48299 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         * modules/obstack (Files): Add m4/ulonglong.m4.
48302         Problem reported by Davide Angelocola.
48303
48304 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48305
48306         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48307         coreutils no longer futzes with rounding modes.
48308
48309 2005-11-14  Jim Meyering  <jim@meyering.net>
48310
48311         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48312         replacement of mkstemp.
48313
48314 2005-11-10  Simon Josefsson  <jas@extundo.com>
48315
48316         * lib/readline.c: Remove EOL.
48317
48318 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         * modules/gethrxtime (Depends-on): Add gettime.
48321
48322 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48325         or gettimeofday; no longer needed.
48326
48327 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48330         time business.
48331         (gethrxtime) [! (HAVE_NANOUPTIME
48332         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48333         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48334         our own approximation.
48335
48336 2005-11-08  Eric Blake  <ebb9@byu.net>
48337
48338         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48339
48340 2005-11-08  Eric Blake  <ebb9@byu.net>
48341
48342         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48343
48344 2005-11-04  Bruno Haible  <bruno@clisp.org>
48345
48346         * gnulib-tool: Implement --update mode.
48347
48348 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48349
48350         Fix porting problem reported by Theodoros V. Kalamatianos.
48351         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48352         Don't assume that futimes failing means we must fail.
48353
48354 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48355
48356         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48357         variables to suggest the intended function of the PATH_MAX check.
48358
48359 2005-10-30  Kean Johnston  <jkj@sco.com>
48360
48361         Trivial changes to support SCO systems.
48362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48363         as PATH_MAX.
48364         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48365         where __ptr is null when no I/O is pending.
48366
48367 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48368
48369         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48370         leave errno alone.  Problem reported by Dmitry V. Levin.
48371
48372 2005-10-28  Simon Josefsson  <jas@extundo.com>
48373
48374         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48375         Test more.
48376
48377         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48378
48379         * modules/md2, modules/md2-tests: New files.
48380
48381 2005-10-28  Simon Josefsson  <jas@extundo.com>
48382
48383         * m4/inet_ntop.m4: More tests.
48384
48385         * m4/gc-md2.m4, md2.m4: New file.
48386
48387 2005-10-28  Simon Josefsson  <jas@extundo.com>
48388
48389         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48390         "restrict" keywords, as per POSIX.  Protect the function
48391         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48392         Don't use K&R prototypes.  Check the sprintf return values.
48393         Re-define EAFNOSUPPORT if not present.  Indent.
48394
48395         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48396         suggested by Bruno Haible <bruno@clisp.org>.
48397
48398         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48399
48400         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48401
48402         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48403         libgcrypt).
48404
48405         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48406
48407         * lib/md2.h, lib/md2.c: New files.
48408
48409 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48410
48411         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48412         errno alone.  Problem reported by Frederic Jolliton.
48413
48414 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48415
48416         * modules/verify (License): Change from GPL to LGPL.  This is a
48417         tiny module and there are apparently near-equivalents that are
48418         under the BSD license.
48419
48420 2005-10-24  Simon Josefsson  <jas@extundo.com>
48421
48422         * modules/sha1: Relicense to LGPL.
48423
48424 2005-10-24  Simon Josefsson  <jas@extundo.com>
48425
48426         * lib/md4.h: Shrink buffer size, now that we changed the type.
48427
48428 2005-10-23  Simon Josefsson  <jas@extundo.com>
48429
48430         * gnulib-tool (func_import): Fix --tests-base.
48431
48432 2005-10-22  Simon Josefsson  <jas@extundo.com>
48433
48434         * modules/arcfour (Depends-on): Need stdint.
48435
48436 2005-10-22  Simon Josefsson  <jas@extundo.com>
48437
48438         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48439         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48440
48441 2005-10-22  Simon Josefsson  <jas@extundo.com>
48442
48443         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48444         suggested by Bruno Haible <bruno@clisp.org>.
48445
48446 2005-10-22  Simon Josefsson  <jas@extundo.com>
48447
48448         * lib/crc.h: Include stddef.h, for size_t.
48449
48450 2005-10-22  Simon Josefsson  <jas@extundo.com>
48451
48452         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48453         arcfour_context struct (simplify test vector testing in GNU
48454         Shishi).
48455
48456 2005-10-21  Simon Josefsson  <jas@extundo.com>
48457
48458         * modules/des, modules/des-tests: New files.
48459
48460         * modules/gc-des, modules/gc-des-tests: New files.
48461
48462         * tests/test-des.c, tests/test-gc-des.c: New file.
48463
48464 2005-10-21  Simon Josefsson  <jas@extundo.com>
48465
48466         * modules/arctwo, modules/arctwo-tests: New files.
48467
48468         * tests/test-arctwo.c: New file.
48469
48470         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48471
48472         * tests/test-gc-arctwo.c: New file.
48473
48474 2005-10-21  Simon Josefsson  <jas@extundo.com>
48475
48476         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48477         Bruno Haible <bruno@clisp.org>.
48478
48479         * m4/gc-des.m4: New file.
48480
48481 2005-10-21  Simon Josefsson  <jas@extundo.com>
48482
48483         * m4/arctwo.m4: New file.
48484
48485         * m4/gc-arctwo.m4: New file.
48486
48487 2005-10-21  Simon Josefsson  <jas@extundo.com>
48488
48489         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48490         block.
48491
48492 2005-10-21  Simon Josefsson  <jas@extundo.com>
48493
48494         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48495         <bruno@clisp.org>.
48496
48497         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48498
48499         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48500         Bruno Haible <bruno@clisp.org>.
48501
48502         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48503         <bruno@clisp.org>.
48504
48505 2005-10-21  Simon Josefsson  <jas@extundo.com>
48506
48507         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48508
48509 2005-10-21  Simon Josefsson  <jas@extundo.com>
48510
48511         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48512
48513 2005-10-21  Simon Josefsson  <jas@extundo.com>
48514
48515         * lib/des.h, lib/des.c: New files.
48516
48517         * lib/gc-gnulib.c: Support DES.c
48518
48519 2005-10-21  Simon Josefsson  <jas@extundo.com>
48520
48521         * lib/arctwo.h, lib/arctwo.c: New files.
48522
48523         * lib/gc-gnulib.c: Support ARCTWO.
48524
48525 2005-10-21  Simon Josefsson  <jas@extundo.com>
48526
48527         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48528         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48529
48530 2005-10-21  Simon Josefsson  <jas@extundo.com>
48531
48532         * gnulib-tool (func_import, func_create_testdir): Define automake
48533         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48534         Makefile.am snippet),
48535         suggested by Bruno Haible <bruno@clisp.org>.
48536
48537         * modules/gc (Makefile.am): Use it.
48538
48539 2005-10-21  Bruno Haible  <bruno@clisp.org>
48540
48541         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48542         patch.
48543
48544 2005-10-19  Simon Josefsson  <jas@extundo.com>
48545
48546         * tests/test-gc-rijndael.c: New file.
48547
48548         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48549
48550 2005-10-19  Simon Josefsson  <jas@extundo.com>
48551
48552         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48553         interface too.
48554
48555 2005-10-19  Simon Josefsson  <jas@extundo.com>
48556
48557         * tests/test-gc-arcfour.c: New file.
48558
48559         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48560
48561 2005-10-19  Simon Josefsson  <jas@extundo.com>
48562
48563         * modules/gc-md4, modules/gc-md4-tests: New file.
48564
48565         * tests/test-gc-md4.c: New file.
48566
48567 2005-10-19  Simon Josefsson  <jas@extundo.com>
48568
48569         * m4/gc-md4.m4: New file.
48570
48571 2005-10-19  Simon Josefsson  <jas@extundo.com>
48572
48573         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48574         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48575         <kasal@ucw.cz>.
48576
48577 2005-10-19  Simon Josefsson  <jas@extundo.com>
48578
48579         * m4/gc-arcfour.m4: New file.
48580
48581         * m4/gc-rijndael.m4: New file.
48582
48583 2005-10-19  Simon Josefsson  <jas@extundo.com>
48584
48585         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48586
48587 2005-10-19  Simon Josefsson  <jas@extundo.com>
48588
48589         * lib/gc-gnulib.c: Support ARCFOUR.
48590
48591 2005-10-19  Simon Josefsson  <jas@extundo.com>
48592
48593         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48594         support.
48595
48596         * lib/gc.h: Add ECB enum type.
48597
48598         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48599
48600 2005-10-18  Simon Josefsson  <jas@extundo.com>
48601
48602         * tests/test-md5.c: New file.
48603
48604         * modules/md5-tests: New file.
48605
48606 2005-10-18  Simon Josefsson  <jas@extundo.com>
48607
48608         * tests/test-md4.c: New file.
48609
48610         * modules/md4, modules/md4-tests: New files.
48611
48612 2005-10-18  Simon Josefsson  <jas@extundo.com>
48613
48614         * m4/md4.m4: New file.
48615
48616 2005-10-18  Simon Josefsson  <jas@extundo.com>
48617
48618         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48619
48620 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48621
48622         * gnulib-tool (func_create_testdir): Omit the second check whether
48623         BUILT_SOURCES in nonempty.
48624
48625 2005-10-17  Simon Josefsson  <jas@extundo.com>
48626
48627         * tests/test-rijndael.c: New file.
48628
48629 2005-10-17  Simon Josefsson  <jas@extundo.com>
48630
48631         * modules/sha1: Depend on stdint instead of md5.
48632
48633         * modules/md5: Depend on stdint, remove uint32_t.
48634
48635 2005-10-17  Simon Josefsson  <jas@extundo.com>
48636
48637         * modules/gc-sha1-tests: New file.
48638
48639         * tests/test-gc-sha1.c: New file.
48640
48641 2005-10-17  Simon Josefsson  <jas@extundo.com>
48642
48643         * m4/md5.m4: Remove call to uint32_t.m4.
48644
48645 2005-10-17  Simon Josefsson  <jas@extundo.com>
48646
48647         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48648
48649         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48650         md5.h.
48651
48652         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48653
48654         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48655
48656 2005-10-17  Simon Josefsson  <jas@extundo.com>
48657
48658         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48659
48660 2005-10-17  Simon Josefsson  <jas@extundo.com>
48661
48662         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48663
48664 2005-10-17  Simon Josefsson  <jas@extundo.com>
48665
48666         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48667
48668         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48669
48670 2005-10-17  Bruno Haible  <bruno@clisp.org>
48671
48672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48673         that it can also be used in a test.
48674
48675 2005-10-16  Bruno Haible  <bruno@clisp.org>
48676
48677         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48678         TESTS_ENVIRONMENT, so that individual tests can augment it.
48679
48680         * gnulib-tool (func_create_testdir): Use an intermediate target for
48681         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48682         macros, like $(ALLOCA_H), which cannot be passed through the command
48683         line.
48684
48685 2005-10-15  Simon Josefsson  <jas@extundo.com>
48686
48687         * modules/rijndael-tests: New file.
48688
48689         * modules/rijndael: New file.
48690
48691 2005-10-15  Simon Josefsson  <jas@extundo.com>
48692
48693         * m4/rijndael.m4: New file.
48694
48695 2005-10-15  Simon Josefsson  <jas@extundo.com>
48696
48697         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48698
48699         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48700
48701 2005-10-14  Simon Josefsson  <jas@extundo.com>
48702
48703         * tests/test-arcfour.c: New file.
48704
48705         * modules/arcfour, modules/arcfour-tests: New files.
48706
48707 2005-10-14  Simon Josefsson  <jas@extundo.com>
48708
48709         * m4/arcfour.m4: New file.
48710
48711 2005-10-14  Simon Josefsson  <jas@extundo.com>
48712
48713         * lib/arcfour.h, lib/arcfour.c: New files.
48714
48715 2005-10-14  Roland McGrath  <roland@redhat.com>
48716
48717         Import from libc.  [BZ #1331]
48718         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48719         macro argument.
48720         Reported by Matej Vela <vela@debian.org>.
48721
48722 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48725         include <wchar.h>; no longer needed.
48726
48727 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48728
48729         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48730
48731 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48732         and  Ulrich Drepper  <drepper@redhat.com>
48733
48734         Import from libc.
48735         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48736         instead of inline stream orientation test and two separate
48737         function calls.  Pay no attention to USE_IN_LIBIO.
48738
48739 2005-10-13  Simon Josefsson  <jas@extundo.com>
48740
48741         * modules/gc-hmac-md5-tests: New file.
48742
48743         * tests/test-gc-hmac-sha1.c: New file.
48744
48745         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48746
48747         * modules/gc-hmac-md5-tests: New file.
48748
48749         * tests/test-gc-md5.c: New file.
48750
48751         * modules/gc-md5-tests: New file.
48752
48753 2005-10-13  Simon Josefsson  <jas@extundo.com>
48754
48755         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48756         Move memory allocation outside of loop.
48757
48758 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48759
48760         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48761         intermediate directory is in a read-only file system.  Problem
48762         reported by Eric Blake.
48763
48764 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48765
48766         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48767
48768 2005-10-12  Simon Josefsson  <jas@extundo.com>
48769
48770         * tests/test-hmac-sha1.c: New file.
48771
48772         * modules/hmac-sha1-tests: New file.
48773
48774         * modules/hmac-sha1: New file.
48775
48776 2005-10-12  Simon Josefsson  <jas@extundo.com>
48777
48778         * modules/gc-sha1: New file.
48779
48780 2005-10-12  Simon Josefsson  <jas@extundo.com>
48781
48782         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48783
48784         * tests/test-gc-pbkdf2-sha1.c: New file.
48785
48786 2005-10-12  Simon Josefsson  <jas@extundo.com>
48787
48788         * modules/gc-md5, modules/gc-hmac-md5: New files.
48789
48790         * modules/gc (Files): Remove md5, memxor and hmac files.
48791
48792 2005-10-12  Simon Josefsson  <jas@extundo.com>
48793
48794         * m4/gc-pbkdf2-sha1.m4: New file.
48795
48796         * m4/gc-hmac-sha1.m4: New file.
48797
48798         * m4/gc-sha1: New file.
48799
48800         * m4/hmac-sha1.m4: New file.
48801
48802 2005-10-12  Simon Josefsson  <jas@extundo.com>
48803
48804         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48805
48806         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48807
48808 2005-10-12  Simon Josefsson  <jas@extundo.com>
48809
48810         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48811         suggested by Bruno Haible <bruno@clisp.org>.
48812
48813 2005-10-12  Simon Josefsson  <jas@extundo.com>
48814
48815         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48816
48817 2005-10-12  Simon Josefsson  <jas@extundo.com>
48818
48819         * lib/gc-pbkdf2-sha1.c: New file.
48820
48821         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48822
48823 2005-10-12  Simon Josefsson  <jas@extundo.com>
48824
48825         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48826
48827         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48828
48829 2005-10-12  Simon Josefsson  <jas@extundo.com>
48830
48831         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48832         GC_USE_HMAC_MD5, respectively.
48833
48834         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48835         (gc_md5): Fix typo.
48836
48837         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48838
48839         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48840
48841         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48842
48843 2005-10-12  Bruno Haible  <bruno@clisp.org>
48844
48845         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48846         Reported by Stepan Kasal <kasal@ucw.cz>.
48847
48848 2005-10-11  Simon Josefsson  <jas@extundo.com>
48849
48850         * tests/test-crc.c: New file.
48851
48852         * modules/crc, modules/crc-tests: New files.
48853
48854 2005-10-11  Simon Josefsson  <jas@extundo.com>
48855
48856         * m4/crc.m4: New file.
48857
48858 2005-10-11  Simon Josefsson  <jas@extundo.com>
48859
48860         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48861
48862         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48863
48864         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48865
48866 2005-10-11  Simon Josefsson  <jas@extundo.com>
48867
48868         * lib/crc.h, lib/crc.c: New files.
48869
48870         * lib/gc.h (gc_hash_buffer): Add doc.
48871
48872 2005-10-11  Bruno Haible  <bruno@clisp.org>
48873
48874         * modules/c-strcasestr: New file.
48875         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48876
48877 2005-10-11  Bruno Haible  <bruno@clisp.org>
48878
48879         * modules/c-strcase: New file.
48880         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48881
48882 2005-10-11  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/strcasecmp.c: Include limits.h.
48885         (strcasecmp): Avoid integer overflow on exotic platforms.
48886         * lib/strncasecmp.c: Include limits.h.
48887         (strncasecmp): Avoid integer overflow on exotic platforms.
48888         Reported by Paul Eggert.
48889
48890 2005-10-11  Bruno Haible  <bruno@clisp.org>
48891
48892         * lib/c-strcasestr.h: New file, from GNU gettext.
48893         * lib/c-strcasestr.c: New file, from GNU gettext.
48894
48895 2005-10-11  Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/c-strcase.h: New file, from GNU gettext.
48898         * lib/c-strcasecmp.c: New file, from GNU gettext.
48899         * lib/c-strncasecmp.c: New file, from GNU gettext.
48900
48901 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * modules/mempcpy (License): GPL -> LGPL.
48904         * modules/strchrnul (License): Likewise.
48905         * modules/sysexits (License): Likewise.
48906
48907 2005-10-08  Simon Josefsson  <jas@extundo.com>
48908
48909         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48910
48911 2005-10-07  Simon Josefsson  <jas@extundo.com>
48912
48913         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48914
48915 2005-10-06  Simon Josefsson  <jas@extundo.com>
48916
48917         * tests/test-hmac-md5.c: New file.
48918
48919         * modules/hmac-md5-tests: New file.
48920
48921         * modules/hmac-md5: New file.
48922
48923 2005-10-06  Simon Josefsson  <jas@extundo.com>
48924
48925         * m4/hmac-md5.m4: New file.
48926
48927         * m4/memxor.m4: Require gl_C_RESTRICT.
48928
48929 2005-10-06  Simon Josefsson  <jas@extundo.com>
48930
48931         * lib/memxor.c (memxor): Avoid casts and warnings.
48932
48933 2005-10-06  Simon Josefsson  <jas@extundo.com>
48934
48935         * lib/hmac-md5.c: New file.
48936
48937         * lib/hmac.h: New file.
48938
48939 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48940
48941         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48942         promotes to int, not unsigned int, to catch the AIX 5.3
48943         compiler bug.
48944
48945 2005-10-05  Simon Josefsson  <jas@extundo.com>
48946
48947         * modules/memxor: New file.
48948
48949         * modules/iconv (Files): Move config.rpath to havelib, it is used
48950         there.
48951
48952         * modules/havelib (Files): Add config.rpath.
48953
48954 2005-10-05  Simon Josefsson  <jas@extundo.com>
48955
48956         * m4/memxor.m4: New file.
48957
48958 2005-10-05  Simon Josefsson  <jas@extundo.com>
48959
48960         * lib/memxor.c (memxor): Fix compiler error.
48961
48962         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48963         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48964
48965         * lib/memxor.h, lib/memxor.c: New files.
48966
48967         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48968         we assume all systems have it, suggested by Jim Meyering
48969         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48970         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48971         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48972         same reasons.
48973
48974 2005-10-05  Simon Josefsson  <jas@extundo.com>
48975
48976         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48977
48978 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48981         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48982         needed, since the source code now assumes these .h files.
48983
48984 2005-10-05  Derek Price  <derek@ximbiot.com>
48985
48986         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48987
48988 2005-10-05  Bruno Haible  <bruno@clisp.org>
48989
48990         * modules/stdint (License): Change to LGPL.
48991
48992 2005-10-04  Simon Josefsson  <jas@extundo.com>
48993
48994         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48995         D. Baushke" <mdb@gnu.org>.
48996
48997 2005-10-04  Bruno Haible  <bruno@clisp.org>
48998
48999         * lib/verify.h (verify_true): Provide alternative definition for C++.
49000
49001 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49002
49003         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49004         (SSIZE_MAX): New macro, if not already defined.
49005         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49006         than 2 GiB.
49007
49008 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49009
49010         Sync from coreutils.
49011         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49012         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49013         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49014         ULLONG_MAX doesn't work with 2.7.2.1.
49015
49016 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49017
49018         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49019         From Ben Pfaff.
49020
49021         * modules/exclude (Depends-on): Depend on verify.
49022         * modules/strtoimax (Depends-on): Likewise.
49023         * modules/utimecmp (Depends-on): Likewise.
49024
49025 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49026
49027         * lib/exclude.c: Include verify.h.
49028         (verify): Remove.  All callers changed to use verify.h's version.
49029         * lib/strtoimax.c: Likewise.
49030         * lib/utimecmp.c: Likewis.e
49031
49032         Sync from coreutils.
49033         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49034         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49035         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49036         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49037         bother returning ENOSYS if settimeofday or stime fails; just let
49038         them return whatever errno they want to return.
49039         * lib/utimens.c: Include unistd.h, for dup2.
49040         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49041         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49042
49043 2005-10-02  Jim Meyering  <jim@meyering.net>
49044
49045         Sync from coreutils.
49046         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49047         from glibc-2.2.5 that fails for read-only files.
49048
49049 2005-10-02  Jim Meyering  <jim@meyering.net>
49050
49051         Sync from coreutils.
49052         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49053         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49054         `#if HAVE_CONFIG_H'.
49055         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49056         Remove AT_FDCWD test.
49057         Do not consume the fd unless successful.
49058         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49059         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49060         block, so that we don't even try to compile it if settimeofday is
49061         available.  This works around a compilation failure on OSF1 V5.1,
49062         due to stime requiring a `long int*' while tv_sec is `int'.
49063
49064 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49065
49066         Sync from coreutils.
49067         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49068         against `yes', rather than just testing for nonempty.
49069
49070 2005-10-01  Simon Josefsson  <jas@extundo.com>
49071
49072         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49073         and Darwin.
49074
49075         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49076         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49077         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49078         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49079         Check if struct addrinfo is declared.
49080
49081 2005-10-01  Simon Josefsson  <jas@extundo.com>
49082
49083         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49084         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49085         AI_* and EAI_* definitions.  Protect function declarations.
49086
49087 2005-10-01  Jim Meyering  <jim@meyering.net>
49088
49089         Sync from coreutils.
49090
49091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49092         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49093         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49095         in the inet and nsl libraries.  Required on Solaris 5.7.
49096
49097 2005-10-01  Jim Meyering  <jim@meyering.net>
49098
49099         Sync from coreutils.
49100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49101         in the inet and nsl libraries.  Required on Solaris 5.7.
49102
49103 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49104
49105         * lib/getdelim.c (getdelim): Remove unused variables.
49106
49107 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49108
49109         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49110         so that the code works even with ancient cpp.  Portability problem
49111         with GCC 2.7.2.1 reported by Thomas M.Ott.
49112
49113 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49114
49115         * modules/regex (Depends-on): Add strcase.
49116
49117         * modules/gethostname (Licence): Change from GPL to LGPL, since
49118         gethostname.c is a trivial implementation of a standard library
49119         function.
49120         * modules/poll (License): Change from GPL to LGPL, since it's
49121         derived from LGPL code.
49122
49123 2005-09-27  Jim Meyering  <jim@meyering.net>
49124
49125         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49126         HAVE_CONFIG_H.
49127
49128         * lib/intprops.h (signed_type_or_expr__): Define.
49129         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49130         for unsigned types.
49131
49132 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         * lib/verify.h (verify_expr): Remove, replacing with:
49135         (verify_true): New macro that returns true instead of void.
49136         (verify_type__): Remove.
49137         (verify): Use verify_true rather than verify_type__.
49138
49139 2005-09-26  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49142         is necessary.
49143         (lib_SOURCES): Remove mbchar.c.
49144         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49145         (Files): Add m4/mbrtowc.m4.
49146         * modules/mbiter: Likewise.
49147         * modules/mbuiter: Likewise.
49148
49149 2005-09-26  Bruno Haible  <bruno@clisp.org>
49150
49151         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49152         compile mbchar.c if they are not both present.
49153         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49154         * m4/mbiter.m4 (gl_MBITER): Likewise.
49155         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49156         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49157         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49158
49159 2005-09-25  Jim Meyering  <jim@meyering.net>
49160
49161         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49162         also uses socklen_t.
49163
49164 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49165
49166         * lib/utimens.c (ENOSYS): Define if not already defined.
49167         (futimens): Support having a null PATH if the file descriptor
49168         is nonnegative.
49169
49170         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49171         Remove.
49172         (__attribute): Define to empty unless GCC 3.1 or later.
49173         This works around a core dump on OpenBSD 3.4, which has GCC
49174         2.95.3, which dumps core when given __attribute__(()).  It also
49175         simplifies other tests, since we really don't want to bother with
49176         worrying about which ancient version of GCC supported what.
49177         Original problem reported by Yoann Vandoorselaere, with part of
49178         the fix suggested by Derek Price.
49179
49180 2005-09-24  Jim Meyering  <jim@meyering.net>
49181
49182         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49183         so we can once again use a positive bitfield width of 1 -- now we
49184         don't have to explain why we were using a bitfield width of 2.
49185
49186 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49187
49188         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49189         and similarly for the other external symbols.  Problem reported
49190         by James Gallager.
49191
49192         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49193         bug reported by Jim Meyering.
49194
49195         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49196         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49197         not needed, since socklen is a prerequisite module.
49198
49199 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49200
49201         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49202         Problem reported by Eric Blake.
49203         (getaddrinfo): Initialize se so that it's not garbage.
49204         Redo internal storage allocation so that it doesn't make unportable
49205         assumptions about alignment.
49206         Fix a memory leak.
49207
49208         * lib/utimens.c (futimens): Use futimesat if available.
49209         Prefer it to futimes since it doesn't have the futimes bug.
49210
49211         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49212         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49213         Instead, declare a function that returns a pointer to an array,
49214         and use verify_type__ to declare the size of the array.
49215         Problem and germ of a solution reported by Bruno Haible.
49216         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49217         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49218
49219 2005-09-23  Jim Meyering  <jim@meyering.net>
49220
49221         Sync from coreutils.
49222         Correct build failure (socklen_t not defined) on at least
49223         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49225
49226 2005-09-23  Jim Meyering  <jim@meyering.net>
49227
49228         * modules/getaddrinfo (Depends-on): Add socklen.
49229
49230 2005-09-23  Bruno Haible  <bruno@clisp.org>
49231
49232         * tests/test-verify.c: New file.
49233
49234 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49235
49236         Sync from coreutils.
49237
49238         * modules/argmatch (Depends-on): Add verify.
49239         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49240         unistd-safer.
49241         * modules/save-cwd (Depends-on): Likewise.
49242
49243         * modules/openat (Files): Add lib/openat-die.c.
49244         (Depends-on): Remove error, exitfail.
49245         Add dirname.
49246
49247         * modules/verify: New file.
49248         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49249         with "verify" module.
49250
49251 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         Sync from coreutils.
49254
49255         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49256         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49257         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49258         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49259         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49260         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49261         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49262         Don't bother checking for string.h, stdlib.h, unistd.h.
49263         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49264         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49265         module's job.
49266         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49267         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49268
49269         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49270         (gl_GETDATE): Use it.
49271
49272         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49273
49274 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         Sync from coreutils.
49277
49278         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49279         stat-time.h.
49280         * lib/argmatch.h: Include verify.h
49281         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49282         (ARGMATCH_ASSERT): Remove; unused.
49283         * lib/canonicalize.c: Assume STDC_HEADERS.
49284         * lib/exclude.c: Include "strcase.h".
49285         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49286         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49287         and stdio-safer.h.
49288         (getusershell): Call fopen, not fopen_safer.
49289         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49290         Do not include unistd-safer.h.
49291         (save_cwd): Don't call fd_safer; no longer needed
49292         now that we include fcntl--.h.
49293
49294         * lib/getdate.y (relative_time): New type.
49295         (RELATIVE_TIME_0): New constant.
49296         (parser_control): Use relative_time instead of doing it ourselves.
49297         (%union): Add new relative_time rel member.
49298         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49299         Now typeless.
49300         (relunit, relunit_snumber): Now of type rel.
49301         (zone, rel, relunit, get_date): Adjust to above changes.
49302
49303         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49304         Do not include unistd-safer.h.
49305         (getloadavg): Don't call fd_safer; no longer needed
49306         now that we include fcntl--.h.
49307
49308         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49309         (make_dir_parents): Treat ENOSYS like EEXIST.
49310
49311         Improve quality of diagnostics on restore_cwd failure.
49312         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49313         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49314         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49315         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49316         each time through the loop.  Do not diagnose restore_cwd failure;
49317         that is the caller's job (and perhaps the caller does not care).
49318
49319         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49320         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49321         If the file already exists but is not a directory, don't bother
49322         to try to make its parents.
49323         Close potential file descriptor leak if we can't chdir("/") (!).
49324         Don't always return true if chdir($PWD) fails; return true only
49325         if the requested action was done successfully (except for the
49326         chdir($PWD)).
49327         Don't log final directory unless we actually made it.
49328         Refactor to avoid duplicate code to fix up permissions.
49329         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49330
49331         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49332         to make it a bit faster and (I hope) clearer.
49333         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49334         Fix bug in formats like %2N.
49335
49336         * lib/verify.h: New file.
49337
49338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49339
49340         Sync from coreutils.
49341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49342
49343 2005-09-22  Jim Meyering  <jim@meyering.net>
49344
49345         Sync from coreutils.
49346
49347         * m4/lstat.m4 (gl_FUNC_LSTAT):
49348         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49349         Remove obsolete comment.
49350         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49351         * m4/xstrtod.m4: Likewise.
49352
49353         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49354
49355 2005-09-22  Jim Meyering  <jim@meyering.net>
49356
49357         Sync from coreutils.
49358
49359         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49360
49361         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49362         the .tm_year member, since otherwise gcc-4.0 would now warn about
49363         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49364
49365         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49366         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49367
49368         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49369         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49370         when run in a time zone for which daylight savings time is in effect
49371         for the starting date.
49372
49373         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49374         stop us from restricting permissions of just-created absolute-named
49375         directories.
49376         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49377         to restore initial working directory.
49378         * lib/mkdir-p.c (make_dir_parents): New parameter:
49379         different_working_dir, to tell caller if/when we change the working
49380         directory and are unable to return to the initial one.
49381         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49382         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49383         `return false'.  This fixes a bug introduced on 2004-07-30.
49384
49385         * lib/openat.c (fdopendir): Be sure to close the supplied
49386         file descriptor before returning.  This makes our replacement
49387         implementation a little closer to Solaris's, where fdopendir
49388         ties the file descriptor to the returned DIR* pointer.
49389         * lib/openat.c (unlinkat): New function.
49390         * lib/openat.h (unlinkat): Add prototype.
49391         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49392         (openat_restore_fail): Rename from openat_restore_die.
49393         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49394
49395         Provide an alternative to exiting immediately upon save_cwd or
49396         restore_cwd failure.  Now, an application can arrange e.g.,
49397         to perform a longjump in that case.
49398         * lib/openat.c: Include dirname.h.
49399         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49400         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49401         and openat_restore_die rather than calling error directly.
49402         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49403
49404         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49405         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49406         define.
49407
49408         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49409         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49410                             int utc, int nanoseconds);
49411         Background:
49412         date should not have to allocate a megabyte of virtual memory to
49413         handle a format argument like +%1048575T.  When implemented with
49414         strftime, it must allocate such a buffer, use strftime to fill it
49415         in, print it, then free it.
49416         With fprintftime, it simply prints everything and exits.
49417         With no need for memory allocation, that's one fewer way to fail.
49418         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49419         optional field width, not before, so we accept %9:z, not %:9z.
49420         (my_strftime): Be sure to use L_('x') for literals.
49421
49422         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49423         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49424         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49425         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49426         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49427         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49428         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49429         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49430         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49431         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49432         * lib/xgethostname.c, lib/xreadlink.c:
49433         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49434
49435         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49436         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49437         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49438         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49439         and don't include <sys/file.h>).
49440
49441 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49442
49443         Sync from coreutils.
49444
49445         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49446         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49447         [!LDAV_DONE]: Avoid unused variable warning.
49448
49449 2005-09-21  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/unicodeio.h (unicode_to_mb): New declaration.
49452
49453 2005-09-20  Derek Price  <derek@ximbiot.com>
49454
49455         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49456         getaddrinfo.h.
49457
49458 2005-09-20  Bruno Haible  <bruno@clisp.org>
49459
49460         * gnulib-tool: Remove trailing slashes from the values specified for
49461         --source-base, --m4-base, --tests-base, --aux-dir.
49462         Suggested by Simon Josefsson <jas@extundo.com>.
49463
49464 2005-09-20  Bruno Haible  <bruno@clisp.org>
49465
49466         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49467         func_modules_to_filelist, func_import, func_create_testdir): Make all
49468         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49469         change when gnulib-tool is invoked in a different locale.
49470
49471 2005-09-19  Simon Josefsson  <jas@extundo.com>
49472
49473         * m4/socklen.m4: Fix typo.
49474
49475 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49476
49477         Use a consistent style for including <config.h>.
49478         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49479         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49480         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49481         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49482         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49483         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49484         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49485         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49486         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49487         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49488         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49489         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49490         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49491         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49492         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49493         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49494         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49495         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49496         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49497         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49498         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49499         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49500         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49501         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49502         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49503         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49504         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49505         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49506         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49507         lib/xstrtoumax.c, lib/yesno.c:
49508         Standardize inclusion of config.h.
49509         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49510         lib/inttostr.h:  Removed inclusion of config.h from header files.
49511         * lib/inttostr.c:  Adjusted in-tree users.
49512         * lib/timespec.h: Remove superfluous warning to include config.h.
49513         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49514         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49515         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49516         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49517         config.h with HAVE_CONFIG_H.
49518
49519 2005-09-19  Jim Meyering  <jim@meyering.net>
49520
49521         * modules/pathmax (License): Change to LGPL.
49522
49523 2005-09-19  Derek Price  <derek@ximbiot.com>
49524
49525         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49526
49527 2005-09-19  Bruno Haible  <bruno@clisp.org>
49528
49529         * gnulib-tool (import): Provide default for --tests-base.
49530
49531 2005-09-19  Bruno Haible  <bruno@clisp.org>
49532
49533         * doc/quote.texi: New file, extracted from gnulib.texi.
49534         * doc/ctime.texi: New file, extracted from gnulib.texi.
49535         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49536         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49537         * doc/gnulib.texi: Include them.
49538
49539 2005-09-18  Bruno Haible  <bruno@clisp.org>
49540
49541         Portability fix.
49542         * gnulib-tool (func_readlink): New function.
49543         (func_ln_if_changed): Use it.
49544
49545 2005-09-18  Bruno Haible  <bruno@clisp.org>
49546
49547         * gnulib-tool: Support --with-tests also with --import.
49548         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49549         (func_import): Use variables $testsbase and $inctests. Emit a
49550         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49551         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49552         SUBDIRS += $testsdir.
49553         (func_create_testdir): Update.
49554
49555 2005-09-18  Bruno Haible  <bruno@clisp.org>
49556
49557         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49558         instead of $dry_run.
49559         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49560         (func_ln_if_changed): Don't handle dry-run here.
49561         (func_import): In dry-run mode, detect more precisely which actions
49562         would be performed, and don't use "...ing" verbs.
49563
49564 2005-09-18  Bruno Haible  <bruno@clisp.org>
49565
49566         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49567         (func_import): Use join on two temporary files instead of three nested
49568         loops, in order to determine which files are new or old.
49569
49570 2005-09-18  Bruno Haible  <bruno@clisp.org>
49571
49572         * gnulib-tool (func_import): Comment out code that spits out the
49573         new files with --dry-run.
49574
49575 2005-09-18  Bruno Haible  <bruno@clisp.org>
49576
49577         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49578
49579 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49580
49581         * lib/stat-time.h: New file.
49582         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49583         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49584         in a different way.
49585         (timespec_cmp): New function.
49586         * lib/utimecmp.c: Include stat-time.h.
49587         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49588         members exist, not on the obsolescent ST_MTIM_NSEC.
49589         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49590
49591 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49594
49595 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         * MODULES.html.sh (File system functions): Add stat-time.
49598         * modules/stat-time: New file.
49599         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49600         is now done in a different way, by the stat-time module.
49601         * modules/utimecmp (Depends-on): Add stat-time.
49602
49603 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49604
49605         * m4/st_mtim.m4: Remove.  Superseded by...
49606         * m4/stat-time.m4: New file.
49607         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49608         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49609
49610 2005-09-15  Derek Price  <derek@ximbiot.com>
49611
49612         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49613
49614 2005-09-15  Derek Price  <derek@ximbiot.com>
49615
49616         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49617         * lib/regex_internal.c: Ditto, using this...
49618         (__GNUC_PREREQ): ...new macro.
49619         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49620         using...
49621         (__GNUC_PREREQ): ...this new macro.
49622
49623         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49624
49625 2005-09-15  Derek Price  <derek@ximbiot.com>
49626             Paul Eggert  <eggert@cs.ucla.edu>
49627
49628         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49629         changes, consolidating in...
49630         * lib/regex_internal.h: ...this file.
49631
49632 2005-09-13  Jim Meyering  <jim@meyering.net>
49633
49634         * lib/canon-host.c: Filter through gnu indent and reword comments
49635         slightly.
49636         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49637
49638 2005-09-13  Derek Price  <derek@ximbiot.com>
49639
49640         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49641         failure.
49642         Reported by Jim Meyering  <jim@meyering.net>.
49643
49644 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49645
49646         * lib/base64.c: Typo.
49647         (base64_encode): Put b64str in initialized data section.
49648
49649 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49650
49651         Merge glibc and coreutils changes into gnulib, plus a few
49652         extra fixes.
49653         * lib/md5.c: Use #error rather than a string.
49654         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49655         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49656         (__attribute__): Define to empty for non recent-GCC.
49657         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49658         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49659         Renamed from their non-__ counterparts, with new macros replacing
49660         them if not _LIBC.  Add __THROW attribute.
49661         (rol): Remove.
49662         (struct md5_ctx): Align buffer if using GCC.
49663         * lib/sha1.h (struct sha1_ctx): Likewise.
49664         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49665         The old name was backwards.
49666         (NOTSWAP): Remove; not used.
49667         (rol): New macro, moved here from md5.h.
49668         (sha1_process_block): Remove a FIXME that doesn't make sense.
49669
49670 2005-09-12  Derek Price  <derek@ximbiot.com>
49671
49672         Return usable errors from canon-host.
49673         * lib/canon-host.h: New file.
49674         * lib/canon-host.c (canon_host): Wrap...
49675         (canon_host_r): ...this new function, which now relies exclusively on
49676         getaddrinfo.
49677         (ch_strerror): New function.
49678         (last_cherror): New global.
49679         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49680         interface.
49681         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49682         void *.
49683         (freeaddrinfo): Free ai->ai_canonname when set.
49684
49685 2005-09-12  Derek Price  <derek@ximbiot.com>
49686
49687         Make canon-host require getaddrinfo.
49688         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49689         AC_LIBSOURCE canon-host.h.  Call...
49690         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49691         gl_GETADDRINFO.
49692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49693
49694 2005-09-12  Derek Price  <derek@ximbiot.com>
49695
49696         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49697         LGPL.
49698         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49699
49700 2005-09-12  Derek Price  <derek@ximbiot.com>
49701
49702         * lib/gai_strerror.c: Include config.h when available.  Include
49703         getaddrinfo.h before other headers to test interface.
49704         Reported by Larry Jones <lawrence.jones@ugs.com>.
49705
49706 2005-09-12  Derek Price  <derek@ximbiot.com>
49707             Paul Eggert  <eggert@cs.ucla.edu>
49708
49709         * modules/glob (Files): Add glob-libc.h.
49710
49711 2005-09-12  Derek Price  <derek@ximbiot.com>
49712             Paul Eggert  <eggert@cs.ucla.edu>
49713
49714         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49715         glob_.h, glob-libc.h.
49716         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49717
49718 2005-09-12  Derek Price  <derek@ximbiot.com>
49719             Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49722         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49723         protecting things that should be done only in gnulib contexts.
49724         * lib/glob_.h: New file, containing only the glob things needed for
49725         gnulib.
49726         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49727         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49728         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49729         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49730         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49731         and to respect the namespace rules better.
49732
49733 2005-09-08  Simon Josefsson  <jas@extundo.com>
49734
49735         * modules/socklen: New file.
49736
49737 2005-09-08  Simon Josefsson  <jas@extundo.com>
49738
49739         * m4/socklen.m4: New file.
49740
49741 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         * modules/utimens (Files): Add m4/utimbuf.m4, since
49744         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49745         Reported by Sergey Poznyakoff.
49746
49747 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49748
49749         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49750         definitions, since that's the preferred style in glibc.
49751         Fix a minor spacing issue, and update copyright notice to match
49752         glibc's.
49753
49754 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49755
49756         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49757
49758 2005-09-06  Simon Josefsson  <jas@extundo.com>
49759
49760         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49761         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49762
49763 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49764
49765         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49766         warning.
49767
49768 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49769
49770         * config/srclist.txt: Add glibc bug 1302.
49771
49772 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49773
49774         Change bitset word type from unsigned int to unsigned long int,
49775         as this has better performance on typical 64-bit hosts.
49776         Port bitset code to hosts with unusual word sizes.
49777         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49778         (build_collating_symbol):
49779         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49780         argument is a bitset.  This is merely a style issue, but it makes
49781         it clearer that an entire array is expected.
49782         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49783         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49784         Port to the case where bitset_word is not the same as unsigned int.
49785         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49786         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49787         Likewise.
49788         * lib/regexec.c (check_dst_limits_calc_pos_1,
49789         check_subexp_matching_top):
49790         (build_trtable, group_nodes_into_DFAstates):
49791         Likewise.
49792         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49793         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49794         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49795         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49796         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49797         * lib/regcomp.c (optimize_subexps, lower_subexp):
49798         Work even if bitset_word has holes in its bitwise representation.
49799         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49800         * lib/regexec.c (check_dst_limits_calc_pos_1,
49801         check_subexp_matching_top):
49802         Likewise.
49803         * lib/regex_internal.c (re_string_reconstruct):
49804         Don't assume UCHAR_MAX == 255.
49805         * lib/regex_internal.h (bitset_set_all): Likewise.
49806         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49807         All uses changed.
49808         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49809         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49810         All uses changed.
49811         (BITSET_WORD_MAX): New macro.
49812         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49813         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49814         (bitset_empty, bitset_copy):
49815         Prefer sizeof (bitset) to multiplying it out ourselves.
49816         (bitset_not_merge): Remove; unused.
49817         (bitset_contain): Return bool, not unsigned int with one bit on.
49818         All callers changed.
49819         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49820         alignment than re_node_set; do this by defining a new internal
49821         type struct dests_alloc and using it to allocate memory.
49822
49823 2005-09-05  Bruno Haible  <bruno@clisp.org>
49824
49825         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49826         links.
49827
49828 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49829
49830         * modules/size_max (Makefile.am): Add size_max.h
49831
49832 2005-09-04  Derek Price  <derek@ximbiot.com>
49833
49834         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49835
49836 2005-09-03  Simon Josefsson  <jas@extundo.com>
49837
49838         * gnulib-tool: Fix typo.
49839
49840 2005-09-03  Simon Josefsson  <jas@extundo.com>
49841
49842         * config/srclist.txt: Add glibc bug 1293.
49843
49844 2005-09-03  Derek Price  <derek@ximbiot.com>
49845
49846         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49847         From Larry Jones <lawrence.jones@ugs.com>.
49848
49849 2005-09-02  Simon Josefsson  <jas@extundo.com>
49850
49851         * modules/socklen: New file.
49852
49853 2005-09-02  Simon Josefsson  <jas@extundo.com>
49854
49855         * modules/havelib: New module.
49856
49857         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49858         Use havelib.
49859
49860 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49861
49862         Check for arithmetic overflow when calculating sizes, to prevent
49863         some buffer-overflow issues.  These patches are conservative, in the
49864         sense that when I couldn't determine whether an overflow was possible,
49865         I inserted a run-time check.
49866         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49867         macros.
49868         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49869         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49870         (re_xnrealloc, re_x2nrealloc): New inline functions.
49871         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49872         parse_bracket_exp):
49873         (build_equiv_class, build_charclass): Check for arithmetic overflow
49874         in size expression calculations.
49875         * lib/regex_internal.c (re_string_realloc_buffers):
49876         (build_wcs_upper_buffer, re_node_set_add_intersect):
49877         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49878         (re_dfa_add_node, register_state): Likewise.
49879         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49880         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49881         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49882         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49883
49884 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49885
49886         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49887         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49888
49889 2005-09-02  Bruno Haible  <bruno@clisp.org>
49890
49891         Support for lib vs. lib64 distinction on biarch platforms.
49892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49893         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49895
49896 2005-09-02  Bruno Haible  <bruno@clisp.org>
49897
49898         * gnulib-tool (import): In the other first-use case, provide defaults
49899         as well.
49900
49901 2005-09-02  Bruno Haible  <bruno@clisp.org>
49902
49903         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49904         patches not yet found in the latest gettext release.
49905
49906 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49909         to avoid a collision with bits/local_lim.h in glibc.
49910         All uses changed.  Problem reported by Dmitry V. Levin in
49911         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49912
49913         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49914         bugs in int versus size_t comparisons.
49915         (re_string_context_at): Fix bug where the code assumed that
49916         Idx is signed.
49917
49918         Use bool where appropriate.
49919         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49920         All callers changed.
49921         (calc_eclosure_iter): Likewise, for ROOT arg.
49922         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49923         (build_charclass_op): Likewise, for NON_MATCH arg.
49924         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49925         (re_string_construct_common): Likewise, for ICASE arg.
49926         * lib/regexec.c (re_search_2_stub, re_search_stub):
49927         Likewise, for RET_LEN arg.
49928         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49929         (set_regs): Likewise, for FL_BACKTRACK arg.
49930         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49931         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49932         (calc_eclosure_iter, parse_bracket_exp):
49933         Use bool for internal variables that are booleans.
49934         * lib/regexec.c (re_search_internal, check_matching,
49935         proceed_next_node):
49936         (set_regs, build_sifted_states, sift_states_bkref):
49937         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49938         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49939         (find_collation_sequence_value):
49940         Likewise.
49941         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49942         (re_node_set_compare):
49943         Return bool, not int. All callers changed.
49944         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49945         (build_trtable, check_node_accept): Likewise.
49946         * lib/regex_internal.h: Include stdbool.h.
49947
49948         Fix bugs uncovered when converting to bool.
49949         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49950         failure instead of charging ahead blindly.
49951         * lib/regex_internal.c (register_state): Likewise.
49952         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49953         for freeing internal storage.
49954         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49955         bitset pieces used as boolean, to avoid undefined behavior
49956         on hosts that do int overflow checking.
49957
49958 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         * config/srclist.txt: Add glibc bugs 1285-1287.
49961
49962 2005-09-01  Jim Meyering  <jim@meyering.net>
49963
49964         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49965         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49966         Require gl_STAT_MACROS, too.
49967
49968 2005-09-01  Bruno Haible  <bruno@clisp.org>
49969
49970         * gnulib-tool (import): In the first-use case, provide defaults.
49971
49972 2005-09-01  Bruno Haible  <bruno@clisp.org>
49973
49974         * gnulib-tool (func_import): Remove the .tmp files.
49975
49976 2005-09-01  Bruno Haible  <bruno@clisp.org>
49977
49978         * gnulib-tool (func_import): Fix handling of symbolic links.
49979
49980 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49981
49982         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49983         old glibc regex code mishandles strings longer than 2**31 bytes.
49984         This patch fixes this when the regex code is used in gnulib
49985         (i.e., outside glibc).
49986
49987         This patch should not affect the use of the regex code inside
49988         glibc.  No doubt this problem also needs to be handled for glibc
49989         as well, but the result will be an incompatible change to the
49990         glibc ABI, and the old ABI will have to be supported too.  That
49991         can be the the subject for another patch.
49992
49993         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49994         governing whether the rest of this patch is active.  By default,
49995         the macro is disabled and the patch has no effect.
49996         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49997         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49998         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49999         (re_match_2, re_set_registers): Use the new types.
50000         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50001         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50002         New macros.
50003         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50004         (re_string_context_at, bin_tree_t, re_dfastate_t):
50005         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50006         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50007         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50008         (re_string_char_size_at, re_string_wchar_at):
50009         (re_string_elem_size_at):
50010         Use the new types and macros to port to 64-bit hosts.
50011         Use unsigned types for internal values, so that the code
50012         mostly works even for arrays larger than SSIZE_MAX.
50013         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50014         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50015         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50016         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50017         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50018         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50019         (calc_inveclosure, parse_dup_op, build_range_exp):
50020         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50021         (fetch_number, create_token_tree, mark_opt_subexp):
50022         Likewise.
50023         * lib/regex_internal.c (re_string_construct_common,
50024         create_ci_newstate):
50025         (create_cd_newstate, re_string_allocate, re_string_construct):
50026         (re_string_realloc_buffers, build_wcs_upper_buffer):
50027         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50028         (re_string_reconstruct, re_string_peek_byte_case):
50029         (re_string_fetch_byte_case, re_string_context_at):
50030         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50031         (re_node_set_init_copy, re_node_set_add_intersect):
50032         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50033         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50034         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50035         (re_acquire_state, re_acquire_state_context, register_state):
50036         Likewise.
50037         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50038         search_cur_bkref_entry):
50039         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50040         (re_search_internal, re_search_2_stub, re_search_stub)
50041         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50042         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50043         (update_cur_sifted_state, check_dst_limits):
50044         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50045         (check_subexp_limits, sift_states_bkref, merge_state_array):
50046         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50047         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50048         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50049         (expand_bkref_cache, check_node_accept_bytes):
50050         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50051         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50052         (acquire_init_state_context, check_halt_node_context):
50053         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50054         (sift_states_backward, clean_state_log_if_needed):
50055         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50056         (find_recover_state, transit_state_sb, transit_state_mb):
50057         (transit_state_bkref, build_trtable, match_ctx_clean):
50058         Likewise.
50059         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50060         to work around an assumption that REG_MISSING is negative.
50061
50062         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50063         (seek_collating_symbol_entry) [defined _LIBC]:
50064         (lookup_collation_sequence_value) [defined _LIBC]:
50065         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50066         Use prototypes rather than old-style function definitions.
50067         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50068         (transit_state_sb) [0]:
50069         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50070
50071         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50072         rm_eo.
50073
50074         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50075         (optimize_subexps, lower_subexp):
50076         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50077         since the signed shift might overflow.  Use 1u<<31 instead.
50078         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50079         Likewise.
50080         * lib/regexec.c (check_dst_limits_calc_pos_1,
50081         check_subexp_matching_top): Likewise.
50082
50083         * lib/regcomp.c (optimize_subexps, lower_subexp):
50084         Use CHAR_BIT rather than 8, for clarity.
50085         * lib/regexec.c (check_dst_limits_calc_pos_1):
50086         (check_subexp_matching_top): Likewise.
50087         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50088         have to worry about portability issues when shifting it left.
50089         Remove no-longer-needed test for table_size > 0.
50090         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50091         in a word, as the resulting behavior is undefined.
50092         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50093         in one case, a <= should have been an <, and in another case the
50094         whole test was missing.
50095         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50096         the standard name CHAR_BIT.
50097         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50098         this is not true on one's complement and signed-magnitude hosts.
50099
50100         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50101         next_last_offset.
50102         (struct re_dfa_t): Remove unused member states_alloc.
50103         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50104
50105 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50106
50107         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50108         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50109         and large-file glibc and in 32-bit large-file Solaris.
50110
50111 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50112
50113         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50114         lengths fit in regoff_t; this isn't true if regoff_t is the same
50115         width as size_t.
50116         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50117         (= START + RANGE) instead of RANGE.  This avoids overflow
50118         problems when regoff_t is the same width as size_t.
50119         All callers changed.
50120         (re_search_2_stub): Check for overflow when adding the
50121         sizes of the two strings.
50122         (re_search_stub): Check for overflow when adding START
50123         to RANGE; if it occurs, substitute the extreme value.
50124
50125 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50128
50129 2005-08-31  Jim Meyering  <jim@meyering.net>
50130
50131         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50132         a pointer-to-const.
50133         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50134         (register_state): Likewise.
50135         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50136         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50137         (group_nodes_into_DFAstates): Likewise.
50138
50139 2005-08-31  Jim Meyering  <jim@meyering.net>
50140
50141         * check-module: Add a FIXME comment.
50142
50143 2005-08-31  Eric Blake  <ebb9@byu.net>
50144
50145         * modules/unistd-safer (Files): Add unistd--.h.
50146         * modules/stdio-safer (Files): Add stdio--.h.
50147
50148 2005-08-31  Derek Price  <derek@ximbiot.com>
50149
50150         * lib/getdelim.c (getdelim): Return EOF on EOF.
50151         Reported by Larry Jones <lawrence.jones@ugs.com>.
50152
50153 2005-08-31  Bruno Haible  <bruno@clisp.org>
50154
50155         Avoid unnecessary diffs in the generated lib/Makefile.am.
50156         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50157         the generated files.
50158         (func_import): Don't set cmd.
50159
50160 2005-08-31  Bruno Haible  <bruno@clisp.org>
50161
50162         * lib/strstr.c: Include <stddef.h>, for NULL.
50163         * lib/strcasestr.c: Likewise.
50164         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50165
50166 2005-08-31  Bruno Haible  <bruno@clisp.org>
50167
50168         * gnulib-tool: New option --macro-prefix.
50169         (func_import): Use macro_prefix.
50170         (import): Handle option --macro-prefix.
50171
50172 2005-08-31  Bruno Haible  <bruno@clisp.org>
50173
50174         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50175         Also use new variables cached_lgpl, cached_libtool.
50176
50177 2005-08-31  Bruno Haible  <bruno@clisp.org>
50178
50179         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50180         always instantiating them.
50181
50182 2005-08-31  Bruno Haible  <bruno@clisp.org>
50183
50184         * gnulib-tool (func_import): Read the previous cached settings
50185         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50186         earlier added by gnulib but are now dropped. Warn when a gnulib file
50187         overwrites a non-gnulib file.
50188
50189 2005-08-31  Bruno Haible  <bruno@clisp.org>
50190
50191         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50192         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50193         projects that don't keep autogenerated files in CVS. Put into
50194         actioncmd only the specified modules, not the transitive closure.
50195
50196 2005-08-31  Bruno Haible  <bruno@clisp.org>
50197
50198         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50199         Create directories that shall be filled.
50200         (import): Don't look for gl_* macros in configure.ac. Recurse across
50201         all directories containing a gnulib-cache.m4 files, if meaningful.
50202
50203 2005-08-31  Bruno Haible  <bruno@clisp.org>
50204
50205         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50206         (import): Set seen_libtool when we see gl_LIBTOOL.
50207
50208 2005-08-31  Bruno Haible  <bruno@clisp.org>
50209
50210         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50211         declaration macro definitions from generated gnulib.m4.
50212
50213 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50214
50215         * lib/iconvme.h: Add prototype for iconv_alloc.
50216
50217 2005-08-29  Simon Josefsson  <jas@extundo.com>
50218
50219         * lib/iconvme.c: Fix errno.
50220
50221 2005-08-29  Bruno Haible  <bruno@clisp.org>
50222
50223         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50224         that it works when the directory contains spaces.
50225
50226 2005-08-29  Bruno Haible  <bruno@clisp.org>
50227
50228         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50229
50230 2005-08-29  Bruno Haible  <bruno@clisp.org>
50231
50232         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50233         Emit more advice.
50234
50235 2005-08-29  Bruno Haible  <bruno@clisp.org>
50236         and Stepan Kasal  <kasal@ucw.cz>
50237
50238         * check-module: If more parameters are given, check each of them
50239         separately; add more exceptions, as noted by Jim Meyering.
50240         (check_module): New procedure.
50241         (%exempt_header): Now contains all exceptions.
50242
50243 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50244
50245         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50246
50247 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50248
50249         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50250
50251 2005-08-28  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/gnulib-tool.m4: New file.
50254
50255 2005-08-27  Jim Meyering  <jim@meyering.net>
50256
50257         * modules/unistd-safer (Files): Add pipe-safer.c.
50258         * modules/fcntl-safer (Files): Add creat-safer.c.
50259
50260 2005-08-27  Jim Meyering  <jim@meyering.net>
50261
50262         * m4/stdlib-safer.m4: New file.  From coreutils.
50263         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50264         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50265         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50266         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50267         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50268
50269 2005-08-27  Jim Meyering  <jim@meyering.net>
50270
50271         * lib/fopen-safer.c: Merge minor changes from coreutils.
50272         * lib/dup-safer.c: Likewise.
50273         * lib/fd-safer.c: Likewise.
50274
50275         Merge from coreutils.
50276         * lib/stdio--.h: New file.
50277         * lib/stdlib--.h: New file.
50278         * lib/mkstemp-safer.c: New file.
50279
50280         GNU tar needs these.
50281         * lib/pipe-safer.c: New file.
50282         * lib/creat-safer.c: New file.
50283         * lib/fcntl--.h (creat): Define to creat_safer.
50284         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50285         * lib/unistd--.h (pipe): Define to pipe_safer.
50286         * lib/unistd-safer.h: Declare pipe_safer.
50287
50288 2005-08-26  Simon Josefsson  <jas@extundo.com>
50289
50290         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50291         Haible <bruno@clisp.org>.
50292
50293 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * lib/regex_internal.h: Remove all references to
50296         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50297         or better.
50298         (bitset_not, bitset_merge, bitset_not_merge):
50299         (bitset_mask, re_string_allocate, re_string_construct):
50300         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50301         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50302         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50303         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50304         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50305         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50306         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50307         (re_acquire_state_context):
50308         Remove unnecessary forward decls.
50309         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50310         Put __attribute at function definition,
50311         now that the function decl has been removed.
50312         * lib/regex_internal.c (re_string_peek_byte_case):
50313         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50314         Likewise.
50315
50316 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50317
50318         * m4/regex.m4: Add AC_PREREQ(2.50).
50319         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50320
50321 2005-08-25  Simon Josefsson  <jas@extundo.com>
50322
50323         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50324         __fsetlocking.
50325
50326 2005-08-25  Simon Josefsson  <jas@extundo.com>
50327
50328         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50329         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50330         GLIBC specific code.
50331
50332 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         Make regex safe for g++.  This fixes one real bug (an "err"
50335         that should have been "*err").  g++ problem reported by
50336         Sam Steingold.
50337         * lib/regex_internal.h (re_calloc): New macro, consistent with
50338         re_malloc etc.  All callers of calloc changed to use re_calloc.
50339         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50340         not int.  All callers changed.
50341         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50342         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50343         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50344         (find_recover_state): Change "err" to "*err"; this fixes what
50345         appears to be a real bug.
50346         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50347         versus int.
50348
50349 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50350
50351         * modules/regex (Depends-on): Add malloc, since the code
50352         assumes that !malloc(0) means failure.
50353
50354 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50357
50358         alloca modernization/simplification for regex.
50359         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50360         needs to be at the start of the file, and can be moved into
50361         regex_internal.h and simplified.
50362         * lib/regex_internal.h: Include <alloca.h>.
50363         (__libc_use_alloca) [!defined _LIBC]: New macro.
50364         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50365         now works outside glibc.
50366
50367 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50368
50369         * config/srclist.txt: Add glibc bugs 1241, 1245.
50370
50371 2005-08-25  Jim Meyering  <jim@meyering.net>
50372
50373         * lib/open-safer.c: Include <config.h>.
50374         Otherwise, we'd lose LARGEFILE support in any file using
50375         e.g. "fcntl--.h"
50376
50377 2005-08-25  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/minmax.m4: Require autoconf 2.52.
50380         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50381         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50382         alternatives of translit over the alphabet.
50383         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50384
50385 2005-08-24  Simon Josefsson  <jas@extundo.com>
50386
50387         * tests/test-getpass.c: New file.
50388
50389 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50390
50391         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50392         for GNU regex features.
50393
50394 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50397         * lib/regex.h (regerror): Likewise.
50398
50399         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50400         requires this.  (The code never needed it.)
50401
50402         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50403         All uses of recently-renamed identifiers changed to use the new,
50404         POSIX-compliant names.  The code will build and run just fine
50405         without these changes, but it's better to eat our own dog food
50406         and use the standard-conforming names.
50407
50408         * lib/regex.h: Fix a multitude of POSIX name space violations.
50409         These changes have an effect only for programs that define
50410         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50411         do not change anything for programs compiled in the normal way.
50412         Also, there is no effect on the ABI.
50413
50414         (_REGEX_SOURCE): New macro.
50415         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50416         defined and _GNU_SOURCE is not; this fixes a name space violation.
50417
50418         Rename the following macros to obey POSIX requirements.
50419         The old names are still visible as macros if _REGEX_SOURCE is defined.
50420         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50421         RE_BACKSLASH_ESCAPE_IN_LISTS.
50422         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50423         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50424         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50425         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50426         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50427         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50428         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50429         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50430         (REG_INTERVALS): renamed from RE_INTERVALS.
50431         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50432         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50433         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50434         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50435         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50436         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50437         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50438         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50439         RE_UNMATCHED_RIGHT_PAREN_ORD.
50440         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50441         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50442         (REG_DEBUG): renamed from RE_DEBUG.
50443         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50444         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50445         unusual, since we can't clash with the POSIX REG_ICASE.
50446         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50447         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50448         (REG_NO_SUB): renamed from RE_NO_SUB.
50449         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50450         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50451         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50452         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50453         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50454         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50455         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50456         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50457         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50458         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50459         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50460         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50461         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50462         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50463         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50464         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50465         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50466         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50467         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50468         (REG_FIXED): Renamed from REGS_FIXED.
50469         (REG_NREGS): Renamed from RE_NREGS.
50470
50471         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50472         of other REG_* macros, since POSIX says the user is allowed to
50473         #undef these macros selectively.
50474
50475         (reg_errcode_t): Update comment stating what other tables need
50476         to be consistent.
50477
50478         Rename the following enum values to obey POSIX requirements.
50479         The old names are still visible as macros.
50480         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50481         is not defined, since GNU is supposed to be a superset of POSIX as
50482         much as possible, and since we want reg_errcode_t to be a signed
50483         type for implementation consistency.
50484         (_REG_NOERROR): Renamed from REG_NOERROR.
50485         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50486         (_REG_BADPAT): Renamed from REG_BADPAT.
50487         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50488         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50489         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50490         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50491         (_REG_EBRACK): Renamed from REG_EBRACK.
50492         (_REG_EPAREN): Renamed from REG_EPAREN.
50493         (_REG_EBRACE): Renamed from REG_EBRACE.
50494         (_REG_BADBR): Renamed from REG_BADBR.
50495         (_REG_ERANGE): Renamed from REG_ERANGE.
50496         (_REG_ESPACE): Renamed from REG_ESPACE.
50497         (_REG_BADRPT): Renamed from REG_BADRPT.
50498         (_REG_EEND): Renamed from REG_EEND.
50499         (_REG_ESIZE): Renamed from REG_ESIZE.
50500         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50501         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50502         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50503         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50504         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50505
50506         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50507         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50508         changed.  But support the old name if the new one is not defined
50509         and if _REGEX_SOURCE.
50510
50511         Change the following member names in struct re_pattern_buffer.
50512         The old names are still supported if !_REGEX_SOURCE.
50513         The new names are always supported, regardless of _REGEX_SOURCE.
50514         (re_buffer): Renamed from buffer.
50515         (re_allocated): Renamed from allocated.
50516         (re_used): Renamed from used.
50517         (re_syntax): Renamed from syntax.
50518         (re_fastmap): Renamed from fastmap.
50519         (re_translate): Renamed from translate.
50520         (re_can_be_null): Renamed from can_be_null.
50521         (re_regs_allocated): Renamed from regs_allocated.
50522         (re_fastmap_accurate): Renamed from fastmap_accurate.
50523         (re_no_sub): Renamed from no_sub.
50524         (re_not_bol): Renamed from not_bol.
50525         (re_not_eol): Renamed from not_eol.
50526         (re_newline_anchor): Renamed from newline_anchor.
50527
50528         Change the following member names in struct re_registers.
50529         The old names are still supported if !_REGEX_SOURCE.
50530         The new names are always supported, regardless of _REGEX_SOURCE.
50531         (rm_num_regs): Renamed from num_regs.
50532         (rm_start): Renamed from start.
50533         (rm_end): Renamed from end.
50534
50535         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50536         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50537         Prepend __ to parameter names.
50538
50539         Undo yesterday's changes.
50540
50541 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50542
50543         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50544         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50545         lib/regex.c.
50546
50547 2005-08-24  Jim Meyering  <jim@meyering.net>
50548
50549         Sync from coreutils.
50550         * m4/fcntl-safer.m4: New file.
50551
50552         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50553         and object files for this module.
50554
50555 2005-08-24  Jim Meyering  <jim@meyering.net>
50556
50557         Sync from coreutils.
50558         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50559
50560 2005-08-24  Jim Meyering  <jim@meyering.net>
50561
50562         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50563         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50564
50565 2005-08-24  Jim Meyering  <jim@meyering.net>
50566
50567         * modules/fcntl-safer: New module.
50568         * modules/fts (Depends-on): Add fcntl-safer.
50569         * MODULES.html.sh (File descriptor based Input/Output):
50570         Add fcntl-safer.
50571
50572 2005-08-24  Bruno Haible  <bruno@clisp.org>
50573
50574         Support for unit test modules.
50575         * modules/README: Mention tests modules.
50576         * modules/TEMPLATE-TESTS: New file.
50577         * gnulib-tool: New options --extract-tests-module, --with-tests and
50578         --tests-base (unused for the moment).
50579         (testsbase, inctests): New variables.
50580         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50581         (func_verify_module): Exclude TEMPLATE-TESTS.
50582         (func_verify_nontests_module, func_verify_tests_module): New functions.
50583         (func_get_dependencies): Add implicit dependency for tests modules.
50584         (func_get_tests_module): New function.
50585         (func_modules_transitive_closure): When --with-tests was specified,
50586         include the unit tests as well, unless explicitly avoided.
50587         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50588         (func_emit_tests_Makefile_am): New function.
50589         (func_create_testdir): When --with-tests was specified, emit a
50590         tests/ directory.
50591         * MODULES.html.sh (Future developments): Update.
50592
50593 2005-08-24  Bruno Haible  <bruno@clisp.org>
50594
50595         * modules/tls-tests: New file.
50596         * tests/test-tls.c: New file, from GNU gettext.
50597
50598 2005-08-24  Bruno Haible  <bruno@clisp.org>
50599
50600         * modules/lock-tests: New file.
50601         * tests/test-lock.c: New file, from GNU gettext.
50602
50603 2005-08-24  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/lock.h: Add multiple inclusion guard.
50606         * lib/tls.h: Add multiple inclusion guard.
50607
50608 2005-08-24  Bruno Haible  <bruno@clisp.org>
50609
50610         * gnulib-tool: Add support for the --aux-dir option to
50611         --create-testdir, --create-megatestdir, --test, --megatest.
50612         (func_create_testdir, func_create_megatestdir): Optionally emit a
50613         AC_CONFIG_AUX_DIR directive.
50614         (create-testdir, create-megatestdir, test, megatest): Provide a
50615         default value for $auxdir.
50616
50617 2005-08-24  Bruno Haible  <bruno@clisp.org>
50618
50619         * gnulib-tool (import): Use compound statement instead of subshell
50620         where possible.
50621
50622 2005-08-24  Bruno Haible  <bruno@clisp.org>
50623
50624         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50625
50626 2005-08-24  Bruno Haible  <bruno@clisp.org>
50627
50628         * gnulib-tool (func_version): Update.
50629
50630 2005-08-24  Bruno Haible  <bruno@clisp.org>
50631
50632         * gnulib-tool (func_import, func_create_testdir,
50633         func_create_megatestdir): Quote all autoconf macro arguments.
50634
50635 2005-08-24  Bruno Haible  <bruno@clisp.org>
50636
50637         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50638         option --force, because --force causes the aclocal.m4 of each
50639         subdirectory to be newer than the corresponding config.h.in.
50640
50641 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50642
50643         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50644         All contents moved to gl_REGEX.
50645         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50646         assume that it does.
50647
50648 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * lib/regex.h (REG_NOSYS)
50651         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50652         Define, since POSIX requires it as of 2001.
50653         (_REG_ENOSYS)
50654         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50655         New private symbol, used to keep the enum signed in all cases.
50656         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50657         Youngman in
50658         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50659
50660         * lib/regex_internal.c (re_string_skip_chars, register_state):
50661         (calc_state_hash):
50662         Remove forward decls; no longer needed now that we use prototypes.
50663         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50664         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50665         (clean_state_log_if_needed): Likewise.
50666
50667 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * config/srclist.txt: Add glibc bugs 1231-1233.
50670
50671 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         Fix problems reported by Sam Steingold in
50674         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50675         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50676         assumed that reg_errcode_t is a signed type, which is not
50677         necessarily true if _XOPEN_SOURCE is not defined.
50678         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50679         since some compilers warn about it otherwise.
50680
50681 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50684         (init_word_char, create_initial_state, duplicate_node_closure):
50685         (fetch_token, peek_token_bracket, build_range_exp):
50686         (build_collating_symbol): Remove forward decls; no longer needed
50687         now that we use prototypes.
50688
50689         * lib/regcomp.c:
50690         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50691         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50692         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50693         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50694         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50695         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50696         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50697         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50698         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50699         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50700         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50701         (build_charclass, build_charclass_op, fetch_number, create_tree):
50702         (create_token_tree, mark_opt_subexp, duplicate_tree):
50703         Use prototypes rather than old-style definitions.
50704
50705         * lib/regex_internal.c:
50706         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50707         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50708         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50709         (re_string_reconstruct, re_string_peek_byte_case):
50710         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50711         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50712         (re_node_set_init_copy, re_node_set_add_intersect):
50713         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50714         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50715         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50716         (re_acquire_state, re_acquire_state_context, register_state):
50717         (create_ci_newstate, create_cd_newstate, free_state):
50718         Likewise.
50719         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50720         re_search_2):
50721         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50722         (re_search_internal, prune_impossible_nodes):
50723         (acquire_init_state_context, check_matching, static):
50724         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50725         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50726         (update_regs, sift_states_backward, build_sifted_states):
50727         (clean_state_log_if_needed, merge_state_array):
50728         (update_cur_sifted_state, add_epsilon_src_nodes):
50729         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50730         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50731         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50732         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50733         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50734         (check_arrival, check_arrival_add_next_nodes):
50735         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50736         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50737         (check_node_accept_bytes, check_node_accept, extend_buffers):
50738         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50739         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50740         (sift_ctx_init):
50741         Likewise.
50742
50743         * lib/regex_internal.h:
50744         (re_string_allocate, re_string_construct, re_string_reconstruct):
50745         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50746         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50747         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50748         (re_string_context_at, re_string_peek_byte_case):
50749         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50750         is defined, since we now use prototypes always.
50751
50752         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50753         C89 or better.  All uses removed.
50754
50755 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * config/srclist.txt: Add glibc bugs 1220-1227.
50758
50759 2005-08-20  Jim Meyering  <jim@meyering.net>
50760
50761         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50762         of unused local, dfa.
50763
50764 2005-08-20  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50767
50768 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50769
50770         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50771         (re_node_set_insert_last, re_dfa_add_node):
50772         Rename local variables to avoid GCC shadowing warnings.
50773
50774 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50775
50776         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50777         [defined lint]: Suppress bogus uninitialized-variable warnings.
50778
50779         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50780         and let the caller return REG_ESPACE if out of space.  This
50781         removes an uninitialied-variable warning with GCC 4.0.1, and also
50782         avoids taking the address of a local variable.  All callers
50783         changed.
50784
50785 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50786
50787         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50788         $LIBCSRC/posix/regexec.c.
50789         Add glibc bug 1217 for regcomp.c.
50790
50791 2005-08-19  Jim Meyering  <jim@meyering.net>
50792
50793         * lib/regexec.c (proceed_next_node): Redo local variables to
50794         avoid GCC shadowing warnings.
50795
50796 2005-08-18  Bruno Haible  <bruno@clisp.org>
50797
50798         * lib/strstr.c (strstr): Fix return value in multibyte case.
50799         * lib/strcasestr.c (strcasestr): Likewise.
50800
50801 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50802
50803         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50804
50805 2005-08-17  Jim Meyering  <jim@meyering.net>
50806
50807         Make the %s format (seconds since the epoch) work for a negative
50808         number and when used with a zero-padded field width, e.g. %015s.
50809
50810         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50811         label so that it precedes the code to set `digits'.  Otherwise,
50812         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50813         print `00-22'.  Now, it prints `-0022', as it should.
50814
50815 2005-08-17  Bruno Haible  <bruno@clisp.org>
50816
50817         * modules/strstr (Files): Add m4/mbrtowc.m4.
50818         (Depends-on): Add mbuiter.
50819
50820 2005-08-17  Bruno Haible  <bruno@clisp.org>
50821
50822         * modules/strcasestr: New file.
50823         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50824         strcasestr.
50825
50826 2005-08-17  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50829
50830 2005-08-17  Bruno Haible  <bruno@clisp.org>
50831
50832         * modules/mbuiter: New file.
50833         * MODULES.html.sh (Extended multibyte and wide character utilities):
50834         Add mbuiter.
50835
50836 2005-08-17  Bruno Haible  <bruno@clisp.org>
50837
50838         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50839         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50840
50841 2005-08-17  Bruno Haible  <bruno@clisp.org>
50842
50843         * m4/strcasestr.m4: New file.
50844
50845 2005-08-17  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50848         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50849
50850 2005-08-17  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/strcasestr.h: New file.
50853         * lib/strcasestr.c: New file.
50854
50855 2005-08-17  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/strcasecmp.c: Use mbuiter.h.
50858
50859 2005-08-17  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/mbuiter.h: New file.
50862
50863 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50866         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50867         and gl_GETOPT are both invoked via different paths (as happens
50868         with GNU tar CVS because it uses both argp and getopt), the former
50869         wins.
50870
50871 2005-08-16  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/tls: New file.
50874         * MODULES.html.sh (Multithreading): Add tls.
50875
50876 2005-08-16  Bruno Haible  <bruno@clisp.org>
50877
50878         * modules/strnlen1: New file.
50879         * MODULES.html.sh (String handling): Add strnlen1.
50880
50881 2005-08-16  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/strcase (Files): Add m4/mbrtowc.m4.
50884         (Depends-on): Add strnlen1, mbchar.
50885
50886 2005-08-16  Bruno Haible  <bruno@clisp.org>
50887
50888         * modules/mbiter: New file.
50889         * MODULES.html.sh (Extended multibyte and wide character utilities):
50890         Add mbiter.
50891
50892 2005-08-16  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/mbfile: New file.
50895         * MODULES.html.sh (Extended multibyte and wide character utilities):
50896         Add mbfile.
50897
50898 2005-08-16  Bruno Haible  <bruno@clisp.org>
50899
50900         * modules/mbchar: New file.
50901         * MODULES.html.sh (Extended multibyte and wide character utilities):
50902         New section.
50903
50904 2005-08-16  Bruno Haible  <bruno@clisp.org>
50905
50906         * m4/tls.m4: New file, from GNU gettext.
50907
50908 2005-08-16  Bruno Haible  <bruno@clisp.org>
50909
50910         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50911         always.
50912         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50913
50914 2005-08-16  Bruno Haible  <bruno@clisp.org>
50915
50916         * m4/mbiter.m4: New file.
50917
50918 2005-08-16  Bruno Haible  <bruno@clisp.org>
50919
50920         * m4/mbfile.m4: New file.
50921
50922 2005-08-16  Bruno Haible  <bruno@clisp.org>
50923
50924         * m4/mbchar.m4: New file.
50925
50926 2005-08-16  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/tls.h: New file, from GNU gettext.
50929         * lib/tls.c: New file, from GNU gettext.
50930
50931 2005-08-16  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/strnlen1.h: New file.
50934         * lib/strnlen1.c: New file.
50935
50936 2005-08-16  Bruno Haible  <bruno@clisp.org>
50937
50938         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50939         (mbi_init): Update.
50940         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50941         NUL byte, not after it.
50942
50943 2005-08-16  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/strcase.h (strcasecmp): Add note in comments.
50946         * lib/strncasecmp.c: Use code from strcasecmp.c.
50947         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50948         (strcasecmp): Work correctly in multibyte locales.
50949
50950 2005-08-16  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/mbiter.h: New file.
50953
50954 2005-08-16  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/mbfile.h: New file.
50957
50958 2005-08-16  Bruno Haible  <bruno@clisp.org>
50959
50960         * lib/mbchar.h: New file.
50961         * lib/mbchar.c: New file.
50962
50963 2005-08-16  Bruno Haible  <bruno@clisp.org>
50964
50965         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50966         the valid ones. Makes the comparison operations transitive:
50967         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50968         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50969
50970 2005-08-15  Simon Josefsson  <jas@extundo.com>
50971
50972         * modules/ssize_t (License): Change to 'unlimited'.
50973
50974         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50975
50976 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50977
50978         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50979         Add comments for each pending glibc patch.
50980
50981 2005-08-15  Bruno Haible  <bruno@clisp.org>
50982
50983         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50984         __cplusplus is defined.
50985
50986 2005-08-14  Jim Meyering  <jim@meyering.net>
50987
50988         Sync from coreutils.
50989
50990         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50991         Use the hash-table-based cycle-detection code not just when
50992         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50993         Reported by James Youngman in
50994         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50995         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50996         FTS_TIGHT_CYCLE_CHECK.
50997         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50998         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50999         once again.
51000         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51001         * lib/fts.c (fd_safer): Remove decl.
51002         Include fcntl--.h rather than unistd-safer.h
51003         (fts_safe_changedir): Don't call fd_safer; no longer needed
51004         now that we include fcntl--.h.
51005
51006 2005-08-12  Simon Josefsson  <jas@extundo.com>
51007
51008         * modules/getndelim2: Use ssize_t module.
51009         * modules/getnline: Likewise.
51010         * modules/safe-read: Likewise.
51011         * modules/xreadlink: Likewise.
51012
51013         * modules/ssize_t: New file.
51014
51015 2005-08-12  Simon Josefsson  <jas@extundo.com>
51016
51017         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51018
51019 2005-08-12  Simon Josefsson  <jas@extundo.com>
51020
51021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51022         ssize_t.
51023
51024 2005-08-12  Simon Josefsson  <jas@extundo.com>
51025
51026         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51027         readline, getdelim and check_version.
51028         (Support for systems lacking ISO C 99: Sizes of integer types):
51029         Add size_max.
51030
51031 2005-08-12  Bruno Haible  <bruno@clisp.org>
51032
51033         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51034
51035 2005-08-11  Simon Josefsson  <jas@extundo.com>
51036
51037         * modules/readline: New file.
51038
51039         * modules/strnlen (Files): Add strnlen.h.
51040
51041 2005-08-11  Simon Josefsson  <jas@extundo.com>
51042
51043         * m4/readline.m4: New file.
51044
51045 2005-08-11  Simon Josefsson  <jas@extundo.com>
51046
51047         * lib/readline.h, readline.c: New file.
51048
51049 2005-08-11  Simon Josefsson  <jas@extundo.com>
51050
51051         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51052         gl_AVOID.
51053
51054 2005-08-11  Bruno Haible  <bruno@clisp.org>
51055
51056         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51057
51058 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51059
51060         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51061
51062 2005-08-10  Simon Josefsson  <jas@extundo.com>
51063
51064         * tests/test-iconvme.c: New file.
51065
51066 2005-08-10  Simon Josefsson  <jas@extundo.com>
51067
51068         * m4/strnlen.m4: New file.
51069
51070         * m4/strndup.m4: Don't check for strnlen declaration, done in
51071         strnlen.m4.
51072
51073 2005-08-10  Simon Josefsson  <jas@extundo.com>
51074
51075         * lib/strndup.c: Use strnlen.h.
51076
51077         * lib/strnlen.h: New file.
51078
51079 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51080
51081         * README: Typos.
51082
51083 2005-08-02  Simon Josefsson  <jas@extundo.com>
51084
51085         * modules/readline: New file.
51086
51087 2005-08-02  Simon Josefsson  <jas@extundo.com>
51088
51089         * modules/getdelim: New file.
51090
51091         * modules/getline: Rewrite, don't use getndelim2.
51092
51093 2005-08-02  Simon Josefsson  <jas@extundo.com>
51094
51095         * m4/getline.m4: Separate out getdelim stuff into separate module.
51096
51097         * m4/getdelim.m4: New file.
51098
51099 2005-08-02  Simon Josefsson  <jas@extundo.com>
51100
51101         * lib/getline.h, getline.c: Rewrite.
51102
51103         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51104
51105 2005-07-31  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/lock.h (gl_lock_initializer): New macro.
51108         (gl_lock_define_initialized): Use it.
51109         (gl_rwlock_initializer): New macro.
51110         (gl_rwlock_define_initialized): Use it.
51111         (gl_recursive_lock_initializer): New macro.
51112         (gl_recursive_lock_define_initialized): Use it.
51113
51114 2005-07-30  Karl Berry  <karl@gnu.org>
51115
51116         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51117         Report from Ben Pfaff, regarding getopt.
51118
51119 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51122         normal way.
51123         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51124         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51125         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51126         (gl_GETOPT): Use the new macros.  Most of the implementation
51127         is moved to the new macros.  This is for programs like Emacs
51128         that don't want all the functionality of gl_GETOPT.
51129
51130 2005-07-26  Bruno Haible  <bruno@clisp.org>
51131
51132         * m4/lock.m4: Update from GNU gettext.
51133
51134 2005-07-26  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/lock.h: Update from GNU gettext.
51137         * lib/lock.c: Update from GNU gettext.
51138
51139 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51142         obsolescent AC_TRY_RUN.  Include the default includes files, for
51143         'exit'.
51144
51145 2005-07-24  Bruno Haible  <bruno@clisp.org>
51146
51147         * modules/visibility: New file.
51148         * MODULES.html.sh (Misc): Add visibility.
51149
51150 2005-07-24  Bruno Haible  <bruno@clisp.org>
51151
51152         * m4/visibility.m4: New file.
51153
51154 2005-07-24  Bruno Haible  <bruno@clisp.org>
51155
51156         * doc/visibility.texi: New file.
51157
51158 2005-07-22  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51161         $(ALLOCA_H), redundant through BUILT_SOURCES.
51162         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51163         redundant through BUILT_SOURCES.
51164         * modules/byteswap (Makefile.am): Remove explicit dependency on
51165         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51166         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51167         $(FNMATCH_H), redundant through BUILT_SOURCES.
51168         * modules/getopt (Makefile.am): Remove explicit dependency on
51169         $(GETOPT_H), redundant through BUILT_SOURCES.
51170         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51171         redundant through BUILT_SOURCES.
51172         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51173         redundant through BUILT_SOURCES.
51174         * modules/stdbool (Makefile.am): Remove explicit dependency on
51175         $(STDBOOL_H), redundant through BUILT_SOURCES.
51176         * modules/stdint (Makefile.am): Remove explicit dependency on
51177         $(STDINT_H), redundant through BUILT_SOURCES.
51178         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51179         Remove explicit dependency on $(SYSEXITS_H).
51180         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51181
51182 2005-07-18  Simon Josefsson  <jas@extundo.com>
51183
51184         * lib/check-version.c (check_version): Accept identical versions too.
51185
51186 2005-07-18  Bruno Haible  <bruno@clisp.org>
51187
51188         * modules/lock: New file.
51189         * MODULES.html.sh (Multithreading): New section.
51190
51191 2005-07-18  Bruno Haible  <bruno@clisp.org>
51192
51193         * m4/lock.m4: New file, from GNU gettext.
51194
51195 2005-07-18  Bruno Haible  <bruno@clisp.org>
51196
51197         * lib/lock.h: New file, from GNU gettext.
51198         * lib/lock.c: New file, from GNU gettext.
51199
51200 2005-07-18  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/lock.h (gl_once_t): New type.
51203         (gl_once_define, gl_once): New macros.
51204         * lib/lock.c (fresh_once): New variable.
51205         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51206         functions.
51207
51208 2005-07-16  Simon Josefsson  <jas@extundo.com>
51209
51210         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51211         workaround, suggested by Bruno.
51212
51213 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51214
51215         * modules/xalloc (Depends-on): Add xalloc-die.
51216         * modules/xvasprintf (Depends-on): Add xalloc-die.
51217
51218 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51221         with a minor change.
51222
51223 2005-07-15  Bruno Haible  <bruno@clisp.org>
51224
51225         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51226         When using lib/poll.c, define poll as rpl_poll.
51227
51228 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * modules/argp (Depends-on): Remove unlocked-io.
51231
51232 2005-07-14  Derek Price  <derek@ximbiot.com>
51233
51234         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51235         for glob symlink bug.
51236
51237 2005-07-14  Bruno Haible  <bruno@clisp.org>
51238
51239         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51240         Instead, test for *_unlocked function declarations directly.
51241
51242 2005-07-11  Simon Josefsson  <jas@extundo.com>
51243
51244         * modules/size_max: New file.
51245
51246         * modules/xsize: Depend on size_max module for size_max.m4.
51247
51248 2005-07-11  Simon Josefsson  <jas@extundo.com>
51249
51250         * lib/size_max.h: New file.
51251
51252 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51255         copyright symbol and the year.
51256         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51257         (version_etc_va): Use parameterized copyright notice.
51258         Reword to conform to the current GNU coding standards.
51259
51260 2005-07-11  Karl Berry  <karl@gnu.org>
51261
51262         * doc/gnulib.texi (Quoting): new node.
51263         (Initial import): more info, from Patrice.
51264
51265 2005-07-11  Bruno Haible  <bruno@clisp.org>
51266
51267         * gnulib-tool (func_usage): Document option --avoid.
51268         (Command line options): Handle --avoid.
51269         (func_acceptable): New function.
51270         (func_modules_transitive_closure): Use it.
51271
51272 2005-07-11  Bruno Haible  <bruno@clisp.org>
51273
51274         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51275         Reported by Jim Meyering.
51276
51277 2005-07-10  Bruno Haible  <bruno@clisp.org>
51278
51279         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51280         Needed when size_t is smaller than 'unsigned int'.
51281         Reported by Paul Eggert.
51282
51283 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51284
51285         * modules/argp (Depends-on): Add unlocked-io
51286
51287 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51288
51289         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51290         block of defines.
51291
51292 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51293
51294         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51295         fix now.
51296
51297 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51298         and Paul Eggert  <eggert@cs.ucla.edu>
51299
51300         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51301         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51302
51303 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51304
51305         * modules/regex (Files): Add lib/regex_internal.c,
51306         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51307         (Depends-on): Add extensions.
51308         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51309
51310 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51311
51312         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51313         pathconf.
51314         * m4/same.m4 (gl_SAME): Likewise.
51315         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51316
51317         * m4/regex.m4: Adjust to new libc regex implementation.
51318         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51319         all the .c and .h parts of (the new) regex.
51320         Quote the m4 stuff better.
51321         Check for RE_ICASE bug of old gnulib.
51322         Check for REG_STARTEND of recent libc.
51323         Rename local variables from jm_* to gl_*.
51324         Quote operand of "test -f".
51325         Say "recent enough" version of libc, not "version 2".
51326         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51327         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51328         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51329         Remove check for btowc, isascii.
51330         Require AM_LANGINFO_CODESET.
51331
51332 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51333
51334         * lib/regex.c, regex.h: Sync from libc.
51335         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51336         * lib/regexec.c:
51337         New files, synced from libc, except that regex_internal.h
51338         currently has a small porting fix.
51339
51340 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51341
51342         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51343         regex_internal.c, regexec.c.
51344         Add regex_internal.h too, but as a comment, since the libc version
51345         is currently broken in gnulib mode.
51346
51347 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51348
51349         Support programs like Emacs that use gnulib but not gettext.
51350         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51351         * modules/gettext-h: New file.
51352         * modules/gettext (Files): Remove lib/gettext.h.
51353         (Depends-on): Add gettext-h.
51354         (Makefile.am): Remove lib_SOURCES.
51355         * modules/argmatch, modules/c-stack, modules/closeout:
51356         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51357         * modules/execute, modules/file-type, modules/getaddrinfo:
51358         * modules/getopt, modules/human, modules/javacomp:
51359         * modules/javaexec, modules/mkdir-p, modules/obstack:
51360         * modules/openat, modules/pagealign_alloc, modules/pipe:
51361         * modules/quotearg, modules/regex, modules/rpmatch:
51362         * modules/unicodeio, modules/userspec, modules/version-etc:
51363         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51364         * modules/xsetenv:
51365         Depend on gettext-h, not gettext.
51366
51367 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51368
51369         * gnulib-tool (func_import): Add support for 'public domain' license.
51370         * modules/alloca, modules/atexit, modules/memmove:
51371         Now public domain, not GPL.
51372         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51373         * modules/realloc, modules/strerror, modules/strtod:
51374         Now LGPL, not GPL.
51375
51376 2005-07-05  Bruno Haible  <bruno@clisp.org>
51377
51378         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51379         autoconf CVS. Needed for mingw.
51380
51381 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         Remove the dependency of the strftime module on the tzset module.
51384         * modules/strftime (Depends-on): Remove dependency on tzset.
51385
51386 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51387
51388         Remove the dependency of the strftime module on the tzset module.
51389         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51390         gl_FUNC_TZSET_CLOBBER.
51391
51392 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51393
51394         Remove the dependency of the strftime module on the tzset module.
51395         * lib/strftime.c (my_strftime)
51396         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51397         Copy the input structure, to work around some of the bug with
51398         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51399         Solaris releases, you should also use the tzset module, but we won't
51400         require it as a dependency any more since we don't want LGPLed code
51401         to depend on GPLed code.
51402
51403 2005-07-02  Jim Meyering  <jim@meyering.net>
51404
51405         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51406         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51407         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51408         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51409
51410 2005-07-02  Jim Meyering  <jim@meyering.net>
51411
51412         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51413
51414 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51415
51416         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51417         declares only 'struct timespec;' (!).
51418
51419 2005-07-01  Jim Meyering  <jim@meyering.net>
51420
51421         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51422         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51423         * lib/save-cwd.c, tempname.c:
51424         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51425         and don't include <sys/file.h>).
51426
51427 2005-06-29  Jim Meyering  <jim@meyering.net>
51428
51429         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51430         type name.  Use the variable name instead.
51431         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51432         Likewise.
51433
51434 2005-06-28  Simon Josefsson  <jas@extundo.com>
51435
51436         * modules/check-version (Files): Add check-version.m4.
51437
51438 2005-06-28  Simon Josefsson  <jas@extundo.com>
51439
51440         * m4/check-version.m4: New file, suggested by Jim Meyering
51441         <jim@meyering.net>.
51442
51443 2005-06-28  Simon Josefsson  <jas@extundo.com>
51444
51445         * lib/check-version.h, lib/check-version.c: New files.
51446
51447 2005-06-28  Simon Josefsson  <jas@extundo.com>
51448
51449         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51450         collision with global variable.  Better indentation.  Don't
51451         increment buffer pointer beyond buffer end.  Based on comments
51452         from Paul Eggert <eggert@cs.ucla.edu>.
51453
51454         * lib/base64.h: Indent.
51455
51456 2005-06-28  Simon Josefsson  <jas@extundo.com>
51457
51458         * doc/gnulib.texi (Library version handling): New section.
51459
51460 2005-06-28  Jim Meyering  <jim@meyering.net>
51461
51462         * check-module (find_included_lib_files): Hard-code another
51463         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51464         but modules/fts-lgpl (correctly) does not list those files.
51465
51466         * modules/canonicalize (Files): Add lib/pathmax.h.
51467
51468 2005-06-25  Simon Josefsson  <jas@extundo.com>
51469
51470         * modules/check-version: New file.
51471
51472 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51475         initializer of struct addrinfo, as an indication that we don't
51476         care how many members the structure has.
51477
51478 2005-06-24  Derek Price  <derek@ximbiot.com>
51479         and Bruno Haible  <bruno@clisp.org>
51480
51481         Remove stat module & update lstat.
51482         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51483         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51484         * m4/stat.m4: Remove this file.
51485
51486 2005-06-24  Derek Price  <derek@ximbiot.com>
51487         and Bruno Haible  <bruno@clisp.org>
51488
51489         Remove stat module & update lstat.
51490         * lib/stat.c: Remove this file...
51491         (slash_aware_lstat): ...moving this content and its support...
51492         * lib/lstat.c (rpl_lstat): ...into here.
51493         * lib/lstat.h: New file.
51494
51495 2005-06-24  Derek Price  <derek@ximbiot.com>
51496         and Bruno Haible  <bruno@clisp.org>
51497
51498         Remove stat module & update lstat.
51499         * config/srclist.txt (libc sources): Remove stat.
51500
51501 2005-06-24  Derek Price  <derek@ximbiot.com>
51502         and Bruno Haible  <bruno@clisp.org>
51503
51504         Remove stat module & update lstat.
51505         * MODULES.html.sh (stat): Remove.
51506         * MODULES.html: Regenerated.
51507         * modules/lstat (Description): Correct function name.
51508         (Files): Add "lstat.h".
51509         (Depends-on): Remove stat, add xalloc, stat-macros.
51510         * modules/stat: Remove this file.
51511         (Include): Add "lstat.h", remove <sys/stat.h>.
51512
51513 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51516         (ranged_convert): Don't save conversion in a temporary struct.
51517         This causes a warning with GCC 4.0.0, and anyway in the typical
51518         case it's not worth the extra 100 bytes or so of code.
51519         (ranged_convert, __mktime_internal): When calling a function via a
51520         pointer P, use P () rather than (*P) (), as we now assume C89 or
51521         better.
51522
51523 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51526         "who -r" failed to give output.  Problem reported by Tim Waugh.
51527
51528         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51529         (xcalloc): Use it to avoid needless tests.
51530         Problem reported by Jim Meyering.
51531
51532 2005-06-20  Derek Price  <derek@ximbiot.com>
51533
51534         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51535         unnecessary for Autoconfs > 2.59c.
51536
51537 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51538
51539         * lib/argp.h (__option_is_short): Check upper limit of
51540         __key. Isprint() requires its argument to have the value
51541         of an unsigned char or EOF.
51542
51543 2005-06-16  Jim Meyering  <jim@meyering.net>
51544
51545         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51546         when either N or S is zero.
51547
51548 2005-06-16  Derek Price  <derek@ximbiot.com>
51549
51550         * m4/bison.m4: Declare YACC & YFLAGS precious.
51551
51552 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51555         multibyte string or pattern, fall back on unibyte matching.
51556         Problem reported by James Youngman.
51557
51558 2005-06-08  Bruno Haible  <bruno@clisp.org>
51559
51560         * modules/csharpcomp: New file.
51561         * MODULES.html.sh (C#): Add csharpcomp.
51562
51563 2005-06-08  Bruno Haible  <bruno@clisp.org>
51564
51565         * m4/csharpcomp.m4: New file, from GNU gettext.
51566
51567 2005-06-08  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/csharpcomp.h: New file, from GNU gettext.
51570         * lib/csharpcomp.c: New file, from GNU gettext.
51571         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51572
51573 2005-06-08  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51576         warning on mingw.
51577
51578 2005-06-07  Derek Price  <derek@ximbiot.com>
51579
51580         Sync from CVS.
51581         * lib/glob_.h: Indent nested #ifdef.
51582
51583 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51584
51585         Sync from coreutils.
51586         Use "file name" when talking about file names, instead of "filename"
51587         or "path", as per the GNU coding standards.
51588         * lib/mkdir-p.c: Renamed from makepath.c.
51589         (make_dir_parents): Renamed from make_path.  All callers changed.
51590         * lib/mkdir-p.h: Likewise.  All includers changed.
51591         * lib/filenamecat.c: Renamed from path-concat.c.
51592         (file_name_concat): Renamed from path_concat.  All callers changed.
51593         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51594         * lib/filenamecat.h: Likewise.  All includers changed.
51595         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51596         in comments or local variable names.
51597         * lib/basename.c: Likewise.
51598         * lib/canonicalize.c, canonicalize.h: Likewise.
51599         * lib/dirname.c, dirname.h: Likewise.
51600         * lib/euidaccess.c: Likewise.
51601         * lib/exclude.c: Likewise
51602         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51603         * lib/fsusage.c, fsuage.h: Likewise.
51604         * lib/fts.c, fts_.h: Likewise.
51605         * lib/getcwd.c: Likewise.
51606         * lib/getloadavg.c: Likewise.
51607         * lib/mkstemp.c: Likewise.
51608         * lib/mountlist.c, mountlist.h: Likewise.
51609         * lib/openat.c, openat.h: Likewise.
51610         * lib/readlink-stub.c: Likewise.
51611         * lib/readutmp.c, readutmp.h: Likewise.
51612         * lib/rename.c: Likewise.
51613         * lib/rmdir.c: Likewise.
51614         * lib/same.c: Likewise.
51615         * lib/savedir.c: Likewise.
51616         * lib/stripslash.c: Likewise.
51617         * lib/tempname.c: Likewise.
51618         * lib/xreadlink.c: Likewise.
51619         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51620         All uses changed.
51621         * lib/exclude.h: Likewise.
51622
51623         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51624         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51625         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51626         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51627         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51628         files have been getting away with it for years (MORE/BSD 4.3
51629         is extinct now).
51630         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51631         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51632
51633         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51634         Define to 256, not 255, as per modern POSIX.
51635
51636 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51637
51638         Sync from coreutils.
51639         Use "file name" when talking about file names, instead of "filename"
51640         or "path", as per the GNU coding standards.
51641         * MODULES.html.sh: mkdir-p renamed from makepath.
51642         filenamecat renamed from path-concat.
51643         * modules/filenamecat: Renamed from modules/path-concat.
51644         (Files): filenamecat.h and filenamecat.c renamed from
51645         path-concat.h and path-concat.c.
51646         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51647         (Include): filenamecat.h, not path-concat.h.
51648         * modules/mkdir-p: Renamed from modules/makepath.
51649         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51650         makepath.c.
51651         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51652         (Include): mkdir-p.h, not makepath.h.
51653
51654 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51655
51656         Sync from coreutils.
51657         * m4/mkdir-p.m4: Renamed from makepath.m4.
51658         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51659         Rename files from makepath.c to mkdir-p.c, and from
51660         makepath.h to mkdir-p.h.
51661         * m4/filenamecat.m4: Renamed from path-concat.m4.
51662         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51663         Rename files from path-concat.c to filenamecat.c,
51664         and from path-concat.h to filenamecat.h.
51665         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51666         "file name" in local variables or comments.
51667         * m4/rename.m4: Likewise.
51668
51669 2005-06-01  Bruno Haible  <bruno@clisp.org>
51670
51671         * modules/csharpexec: New file.
51672         * MODULES.html.sh (C#): New section.
51673
51674 2005-06-01  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/csharp.m4: New file, from GNU gettext.
51677         * m4/csharpexec.m4: New file, from GNU gettext.
51678
51679 2005-06-01  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/csharpexec.h: New file, from GNU gettext.
51682         * lib/csharpexec.c: New file, from GNU gettext.
51683         * lib/csharpexec.sh.in: New file, from GNU gettext.
51684
51685 2005-05-31  Derek Price  <derek@ximbiot.com>
51686             Paul Eggert  <eggert@cs.ucla.edu>
51687
51688         Sync from cvs.
51689         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51690
51691 2005-05-31  Derek Price  <derek@ximbiot.com>
51692             Paul Eggert  <eggert@cs.ucla.edu>
51693
51694         Sync from cvs.
51695         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51696
51697 2005-05-29  Derek Price  <derek@ximbiot.com>
51698
51699         * config/srclist.txt (glob_.h, glob.c): Add these files.
51700
51701 2005-05-29  Derek Price  <derek@ximbiot.com>
51702
51703         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51704         * modules/glob: New file.
51705         * modules/getlogin_r: Add link to POSIX spec in description.
51706
51707 2005-05-29  Derek Price  <derek@ximbiot.com>
51708             Paul Eggert  <eggert@cs.ucla.edu>
51709
51710         * m4/glob.m4: New file.
51711
51712 2005-05-29  Derek Price  <derek@ximbiot.com>
51713             Paul Eggert  <eggert@cs.ucla.edu>
51714
51715         * lib/glob_.h, lib/glob.c: New files.
51716
51717 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51718
51719         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51720         * modules/fts-lgpl (Depends-on): Remove gettext.
51721
51722 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51725         and don't require gt_INTTYPES_PRI.
51726
51727 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51728
51729         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51730
51731         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51732         the configuration hassle isn't worth it.
51733         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51734         (LONGEST_MODIFIER, PRIuMAX): Remove.
51735
51736 2005-05-27  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51739
51740 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51743         _POSIX_PTHREAD_SEMANTICS for Solaris.
51744
51745 2005-05-25  Derek Price  <derek@ximbiot.com>
51746
51747         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51748
51749 2005-05-25  Derek Price  <derek@ximbiot.com>
51750             Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51753         * lib/getlogin_r.c, getlogin_r.h: New files.
51754
51755 2005-05-25  Bruno Haible  <bruno@clisp.org>
51756             Derek Price  <derek@ximbiot.com>
51757
51758         * lib/getlogin_r.h: Simplify API documentation.
51759
51760 2005-05-23  Derek Price  <derek@ximbiot.com>
51761
51762         * modules/minmax (Files): Add m4/minmax.m4.
51763         (configure.ac): Add gl_MINMAX.
51764
51765 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51766
51767         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51768         so that unistd-safer.h (GPL'ed code) need not be included.
51769
51770 2005-05-22  Bruno Haible  <bruno@clisp.org>
51771
51772         * m4/minmax.m4: New file.
51773         Based on a patch by Derek Price <derek@ximbiot.com>.
51774
51775 2005-05-22  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51778         (INT64_MIN): Fix definition.
51779         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51780
51781         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51782         NEED_SIGNED_INT_TYPES.
51783
51784         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51785         HAVE_SYSTEM_INTTYPES.
51786
51787 2005-05-22  Bruno Haible  <bruno@clisp.org>
51788
51789         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51790         Also include <sys/param.h> if it defines MIN, MAX.
51791         Based on a patch by Derek Price <derek@ximbiot.com>.
51792
51793 2005-05-21  Jim Meyering  <jim@meyering.net>
51794
51795         * modules/fts (Files): Add m4/inttypes-pri.m4.
51796         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51797
51798 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         New fts module.
51801         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51802         (setup_dir, free_dir): New functions.
51803         (enter_dir, leave_dir): Define trivial
51804         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51805         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51806         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51807         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51808         Move to fts-cycle.c.
51809         (fts_open): Use setup_dir.
51810         (fts_close): Use free_dir.
51811         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51812         This adds a label and some gotos, but the alternatives were messier.
51813         Check for memory allocation failure when entering a dir.
51814         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51815         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51816         (FTS): New member fts_cycle, that is a union that contains the
51817         old active_dir_ht and cycle_state.  All uses changed to mention
51818         fts_cycle.ht and fts_cycle.state.
51819         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51820         fts.c, with the following changes:
51821         (setup_dir, free_dir): New functions.
51822         (enter_dir): Now returns bool.  Return true if successful, false
51823         if memory exhausted.  All callers changed.
51824         Do not bother partly cleaning up on
51825         memory allocation failure; that is free_dir's job.
51826         However, free ad if hash_insert fails, to avoid memory leak.
51827         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51828         fts->fts_options to see which union member to use.
51829
51830 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51831
51832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51833         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51834
51835 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51838
51839 2005-05-20  Jim Meyering  <jim@meyering.net>
51840
51841         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51842         Now a macro, to pacify GCC.
51843
51844 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51845
51846         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51847         of -1.
51848
51849 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51850
51851         * lib/chown.c (rpl_chown): Return -1 on failure.
51852
51853 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51854
51855         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51856         Don't check for stddef.h.
51857         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51858         don't use its results.
51859         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51860         since we include them unconditionally.  Don't require
51861         AM_STDBOOL_H, since stdbool is a prerequisite.
51862         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51863         since we assume C89 or better.
51864         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51865         as we don't use their results.
51866         Don't check for fchdir, memmove, memset, strrchr, as we use
51867         them unconditionally.
51868         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51869         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51870
51871 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51872
51873         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51874         Include <stddef.h> unconditionally, since we assume C89 now.
51875         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51876         * lib/fts.c: Include fts_.h first, to check interface.
51877         Do not include intprops.h; no longer needed.
51878         Include cycle-check.h and hash.h, since fts_.h no longer does.
51879         Remove unnecessary casts of closedir to void.
51880         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51881         decide whether to decrement nlinks.
51882         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51883         (FTS): Use struct hash_table * instead of Hash_table, so that
51884         we no longer need to include hash.h here.
51885
51886 2005-05-18  Jim Meyering  <jim@meyering.net>
51887
51888         * modules/dirfd (License): Change to LGPL.  Most of the code
51889         is already in the public domain.
51890
51891 2005-05-18  Jim Meyering  <jim@meyering.net>
51892
51893         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51894         Reported by Yoann Vandoorselaere.
51895
51896 2005-05-17  Jim Meyering  <jim@meyering.net>
51897
51898         * m4/fts.m4: New file, from coreutils.
51899
51900 2005-05-17  Jim Meyering  <jim@meyering.net>
51901
51902         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51903
51904 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51905
51906         Sync from coreutils.
51907         * m4/unlinkdir.m4: New file.
51908
51909 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51910
51911         Sync from coreutils.
51912         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51913         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51914         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51915         White space changes only.
51916         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51917         special.
51918         * lib/yesno.c: Include getline.h, not ctype.h.
51919         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51920         Use getline to remove arbitrary restriction on response length.
51921
51922 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         * config/srclist-update: Spell out "Street" in FSF postal
51925         mail address; this is the style the FSF seems to prefer.
51926
51927         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51928         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51929         this updates FSF postal mail address.
51930
51931         Sync from coreutils.
51932         * modules/unlinkdir: New file.
51933         * modules/yesno (Depends-on): Add getline.
51934         * MODULES.html.sh (File system functions): Add unlinkdir.
51935
51936 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51939         lib/strsep.h:
51940         Change the initial comment to refer to GPL, not LGPL.
51941         gnulib-tool will change it to LGPL as needed.
51942
51943         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51944         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51945         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51946         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51947         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51948         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51949         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51950         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51951         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51952         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51953         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51954         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51955         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51956         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51957         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51958         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51959         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51960         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51961         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51962         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51963         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51964         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51965         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51966         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51967         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51968         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51969         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51970         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51971         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51972         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51973         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51974         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51975         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51976         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51977         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51978         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51979         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51980         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51981         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51982         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51983         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51984         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51985         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51986         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51987         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51988         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51989         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51990         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51991         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51992         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51993         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51994         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51995         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51996         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51997         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51998         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51999         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52000         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52001         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52002         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52003         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52004         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52005         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52006         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52007         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52008         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52009         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52010         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52011         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52012         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52013         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52014         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52015         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52016         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52017         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52018         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52019         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52020         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52021         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52022         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52023         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52024         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52025         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52026         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52027         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52028         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52029         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52030         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52031         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52032         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52033         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52034         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52035         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52036         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52037         lib/yesno.c, lib/yesno.h:
52038         Update FSF postal mail address.
52039
52040 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52041
52042         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52043         tests/test-memmem.c, tests/test-stpncpy.c:
52044         Update FSF postal mail address.
52045
52046 2005-05-13  Bruno Haible  <bruno@clisp.org>
52047
52048         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52049         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52050         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52051         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52052         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52053         Add support for 64-bit integers in the MSVC compiler.
52054
52055 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52056
52057         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52058
52059 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52060
52061         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52062
52063 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * doc/getdate.texi (General date syntax): Don't say that date
52066         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52067         Problem reported by Nic Ferrier.
52068
52069 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52070
52071         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52072         specified in ai_socktype. Fix invalid ai_protocol
52073         check. ai_protocol is usually set to 0 or depending on
52074         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52075         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52076         ai_socktype / ai_protocol in the returned addrinfo structure.
52077
52078 2005-05-10  Simon Josefsson  <jas@extundo.com>
52079
52080         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52081         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52082
52083 2005-05-10  Karl Berry  <karl@gnu.org>
52084
52085         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52086         (from http://www.gnu.org/licenses).
52087         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52088         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52089         fdl.texi suffices.
52090
52091 2005-05-10  Karl Berry  <karl@gnu.org>
52092
52093         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52094         (COPYING.DOC): remove.
52095
52096         * config/srclist-update: new FSF address.
52097
52098 2005-05-10  Derek Price  <derek@ximbiot.com>
52099
52100         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52101         possible.
52102
52103 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52104             Bruno Haible  <bruno@clisp.org>
52105
52106         * modules/inet_ntop: New file.
52107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52108         inet_ntop.
52109
52110 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52111             Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/inet_ntop.m4: New file.
52114
52115 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52116             Bruno Haible  <bruno@clisp.org>
52117
52118         * lib/inet_ntop.h: New file.
52119         * lib/inet_ntop.c: New file, from glibc with modifications.
52120
52121 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52122
52123         * modules/time_r (License): Change to LGPL.
52124         * modules/extensions (License): Change to LGPL.  Actually,
52125         the license is more permissive than that, but currently gnulib-tool
52126         doesn't know how to handle more-permissive licenses.
52127
52128         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52129         Problem reported by Dave Love.
52130
52131 2005-05-08  Jim Meyering  <jim@meyering.net>
52132
52133         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52134         blank.
52135
52136 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * modules/argmatch (Depends-on): Add stdbool.
52139         * modules/backupfile (Depends-on): Likewise.
52140         * modules/chdir-long (Depends-on): Likewise.
52141         * modules/closeout (Depends-on): Likewise.
52142         * modules/cycle-check (Depends-on): Likewise.
52143         * modules/dirname (Depends-on): Likewise.
52144         * modules/fnmatch (Depends-on): Likewise.
52145         * modules/fsusage (Depends-on): Likewise.
52146         * modules/fwriteerror (Depends-on): Likewise.
52147         * modules/getcwd (Depends-on): Likewise.
52148         * modules/getloadavg (Depends-on): Likewise.
52149         * modules/hard-locale (Depends-on): Likewise.
52150         * modules/makepath (Depends-on): Likewise.
52151         * modules/mountlist (Depends-on): Likewise.
52152         * modules/nanosleep (Depends-on): Likewise.
52153         * modules/posixtm (Depends-on): Likewise.
52154         * modules/quotearg (Depends-on): Likewise.
52155         * modules/readtokens (Depends-on): Likewise.
52156         * modules/readtokens0 (Depends-on): Likewise.
52157         * modules/readutmp (Depends-on): Likewise.
52158         * modules/save-cwd (Depends-on): Likewise.
52159         * modules/strftime (Depends-on): Likewise.
52160         * modules/userspec (Depends-on): Likewise.
52161         * modules/utimecmp (Depends-on): Likewise.
52162         * modules/xgetcwd (Depends-on): Likewise.
52163         * modules/xnanosleep (Depends-on): Likewise.
52164         * modules/xstrtod (Depends-on): Likewise.
52165         * modules/yesno (Depends-on): Likewise.
52166
52167 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52168
52169         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52170         needless checks.
52171
52172 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52173
52174         Merge from coreutils.  Among other things,
52175         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52176         * lib/fd-safer.c: New file.
52177         * lib/fcntl-safer.h, open-safer.c: Remove.
52178         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52179         * lib/dup-safer.c: Include unistd-safer.h first.
52180         Don't include errno.h.
52181         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52182         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52183         * lib/file-type.c: Rely on file-type.h change.
52184         * lib/getloadavg.c: Include unistd-safer.h.
52185         (getloadavg): Use safer open.
52186         * lib/getusershell.c: Include "stdio-safer.h".
52187         (getusershell): Use safer fopen.
52188         * lib/long-options.c (long_options): Use NULL rather than 0.
52189         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52190         'free'.
52191         * lib/modechange.c: Likewise.
52192         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52193         (MODE_DONE): New constant.
52194         (struct mode_change): Remove 'next' member.
52195         (make_node_op_equals): New function; like the old one of the
52196         same name, except it allocates an array.
52197         (mode_compile, mode_create_from_ref): Use it.
52198         (mode_compile): Allocate result as an array, not a linked list.
52199         Parse octal string ourself, so that we catch mistakes like "+0".
52200         (mode_adjust): Arg is an array, not a linked list.
52201         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52202         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52203         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52204         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52205         Remove.  This is now stat-macros.h's job.
52206         (talloc): Remove.  All callers replaced by xalloc, so that
52207         our invokers don't have to worry about reporting memory failures.
52208         (make_node_op_equals): Remove.
52209         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52210         New constants.
52211         (struct mode_change): Moved here from modechange.h.
52212         (mode_append_entry): Remove.
52213         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52214         apps to have incorrect behavior.  Use simpler algorithm for head
52215         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52216         Detect more invalid usages rather than having somewhat-random behavior.
52217         Don't insert an "a=" action, as that leads to incorrect behavior.
52218         (mode_compile, mode_create_from_ref): Return NULL on error instead
52219         of an enum, since now there's only one way to have an error.  All
52220         callers changed.
52221         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52222         at the correct time.  Simplify calculation of "+u" and its ilk.
52223         Don't mishandle "+X".
52224         (mode_free): Remove "register" and localize decls.
52225         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52226         (struct mode_change): Move to modechange.c; callers don't
52227         need to see this stuff.
52228         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52229         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52230         (mode_change, mode_adjust): Reflect the new signatures noted above.
52231         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52232         that might redefine system include files.
52233         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52234         (my_usleep): Use NULL rather than (void *) 0.
52235         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52236         Use siginterrupt to specify that system calls should be interrupted.
52237         (rpl_nanosleep): Move initialization of suspended closer to call of
52238         my_usleep.
52239         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52240         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52241         (desirable_utmp_entry): New function.
52242         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52243         using x2nrealloc, to simplify logic.
52244         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52245         size calculation.  Do not assume utmp file is a regular file.
52246         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52247         (READ_UTMP_CHECK_PIDS): New constant.
52248         * lib/save-cwd.c: Include unistd-safer.h.
52249         (save_cwd): Use fd_safer.
52250         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52251         [!_LIBC] Include "stat-macros.h" instead.
52252         * lib/unistd-safer.h (fd_safer): New decl.
52253
52254 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52255
52256         * modules/getloadavg (Depends-on): Add unistd-safer.
52257         * modules/getusershell (Depends-on): Add stdio-safer.
52258         * modules/lstat (Depends-on): Remove xalloc.
52259         * modules/mkstemp (Depends-on): Add stat-macros.
52260         * modules/modechange (Depends-on): Remove xstrtol.
52261         Add stat-macros, xalloc.
52262         * modules/save-cwd (Depends-on): Add unistd-safer.
52263         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52264         * modules/unistd-safer (Files): Add lib/fd-safer.c
52265         (Makefile.am): Remove lib_SOURCES.
52266
52267         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52268         Remove fcntl-safer; unistd-safer supersedes it.
52269
52270 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52271
52272         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52273         AC_HEADER_STAT.
52274         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52275         (gl_PREREQ_CHOWN): Remove.
52276         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52277         it.  Don't require AC_HEADER_STAT.
52278         (gl_PREREQ_LSTAT): Remove.
52279         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52280         Don't require AC_HEADER_STAT.
52281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52282         (gl_PREREQ_RMDIR): Remove.
52283         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52284         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52285         the stat-macros module a prerequisite.
52286         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52287         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52288         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52289         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52290         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52291         variable names.
52292         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52293         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52294         variable prefixes.
52295         * m4/fcntl-safer.m4: Remove.
52296         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52297         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52298         Invoke gl_PREREQ_FD_SAFER.
52299         (gl_PREREQ_FD_SAFER): New macro.
52300         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52301         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52302         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52303         Remove duplicate call to AC_LIBOBJ(readutmp).
52304         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52305
52306         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52307         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52308
52309 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52310
52311         * MODULES.html.sh (Misc): Add byteswap.
52312
52313 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52314
52315         * modules/getcwd (Depends-on): Add extensions.
52316         * modules/openat (Depends-on): Likewise.
52317
52318 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52319
52320         * modules/byteswap: New file.
52321
52322 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52323
52324         * m4/byteswap.m4: New file.
52325
52326 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52327
52328         * lib/byteswap_.h: New file.
52329
52330 2005-04-25  Karl Berry  <karl@gnu.org>
52331
52332         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52333
52334 2005-04-25  Albert Chin  <china@thewrittenword.com>
52335
52336         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52337         Toolkit C bug.
52338
52339 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52340
52341         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52342         (func_ln_if_changed) Remove forcibly for no error message
52343         in case file does not exist.
52344
52345 2005-04-19  Simon Josefsson  <jas@extundo.com>
52346
52347         * gnulib-tool (Options): Make --symlink mean --symbolic.
52348
52349 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52350
52351         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52352
52353 2005-04-16  Simon Josefsson  <jas@extundo.com>
52354
52355         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52356
52357 2005-04-15  Simon Josefsson  <jas@extundo.com>
52358
52359         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52360
52361 2005-04-15  Simon Josefsson  <jas@extundo.com>
52362
52363         * gnulib-tool: Rename --symlink to --symbolic.
52364
52365 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52366
52367         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52368         symbolic links to files instead of copying/moving.  Add --aux-dir,
52369         specifying directory relative --dir where auxiliary build tools
52370         are placed.
52371
52372 2005-04-14  Bruno Haible  <bruno@clisp.org>
52373
52374         * modules/allocsa (License): Change to LGPL.
52375         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52376
52377 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52378
52379         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52380         that "UTC +1 second" continues to work.  Problem reported
52381         by Dmitry V. Levin.
52382         (relunit_snumber): New rule.
52383         (relunit): Use it.
52384
52385 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52386
52387         * lib/getdate.y (universal_time_zone_table): New constant.
52388         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52389         universal_time_zone_table.
52390         (lookup_zone): Prefer universal_time_zone_table to
52391         local_time_zone_table, so that "GMT" time stamps are allowed in
52392         London during the summer.  Problem reported by Ian Abbott.
52393
52394 2005-04-12  Jim Meyering  <jim@meyering.net>
52395
52396         * lib/human.c (humblock): Set *options even when returning due to
52397         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52398         warning from gcc-4.
52399
52400 2005-04-09  Jim Meyering  <jim@meyering.net>
52401
52402         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52403         -Wuninitialized: initialize tm0.tm_year.
52404
52405 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52406
52407         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52408         count, since there's no maximum.  All uses changed.
52409         Add member dsts_seen.
52410         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52411         not being INT_MAX.
52412         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52413         Use pc_rels_seen to decide whther a date is absolute.
52414
52415         * lib/getdate.y (number): Don't overwrite year.
52416         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52417         check.
52418
52419 2005-04-02  Simon Josefsson  <jas@extundo.com>
52420
52421         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52422         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52423
52424 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52425
52426         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52427         where no absolute path name can be longer than PATH_MAX.
52428
52429 2005-03-27  Jim Meyering  <jim@meyering.net>
52430
52431         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52432
52433 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52436         "one's complement" -> "ones' complement" in comment, as per Knuth.
52437         "value of type" -> "type or expression" in comment.
52438         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52439
52440 2005-03-26  Jim Meyering  <jim@meyering.net>
52441
52442         Comment nits.
52443         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52444         Correct typos: s/or/of/.
52445
52446 2005-03-26  Jim Meyering  <jim@meyering.net>
52447
52448         * modules/check-include-files: Move to ../ and rename to...
52449         * check-module: ...this.
52450
52451 2005-03-25  Jim Meyering  <jim@meyering.net>
52452
52453         * modules/xvasprintf (Files): Add xalloc.h.
52454
52455 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52456
52457         * modules/gettext (Files): config/config.rpath ->
52458         build-aux/config.rpath
52459         * modules/iconv (Files): Likewise.
52460         Problem reported by Oskar Liljeblad.
52461
52462 2005-03-23  Jim Meyering  <jim@meyering.net>
52463
52464         * modules/check-include-files: New script to check for
52465         missing dependencies, multiple includes, etc.
52466
52467         * modules/c-strtold (Depends-on): Add xalloc.
52468         * modules/c-strtod (Depends-on): Add xalloc.
52469         * modules/hash (Depends-on): Add xalloc.
52470         (Files): Remove lib/xalloc.h.
52471
52472         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52473         * modules/userspec (Files): Add lib/inttostr.h.
52474
52475 2005-03-23  Jim Meyering  <jim@meyering.net>
52476
52477         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52478
52479 2005-03-22  Jim Meyering  <jim@meyering.net>
52480
52481         * modules/stat-macros: New module.
52482         * modules/canonicalize, modules/euidaccess, modules/file-type,
52483         * modules/filemode, modules/lchown, modules/makepath,
52484         * modules/rmdir, modules/stat: Depend on new stat-macros module
52485         rather than listing lib/stat-macros.h manually.
52486         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52487
52488 2005-03-22  Jim Meyering  <jim@meyering.net>
52489
52490         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52491
52492 2005-03-22  Bruno Haible  <bruno@clisp.org>
52493
52494         * config/srclist.txt: Replace target directory 'config' with
52495         'build-aux'.
52496         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52497         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52498         ../build-aux/.
52499
52500 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * modules/chdir-long (Depends-on): Add mempcpy.
52503
52504         * modules/acl, modules/backupfile, modules/c-strtod,
52505         modules/c-strtold, modules/canon-host, modules/canonicalize,
52506         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52507         modules/exclude, modules/exitfail, modules/file-type,
52508         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52509         modules/getdate, modules/getline, modules/getpagesize,
52510         modules/getpass, modules/getugroups, modules/group-member,
52511         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52512         modules/inttostr, modules/long-options, modules/makepath,
52513         modules/md5, modules/memcasecmp, modules/memcoll,
52514         modules/modechange, modules/mountlist, modules/path-concat,
52515         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52516         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52517         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52518         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52519         modules/strftime, modules/strndup, modules/strverscmp,
52520         modules/timespec, modules/unlocked-io, modules/userspec,
52521         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52522         modules/yesno:
52523         Remove lib_SOURCES line from Makefile.am section, as this is now
52524         done automatically by the corresponding Autoconf macro.
52525
52526 2005-03-21  Jim Meyering  <jim@meyering.net>
52527
52528         Changes imported from coreutils.
52529
52530         * lib/cycle-check.c: Don't include xalloc.h.
52531
52532         * lib/path-concat.c: Don't include assert.h.
52533         (path_concat): Remove assertion that would have triggered
52534         for ABASE starting with more than one slash.
52535         Reported by Andreas Schwab.
52536
52537         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52538         properly when ABASE is an absolute file name.
52539         Correct the description of this function.
52540         Include <assert.h>.
52541         Add an assertion and a test driver.
52542         This fixes a bug introduced on 2004-07-02.
52543         Andreas Schwab reported the resulting failure of cp --parents:
52544         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52545
52546 2005-03-21  Jim Meyering  <jim@meyering.net>
52547
52548         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52549         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52550
52551 2005-03-21  Jim Meyering  <jim@meyering.net>
52552         and  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52555         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52556         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52557         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52558         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52559         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52560         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52561         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52562         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52563         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52564         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52565         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52566         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52567         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52568         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52569         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52570         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52571         for these modules.
52572
52573 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52574
52575         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52576         (which shouldn't happen), generate nothing instead of returning 0
52577         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52578
52579 2005-03-16  Bruno Haible  <bruno@clisp.org>
52580
52581         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52582         HAVE_LONGLONG_64BIT.
52583
52584 2005-03-16  Bruno Haible  <bruno@clisp.org>
52585
52586         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52587         HAVE_LONGLONG_64BIT.
52588
52589 2005-03-16  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52592         HAVE_LONGLONG_64BIT.
52593
52594 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52597         reliably distinguish strftime failure from empty output on POSIX
52598         hosts.
52599
52600 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52603         (iconv_string): Don't guess a size-zero buffer, as that might cause
52604         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52605         result would be 'too large', where 'too large' is (heuristically)
52606         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52607         overflow concerns.  This will prevent some unwanted malloc failures
52608         when the inputs are very large.
52609
52610 2005-03-15  Karl Berry  <karl@gnu.org>
52611
52612         * config/srclist.txt (config.rpath): from gettext.
52613         * config/config.rpath: update.
52614
52615 2005-03-15  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52618         to 'negate'.
52619
52620         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52621         variable.
52622
52623         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52624         results.
52625
52626 2005-03-14  Simon Josefsson  <jas@extundo.com>
52627
52628         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52629         <fx@gnu.org>.
52630
52631 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52632
52633         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52634         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52635         intprops.h.
52636         * lib/strtol.c: Likewise.
52637
52638 2005-03-14  Jim Meyering  <jim@meyering.net>
52639
52640         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52641         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52642         to be nonzero so that we (and caller) can detect the difference
52643         between a valid zero-length expansion and an error return, even
52644         when the underlying strftime fails before writing anything into
52645         that location.
52646
52647 2005-03-14  Bruno Haible  <bruno@clisp.org>
52648
52649         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52650         Update from GNU gettext 0.14.3.
52651
52652 2005-03-10  Jim Meyering  <jim@meyering.net>
52653
52654         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52655
52656 2005-03-10  Jim Meyering  <jim@meyering.net>
52657
52658         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52659         so that this module works on systems without fchdir.
52660
52661 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52662
52663         Factor int-properties macros into a single file, except for
52664         glibc-related files.
52665         * lib/intprops.h: New file.
52666         * lib/getloadavg.c: Include it instead of limits.h.
52667         (INT_STRLEN_BOUND): Remove.
52668         * lib/human.c: Include intprops.h.
52669         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52670         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52671         302/1000.
52672         * lib/inttostr.h: Include intprops.h instead of limits.h.
52673         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52674         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52675         for consistency with intprops.h.
52676         (time_t_is_integer, twos_complement_arithmetic): Use them.
52677         * lib/sig2str.h: Include <signal.h>, intprops.h.
52678         (INT_STRLEN_BOUND): Remove.
52679         * lib/strftime.c (TYPE_SIGNED): Remove.
52680         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52681         * lib/strtol.c: Adjust comments to match intprops.h.
52682         * lib/userspec.c: Include intprops.h.
52683         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52684         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52685         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52686         instead of rolling our own expressions.
52687         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52688
52689         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52690         instead of int.
52691         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52692         the right thing even if adding 1900 would overflow.  Similarly
52693         for tm_mon + 1 and tm_yday + 1.
52694         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52695         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52696         (DO_SIGNED_NUMBER): New macro.
52697         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52698
52699 2005-03-07  Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52702
52703 2005-03-07  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52706
52707 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52708
52709         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52710         (func_import): Only replace files via --import when they have actually
52711         changed.
52712
52713 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52714
52715         * m4/mmap-anon.m4: New file.
52716         * m4/pagealign_alloc.m4: New file.
52717
52718 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52719             Bruno Haible  <bruno@clisp.org>
52720
52721         * modules/pagealign_alloc: New file.
52722         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52723
52724 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52725             Bruno Haible  <bruno@clisp.org>
52726
52727         * lib/pagealign_alloc.h: New file.
52728         * lib/pagealign_alloc.c: New file.
52729
52730 2005-03-03  Bruno Haible  <bruno@clisp.org>
52731
52732         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52733         Use an all-permissive copyright notice, recommended by RMS.
52734
52735 2005-03-02  Bruno Haible  <bruno@clisp.org>
52736
52737         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52738         of AIX, the replacement has to be done only after <string.h> is
52739         included, therefore not in config.h. stpncpy.h does the replacement,
52740         and stpncpy.c uses it.
52741
52742 2005-03-02  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52745         stpncpy.c uses it.
52746
52747 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52748
52749         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52750         The workaround isn't strictly needed for POSIX conformance, and
52751         it's too much of a pain to configure and maintain.  We'll ask
52752         people to fix their kernels instead.
52753         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52754         (NANOSLEEP_BUG_WORKAROUND): Remove.
52755         (xnanosleep): Remove the workaround.
52756
52757 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52760         Reported by Derek Price.
52761         (Include): Add "timespec.h".
52762
52763         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52764
52765 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52766
52767         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52768         to detect nanosleep bug.
52769
52770 2005-03-01  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52773
52774 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52775
52776         * modules/gethrxtime: New file.
52777         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52778         (Depends-on): Add gethrxtime.
52779         (configure.ac): Add gl_XNANOSLEEP.
52780         (Makefile.am): Remove lib_SOURCES line.
52781
52782 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52783
52784         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52785         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52786
52787 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52788
52789         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52790         * lib/timespec.h (gettime): Return void, since it always
52791         succeeds now.  All uses changed.
52792         * lib/gettime.c (gettime) Likewise.
52793         [HAVE_NANOTIME]: Prefer nanotime.
52794         Assume gettimeofday succeeds, as POSIX requires.
52795         Assime time () succeeds, since other code already does.
52796         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52797         (timespec_subtract): Remove.
52798         (NANOSLEEP_BUG_WORKAROUND): New constant.
52799         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52800         things considerably.  Use it only on GNU/Linux hosts, since the
52801         workaround shouldn't be needed elsewhere.
52802
52803 2005-02-24  Bruno Haible  <bruno@clisp.org>
52804
52805         * modules/gettext (Files): Add m4/glibc2.m4.
52806
52807 2005-02-24  Bruno Haible  <bruno@clisp.org>
52808
52809         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52810         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52811         * m4/progtest.m4:
52812         Update from GNU gettext 0.14.2.
52813         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52814
52815 2005-02-24  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52818         * lib/config.charset: Update from GNU gettext 0.14.2.
52819
52820 2005-02-24  Bruno Haible  <bruno@clisp.org>
52821
52822         * lib/gettext.h: Update from GNU gettext 0.14.2.
52823
52824 2005-02-23  Simon Josefsson  <jas@extundo.com>
52825
52826         * m4/iconvme.m4: New file.
52827
52828 2005-02-23  Jim Meyering  <jim@meyering.net>
52829
52830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52831         change.
52832         Thanks to Bruno Haible for catching it.
52833
52834 2005-02-22  Simon Josefsson  <jas@extundo.com>
52835
52836         * modules/iconvme: New file.
52837
52838         * MODULES.html.sh: Add iconvme.
52839
52840 2005-02-22  Simon Josefsson  <jas@extundo.com>
52841
52842         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52843
52844 2005-02-22  Simon Josefsson  <jas@extundo.com>
52845
52846         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52847
52848 2005-02-22  Jim Meyering  <jim@meyering.net>
52849
52850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52851         s/ifndef/ifdef/.
52852
52853 2005-02-20  Neil Conway  <neilc@samurai.com>
52854
52855         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52856         returned by OSX/Darwin if the specified buffer is not large
52857         enough for the hostname.
52858
52859 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52860
52861         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52862         pass it to _help, otherwise the latter coredumps trying to
52863         dereference state.root_argp.
52864
52865 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52866
52867         * modules/chdir-long (Depends-on): Add memrchr.
52868         * modules/memrchr (Files): Add lib/memrchr.h.
52869         (Include): "memrchr.h".
52870
52871 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52874
52875 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52876
52877         * lib/memrchr.h: New file.
52878         * lib/chdir-long.c: Include it.
52879         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52880         Don't bother including stddef.h.
52881
52882 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52883
52884         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52885         inclusion.
52886         Include <sys/types.h>, for dev_t.
52887         (ME_DUMMY, ME_REMOTE): Move from here....
52888         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52889         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52890         Dmitry V. Levin.
52891         Include mountlist.h first, to test the interface.
52892
52893 2005-01-29  Bruno Haible  <bruno@clisp.org>
52894
52895         * lib/progname.c (program_name): Initialize.
52896         Needed when linking statically on MacOS X.
52897
52898 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         Sync from coreutils.
52901         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52902         (Depends-on): Add c-strtod.
52903         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52904
52905 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52906
52907         Sync from coreutils.
52908         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52909
52910         Remove files that are specific to coreutils.
52911         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52912
52913 2005-01-28  Bruno Haible  <bruno@clisp.org>
52914
52915         * modules/javacomp: New file.
52916         * MODULES.html.sh (Java): Add javacomp.
52917
52918 2005-01-28  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/javacomp.m4: New file, from GNU gettext.
52921
52922 2005-01-28  Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/javacomp.sh.in: New file, from GNU gettext.
52925         * lib/javacomp.h: New file, from GNU gettext.
52926         * lib/javacomp.c: New file, from GNU gettext.
52927
52928 2005-01-26  Simon Josefsson  <jas@extundo.com>
52929
52930         * lib/gai_strerror.c: Use GPL in header.
52931
52932 2005-01-26  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/javaexec: New file.
52935         * MODULES.html.sh (Java): Add javaexec.
52936
52937 2005-01-26  Bruno Haible  <bruno@clisp.org>
52938
52939         * m4/javaexec.m4: New file, from GNU gettext.
52940
52941 2005-01-26  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/javaexec.sh.in: New file, from GNU gettext.
52944         * lib/javaexec.h: New file, from GNU gettext.
52945         * lib/javaexec.c: New file, from GNU gettext.
52946
52947 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52948
52949         * modules/lchown (Depends-on): Remove lchown.h
52950
52951 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52952
52953         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52954         must be defined if the header file was not found, in order
52955         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52956
52957 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52958
52959         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52960         initializers for struct pentry_state.
52961         (__argp_error): Check return value of __asprintf
52962         (__argp_failure): Translate error message
52963
52964         * lib/argp-parse.c: Removed braces around the expansion of N_()
52965
52966 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52967
52968         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52969         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52970         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52971         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52972         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52973         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52974         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52975         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52976         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52977         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52978         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52979         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52980         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52981         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52982         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52983         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52984         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52985         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52986         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52987         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52988         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52989         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52990         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52991         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52992         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52993         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52994         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52995         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52996         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52997         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52998         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52999         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53000         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53001         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53002         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53003         Use an all-permissive copyright notice, recommended by RMS.
53004
53005 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53006
53007         * modules/chdir-long (Depends-on): Remove mempcpy.
53008
53009 2005-01-21  Jim Meyering  <jim@meyering.net>
53010
53011         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53012         same value as for Solaris 9.
53013
53014         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53015         component length.  This included changing the parameter to be
53016         of type `char *' rather than `char const *'.
53017         * lib/chdir-long.h (chdir_long): Update prototype.
53018
53019         * lib/openat.c (fdopendir, fstatat): New functions.
53020         * lib/openat.h: Include headers required for use of DIR and struct
53021         stat.
53022         [AT_SYMLINK_NOFOLLOW]: Define.
53023         (fdopendir, fstatat): Add prototypes.
53024
53025 2005-01-21  Bruno Haible  <bruno@clisp.org>
53026
53027         * modules/classpath: New file.
53028         * MODULES.html.sh (Java): Add classpath.
53029
53030 2005-01-21  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/classpath.h: New file, from GNU gettext.
53033         * lib/classpath.c: New file, from GNU gettext.
53034
53035 2005-01-20  Simon Josefsson  <jas@extundo.com>
53036
53037         * modules/version-etc-fsf: New file.
53038
53039 2005-01-20  Simon Josefsson  <jas@extundo.com>
53040
53041         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53042         * lib/version-etc.c: Remove version_etc_copyright.
53043         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53044         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53045
53046 2005-01-20  Simon Josefsson  <jas@extundo.com>
53047
53048         * lib/base64.h (isbase64): Add.
53049
53050         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53051         using a unsigned prototype, don't inline.
53052         (base64_decode): Use it.
53053
53054 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53055
53056         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53057         it.
53058
53059 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * lib/save-cwd.c (save_cwd): Remove code to support the case
53062         where fchdir is missing or flaky.
53063
53064 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53067
53068 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53069
53070         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53071         AC_LIBSOURCES now does this.
53072         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53073         with new ullong_max module.
53074
53075 2005-01-19  Bruno Haible  <bruno@clisp.org>
53076
53077         * modules/sh-quote: New file.
53078         * MODULES.html.sh (Executing programs): Add sh-quote.
53079
53080 2005-01-19  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/sh-quote.h: New file, from GNU gettext.
53083         * lib/sh-quote.c: New file, from GNU gettext.
53084
53085 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53086
53087         Merge from coreutils.
53088         * m4/ullong_max.m4: New file.
53089         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53090         (gl_MACROS): Assume localeconv exists.
53091
53092 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53093
53094         Merge changes from coreutils, as described below in several
53095         changelogs dated today.
53096
53097         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53098         (O_DIRECTORY): Remove; not needed here, since "." must be
53099         a directory.  All uses removed.
53100         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53101         universal on Suns, and we also need to test for IRIX.
53102         Revamp code to use 'if' rather than '#if'.
53103         Avoid unnecessary comparison of cwd->desc to 0.
53104
53105         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53106         for known valid error numbers rather than observed invalid ones.
53107
53108 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * modules/ullong_max: New file.
53111
53112         * modules/chdir-long, modules/openat: New files.
53113         * modules/save-cwd (Depends-on): Depend on chdir-long.
53114         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53115
53116 2005-01-18  Jim Meyering  <jim@meyering.net>
53117
53118         Merge from coreutils.
53119         * m4/chdir-long.m4, m4/openat.m4: New files.
53120         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53121         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53122         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53123         is sane and DOES follow symlinks.  Besides, testing 20 different
53124         systems found no broken chown implementations.
53125         Prompted by a change in rsync's copy of this macro.
53126         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53127
53128         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53129
53130         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53131         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53132         NULL-means-set-to-current-time semantics.
53133         Remove temporary file immediately, rather than waiting
53134         for configure's at-exit trap code to do it.
53135
53136 2005-01-18  Jim Meyering  <jim@meyering.net>
53137
53138         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53139
53140         * lib/utimens.c (futimens): Account for the fact that futimes
53141         can also fail with errno == ENOSYS or errno == ENOENT.
53142         Patch from Dmitry V. Levin.
53143
53144         Change the name of the robust chdir function from chdir to chdir_long.
53145         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53146         (restore_cwd): Use chdir_long, not chdir.
53147         * lib/chdir-long.c: Renamed from chdir.c.
53148         * lib/chdir-long.h: Renamed from chdir.h.
53149         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53150         Hurd.
53151
53152 2005-01-18  Bruno Haible  <bruno@clisp.org>
53153
53154         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53155         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53156         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53157         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53158         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53159         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53160         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53161         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53162         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53163         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53164         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53165         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53166         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53167         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53168         Use an all-permissive copyright notice, recommended by RMS.
53169
53170 2005-01-18  Bob Proulx  <bob@proulx.com>
53171
53172         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53173         simplify offsetof() macro construct to avoid compile failure with
53174         native HP-UX 11.0 ANSI C compiler.
53175
53176 2005-01-17  Bruno Haible  <bruno@clisp.org>
53177
53178         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53179         redundant because stpncpy.m4 takes care of it.
53180
53181 2005-01-17  Bruno Haible  <bruno@clisp.org>
53182
53183         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53184
53185 2005-01-17  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53188         used.
53189
53190 2005-01-17  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/fwriteerror.h (fwriteerror): Change specification to include
53193         fclose.
53194         * lib/fwriteerror.c: Include <stdbool.h>.
53195         (fwriteerror): At the end, close the file stream. Record whether
53196         stdout was already closed.
53197
53198 2005-01-17  Bruno Haible  <bruno@clisp.org>
53199
53200         * lib/execute.c (environ): Declare if needed.
53201         * lib/pipe.c (environ): Likewise.
53202         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53203
53204 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53205
53206         * modules/argp: Depend on vsnprintf
53207
53208 2005-01-10  Jim Meyering  <jim@meyering.net>
53209
53210         * modules/closeout (Depends-on): Add atexit.
53211
53212 2005-01-06  Bruno Haible  <bruno@clisp.org>
53213
53214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53215
53216 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53217
53218         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53219         definitions to be after all include files, to avoid collisions.
53220         Problem reported by Bob Proulx.
53221
53222 2005-01-04  Jim Meyering  <jim@meyering.net>
53223
53224         Changes imported from coreutils.
53225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53226         as the mkstemp template, use a temporary directory and an
53227         8.3-friendly template to avoid trouble on systems like DJGPP.
53228         Reported by Juan M. Guerrero via Stepan Kasal.
53229         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53230         close. Remove the temporary directory right away, rather than waiting
53231         for configure's at-exit trap code to do it.
53232         Suggestion from Stepan Kasal.
53233
53234 2005-01-01  Simon Josefsson  <jas@extundo.com>
53235
53236         * gnulib-tool: Print #include directives when --import'ing.
53237
53238 2004-12-28  Simon Josefsson  <jas@extundo.com>
53239
53240         * tests/test-base64.c: Include required header files.  Remove
53241         unused variables.
53242
53243 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         * modules/error (Depends-on): Remove gettext.
53246
53247 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53250         not needed.  This removes a dependency on the gettext module.
53251         [defined _LIBC]: Do not include <libintl.h>; not needed.
53252
53253 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53256         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53257
53258 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53259
53260         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53261         HAVE_DECL_STRTOLD.
53262
53263 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53264
53265         * modules/getdate (Depends-on): Remove alloca-opt.
53266
53267 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53268
53269         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53270
53271 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53272
53273         * lib/argp-parse.c: Include <stddef.h>.
53274         (alignof, alignto): New macros.
53275         (parser_init): Don't assume that void * is aligned sufficiently
53276         for struct option.
53277
53278         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53279         need to extend the stack.
53280         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53281         large.
53282
53283 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53284
53285         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53286
53287 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53290         (2004-10-24) change.  Apparently this was a false alarm.
53291
53292         * modules/getdate: Depend on alloca-opt, not alloca.
53293
53294 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53297         Remove now-obsolete comment about AIX.
53298         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53299         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53300         (YYMAXDEPTH): New macro.
53301
53302 2004-12-18  Simon Josefsson  <jas@extundo.com>
53303
53304         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53305
53306 2004-12-18  Bruno Haible  <bruno@clisp.org>
53307
53308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53309
53310 2004-12-18  Bruno Haible  <bruno@clisp.org>
53311
53312         * lib/fatal-signal.c (fatal_signals): Make non-const.
53313         (init_fatal_signals): New function.
53314         (uninstall_handlers, install_handlers): Ignore signals that were set to
53315         SIG_IGN.
53316         (at_fatal_signal): Call init_fatal_signals.
53317         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53318         SIG_IGN.
53319         Reported by Paul Eggert.
53320
53321 2004-12-18  Bruno Haible  <bruno@clisp.org>
53322
53323         * doc/alloca.texi: New file.
53324         * doc/alloca-opt.texi: New file.
53325
53326 2004-12-17  Jim Meyering  <jim@meyering.net>
53327
53328         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53329         Otherwise, install-sh could exit with improper exit status when
53330         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53331
53332 2004-12-16  Simon Josefsson  <jas@extundo.com>
53333
53334         * tests/test-base64.c: Add license.
53335
53336 2004-12-15  Stepan Kasal  <address@hidden>
53337
53338         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53339
53340 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         * modules/getcwd (Files): Add m4/d-ino.m4.
53343         Suggested by Mark D. Baushke.
53344
53345 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53346
53347         * lib/getdate.y (textint): New member "negative".
53348         (time_zone_hhmm): New function.
53349         Expect 14 shift-reduce conflicts, not 13.
53350         (o_colon_minutes): New rule.
53351         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53352         (yylex): Set the "negative" member of signed numbers.
53353
53354 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53355
53356         * doc/getdate.texi (Time of day items, Time zone items):
53357         Describe new formats +00:00, UTC+00:00.
53358
53359 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53360
53361         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53362         spurious "-l"s.  Problem reported by Stepan Kasal.
53363
53364 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53365
53366         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53367         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53368
53369 2004-12-04  Simon Josefsson  <jas@extundo.com>
53370
53371         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53372         Vandoorselaere <yoann@prelude-ids.org>.
53373
53374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         Changes imported from coreutils.
53377         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53378         exist.
53379         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53380
53381 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53382
53383         Changes imported from coreutils.
53384         * lib/hard-locale.c: Assume <locale.h> exists.
53385         Include "strdup.h".
53386         (GLIBC_VERSION): New macro.
53387         (hard_locale): Assume setlocale exists.
53388         Rewrite to avoid #ifdef.
53389         Use strdup rather than malloc + strcpy.
53390         * lib/human.c: Assume <locale.h> exists.
53391         (human_readable): Assume localeconv exists.
53392
53393 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53394
53395         * modules/hard-locale (Depends-on): Add strdup.
53396
53397 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53398
53399         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53400         convert T2, not T.  (Imported from libc.)
53401
53402 2004-11-30  Simon Josefsson  <jas@extundo.com>
53403
53404         * modules/restrict (License): Change to LGPL.
53405
53406 2004-11-30  Simon Josefsson  <jas@extundo.com>
53407
53408         * m4/restrict.m4: Add copyright and copying conditions.
53409
53410 2004-11-30  Simon Josefsson  <jas@extundo.com>
53411
53412         * m4/base64.m4: New file.
53413
53414 2004-11-30  Simon Josefsson  <jas@extundo.com>
53415
53416         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53417         base64.
53418
53419         * tests/test-base64.c: New file.
53420
53421         * modules/base64: New file.
53422
53423 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53424
53425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53426         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53427
53428         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53429
53430 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53433         (__getcwd.c): Don't restore errno; glibc doesn't.
53434         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53435         first, falling back to our code only if its results look suspicious.
53436         Ensure that the resulting buffer is only as large as necessary.
53437
53438         * lib/readutmp.c: Include readutmp.h first.
53439         Include <errno.h>, since readutmp.h no longer does that.
53440         * lib/readutmp.h: Don't include <errno.h>,
53441         <sys/param.h>, <time.h>; not needed to establish interface.
53442         (errno): Remove decl.
53443         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53444         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53445         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53446
53447 2004-11-28  Simon Josefsson  <jas@extundo.com>
53448
53449         * lib/base64.h, base64.c: New file.
53450
53451 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53454
53455 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53458         (Depends-on): Remove pathmax, same.  Add mempcpy.
53459         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53460         (Makefile.am): Append getcwd.h to lib_SOURCES.
53461         (Include): Add getcwd.h.
53462         (Maintainer): Change from Jim Meyering to "all, glibc",
53463         since getdate now uses intended-for-glibc code.
53464         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53465         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53466
53467 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53468
53469         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53470         HP's ANSI C compiler.
53471         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53472         Declaring int functions causes warnings on some modern systems and
53473         shouldn't be needed to compile on ancient ones.
53474         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53475         defined.
53476
53477         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53478         with the following changes.
53479         (__set_errno): Parenthesize properly.
53480         Include <stdbool.h>.
53481         (MIN, MAX, MATCHING_INO): New macros.
53482         (__getcwd): Define with prototype, not K&R form.
53483         Use heuristics to allocate default buffer on stack if possible.
53484         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53485         behavior, and to avoid the PATH_MAX limit when computing
53486         ../../../../...
53487         Use MATCHING_INO to compare inode number to file.
53488         Check for arithmetic overflow in size calculations.
53489         Fix bug in reallocation of dot array that caused getcwd to fail
53490         on directories nested deeper than 75.
53491         Be more careful about saving errno on error.
53492         Do not use realloc; use only free+malloc, as this is a bit
53493         more flexible and avoids a needless copy operation.
53494         Do not inspect st_dev and st_ino for symbolic links; POSIX
53495         doesn't specify the latter.
53496         Check for closedir errors.
53497         Avoid needless casts.
53498         Use "#ifdef weak_alias" around weak_alias, to be like other
53499         glibc code.
53500         The following changes to getcwd.c have effect only when used in
53501         gnulib; they have no effect inside glibc proper.
53502         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53503         as alloca isn't used.
53504         (alloca, __alloca): Likewise.
53505         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53506         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53507         unconditionally, as gnulib assumes C89 or better.
53508         Do not include <sys/param.h>.
53509         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53510         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53511         better.
53512         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53513         Include <dirent.h> in a way that is compatible with modern Autoconf.
53514         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53515         New macros, if not already defined.
53516         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53517         Use "_LIBC", not "defined _LIBC", for consistency.
53518         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53519         a mempcpy module.
53520         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53521         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53522         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53523         credit only to Jim Meyering and adjust the copyright dates.
53524         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53525         <stdlib.h>, <unistd.h>, "pathmax.h".
53526         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53527         (INITIAL_BUFFER_SIZE): Remove.
53528         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53529
53530 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53531
53532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53533         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53534         Use the _ONCE methods, for efficiency.
53535         Check for fcntl.h.  In test program, include <errno.h>
53536         and <fcntl.h> if available.  Remove old K&R cruft from
53537         test program.  Check for common errors in GNU/Linux,
53538         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53539         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53540         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53541         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53542         name accordingly.
53543         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53544         accommodate new getcwd.c.
53545         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53546         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53547         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53548         that's all we need now.
53549
53550 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53551
53552         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53553         argp-parse.c depends on getopt internals, that means we should
53554         always use our getopt, to be on the safe side.
53555         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53556         order not to spoil the result of an eventual previous invocation
53557         of gl_GETOPT_SUBSTITUTE.
53558
53559 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53560
53561         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53562         redefinition warnings. To avoid them, include the defines
53563         in `#if !defined __need_getopt ... #endif'. The only place
53564         where __getopt_argv_const is used is in definitions
53565         of getopt_long and getopt_long_only below, which are as well
53566         protected by `#ifndef __need_getopt'.
53567         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53568         __need_getopt after including <stdio.h> and <unistd.h> These
53569         headers might have defined it.
53570
53571 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53574
53575 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53578         (futimens): New function, which uses futimes if available.
53579         (futimens, utimens): Support timespec==NULL, with same semantics
53580         as utime and utimens.
53581         * lib/utimens.h (futimens): New decl.
53582
53583 2004-11-23  Jim Meyering  <jim@meyering.net>
53584
53585         * lib/getopt_.h: Remove trailing blanks.
53586
53587 2004-11-23  Jim Meyering  <jim@meyering.net>
53588
53589         * lib/__fpending.c: Add comment.
53590
53591 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * modules/canonicalize (Depends-on): Add xreadlink.
53594         Problem reported by James Youngman.
53595
53596 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53597
53598         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53599         New macros.
53600         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53601         optopt): Use them instead of invoking ## directly; otherwise, the
53602         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53603
53604 2004-11-19  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/strtok_r.c: Move comments from here...
53607         * lib/strtok_r.h: ... to here.
53608
53609 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53612         implementations that mishandle size_t overflow.
53613
53614 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53617         might fail.  Problem reported by Yoann Vandoorselaere.
53618         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53619         implementations that mishandle size_t overflow.
53620
53621 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * modules/canon-host (Depends-on): Add strdup.
53624
53625 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53626
53627         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53628
53629 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         * lib/canon-host.c: Include "strdup.h".
53632         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53633         Use strdup instead of malloc/strcpy to duplicate strings.
53634
53635         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53636         (human_space_before_unit): New constant.
53637         * lib/human.c (human_readable): Support it.
53638
53639         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53640         (xgetcwd): Set errno correctly when failing.
53641         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53642         the failure is actually due to a PATH_MAX problem.
53643
53644         Further getopt changes to make it more likely that glibc will
53645         buy the changes back.
53646         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53647         (getopt): Use it, so to preserve glibc semantic
53648         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53649         when compiling for libc.
53650         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53651         (getopt_long, getopt_long_only): Use it.
53652
53653         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53654         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53655         (getopt): Argv is now char * const *, as per standard.
53656         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53657         not char *__getopt_argv_const *.
53658         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53659         _getopt_long_only_r): Likewise.
53660         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53661         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53662         _getopt_long_r, _getopt_long_only_r): Likewise.
53663         * lib/getopt_.h (__getopt_argv_const): Remove.
53664         (getopt): Argv is now char * const *, as per standard.
53665
53666         * lib/getdate.y (tORDINAL): New token.
53667         (day, relunit): Allow it for relative times.
53668         (relative_time_table): Use tORDINAL for ordinals.
53669
53670 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53673         Document that "second" isn't allowed as an ordinal number.
53674
53675 2004-11-16  Jim Meyering  <jim@meyering.net>
53676
53677         * modules/closeout (Depends-on): Add fpending.
53678
53679 2004-11-15  Jim Meyering  <jim@meyering.net>
53680
53681         * lib/closeout.c: Include "__fpending.h" once again.
53682         Include <stdbool.h>.
53683         (close_stdout): Don't fail just because stdout was closed initially,
53684         since some programs don't write to stdout in the normal course of
53685         operation (other than --version and --help), and we don't want this
53686         function to make e.g. `touch file >&-' fail.
53687         But do fail if it was closed and someone has tried to write to it.
53688         E.g., `printf foo >&-' must fail.
53689
53690 2004-11-13  Jim Meyering  <jim@meyering.net>
53691
53692         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53693
53694 2004-11-12  Simon Josefsson  <jas@extundo.com>
53695
53696         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53697         small doc fix is still pending.
53698
53699 2004-11-11  Simon Josefsson  <jas@extundo.com>
53700
53701         * modules/strtok_r: New file.
53702
53703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53704         strtok_r.
53705
53706 2004-11-11  Simon Josefsson  <jas@extundo.com>
53707
53708         * m4/strtok_r.m4: New file.
53709
53710         * m4/getopt.m4: Replace opterr.
53711
53712 2004-11-11  Simon Josefsson  <jas@extundo.com>
53713
53714         * lib/strtok_r.h, strtok_r.c: New file.
53715
53716 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53719         of replacing opterr, getopt, etc.  This should handle the
53720         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53721
53722 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53725         we can stop lying to compilers about the constness of argv when we
53726         are compiled outside glibc.
53727         (getopt, getopt_long, getopt_long_only): Use it.
53728         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53729         _getopt_internal, getopt): Likewise.
53730         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53731         _getopt_long_only_r): Likewise.
53732         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53733         _getopt_long_r, _getopt_long_only_r): Likewise.
53734
53735         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53736         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53737         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53738         the other external symbols.
53739         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53740         declaration, since the above renaming now works around collisions.
53741
53742 2004-11-11  Jim Meyering  <jim@meyering.net>
53743
53744         * lib/linebreak.c: Remove trailing blanks.
53745         * lib/alloca_.h: Likewise.
53746         * lib/acosl.c: Likewise.
53747         * lib/euidaccess.c: Likewise.
53748         * lib/allocsa.h: Likewise.
53749
53750 2004-11-10  Simon Josefsson  <jas@extundo.com>
53751
53752         * m4/getaddrinfo.m4: New file.
53753
53754 2004-11-10  Simon Josefsson  <jas@extundo.com>
53755
53756         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53757
53758 2004-11-10  Simon Josefsson  <jas@extundo.com>
53759
53760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53761         getaddrinfo.
53762
53763         * modules/getaddrinfo: New file.
53764
53765 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53768
53769 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * lib/mktime.c (SHR): New macro, which is a portable
53772         substitute for >> that should work even on Crays.
53773         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53774         Problem reported by Mark D. Baushke in
53775         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53776         * lib/getdate.y (SHR): Likewise.
53777         (tm_diff): Use it.
53778         * lib/strftime.c (SHR): Likewise.
53779         (tm_diff): Use it.
53780         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53781         quote_these_too, so that right shifts are well defined.  All uses
53782         changed.
53783
53784 2004-11-10  Jim Meyering  <jim@meyering.net>
53785
53786         Ensure that no close failure goes unreported.
53787         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53788         return early when it seems there's nothing to flush.
53789         Don't include __fpending.h.
53790
53791 2004-11-10  Jim Meyering  <jim@meyering.net>
53792
53793         * modules/closeout (Depends-on): Remove fpending.
53794
53795 2004-11-10  Jim Meyering  <jim@meyering.net>
53796
53797         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53798
53799 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53800
53801         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53802         gl_FUNC_STRFTIME.
53803         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53804         and AC_REQUIRE when possible, to avoid duplicate checks.
53805         Check for <wchar.h>.
53806
53807 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53810
53811 2004-11-09  Bruno Haible  <bruno@clisp.org>
53812
53813         * m4/sockpfaf.m4: New file.
53814
53815 2004-11-05  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53818         Reported by Mark D. Baushke <mdb@cvshome.org>.
53819
53820 2004-11-04  Bruno Haible  <bruno@clisp.org>
53821
53822         2004-09-11  Bruno Haible  <bruno@clisp.org>
53823                 * allocsa.valgrind: New file.
53824         2004-02-06  Bruno Haible  <bruno@clisp.org>
53825                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53826                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53827                 Reported by Christopher Seip <chris.seip@hp.com>.
53828
53829 2004-11-04  Bruno Haible  <bruno@clisp.org>
53830
53831         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53832         (Makefile.am): Distribute it.
53833
53834 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53837         with errno == ERANGE if the buffer is too small.
53838         Problem reported by Mark D. Baushke.
53839
53840 2004-11-03  Albert Chin  <china@thewrittenword.com>
53841             Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53844         equivalent, substitute $ac_type for equivalent type rather than
53845         blindly using uint32_t *always* which won't work if uint32_t is not
53846         available.  Define _UINT32_T to work around typedef of uint32_t if
53847         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53848         2.5.1.
53849
53850 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53851
53852         * m4/jm-macros.m4: Sync from coreutils.
53853         (gl_MACROS): Check for mbrlen, for pathchk.
53854         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53855
53856 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * lib/xreadlink.c (MAXSIZE): New macro.
53859         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53860         size does not exceed MAXSIZE.  Avoid cast.
53861         As suggested by Mark D. Baushke in
53862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53863         if readlink fails with buffer size just under MAXSIZE, try again
53864         with MAXSIZE.
53865
53866 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53869
53870 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53871         and  Paul Eggert  <eggert@cs.ucla.edu>
53872
53873         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53874         (get_date): Overparenthesize to avoid GCC warning.
53875
53876 2004-11-02  Bruno Haible  <bruno@clisp.org>
53877
53878         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53879         returns void.
53880
53881 2004-11-02  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53884         function returns void.
53885
53886 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53889         fflush_unlocked, flockfile, funlockfile, funlockfile,
53890         fputs_unlocked, putc_unlocked.
53891
53892 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53895         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53896         already declared.
53897
53898 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * modules/getdate (Files): Add doc/getdate.texi.
53901         (Depends-on): Add setenv, xalloc.
53902
53903 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53904
53905         * lib/getdate.y: Add support for TZ="foo" within a date string.
53906         Fix some bugs near time_t boundaries.  Reject dates with
53907         out-of-range components, e.g., "Sept 31".
53908         Include <stdlib.h>, "setenv.h", "xalloc.h".
53909         (ISDIGIT_LOCALE): Remove; unused.
53910         Note that the TZ and time functions used here are not reentrant.
53911         (mktime_ok, get_tz): New functions.
53912         (TZBUFSIZE): New constant.
53913         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53914         This requires that we sometimes generate our own TZ="XXX..." setting.
53915
53916 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         * doc/getdate.texi: New file, from coreutils with modifications for
53919         the new TZ parsing.
53920
53921 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53922
53923         * lib/mktime.c (not_equal_tm): Remove redundant check.
53924
53925 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53926
53927         * modules/regex (lib_SOURCES): Add regex.c.
53928         Reported by James Youngman in
53929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53930
53931 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53932
53933         * lib/getdate.y: Use Bison 1.875 features, and some minor
53934         code cleanups.  This change does not affect semantics.
53935         Don't include <stdlib.h>; no longer needed.
53936         Don't include unlocked-io.h; only the "#if TEST" code uses
53937         stdio, and performance isn't crucial there.
53938         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53939         Bison 1.875 features as described below.
53940         All uses of "PC." replaced by "pc->".
53941         (YYSTYPE): Add a forward declaration.
53942         (yylex, yyerror): Use full prototypes in forward decls.
53943         Use "%pure-parser" rather than obsolescent "%pure_parser".
53944         Use %parse-param and %lex-param instead of obsolescent
53945         YYPARSE_PARAM and YYLEX_PARAM.
53946         (meridian_table, month_and_day_table, time_units_table,
53947         relative_time_table, time_zone_table, military_table,
53948         lookup_zone, lookup_word, get_date):
53949         Use NULL instead of 0 where appropriate.
53950         (to_hour): Avoid abort (), to avoid a dependency on
53951         stdlib.h.
53952         (yyerror, yylex): Now accepts parser_control * arg.
53953         (main) [TEST]: Use '\0' rather than 0 for char.
53954
53955 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53958
53959 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53962         It's now the caller's responsibility to handle the case where
53963         !HAVE_GETPAGESIZE && !defined getpagesize.
53964
53965         * lib/mktime.c (leapyear): Arg is long int, not int.
53966
53967 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53968
53969         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53970
53971 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53974         missing.  Problem reported by James Youngman.
53975
53976 2004-10-16  Simon Josefsson  <jas@extundo.com>
53977
53978         * gnulib-tool: Fix comments.  Fix parse problem.
53979         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53980
53981 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53982
53983         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53984         implementation of getopt_long.  Problem reported by Alexander Taler in:
53985         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53986
53987 2004-10-15  Bruno Haible  <bruno@clisp.org>
53988
53989         * gnulib-tool: Untabify. Initialize supplied_libname.
53990         (func_usage): More homogenous output.
53991         (func_modules_transitive_closure, func_modules_to_filelist,
53992         func_emit_lib_Makefile_am): New functions.
53993         (func_import): New function, extracted from big case statement. Use
53994         func_get_license, func_modules_transitive_closure,
53995         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53996         opt_lgpl. Don't use test -a, as it's not portable.
53997         (func_create_testdir): Use func_modules_transitive_closure,
53998         func_modules_to_filelist, func_emit_lib_Makefile_am.
53999
54000 2004-10-15  Bruno Haible  <bruno@clisp.org>
54001
54002         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54003
54004 2004-10-15  Bruno Haible  <bruno@clisp.org>
54005
54006         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54007         the portions belonging to each module.
54008         Suggested by Derek Robert Price <derek@ximbiot.com>.
54009
54010 2004-10-12  Simon Josefsson  <jas@extundo.com>
54011
54012         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54013         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54014         to real functions.
54015
54016 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54017
54018         * modules/vsnprintf: New file.
54019
54020 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54021
54022         * m4/vsnprintf.m4: New file.
54023
54024 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54025
54026         * lib/vsnprintf.h: New file.
54027         * lib/vsnprintf.c: New file.
54028
54029 2004-10-11  Bruno Haible  <bruno@clisp.org>
54030
54031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54032         vsnprintf.
54033
54034 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54035
54036         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54037
54038 2004-10-07  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54041         fits into the provided buffer.
54042
54043 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/diacrit.c, diacrit.h: Add GPL notice.
54046
54047         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54048         notice.
54049         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54050         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54051         This avoids a potential constant-folding bug.
54052
54053 2004-10-05  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54056         for the declaration of strsep.
54057
54058 2004-10-05  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54061
54062 2004-10-04  Simon Josefsson  <jas@extundo.com>
54063
54064         * modules/memmem: New file.
54065         * tests/test-memmem.c: New file.
54066         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54067
54068 2004-10-04  Simon Josefsson  <jas@extundo.com>
54069
54070         * m4/memmem.m4: New file.
54071
54072 2004-10-04  Simon Josefsson  <jas@extundo.com>
54073
54074         * lib/memmem.h: New file.
54075         * lib/memmem.c: New file, taken from glibc.
54076
54077 2004-10-04  Simon Josefsson  <jas@extundo.com>
54078
54079         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54080         '#ifdef USE_UNLOCKED_IO'.
54081
54082 2004-10-04  Simon Josefsson  <jas@extundo.com>
54083
54084         * config/srclist.txt: Add memmem from glibc.
54085
54086 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54089
54090         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54091         modules/exclude, modules/getdate, modules/getline,
54092         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54093         modules/getusershell, modules/linebuffer, modules/md5,
54094         modules/mountlist, modules/posixtm, modules/readtokens,
54095         modules/readutmp, modules/regex, modules/sha1,
54096         modules/version-etc, modules/yesno:
54097         Remove dependency on unlocked-io.
54098
54099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54100
54101         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54102
54103         * m4/unlocked-io.m4: Add copyright notice.
54104         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54105
54106 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54109         * lib/xmalloc.c (xmemdup): Likewise.
54110         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54111         XFREE): Remove these long-obsolescent macros.
54112         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54113         * lib/xstrdup.c: Remove.
54114
54115         * lib/regex.c (re_comp): Cast gettext return value to char *,
54116         Problem reported by Martin Neitzel via Mark D. Baushke.
54117
54118 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54121         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54122         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54123         regex.c, sha1.c, version-etc.c, yesno.c:
54124         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54125         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54126         the includer's responsibility.
54127
54128         Sync from coreutils.
54129
54130         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54131         points to the start of a string, as the C Standard says the
54132         resulting behavior is undefined.
54133
54134         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54135         simple -> simple_backups, numbered_existing ->
54136         numbered_existing_backups, numbered -> numbered_backups
54137         to avoid shadowing problems.  All uses changed.
54138         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54139         * lib/backupfile.c (check_extension, numbered_backup):
54140         Rename locals to avoid shadowing 'basename'.
54141         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54142         once.
54143
54144         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54145         * lib/.cvsignore: Add getopt.h.
54146
54147 2004-10-04  Bruno Haible  <bruno@clisp.org>
54148
54149         * modules/README: New file.
54150         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54151         not a module.
54152
54153 2004-10-02  Jim Meyering  <jim@meyering.net>
54154
54155         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54156
54157 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54158
54159         * modules/strsep: New file.
54160
54161 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54162
54163         * m4/strsep.m4: New file.
54164
54165 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54166
54167         * lib/strsep.h: New file.
54168         * lib/strsep.c: New file.
54169
54170 2004-10-01  Simon Josefsson  <jas@extundo.com>
54171
54172         * lib/snprintf.c (snprintf): Handle size==0.
54173
54174 2004-10-01  Simon Josefsson  <jas@extundo.com>
54175             Bruno Haible  <bruno@clisp.org>
54176
54177         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54178         (snprintf): Declare 'args'.
54179
54180 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54181
54182         * lib/snprintf.c: Remove comments as to why each header is needed.
54183
54184 2004-10-01  Bruno Haible  <bruno@clisp.org>
54185
54186         * MODULES.html.sh: Add strsep.
54187
54188 2004-09-30  Simon Josefsson  <jas@extundo.com>
54189
54190         * modules/snprintf: New file.
54191
54192 2004-09-30  Simon Josefsson  <jas@extundo.com>
54193
54194         * m4/snprintf.m4: New file.
54195
54196 2004-09-30  Simon Josefsson  <jas@extundo.com>
54197
54198         * lib/snprintf.h, lib/snprintf.c: New files.
54199
54200 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54201
54202         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54203         (hol_entry_help): Never translate an empty string.
54204         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54205         * lib/argp.h (OPTION_NO_TRANS): New option.
54206
54207 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54208
54209         * modules/argp (Maintainer): Replace Simon Josefsson
54210         by Sergey Poznyakoff.
54211
54212 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54213
54214         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54215         changes merged back into glibc.
54216
54217 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54220
54221 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54222
54223         * lib/xvasprintf.c: Include xalloc.h.
54224         (xvasprintf): Use xalloc_die, not xmalloc_die.
54225
54226 2004-09-29  Bruno Haible  <bruno@clisp.org>
54227
54228         * modules/alloca-opt: New file, derived from modules/alloca.
54229         * modules/allocsa: Depend on alloca-opt instead of alloca.
54230         * modules/setenv: Likewise.
54231         * modules/vasnprintf: Likewise.
54232         * MODULES.html.sh: Add alloca-opt.
54233
54234 2004-09-28  Simon Josefsson  <jas@extundo.com>
54235
54236         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54237         LGPL, and to replace license template from GPL to LGPL.
54238
54239 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54240
54241         * modules/dummy: Change license to LGPL.
54242
54243 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54244
54245         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54246
54247 2004-09-24  Simon Josefsson  <jas@extundo.com>
54248
54249         * modules/minmax (License): Change from GPL to LGPL.
54250
54251 2004-09-23  Simon Josefsson  <jas@extundo.com>
54252
54253         * gnulib-tool (--import): Typo.
54254
54255 2004-09-23  Simon Josefsson  <jas@extundo.com>
54256
54257         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54258
54259 2004-09-22  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/*: Add 'License' field.
54262         * gnulib-tool: Accept --extract-license option.
54263         (func_get_license): New function.
54264
54265 2004-09-21  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54268         Reported by Simon Josefsson.
54269
54270 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54273         gl_AC_TYPE_LONG_LONG.
54274
54275 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54276
54277         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54278
54279 2004-09-18  Simon Josefsson  <jas@extundo.com>
54280         and  Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54283         calls with autoreconf.  Define GL_LIB.
54284
54285 2004-09-14  Karl Berry  <karl@gnu.org>
54286
54287         * config/srclist.txt: unsync setenv.c, sigh.
54288
54289 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54292         Problem reported by Bruno Haible in:
54293         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54294
54295 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54296
54297         * config/srclist.txt: Comment out argp-pvh.c.
54298
54299 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54302         in case some system header has #define'd it.  Problem reported by
54303         Soeren D. Schulze in
54304         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54305
54306 2004-09-09  Karl Berry  <karl@gnu.org>
54307
54308         * regex.[ch]: delete from the root.  These were supposed to be
54309                 synced with emacs cvs, but this has not happened for about
54310                 a year, and anyway nothing else uses emacs regex.[ch].
54311                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54312                 lib/regex[.ch] is untouched.
54313
54314 2004-09-09  Bruno Haible  <bruno@clisp.org>
54315
54316         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54317
54318 2004-09-09  Bruno Haible  <bruno@clisp.org>
54319
54320         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54321         modifications.
54322         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54323
54324 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54325
54326         * modules/xvasprintf: New file.
54327         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54328
54329 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54330
54331         * lib/xvasprintf.h: New file.
54332         * lib/xvasprintf.c: New file.
54333         * lib/xasprintf.c: New file.
54334
54335 2004-09-08  Bruno Haible  <bruno@clisp.org>
54336
54337         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54338
54339 2004-09-08  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54342         length is > INT_MAX.
54343         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54344         more.
54345
54346 2004-09-08  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/stdint_.h: New file, taken from GNU clisp.
54349
54350 2004-09-08  Bruno Haible  <bruno@clisp.org>
54351             Oskar Liljeblad  <oskar@osk.mine.nu>
54352
54353         * modules/stdint: New file.
54354         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54355
54356 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         Import from coreutils.
54359         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54360         strings on unbounded length.  alloca's performance benefits aren't
54361         that important here.
54362         (V_STRDUP): Remove.
54363         (parse_with_separator): New function, with most of the internals
54364         of the old parse_user_spec.  Allow user to omit both user and group,
54365         for compatibility with FreeBSD.
54366         Clone only the user name, not the entire spec.
54367         Do not set *uid, *gid unless entirely successful.
54368         Avoid memory leak in some failing cases.
54369         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54370         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54371         (parse_user_spec): Rewrite to use parse_with_separator.
54372
54373 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54374
54375         * modules/userspec: Don't depend on alloca.
54376
54377 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54378
54379         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54380
54381 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54384         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54385         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54386
54387 2004-08-16  Simon Josefsson  <jas@extundo.com>
54388
54389         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54390         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54391         Add --dry-run for --import.
54392         Let user provided command line parameters override configure.ac
54393         settings.
54394
54395 2004-08-12  Simon Josefsson  <jas@extundo.com>
54396
54397         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54398         as discussed with Paul Eggert in threads rooted at
54399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54400         and
54401         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54402         Before, the test was empty, and relied on ELIDE_CODE in source
54403         code.)
54404         (gl_PREREQ_GETOPT): New macro.
54405         (gl_GETOPT): Use them.
54406
54407 2004-08-12  Simon Josefsson  <jas@extundo.com>
54408
54409         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54410         * lib/getopt_.h: Renamed from getopt.h.
54411
54412 2004-08-12  Simon Josefsson  <jas@extundo.com>
54413
54414         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54415         Change default library name from libfoo to libgnu.
54416         Now, if you have a configure.ac that says:
54417                 gl_SOURCE_BASE(gl)
54418                 gl_M4_BASE(gl/m4)
54419                 gl_MODULES(error getopt etcetera)
54420                 gl_INIT
54421         you can import all you need by running:
54422                 ../gnulib/gnulib-tool --import
54423
54424         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54425         (Makefile.am): Rewrite, use logic from argz.
54426         (Include): Use <getopt.h> instead of "getopt.h".
54427
54428 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54429
54430         * modules/argp (Files): Add m4/unlocked-io.m4.
54431         (Depends-on): Add extensions.
54432
54433 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54436         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54437         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54438         Check for program_invocation_name, program_invocation_short_name,
54439         flockfile, funlockfile, features.h, _getopt_long_only_r.
54440
54441 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54442
54443         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54444         its complicated substitute.
54445         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54446         and program_invocation_name.
54447         (__argp_basename) [!_LIBC]: Remove; the only use was
54448         replaced by its body.
54449         (__argp_short_program_name): Change condition from
54450         !defined __argp_short_program_name to
54451         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54452         to match argp-namefrob.h.
54453         (__argp_failure): Don't assume strerror_r returns char *.
54454         * lib/argp-parse.c (N_): Define unconditionally.
54455         (argp_default_options): Fill out initializers with 0 to avoid
54456         gcc warnings.
54457
54458 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54459
54460         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54461         getopt1.c.
54462
54463 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         Merge from coreutils.
54466
54467         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54468
54469         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54470         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54471
54472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54473
54474         Merge from coreutils.
54475
54476         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54477         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54478         for Reliant Unix 5.43.
54479
54480         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54481         (union fooround): Use uintmax_t, not long int.
54482         The rest is a merge from libc:
54483         [defined _LIBC]: Include <shlib-compat.h>.
54484         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54485
54486         * lib/settime.c (settime): Recode to avoid warning with
54487         Sun Forte C 6U2.
54488
54489         * lib/strverscmp.c: Convert to UTF-8.
54490
54491 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54492
54493         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54494         m4/uintmax_t.m4.
54495
54496 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54497
54498         * modules/xalloc-die: New file.
54499         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54500
54501         * modules/md5 (Files): Add m4/uint32_t.m4.
54502         * modules/sha1: Renamed from modules/sha.
54503         (Files):
54504         Rename lib/sha.h to lib/sha1.h.
54505         Rename lib/sha.c to lib/sha1.c.
54506         Rename m4/sha.m4 to m4/sha1.m4.
54507         (lib_SOURCES): Likewise.
54508         (configure.ac): Rename gl_SHA to gl_SHA1.
54509         (Include): sha.h -> sha1.h.
54510
54511 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54514         * m4/sha1.m4: Renamed from sha.m4.
54515         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54516
54517 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * lib/obstack.h (obstack_empty_p):
54520         Don't assume that chunk->contents is suitably aligned.
54521         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54522         Likewise. Problem reported by Benno in
54523         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54524
54525         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54526         readable.  This could be improved further but it'd take some work.
54527
54528 2004-08-08  Simon Josefsson  <jas@extundo.com>
54529
54530         * modules/xgethostname (Depends-on): Remove exit and error (not
54531         used).
54532
54533         * modules/getpass-gnu: Add getpass.h.
54534         (Depends-on): Add stdbool.
54535         * modules/getpass: Add getpass.h.
54536
54537 2004-08-08  Simon Josefsson  <jas@extundo.com>
54538
54539         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54540         Check getpass declaration.
54541
54542 2004-08-08  Simon Josefsson  <jas@extundo.com>
54543
54544         * lib/xgethostname.c: Don't include error.h (not used).
54545
54546         * lib/getpass.h: Add.
54547         * lib/getpass.c: Include getpass.h first.
54548
54549 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54550
54551         * lib/xalloc-die.c: New file.
54552         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54553         All uses removed.
54554         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54555         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54556         xalloc-die.c.
54557         (_, N_, xalloc_die): Move to xalloc-die.c.
54558         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54559         so that we needn't mess with xalloc_msg_memory_exhausted.
54560
54561         * lib/sha1.h: Renamed from sha.h.
54562         (SHA1_H): Renamed from _SHA_H.
54563         (sha1_ctx): Renamed from sha_ctx.
54564         (sha1_init_ctx): Renamed from sha_init_ctx.
54565         (sha1_process_block): Renamed from sha_process_block.
54566         (sha1_process_bytes): Renamed from sha_process_bytes.
54567         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54568         (sha1_read_ctx): Renamed from sha_read_ctx.
54569         (sha1_stream): Renamed from sha_stream.
54570         (sha1_buffer): Renamed from sha_buffer.
54571         * lib/sha1.c: Likewise; renamed from sha.c.
54572         Do not include <sys/types.h>.
54573         Include <stddef.h> rather than <stdlib.h>.
54574
54575 2004-08-08  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54578         FILESYSTEM_PREFIX_LEN.
54579         * lib/progreloc.c: Likewise.
54580         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54581
54582 2004-08-06  Simon Josefsson  <jas@extundo.com>
54583
54584         * modules/progname (Depends-on): Don't depend on stdbool.
54585
54586 2004-08-06  Simon Josefsson  <jas@extundo.com>
54587
54588         * modules/getsubopt: New file.
54589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54590         getsubopt.
54591
54592 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         More merge from coreutils.
54595
54596         * m4/utimens.m4, m4/utimecmp.m4: New files.
54597         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54598         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54599         prereq.m4, sha.m4: Import changes from coreutils.
54600
54601 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         More merge from coreutils.
54604         * modules/raise, modules/readtokens0, modules/utimens:
54605         * modules/utimecmp, module/xnanosleep: New files.
54606         * modules/strftime: Add lib/strftime.h.
54607         Change include from <time.h> to "strftime.h".
54608         * modules/yesno: Add lib/yesno.h.
54609         * modules/backupfile: Remove lib/addext.c.
54610         * modules/euidaccess: Add stat-macros.h.
54611         * modules/canonicalize, modules/euidaccess,
54612         modules/filemode, modules/lchown, modules/makepath,
54613         modules/rmdir, modules/stat: Likewise.
54614
54615 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         Merge from tar.
54618         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54619         SIZE_MAX is a valid preprocessor constant.
54620         (__argp_basename): Change from "#ifndef _LIBC"
54621         to "#ifndef __argp_short_program_name", so that
54622         we don't compile these functions for tar.
54623
54624         More merges from coreutils.
54625         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54626         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54627         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54628         * lib/addext.c: Remove; no longer needed.
54629         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54630         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54631         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54632         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54633         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54634         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54635         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54636         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54637         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54638         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54639         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54640         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54641         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54642         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54643         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54644         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54645         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54646         Import changes from coreutils.
54647
54648 2004-08-05  Simon Josefsson  <jas@extundo.com>
54649
54650         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54651
54652 2004-08-05  Simon Josefsson  <jas@extundo.com>
54653
54654         * m4/getsubopt.m4: New file.
54655
54656 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54657
54658         Merge from coreutils.
54659
54660         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54661         * m4/getcwd-path-max.m4: New files.
54662
54663         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54664         FILESYSTEM_PREFIX_LEN ->
54665         FILE_SYSTEM_PREFIX_LEN.
54666         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54667         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54668         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54669         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54670
54671         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54672         prerequisite modules now handle the DOS stuff.
54673         Don't check for unistd.h.
54674
54675 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54676
54677         Merge from coreutils.
54678
54679         * lib/.gdb-history: Remove; this doesn't belong here.
54680
54681         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54682         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54683         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54684         * lib/getcwd.c: New files.
54685
54686         * lib/dirname.h: Include <stdbool.h>.
54687         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54688         for consistency with POSIX terminology.  All uses changed.
54689         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54690         (strip_trailing_slashes): Use bool for booleans.
54691         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54692
54693         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54694         sometimes returns a positive errno value even when it succeeds.
54695         (print_errno_message) [!LIBC]: Fall back on strerror if
54696         __strerror_r fails.
54697
54698         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54699         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54700         (longest_relative_suffix): New function.
54701         (path_concat): Use it.  Assume first argument is not NULL.
54702         Port to DOS.  Omit redundant separators.
54703         Report an error instead of returning NULL.
54704         Use mempcpy instead of memcpy.
54705         (xpath_concat): Remove: not declared or used.
54706
54707         * lib/same.h: Include <stdbool.h>
54708         (same_name): Return bool, not int.
54709         * lib/same.c (same_name): Likewise.
54710         (errno): Don't declare; we assume C89 or better now.
54711
54712         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54713         if not already defined.
54714
54715         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54716         * lib/dup-safer.c (errno): Likewise.
54717
54718 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         Merge from coreutils.
54721         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54722         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54723         * modules/path-concat: Don't depend on strdup.
54724
54725 2004-08-03  Simon Josefsson  <jas@extundo.com>
54726
54727         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54728         * lib/progname.h: Don't include stdbool.h.
54729
54730 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54731
54732         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54733         * MODULES.html.sh (func_all_modules): Remove fatal.
54734
54735 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54736
54737         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54738
54739 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54740
54741         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54742         working.
54743
54744 2004-08-02  Simon Josefsson  <jas@extundo.com>
54745
54746         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54747         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54748         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54749
54750 2004-08-01  Simon Josefsson  <jas@extundo.com>
54751
54752         * lib/xgetdomainname.c: Include stdlib.h, for free().
54753
54754 2004-07-19  Bruno Haible  <bruno@clisp.org>
54755
54756         * MODULES.html.sh (func_all_modules): Add dummy.
54757
54758 2004-07-16  Simon Josefsson  <jas@extundo.com>
54759
54760         * modules/dummy: New file.
54761
54762 2004-07-16  Simon Josefsson  <jas@extundo.com>
54763
54764         * lib/dummy.c: New file.
54765
54766 2004-07-16  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/backupfile.h: Add extern "C" for C++.
54769         * lib/closeout.h: Likewise.
54770         * lib/copy-file.h: Likewise.
54771         * lib/findprog.h: Likewise.
54772         * lib/full-write.h: Likewise.
54773         * lib/pathname.h: Likewise.
54774         * lib/progname.h: Likewise.
54775         * lib/stpcpy.h: Likewise.
54776         * lib/stpncpy.h: Likewise.
54777         * lib/strcase.h: Likewise.
54778         * lib/strstr.h: Likewise.
54779         * lib/xalloc.h: Likewise.
54780
54781         * lib/mbswidth.h: Add extern "C" for C++.
54782         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54783
54784 2004-07-13  Robert Millan  <robertmh@gnu.org>
54785
54786         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54787
54788 2004-07-09  Simon Josefsson  <jas@extundo.com>
54789
54790         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54791         failed without this.)
54792
54793 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54794
54795         * modules/chown (Files): Add lib/fchown-stub.c, since
54796         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54797
54798 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * lib/fchown-stub.c: New file.
54801
54802 2004-06-24  Jim Meyering  <jim@meyering.net>
54803
54804         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54805
54806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * modules/argz: Omit "#include".
54809
54810         * MODULES.html.sh (func_all_modules): Add calloc, to match
54811         2004-06-01 addition of calloc module.
54812
54813 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * m4/argz.m4: New file, which is autoupdated from libtool.
54816
54817 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54820         libtool.
54821
54822 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54823
54824         * config/srclist-update: Don't insist on "USA." before the
54825         close-comment, as libtool omits the period and puts the */ on a
54826         separate line.
54827         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54828         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54829
54830 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54831
54832         * modules/argz: New file.
54833         * MODULES.html.sh (func_all_modules): Add argz.
54834
54835 2004-06-12  Jim Meyering  <jim@meyering.net>
54836         and  Paul Eggert  <eggert@cs.ucla.edu>
54837
54838         * modules/hash (Files): Add lib/xalloc.h.
54839         * modules/pipe (Depends-on): Add wait-process.
54840         * modules/stat (Depends-on): Add xalloc.
54841         * modules/userspec (Files): Add lib/userspec.h.
54842         * modules/xstrto
54843
54844         Upgrade from gettext-0.13.
54845         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54846         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54847         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54848
54849 2004-06-10  Jim Meyering  <jim@meyering.net>
54850
54851         * lib/calloc.c: New file.
54852
54853 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54854
54855         * lib/getdate.y (yylex): Allow space between sign and number.
54856         Problem reported by Dan Jacobson.
54857
54858 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54859
54860         Merge from coreutils CVS.
54861
54862         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54863         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54864         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54865         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54866         xstrtol.m4: Fix copyright date and/or serial number.
54867
54868         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54869         See if we need an fchown replacement.
54870         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54871         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54872         and use the replacement function if we detect either defect.
54873
54874         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54875         gl_UTIMECMP.
54876
54877 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54878         and  Jim Meyering  <jim@meyering.net>
54879
54880         Merge from coreutils CVS.
54881
54882         * lib/stat-macros.h: New file, with contents from file-type.h
54883         and coreutils' system.h.
54884         * lib/file-type.c: Include "stat-macros.h".
54885         * lib/file-type.h (file_type): Move all macro definitions to new file,
54886         stat-macros.h.
54887
54888         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54889         Wrap old code with this conditional.
54890         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54891         function that does not dereference symlinks.
54892         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54893
54894         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54895         dependency problems.
54896         (xreadlink): Accept new arg SIZE, for efficiency.
54897         All decls and uses changed.
54898         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54899
54900         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54901         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54902
54903         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54904         sysexits.h.
54905
54906 2004-06-01  Jim Meyering  <jim@meyering.net>
54907
54908         * m4/calloc.m4: New file.
54909
54910 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54913         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54914         Also, fix a typo in a diagnostic.
54915
54916 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54917
54918         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54919         or AC_FUNC_REALLOC.
54920
54921 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54924         macros to be defined.
54925         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54926         the allocator returns NULL because the requested size is zero.
54927
54928 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54931         var.  Add comment explaining why libc still defines it.  This
54932         merges the following patch from glibc:
54933         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54934
54935 2004-05-20  Andreas Schwab  <schwab@suse.de>
54936
54937         * m4/free.m4: Replace free if it not known to work, not the other
54938         way round.
54939
54940 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54943         present in glibc since revision 1.1 of this file.
54944         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54945         obstack_alignment_mask, obstack_alloc, obstack_base,
54946         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54947         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54948         obstack_grow0, obstack_init, obstack_int_grow,
54949         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54950         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54951         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54952         nonexistent functions.
54953
54954 2004-05-18  Karl Berry  <karl@gnu.org>
54955
54956         * config/srclist.txt: break link for vasnprintf.c.
54957
54958 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         Port obstack to the AS/400, where pointers are 16 bytes wide and
54961         you cannot cast an integer to a valid pointer.  This patch is
54962         currently waiting to be integrated into glibc; see
54963         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54964
54965         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54966         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54967         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54968         (struct obstack): temp member is now a union of a pointer and
54969         an integer, instead of an integer.  All integer uses changed.
54970         This does not affect the physical layout of struct obstack,
54971         except on hosts (like the AS/400) where the size or alignment of
54972         void * is greater than that of ptrdiff_t.
54973         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54974         __STDC__)]: Store temporary in pointer member of union, not
54975         integer member.
54976         * lib/obstack.c: Include <stddef.h>, for offsetof.
54977         (struct fooalign): Remove; it doesn't need a name.
54978         (union fooround): Change double to long double, and add void *.
54979         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54980         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54981         not a macro.  Hence the values are always int; so remove all
54982         casts-to-int in uses.
54983
54984 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54987         we can get this patch merged into glibc.
54988
54989 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54990             Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * m4/argp: Depend on alloca.
54993
54994 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54995             Paul Eggert  <eggert@cs.ucla.edu>
54996
54997         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54998         freecoding.
54999
55000 2004-05-17  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55003         precision that consists of a '.' followed by an empty digit string.
55004         Patch by Tor Lillqvist <tml@iki.fi>.
55005
55006 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55009         for backward compatibility with older code.  We need our own
55010         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55011         it under some other name, and our alloca.h will define it.
55012
55013 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55014             Derek Price  <derek@ximbiot.com>
55015
55016         * lib/alloca.c: Include <alloca.h>, to get our interface.
55017         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55018         include <alloca.h> first.  Use C89 prototype for alloca; this
55019         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55020         Use #elif for simplicity, since we can assume C89 now.
55021         Don't try to source the system alloca.h since it will not be found
55022         and to prevent recursively including its replacement.
55023         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55024         * lib/regex.c: Likewise.
55025
55026 2004-05-16  Derek Price  <derek@ximbiot.com>
55027             Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         getline cleanup.  This changes the getndelim2 API: both order of
55030         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55031         no delimiter).
55032
55033         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55034         interface does that.
55035         (getline): Always use getdelim, so that we don't have two
55036         copies of this code.
55037         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55038         if available.
55039         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55040         (GETNDELIM2_MAXIMUM): New macro.
55041         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55042         instead of the old practice of delim2==0.  All callers changed.
55043         Return -1 on overflow, instead of returning junk.
55044         Do not set *linesize unless allocation succeeds.
55045         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55046         that we include sys/types.h.
55047         * lib/getnline.h: Likewise.
55048         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55049         (getndelim2): Reorder arguments.
55050         * lib/getnline.c (getnline, getndelim):
55051         Don't discard the NMAX argument.
55052         (getnline): Invoke getndelim, to avoid code duplication.
55053         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55054         of (size_t) -1 by callers of the getnline family.
55055
55056 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55059         Check for gettimeofday.
55060         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55061         Check for settimeofday, stime.
55062
55063 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         * lib/nanosleep.c (suspended): Change its type from int to
55066         sig_atomic_t volatile.
55067         (first_call): Make it private to rpl_nanosleep, and have it
55068         be zero initially as that's a bit faster.
55069         (my_usleep): Round up fractional times instead of truncating them,
55070         as this is the usual meaning for 'sleep'.
55071
55072         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55073         doesn't work.
55074         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55075         (ENOSYS): Define if not defined.
55076         (settime): Fall back on stime if it exists and settimeofday fails.
55077         But don't bother with fallbacks if a method fails with errno == EPERM.
55078
55079 2004-05-11  Jim Meyering  <jim@meyering.net>
55080
55081         Prior to this change, the save_cwd caller required read access to the
55082         current directory on most systems (ones with the fchdir function).
55083
55084         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55085         fails, try write-only, and finally, resort to using xgetcwd.
55086
55087 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         * lib/obstack.c, obstack.h: Import changes from libc.
55090
55091 2004-04-28  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55094         also implicitly appends .exe to executables.
55095         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55096         accepts Windows pathnames.
55097         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55098         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55099         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55100         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55101         Reported by Derek Robert Price <derek@ximbiot.com>.
55102
55103 2004-04-21  Karl Berry  <karl@gnu.org>
55104
55105         * config/srclist.txt (localcharset.c): break sync.
55106
55107 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55108
55109         * m4/host-os.m4: Add a copyright notice.
55110
55111 2004-04-20  Jim Meyering  <jim@meyering.net>
55112
55113         Change UTILS_ to gl_ in AC_DEFINE'd names.
55114         Change utils_- and jm_-prefixed variables, too.
55115         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55116         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55117         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55118
55119         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55120         Don't emit trailing blanks.
55121         Also rename jm_-prefixed variables to have gl_ prefix.
55122
55123         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55124         Also rename jm_-prefixed variables to have gl_ prefix.
55125
55126         * m4/jm-macros.m4: Reflect the renamings.
55127         * m4/prereq.m4: Likewise.
55128
55129 2004-04-20  Jim Meyering  <jim@meyering.net>
55130
55131         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55132         memory.
55133
55134 2004-04-20  Jim Meyering  <jim@meyering.net>
55135             Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55138         memory when realloc fails.
55139
55140 2004-04-19  Jim Meyering  <jim@meyering.net>
55141
55142         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55143         now that readutmp.c may call `free (0)'.
55144
55145 2004-04-19  Bruno Haible  <bruno@clisp.org>
55146
55147         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55148         * m4/inttypes_h.m4: Likewise.
55149         * m4/stdint_h.m4: Likewise.
55150         * m4/intmax_t.m4: Likewise.
55151         * m4/uintmax_t.m4: Likewise.
55152
55153 2004-04-18  Jim Meyering  <jim@meyering.net>
55154
55155         * m4/prereq.m4: Don't forbid jm_ prefix.
55156
55157         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55158         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55159         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55160         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55161         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55162         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55163         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55164         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55165         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55166         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55167         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55168         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55169         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55170         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55171         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55172         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55173         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55174         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55175         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55176
55177 2004-04-18  Jim Meyering  <jim@meyering.net>
55178
55179         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55180         failure, don't leak memory and do call END_UTMP_ENT.
55181
55182 2004-04-16  Jim Meyering  <jim@meyering.net>
55183
55184         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55185         coreutils' stat program.
55186         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55187
55188 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55189
55190         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55191         C89.
55192         (CHAR_BIT): Remove, since we assume C89.
55193         Include <stdint.h> if available, as per current Autoconf CVS advice.
55194
55195 2004-03-31  Jim Meyering  <jim@meyering.net>
55196
55197         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55198         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55199         * m4/xalloc.m4: Likewise.
55200
55201 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55202
55203         Merge from coreutils.
55204
55205         * m4/inttostr.m4: New file.
55206         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55207         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55208         Require gl_CLOCK_TIME.
55209         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55210
55211 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55212
55213         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55214         not bool, to be more consistent with Unix conventions.
55215         Suggested by Bruno Haible.
55216
55217         Merge from coreutils.
55218
55219         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55220         * lib/umaxtostr.c: New files.
55221
55222         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55223         the usual <time.h> dance.
55224         (get_date): Change signature to support fractional time stamps.
55225         All callers changed.
55226         * lib/getdate.y: Include "getdate.h" first, as we can now
55227         assume C89 and don't need to worry about 'const'.
55228         Similarly, include "unlocked-io.h" near start, not in middle.
55229         Include <limits.h>.
55230         (textint.value): Use long int rather than int.
55231         (textint.digits): Use size_t rather than int.
55232         (BILLION, LOG10_BILLION): New constants.
55233         (parser_control): New member rel_ns.  Members day_ordinal,
55234         time_zone, month, day, hour, minutes, rel_year, rel_month,
55235         rel_day, rel_hour, rel_minutes, rel_seconds
55236         are now long int, not int.  Member seconds is now struct timespec,
55237         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55238         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55239         not int.
55240         (%union.intval): Now long int, not int.
55241         New member timespec.
55242         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55243         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55244         (spec): Now is a timespec or an item list.
55245         (timespec, items): New nonterminals.
55246         (time, rel, relunit, number, get_date):
55247         Add support for fractional seconds.
55248         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55249         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55250         (to_hour): First arg is now long int, not int.
55251         (to_year): Returns long int, not int.
55252         Don't treat year -70 like 70.
55253         (tm_diff): Returns long int, not int.
55254         (lookup_word): Use bool instead of int when appropriate.
55255         (yylex): Use size_t for count, not int.
55256         Detect overflow when parsing large integer constants.
55257         Add support for fractions.
55258         (get_date): Make pointers 'const' if possible.
55259         Use more-portable code to detect integer overflow.
55260         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55261         Don't use ctime; it's not reliable if the year has >4 digits.
55262
55263         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55264         This is for compatibility with BSD.
55265
55266         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55267         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55268         From coreutils' system.h.
55269
55270         * lib/userspec.c: Don't include "posixver.h".
55271         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55272         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55273         compatible extension.  Simplify code by removing a boolean int
55274         that was always nonzero if a string was nonnull.
55275
55276 2004-03-30  Jim Meyering  <jim@meyering.net>
55277
55278         Merge from coreutils.
55279
55280         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55281         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55282         on some systems one must include <grp.h> before it.
55283         Reported by Christian Krackowizer.
55284
55285 2004-03-30  Jim Meyering  <jim@meyering.net>
55286
55287         Merge from coreutils.
55288
55289         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55290
55291         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55292         an empty input stream.
55293
55294         * lib/readtokens.c: Include <stdbool.h>.
55295         (readtoken): Use `size_t' rather than int/long.
55296         All callers adjusted.
55297         Use `bool' rather than `int' where appropriate.
55298         Use memset rather than an explicit loop.
55299         Use x2nrealloc rather than xrealloc.
55300         Allow the use of `\0' as a delimiter.
55301         (readtokens): Likewise.
55302         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55303
55304 2004-03-30  Jim Meyering  <jim@meyering.net>
55305
55306         * m4/realloc.m4: Remove file, since now it does no more than
55307         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55308         the `configure.ac' section of module/realloc.
55309         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55310
55311 2004-03-30  Bruno Haible  <bruno@clisp.org>
55312
55313         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55314         nonnull.
55315
55316 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55317
55318         Merge changes to getloadavg.c from coreutils and Emacs.
55319
55320         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55321         Define to an expression, not to the empty string.
55322         Include cloexec.h and xalloc.h.
55323         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55324         Use set_cloexec_flag rather than rolling our own.
55325         * lib/cloexec.c, lib/cloexec.h: New files.
55326
55327 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55328
55329         * m4/cloexec.m4: New file.
55330
55331 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55332
55333         * lib/getopt.h: Sync with libc CVS.
55334
55335 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55336             Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55339         mbswidth.
55340
55341 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55342             Bruno Haible  <bruno@clisp.org>
55343
55344         * lib/mbswidth.h: Include <wchar.h> only if
55345         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55346         <wchar.h>.
55347         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55348
55349 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55350
55351         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55352         Sync with libc CVS.
55353         * lib/getopt_int.h: New file, also synced from libc.
55354
55355 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55356
55357         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55358         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55359         Bring back getopt.c, getopt.h, getopt1.c.
55360
55361 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55362
55363         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55364         All uses changed.  Check for sa_sigaction member; this fixes
55365         a bug first reported by Jason Andrade in
55366         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55367
55368 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55369
55370         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55371         '#if' expressions.  Unlike the code it replaces, it does not
55372         depend on (defined _SC_PAGESIZE).  However, it does depend on
55373         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55374         first reported by Jason Andrade in
55375         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55376
55377 2004-02-25  Simon Josefsson  <jas@extundo.com>
55378
55379         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55380
55381 2004-02-25  Simon Josefsson  <jas@extundo.com>
55382
55383         * lib/strdup.h: New file.
55384         * lib/strdup.c: Include it.
55385         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55386         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55387
55388 2004-02-23  Karl Berry  <karl@gnu.org>
55389
55390         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55391         (from fencepost.gnu.org:/gd/gnuorg).
55392
55393 2004-02-23  Karl Berry  <karl@gnu.org>
55394
55395         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55396         * config/srclist.txt: add maintain/standards documents.
55397
55398 2004-02-18  Bruno Haible  <bruno@clisp.org>
55399
55400         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55401         Reported by Derek Robert Price <derek@ximbiot.com>.
55402
55403 2004-02-16  Karl Berry  <karl@gnu.org>
55404
55405         * config/mkinstalldirs, install-sh: update from automake.
55406
55407 2004-02-06  Karl Berry  <karl@gnu.org>
55408
55409         * m4/po.m4: update from gettext 0.14.1.
55410
55411 2004-02-06  Karl Berry  <karl@gnu.org>
55412
55413         * lib/config.charset: update from gettext 0.14.1.
55414
55415 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55416
55417         Add comments and code, prompted by suggestions from Bruno Haible
55418         for sh-quote.
55419         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55420         describing the enum quoting_style values.
55421         * lib/quotearg.c (quotearg_alloc): New function.
55422         (quotearg_buffer_restyled): Treat lone { and } as special.
55423         Treat = as special.  Work around bug with older shells
55424         that "see" a '\' that is really the 2nd byte of a multibyte char.
55425         Quote empty string with shell_quoting_style.
55426
55427 2004-02-03  Bruno Haible  <bruno@clisp.org>
55428
55429         * m4/pipe.m4: New file, from GNU gettext.
55430
55431 2004-02-03  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/pipe.h: New file, from GNU gettext.
55434         * lib/pipe.c: New file, from GNU gettext.
55435
55436 2004-01-27  Bruno Haible  <bruno@clisp.org>
55437
55438         * m4/execute.m4: New file, from GNU gettext.
55439
55440 2004-01-27  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/execute.h: New file, from GNU gettext.
55443         * lib/execute.c: New file, from GNU gettext.
55444         * lib/w32spawn.h: New file, from GNU gettext.
55445
55446 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55447
55448         Merge from diffutils.
55449
55450         * lib/file-type.c (file_type): Add typed memory objects.
55451         * lib/file-type.h (S_TYPEISTMO): New macro.
55452
55453         * lib/c-stack.h (c_stack_action): Remove argv argument.
55454         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55455         (die): Don't calculate message unless segv_action returns.
55456         (get_stack_location, min_address_from_argv, max_address_from_argv,
55457         volatile stack_base, volatile_stack_size): Remove.
55458         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55459         that every segmentation violation is a stack overflow.  (Ouch!)
55460         See Debian bug 136249 (still outstanding) for more info about why
55461         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55462
55463 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55464
55465         Exit-status fix from coreutils.
55466
55467         Use exit_failure consistently in place of EXIT_FAILURE,
55468         so that program exit statuses are consistent on failure.
55469
55470         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55471         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55472         * lib/argmatch.h: Comment fix to match the above.
55473         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55474         Now a macro referring to exit_failure, instead of a separate
55475         variable.  Include "exitfail.h" to get it.
55476         * lib/xstrtol.h: Include "exitfail.h".
55477         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55478
55479         * lib/long-options.c (parse_long_options): Use prototype
55480         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55481         for clarity.
55482
55483 2004-01-21  Jim Meyering  <jim@meyering.net>
55484
55485         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55486         so as not to conflict with a different-sized __mktime_internal
55487         function in GNU libc.
55488         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55489         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55490
55491 2004-01-20  Karl Berry  <karl@gnu.org>
55492
55493         * config/config.guess: update from config.
55494
55495         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55496
55497 2004-01-20  Bruno Haible  <bruno@clisp.org>
55498
55499         Safer stack allocation.
55500         * lib/setenv.c: Include allocsa.h.
55501         (alloca): Remove fallback definition.
55502         (freea): Remove macro.
55503         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55504         instead of freea.
55505
55506 2004-01-20  Bruno Haible  <bruno@clisp.org>
55507
55508         * m4/eealloc.m4: New file, from GNU gettext.
55509
55510 2004-01-20  Bruno Haible  <bruno@clisp.org>
55511
55512         * m4/allocsa.m4: New file, from GNU gettext.
55513
55514 2004-01-20  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/xallocsa.h: New file, from GNU gettext.
55517         * lib/xallocsa.c: New file, from GNU gettext.
55518
55519 2004-01-20  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55522
55523 2004-01-20  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55526         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55527         specially.
55528
55529 2004-01-20  Bruno Haible  <bruno@clisp.org>
55530
55531         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55532         patch.
55533
55534 2004-01-20  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55537
55538 2004-01-20  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/eealloc.h: New file.
55541
55542 2004-01-20  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/binary-io.h: Avoid warnings on Cygwin.
55545
55546 2004-01-20  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/allocsa.h: New file, from GNU gettext.
55549         * lib/allocsa.c: New file, from GNU gettext.
55550
55551 2004-01-18  Karl Berry  <karl@gnu.org>
55552
55553         * doc/gpl.texi, doc/lgpl.texi: new files.
55554
55555 2004-01-18  Karl Berry  <karl@gnu.org>
55556
55557         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55558         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55559
55560 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55561
55562         Merge from coreutils.
55563
55564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55565         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55566         (gl_DEFAULT_POSIX2_VERSION): Move
55567         the documentation from 'configure' into 'config.hin',
55568         so that 'configure --help' isn't burdened by it and
55569         we don't have to worry about its formatting there.
55570         Reword the documentation so that it's more succinct
55571         and can be run together into a single paragraph.
55572         * m4/same.m4 (gl_SAME): Check for pathconf.
55573
55574 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55575
55576         Merge from coreutils.
55577
55578         * lib/posixver.c: Include posixver.h.
55579
55580         * lib/same.c: Include <stdbool.h>, <limits.h>.
55581         (_POSIX_NAME_MAX): Define if not defined.
55582         (MIN): New macro.
55583         (same_name): If file names are silently truncated, report
55584         that the file names are the same if they are the same after
55585         the silent truncation.
55586
55587         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55588         conversion function.
55589         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55590         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55591         longer needed.
55592
55593 2004-01-15  Jim Meyering  <jim@meyering.net>
55594
55595         Merge from coreutils.
55596
55597         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55598         if no library is required.
55599         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55600         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55601         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55602         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55603         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55604         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55605         value, $ac_cv_search_crypt, if it's "none required".
55606         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55607         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55608         not gl_FUNC_GETLOADAVG.
55609         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55610         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55611
55612 2004-01-15  Jim Meyering  <jim@meyering.net>
55613
55614         Merge from coreutils.
55615
55616         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55617         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55618         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55619
55620         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55621         optional configure-time default.
55622
55623         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55624
55625         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55626
55627 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55628
55629         Merge from coreutils.
55630
55631         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55632         value, $ac_cv_search_nanosleep, if it's "none required".
55633
55634 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55635
55636         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55637         with like-named macro in fnmatch.c.
55638         (EXT): Use an internal constant instead.
55639
55640         Merge fnmatch patches from glibc.
55641         * lib/fnmatch.c (mbsinit): Remove define.
55642         Add libc_hidden_ver (__fnmatch, fnmatch).
55643         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55644         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55645
55646 2004-01-14  Karl Berry  <karl@gnu.org>
55647
55648         * config/install-sh: update from automake.
55649
55650 2004-01-13  Karl Berry  <karl@gnu.org>
55651
55652         * config/install-sh: update from automake.
55653
55654 2004-01-09  Karl Berry  <karl@gnu.org>
55655
55656         * config/install-sh: update from automake.
55657
55658 2004-01-05  Karl Berry  <karl@gnu.org>
55659
55660         * config/config.{sub,guess}: update from config.
55661
55662 2003-12-31  Karl Berry  <karl@gnu.org>
55663
55664         * config/depcomp: update from automake.
55665
55666 2003-12-14  Karl Berry  <karl@gnu.org>
55667
55668         * lib/config.charset: update from gettext-runtime.
55669
55670 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55671
55672         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55673         Bug reported by Alfred M. Szmidt.
55674
55675 2003-12-03  Bruno Haible  <bruno@clisp.org>
55676
55677         * m4/gettext.m4: Upgrade from gettext-0.13.
55678         * m4/po.m4: Upgrade from gettext-0.13.
55679         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55680         * m4/intmax.m4: New file, from gettext-0.13.
55681         * m4/printf-posix.m4: New file, from gettext-0.13.
55682
55683 2003-11-29  Karl Berry  <karl@gnu.org>
55684
55685         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55686
55687 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55688             Bruno Haible  <bruno@clisp.org>
55689
55690         * lib/printf-parse.h: Don't include sys/types.h.
55691         (ARG_NONE): New macro.
55692         (char_directive): Change type of *arg_index fields to size_t.
55693         * lib/printf-parse.c: Don't include sys/types.h.
55694         (SSIZE_MAX): Remove macro.
55695         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55696         Remove unnecessary overflow check.
55697         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55698         fields.
55699
55700 2003-11-25  Bruno Haible  <bruno@clisp.org>
55701
55702         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55703
55704 2003-11-25  Bruno Haible  <bruno@clisp.org>
55705
55706         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55707         gt_TYPE_SSIZE_T.
55708
55709 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55710
55711         * modules/alloca: Remove dependency on xalloc.
55712
55713 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55714
55715         * lib/alloca.c: Remove dependency on xalloc module.
55716         (xalloc_die): Remove.
55717         (memory_full) [!defined emacs]: New macro.
55718         [!defined emacs]: Don't include xalloc.h.
55719         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55720         address arithmetic overflows.  Change datatypes a bit to avoid
55721         unnecessary casts.
55722
55723 2003-11-22  Jim Meyering  <jim@meyering.net>
55724
55725         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55726         s/size/size_t/.
55727
55728 2003-11-21  Karl Berry  <karl@gnu.org>
55729
55730         * config/config.{sub,guess}: update from config.
55731
55732 2003-11-18  Karl Berry  <karl@gnu.org>
55733
55734         * config/config.{sub,guess}: update from config.
55735
55736         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55737
55738 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55739
55740         * README: Mention that S+T cannot overflow if S is the size of
55741         an existing object and T is sufficiently small.
55742
55743 2003-11-17  Jim Meyering  <jim@meyering.net>
55744
55745         On systems without utime and without a utimes function capable of
55746         dealing with a NULL struct utimbuf* argument, this utime replacement
55747         could -- in unusual circumstances -- leak a file descriptor.
55748         * lib/utime.c: Include <unistd.h> and <errno.h>.
55749         (utime_null): Be sure to close `fd' and to preserve errno.
55750         Reported by Geoff Collyer via Arnold Robbins.
55751
55752 2003-11-17  Bruno Haible  <bruno@clisp.org>
55753
55754         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55755         (Depends-on): Add xsize.
55756
55757 2003-11-17  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55760
55761 2003-11-17  Bruno Haible  <bruno@clisp.org>
55762
55763         * lib/vasnprintf.c (alloca): Remove fallback definition.
55764         (freea): Remove definition.
55765         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55766         Reported by Paul Eggert.
55767
55768 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55769             Bruno Haible  <bruno@clisp.org>
55770
55771         Protect against address arithmetic overflow.
55772         * lib/printf-args.h: Include stddef.h.
55773         (arguments): Change type of field 'count' to size_t.
55774         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55775         'unsigned int' where appropriate.
55776         * lib/printf-parse.h: Include sys/types.h.
55777         (char_directive): Change type of *arg_index fields to ssize_t.
55778         (char_directives): Change type of fields 'count', max_*_length to
55779         size_t.
55780         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55781         (SSIZE_MAX): Define fallback value.
55782         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55783         instead of 'int' where appropriate. Check a_allocated, d_allocated
55784         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55785         * lib/vasnprintf.c: Include xsize.h.
55786         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55787         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55788         overflow. Avoid wraparound when converting a width or precision from
55789         decimal to binary.
55790
55791 2003-11-16  Bruno Haible  <bruno@clisp.org>
55792
55793         Update from GNU gettext.
55794         * lib/printf-parse.c: Generalize to it can be compiled for wide
55795         strings.
55796         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55797         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55798         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55799         SNPRINTF): New macros.
55800         Don't include <alloca.h> if the file is used inside libintl.
55801         (local_wcslen): New function, for Solaris 2.5.1.
55802         (VASNPRINTF): Use it instead of wcslen.
55803
55804 2003-11-16  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/xsize.h (xmax): New function.
55807         (xsum, xsum3, xsum4): Declare as "pure" functions.
55808
55809 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55810
55811         * modules/xalloc (Files): Undo latest change, since xalloc.h
55812         no longer needs SIZE_MAX or PTRDIFF_MAX.
55813
55814 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55815
55816         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55817         gl_PTRDIFF_MAX.
55818
55819 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55820
55821         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55822         "return", to pacify some unknown compiler.  Problem reported
55823         by Joerg Schilling.
55824
55825 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55826
55827         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55828         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55829         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55830         heuristic is just as accurate as far as we know, and it removes a
55831         dependency on size_max.m4 and ptrdiff_max.m4.
55832
55833 2003-11-11  Bruno Haible  <bruno@clisp.org>
55834
55835         * modules/xsize (Files): Add m4/size_max.m4.
55836         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55837
55838 2003-11-11  Bruno Haible  <bruno@clisp.org>
55839
55840         * m4/size_max.m4: New file.
55841         * m4/ptrdiff_max.m4: New file.
55842         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55843         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55844         (gl_XALLOC): Invoke it.
55845
55846 2003-11-11  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55849         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55850         defined.
55851
55852 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55853
55854         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55855         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55856         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55857         From Bruno Haible.
55858         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55859         not (size_t) -1, since it's defined here.
55860
55861 2003-11-09  Karl Berry  <karl@gnu.org>
55862
55863         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55864
55865 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55866
55867         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55868         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55869         Reject sizes of exactly SIZE_MAX bytes.
55870         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55871         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55872
55873 2003-11-05  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55876         SIZE_MAX defined in <limits.h> on Solaris.
55877
55878 2003-11-04  Jim Meyering  <jim@meyering.net>
55879
55880         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55881         variable names, rather than @VAR@.
55882         * modules/poll: Likewise.
55883
55884 2003-11-04  Bruno Haible  <bruno@clisp.org>
55885
55886         * modules/xsize: New file.
55887         * modules/linebreak: Depend on xsize.
55888         * MODULES.html.sh (func_all_modules): Add xsize.
55889
55890 2003-11-04  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/xsize.m4: New file.
55893
55894 2003-11-04  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/xsize.h: New file.
55897         * lib/linebreak.c: Include xsize.h.
55898         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55899         argument for overflow.
55900         Suggested by Paul Eggert.
55901
55902 2003-11-03  Karl Berry  <karl@gnu.org>
55903
55904         * config/config.{guess,sub}: update from config.
55905
55906 2003-11-03  Jim Meyering  <jim@meyering.net>
55907
55908         * modules/userspec (lib_SOURCES): Add userspec.h.
55909         (Include): Add "userspec.h".
55910         Improve description.
55911
55912 2003-11-03  Jim Meyering  <jim@meyering.net>
55913
55914         * lib/userspec.c: Include "userspec.h".
55915         * lib/userspec.h: New file.
55916
55917 2003-11-03  Bruno Haible  <bruno@clisp.org>
55918
55919         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55920
55921 2003-11-03  Bruno Haible  <bruno@clisp.org>
55922
55923         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55924         available, to avoid (extremely rare) race condition.
55925         Suggested by Paul Eggert.
55926
55927 2003-11-02  Karl Berry  <karl@gnu.org>
55928
55929         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55930
55931 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55932
55933         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55934         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55935         (read_filesystem_list): Set and use me_type_malloced.
55936         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55937         whatever the type happens to be), for brevity and consistency.
55938         Check for size calculation overflow on Alphas running OSF/1.
55939
55940 2003-10-31  Jim Meyering  <jim@meyering.net>
55941
55942         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55943
55944         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55945
55946 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55947             Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55950         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55951
55952 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55955         netbsd*-gnu*.  Suggested by Robert Millan.
55956
55957 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55958
55959         * modules/group-member: Depend on stdbool.
55960
55961 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55962
55963         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55964
55965 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55966
55967         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55968         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55969         after the 'gnu' in these cases.  This fixes some bugs in the
55970         previous change, and is based on suggestions by Robert Millan.
55971
55972 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55973
55974         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55975         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55976         no longer needed.
55977         * lib/quotearg.c (quotearg_n_options): Use it.
55978         * lib/group-member.c: Include <stdbool.h>.
55979         (free_group_info): Arg is now const *; don't free arg.
55980         (get_group_info): Now returns bool and accepts struct group_info *,
55981         rather than returning a malloc'ed struct group_info *.
55982         All uses changed.  Check for overflow in internal size calculation.
55983
55984         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55985         rather than xmalloc/xrealloc.
55986         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55987         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55988         conformance bug: the old code used a pointer after freeing the
55989         storage that it addressed.
55990         * lib/hash.c (hash_initialize): Simplify the code by using
55991         xalloc_oversized rather than doing it by hand.
55992         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55993         the buffer preserved.  Use free and xmalloc instead.
55994         * lib/quotearg.c (quotearg_n_options): Likewise.
55995         Use a simpler test for size overflow.  Don't use xalloc_oversized
55996         because unsigned int might be wider than size_t (!); this suggests
55997         that we should switch from unsigned int to size_t for slot numbers.
55998
55999 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56000
56001         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56002         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56003         NetBSD kernels.  Requested by Richard Stallman.
56004
56005 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56006
56007         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56008         to allocate the returned structure.  Do not allocate a subarray,
56009         as x2nrealloc will do that.
56010         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56011         instead of xnrealloc.
56012         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56013
56014 2003-10-27  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/stdbool_.h: Better support for BeOS.
56017
56018 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56019
56020         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56021         now uses inline.
56022
56023 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56024
56025         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56026         callers that want to do their own size-overflow checking.  Include
56027         <stdbool.h>, since xalloc_oversized returns bool.
56028         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56029         to use xalloc_oversized.
56030
56031         Add two functions x2realloc, x2nrealloc, for programs that grow
56032         arrays dynamically by doubling their sizes.
56033         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56034         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56035         New functions.
56036
56037         Port to C99 semantics for 'inline' of external functions.
56038         Bug reported by Bruno Haible.
56039         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56040         with the old contents of xnmalloc.
56041         (xnmalloc, xmalloc): Use it.
56042         (xnrealloc_inline): New static inline function,
56043         with the old contents of xnrealloc.
56044         (xnrealloc, xrealloc): Use it.
56045
56046         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56047         that.
56048
56049 2003-10-26  Karl Berry  <karl@gnu.org>
56050
56051         * config/srclist.txt (COPYING.DOC): no longer available from
56052         /gd/gnuorg; don't know where the ultimate source is.
56053
56054 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56055
56056         Fix several address-calculation bugs in the hash modules,
56057         plus some minor code cleanup.
56058
56059         * lib/hash.h: Include <stdbool.h>, for bool.
56060         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56061         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56062         hash_get_n_entries, hash_get_max_bucket_length,
56063         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56064         hash_rehash): Use size_t rather than unsigned.
56065         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56066         hash_get_n_buckets_used, hash_get_n_entries,
56067         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56068         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56069         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56070         Likewise.
56071         (SIZE_MAX): Define if not defined.
56072         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56073         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56074         hash_print):
56075         Use const * when possible.
56076         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56077         (check_tuning): Fix bug: if tuning parameters were very close to
56078         0 or 1, rounding errors could have caused subscript violations.
56079         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56080         (hash_initialize): Add 'fail:' label
56081         to free table and return NULL, and use it to simplify code.
56082         Use calloc rather than clearing the storage ourself.
56083         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56084         buffer size calculations.
56085         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56086         Include <stddef.h>, for size_t.
56087         * lib/hash-pjw.c (hash_pjw): Likewise.
56088         Switch to method described by Bruno Haible.
56089         Include <limits.h>, for CHAR_BIT.
56090         (SIZE_BITS): New macro.
56091
56092 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56093
56094         * m4/getline.m4 (AM_FUNC_GETLINE):
56095         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56096         hosts.  Problem reported by Derek Robert Price in
56097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56098         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56099         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56100
56101 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56102
56103         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56104         ceiling the allocation at NMAX bytes rather than silently
56105         discarding input bytes before NMAX is reached.  This makes
56106         a difference only if NMAX exceeds SIZE_MAX / 2.
56107
56108         * lib/obstack.c: Merge from glibc.
56109         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56110         Add libc_hidden_def (_obstack_newchunk).
56111         (_obstack_free) [! defined _LIBC]: Remove.
56112         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56113         a clone of the function body.
56114         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56115         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56116
56117         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56118         glibc.
56119         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56120         arg to memcpy.
56121
56122         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56123         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56124         Don't use lvalue casts, as GCC plans to remove support for them
56125         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56126         was also present in the non-GCC version, indicating that this
56127         code had always been buggy and had never been widely used.
56128         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56129         Use the fast variant of each macro, rather than copying the
56130         definiens of the fast variant; that way, we'll be more likely to
56131         catch future bugs in the fast variants.
56132
56133 2003-10-20  Bruno Haible  <bruno@clisp.org>
56134
56135         * modules/wait-process: New file.
56136         * MODULES.html.sh (func_all_modules): Add wait-process.
56137
56138 2003-10-20  Bruno Haible  <bruno@clisp.org>
56139
56140         * m4/wait-process.m4: New file.
56141
56142 2003-10-20  Bruno Haible  <bruno@clisp.org>
56143
56144         * lib/wait-process.h: New file, from GNU gettext.
56145         * lib/wait-process.c: New file, from GNU gettext.
56146
56147 2003-10-19  Jim Meyering  <jim@meyering.net>
56148
56149         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56150         HPUX 10.20.
56151
56152 2003-10-18  Karl Berry  <karl@gnu.org>
56153
56154         * config/config.guess: update from config.
56155
56156 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56157
56158         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56159         (getgroups): First arg is int, not size_t.
56160         Don't let 'free' mangle errno.
56161
56162 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56163
56164         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56165
56166 2003-10-16  Karl Berry  <karl@gnu.org>
56167
56168         * config/config.{guess,sub}: update from config.
56169
56170 2003-10-16  Jim Meyering  <jim@meyering.net>
56171
56172         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56173         memcpy.
56174
56175 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56176
56177         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56178         (SIZE_MAX): Remove.
56179         (new_exclude, add_exclude_file): Initial size no longer needs to
56180         be a power of 2.
56181         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56182         our own address arithmetic overflow checking.
56183
56184         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56185         (fnmatch): Do not alloca more than 2000 wide characters;
56186         instead, use malloc for large buffers.
56187         Check for address arithmetic overflow, and return -1
56188         with errno set to ENOMEM in that case.
56189         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56190         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56191         instead, return -1.  Check for address arithmetic overflow.
56192
56193 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56194
56195         Handle invalid suffixes and overflow independently, so that
56196         callers can treat them independently as needed.  Fix some bugs in
56197         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56198         suffix for a human-readable blocksize.  The major caller-visible
56199         change is the addition of a new
56200         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56201         that both overflow and suffix chars were found.
56202
56203         * lib/human.c (humblock): Don't check separately for invalid suffix
56204         char; that is xstrtoumax's job (now that its bug is fixed).
56205         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56206         INTMAX_MAX]: New macros.
56207         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56208         TYPE_MAXIMUM): New macros.
56209         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56210         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56211         if overflow occurs, as it's what __strtol does and it's more useful
56212         in practice.
56213         (__xstrtol): If __strtol reports some error other than ERANGE,
56214         reflect it to the caller as LONGINT_INVALID.  If it reports
56215         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56216         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56217         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56218         value.
56219         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56220         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56221         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56222         [defined UINTMAX_MAX]: New macros.
56223
56224 2003-10-14  Bruno Haible  <bruno@clisp.org>
56225
56226         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56227
56228 2003-10-14  Bruno Haible  <bruno@clisp.org>
56229
56230         * m4/sig_atomic_t: New file, from GNU gettext.
56231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56232
56233 2003-10-14  Bruno Haible  <bruno@clisp.org>
56234
56235         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56236         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56237         Also use volatile where needed.
56238
56239 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56240
56241         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56242         Change maintainer from Bruno Haible to 'all'.
56243
56244 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56245
56246         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56247
56248 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56249
56250         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56251         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56252         and define in terms of the other primitives.
56253         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56254         (SIZE_MAX): Define if not already defined.
56255         (array_size_overflow): New function.
56256         (xalloc_die): Abort instead of exiting if 'error' returns.
56257         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56258         (xmalloc, xrealloc): Use them.
56259         (xcalloc): Check for address arithmetic overflow.
56260         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56261         a bit faster than strcpy.
56262
56263 2003-10-10  Simon Josefsson  <jas@extundo.com>
56264
56265         * modules/argp (Depends-on): Add restrict and strcase.
56266
56267 2003-10-10  Simon Josefsson  <jas@extundo.com>
56268
56269         * m4/argp.m4: Add AC_C_INLINE.
56270
56271 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56272
56273         Merge getpass from libc, plus a few fixes.
56274
56275         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56276         Include <stdbool.h>.
56277         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56278         __fsetlocking to empty.
56279         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56280         do include <bits/libc-lock.h>.
56281         Do not include <fcntl.h>; not needed.
56282         [_LIBC]: Include <wchar.h>.
56283         (NOTCANCEL_MODE): New macro.
56284         (flockfile, funlockfile) [_LIBC]: New macros.
56285         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56286         [!_LIBC]: New macros.
56287         (call_fclose): New function.
56288         (getpass): Use it.  Save tty stream separately; this simplifies the
56289         code and makes it more reliable if stdin happens to equal stdout.
56290         Invoke __fsetlocking on tty.
56291         Handle thread cancellation if needed.
56292         Namespace cleanup (use __tcgetattr, __getline).
56293         Use bool for Booleans.
56294         [USE_IN_LIBIO]: Handle wide streams.
56295         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56296         stream might go where.
56297
56298         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56299         doesn't have to include <stdio.h> before us.
56300         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56301         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56302         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56303         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56304         if not declared, so that we can use getpass.c code from libc without
56305         rewriting it.
56306         (flockfile, ftrylockfile, funlockfile): New macros.
56307
56308 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56309
56310         * modules/getpass: Depend on stdbool.
56311
56312 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56313
56314         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56315
56316 2003-10-07  Karl Berry  <karl@gnu.org>
56317
56318         * config/config.{guess,sub}: update from config.
56319
56320 2003-10-06  Jim Meyering  <jim@meyering.net>
56321             Bruno Haible  <bruno@clisp.org>
56322
56323         This lets translators provide better translations for the
56324         "Written by ..." part of --version output.
56325         * lib/version-etc.h: Include stdarg.h.
56326         (version_etc_copyright): Declare as readonly.
56327         (version_etc): Make this function variadic with a NULL-terminated list
56328         of author name strings.
56329         (version_etc_va): New declaration.
56330         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56331         (version_etc_copyright): Declare as readonly.
56332         (version_etc_va): New function. Provide a different translatable string
56333         for each possible number of authors < 10. Abbreviate when there are 10
56334         authors or more.
56335         (version_etc): Make this function variadic. Call version_etc_va.
56336         Suggestion from Gary V. Vaughan.
56337
56338         * lib/long-options.h (parse_long_options): Change prototype: the
56339         authors string is moved to the end and becomes variadic.
56340         * lib/long-options.c: Include stdarg.h.
56341         (parse_long_options): Make this function variadic, too.
56342         Call version_etc_va, not version_etc.
56343
56344 2003-10-06  Bruno Haible  <bruno@clisp.org>
56345
56346         * modules/version-etc-2: Remove file.
56347         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56348
56349 2003-10-06  Bruno Haible  <bruno@clisp.org>
56350
56351         * modules/fatal-signal: New file.
56352         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56353
56354 2003-10-06  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/fatal-signal.m4: New file.
56357         * m4/signalblocking.m4: New file, from GNU gettext.
56358
56359 2003-10-06  Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/version-etc-2.h: Remove file.
56362         * lib/version-etc-2.c: Remove file.
56363
56364 2003-10-06  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/fatal-signal.h: New file, from GNU gettext.
56367         * lib/fatal-signal.c: New file, from GNU gettext.
56368
56369 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56370
56371         * README: Rework advice for preventing empty .o files.
56372         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56373         not <sys/types.h>.
56374
56375 2003-10-04  Karl Berry  <karl@gnu.org>
56376
56377         * lib/argp*: update from libc.
56378
56379 2003-10-04  Karl Berry  <karl@gnu.org>
56380
56381         * config/config.{guess,sub}: update from config.
56382
56383 2003-10-02  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/lchown (Include): Add lchown.h.
56386         * modules/time_r (Include): Use "..." syntax.
56387         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56388
56389 2003-10-01  Simon Josefsson  <jas@extundo.com>
56390
56391         * MODULES.html.sh (func_all_modules): Move gethostname from section
56392         'based on' to section 'lacking' POSIX:2001.
56393
56394 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56395
56396         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56397         to output mode on the same stream.
56398
56399 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56400
56401         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56402         Fix arg typo in previous patch.
56403
56404 2003-09-28  Jim Meyering  <jim@meyering.net>
56405
56406         * lib/error.c: Correct cpp indentation.
56407
56408 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56409
56410         * modules/free: New file.
56411
56412 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56413
56414         * m4/free.m4: New file.
56415
56416 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56417
56418         * lib/minmax.h (MIN, MAX)
56419         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56420         Omit the special code that used __typeof__, since we worry that
56421         it could be more trouble than it's worth.  See:
56422         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56423         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56424
56425         * lib/free.c: New file.
56426
56427 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56428
56429         Trivial fixes to Makefile.am parts of module listings.
56430         * modules/strstr: Append strstr.h to lib_SOURCES.
56431         * modules/strcase: Likewise, for strcase.h.
56432
56433 2003-09-27  Karl Berry  <karl@gnu.org>
56434
56435         * config/mkinstalldirs: update from automake.
56436
56437 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56438
56439         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56440         (error_tail): Do not loop, reallocating temporary buffer, since
56441         the output cannot contain more wide characters than the input
56442         contains bytes, the size must be big enough already.  This avoids
56443         one potential size overflow calculation.  Check for size overflow
56444         when calculating temporary buffer size.  Free temporary buffer
56445         when done, if it was allocated with malloc; this plugs a memory
56446         leak.  Remove casts from void * to pointers, that are no longer
56447         needed now that we're assuming C89 or better.
56448
56449         Merge error changes from glibc.
56450
56451         * lib/error.c, error.h: Update copyright notice header to match glibc.
56452         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56453         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56454         Disable cancellation while printing error.
56455         * lib/error.h: Prepend __ to parameter names.
56456
56457 2003-09-26  Jim Meyering  <jim@meyering.net>
56458
56459         * lib/error.c (error_tail): Move some declarations
56460         into inner scope where the local variables are used.
56461
56462 2003-09-26  Bruno Haible  <bruno@clisp.org>
56463
56464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56465         stpncpy().
56466         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56467
56468 2003-09-26  Bruno Haible  <bruno@clisp.org>
56469
56470         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56471         (stpncpy): Define as alias for gnu_stpncpy.
56472         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56473
56474 2003-09-25  Simon Josefsson  <jas@extundo.com>
56475
56476         * lib/xgetdomainname.h: New file.
56477         * lib/xgetdomainname.c: New file.
56478
56479 2003-09-25  Simon Josefsson  <jas@extundo.com>
56480             Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/getdomainname: New file.
56483         * modules/xgetdomainname: New file.
56484         * MODULES.html.sh (func_all_modules): Add getdomainname,
56485         xgetdomainname.
56486
56487 2003-09-25  Simon Josefsson  <jas@extundo.com>
56488             Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/getdomainname.m4: New file.
56491
56492 2003-09-25  Simon Josefsson  <jas@extundo.com>
56493             Bruno Haible  <bruno@clisp.org>
56494
56495         * lib/getdomainname.h: New file.
56496         * lib/getdomainname.c: New file.
56497
56498 2003-09-25  Karl Berry  <karl@gnu.org>
56499
56500         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56501
56502 2003-09-25  Karl Berry  <karl@gnu.org>
56503
56504         * config/install-sh: update from automake.
56505
56506 2003-09-25  Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/version-etc-2: New file, from modules/version-etc with
56509         modifications.
56510         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56511
56512 2003-09-25  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56515         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56516
56517 2003-09-24  Simon Josefsson  <jas@extundo.com>
56518
56519         * modules/xgethostname: Add xgethostname.h.
56520
56521 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56522
56523         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56524         the buffer associated with the argument.  Bug reported by
56525         Simon Josefsson.
56526
56527 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56528
56529         * README: Document assumptions that 'int' is at least 32 bits
56530         wide, that integer arithmetic is 2's complement without overflow,
56531         that there are no holes in integer values, that adding sizes of
56532         two nonoverlapping objects can't overflow, and that all-bits-zero
56533         yields scalar zero.  Fix spelling and capitalization typos.
56534
56535 2003-09-19  Karl Berry  <karl@gnu.org>
56536
56537         * lib/argp.h: update from libc.
56538
56539 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56540
56541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56542         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56543         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56544
56545 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56546
56547         * gnulib-tool: Use "test -h", not "test -L", for portability
56548         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56549         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56550         (sed_extract_prog): Issue s commands one-by-one, rather than
56551         using \| in one s command.
56552
56553 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56554
56555         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56556         input error, instead of returning NULL the next time we are called
56557         (and therefore losing track of errno).
56558
56559 2003-09-16  Bruno Haible  <bruno@clisp.org>
56560
56561         * gnulib-tool (func_create_testdir): Warn about duplicated
56562         dependencies.
56563
56564 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56565
56566         * modules/argmatch, modules/fatal, modules/obstack,
56567         modules/xalloc, modules/xgethostname: Sort dependencies by
56568         importance, not alphabetically.
56569
56570 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56571
56572         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56573         fails, so that the caller gets the proper errno.
56574
56575         * lib/readutmp.c (read_utmp): Likewise.
56576         Check for fstat error.  Close stream and free storage
56577         when failing.
56578
56579 2003-09-14  Karl Berry  <karl@gnu.org>
56580
56581         * config/srclist.txt (strdup.c): disable for c89 changes.
56582
56583 2003-09-14  Jim Meyering  <jim@meyering.net>
56584
56585         * lib/getloadavg.c: Correct cpp indentation.
56586         * lib/strdup.c: Likewise.
56587         * lib/vasnprintf.c: Likewise.
56588
56589 2003-09-14  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/fwriteerror: New file.
56592         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56593
56594 2003-09-14  Bruno Haible  <bruno@clisp.org>
56595
56596         * lib/fwriteerror.h: New file.
56597         * lib/fwriteerror.c: New file.
56598
56599 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56600
56601         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56602         modules/xgethostname, modules/xalloc: Depend on exit.
56603
56604 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56605
56606         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56607
56608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56609         and AC_MINIX, too, so that their extensions are available.
56610
56611         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56612         This macro has been superseded by gl_BACKUPFILE.
56613
56614         More patches to assume C89 or better.
56615
56616         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56617
56618         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56619         unconditionally.
56620         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56621         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56622         Include <string.h>, <stdlib.h> unconditionally.
56623         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56624         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56625         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56626         headers or for string.h.
56627         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56628         or strtoul.
56629
56630         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56631         headers.
56632         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56633         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56634         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56635         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56636         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56638         memcpy, memset.
56639         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56640         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56641         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56642         strtol.
56643         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56644         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56646         strtoul.
56647
56648 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56649
56650         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56651         * lib/obstack.c [!defined _LIBC]: Likewise.
56652         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56653         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56654         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56655
56656         More changes to assume C89 or better.
56657
56658         * lib/error.c (error_tail): Assume vprintf.
56659
56660         * lib/argmatch.c (getenv): Remove decl.
56661         * lib/progreloc.c (get_full_program_name): Define via prototype.
56662         * lib/setenv.c (clearenv): Likewise.
56663         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56664         needed.
56665         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56666         (malloc, memcpy): Remove decls.
56667         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56668         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56669         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56670         (memcpy): Remove macro.
56671         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56672         (__P): Remove.  All uses removed.
56673         (PTR): Remove.  All uses changed to void *.
56674         (CHAR_BIT, NULL): Remove.
56675         (spaces, zeros, memset_space, memset_zero)
56676         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56677         Remove.
56678         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56679         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56680         Define with prototype.
56681         Remove now-unnecessary prototype decl.
56682         (extra_args_spec): Assume ANSI C.  All uses changed.
56683         (extra_args_spec_iso): Remove.
56684         (my_strftime, emacs_strftimeu): Define via prototype.
56685         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56686         unconditionally.
56687         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56688         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56689         (strtoul, strtol): Remove decls.
56690         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56691         LONG_MAX): Remove.
56692         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56693         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56694         (LOCALE_PARAM_PROTO): New macro.
56695         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56696         (INTERNAL (strtol), strtol): Define with a prototype.
56697         (PARAMS): Remove.  All uses removed.
56698         * lib/tempname.c: Include <string.h> unconditionally.
56699         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56700         * lib/xgethostname.c (main): Define with a prototype.
56701         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56702         Include <stdlib.h> unconditionally.
56703         (calloc, malloc, realloc, free): Remove decls.
56704         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56705         Include <stdlib.h> unconditionally.  Sort include file names.
56706         (strtod): Remove.
56707         (xstrtod): Define with a prototype.
56708         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56709         (strtol, strtoul): Remove decls.
56710
56711 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56712
56713         More patches to assume C89 or better.
56714         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56715         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56716         string.h, memchr, STDC_HEADERS.
56717
56718 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56719
56720         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56721         Include <stdlib.h>, <string.h> unconditionally.
56722         Remove now-unnecessary cast to char *.
56723         * lib/strnlen.c: Include <string.h> unconditionally.
56724         * lib/yesno.c (yesno): Define with a prototype.
56725
56726 2003-09-11  Bruno Haible  <bruno@clisp.org>
56727
56728         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56729
56730 2003-09-10  Jim Meyering  <jim@meyering.net>
56731
56732         * lib/error.c: Correct indentation of cpp directives.
56733
56734 2003-09-10  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56737         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56738         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56739         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56740         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56741         <stdlib.h> and <string.h> checks.
56742         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56743         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56744
56745 2003-09-10  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/strcspn.c: Include <string.h> unconditionally.
56748         * lib/strpbrk.c: Include <string.h> unconditionally.
56749         * lib/strstr.c: Include <string.h> unconditionally.
56750         * lib/unicodeio.c: Include <string.h> unconditionally.
56751         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56752         * lib/unsetenv.c: Likewise.
56753         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56754         * lib/yesno.c: Include <stdlib.h> unconditionally.
56755         (rpmatch): Add prototype.
56756
56757 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56758
56759         More patches to assume C89 or better.
56760         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56761         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56762         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56763         or for string.h.
56764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56765         stdlib.h.
56766         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56767         C headers.
56768         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56769         string.h.
56770         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56771         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56772         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56773         or for string.h.
56774         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56775         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56776         C headers.
56777         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56778         memcpy.
56779         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56780         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56781         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56782         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56783         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56784         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56785         string.h, free.
56786         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56787         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56788         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56789         C headers, or for string.h.
56790         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56791         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56792         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56793         headers, memory.h, stdlib.h, string.h, strings.h.
56794         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56795         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56796         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56797         strchr.
56798         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56799         headers, memory.h, string.h.
56800         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56801         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56802         free.
56803         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56804         headers.
56805         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56806         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56807         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56808         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56809         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56810
56811 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56812
56813         More K&R removal.
56814
56815         * lib/acosl.c (main): Use a prototype.
56816         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56817         tanl.c: Likewise.
56818
56819         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56820
56821         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56822         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56823         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56824         with a prototype.
56825         * lib/getopt.c (const): Remove macro.
56826         Include <string.h> unconditionally.
56827         (my_index): Remove; all uses changed to strchr.
56828         (strlen): Remove decl.
56829         (exchange): Remove forward decl; no longer needed.
56830         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56831         Define with prototype.
56832         * lib/getopt1.c (const): Remove macro.
56833         (getopt_long, getopt_long_only, main): Define with prototype.
56834
56835         * lib/getugroups.c: Include <string.h> unconditionally.
56836
56837         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56838         (getusershell, setusershell, endusershell, readname, main):
56839         Define with prototypes.
56840
56841         * lib/group-member.c: Include group-member.h first.
56842         Include <stdlib.h> unconditionally.
56843
56844         * lib/hard-locale.c: Include hard-locale.h first.
56845         Include <stdlib.h>, <string.h> unconditionally.
56846
56847         * lib/hash.c (free, malloc): Remove decls.
56848         Include <stdlib.h> unconditionally.
56849
56850         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56851         (getenv): Do not declare.
56852
56853         * lib/idcache.c: Include <string.h> unconditionally.
56854
56855         * lib/long-options.c: Include long-options.h first, to test interface.
56856         Include <stdlib.h> unconditionally.
56857
56858         * lib/makepath.c: Include makepath.h first, to test interface.
56859         Include <stdlib.h> and <string.h> unconditionally.
56860
56861         * lib/linebuffer.c: Include <stdlib.h>.
56862         (free): Remove decl.
56863
56864         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56865         stddef.h. rpl_malloc returns void *, not char *.
56866         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56867         prototype.
56868
56869         * lib/md5.h: Include <limits.h> unconditionally.
56870         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56871         (__P): Remove; all uses removed.
56872         * lib/md5.c: Include "md5.h" first.
56873         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56874         md5_buffer, md5_process_bytes, md5_process_block):
56875         Define with prototypes.
56876         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56877         * lib/sha.c: Include "sha.h" first.
56878         Include <stdlib.h>, <string.h> unconditionally.
56879
56880         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56881         * lib/memcmp.c (__ptr_t): Likewise.
56882         * lib/memrchr.c (__ptr_t): Likewise.
56883         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56884         Include <string.h> unconditionally.
56885         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56886         * lib/memchr.c: Include <stdlib.h> unconditionally.
56887         * lib/memchr.c (LONG_MAX): Remove.
56888         * lib/memrchr.c (LONG_MAX): Likewise.
56889         * lib/memchr.c (__memchr): Define via a prototype.
56890         * lib/memrchr.c (__memrchr): Likewise.
56891         * lib/memcmp.c (__P): Remove, and remove all uses.
56892         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56893         Remove forward decls; no longer needed.
56894         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56895         Use types required by C89 in prototype.
56896
56897         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56898         * lib/savedir.c: Likewise.
56899         * lib/mkdir.c (free): Remove decl.
56900         * lib/rmdir.c (rmdir): Define with a prototype.
56901         * lib/savedir.c: Include savedir.h first, to test interface.
56902
56903         * lib/mktime.c (STDC_HEADERS): Remove.
56904         Include <stdlib.h>, <string.h> unconditionally.
56905
56906         * lib/modechange.c: Include <stdlib.h> unconditionally.
56907         (malloc): Remove decl.
56908
56909         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56910         (free): Remove decl.
56911
56912         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56913         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56914         (This type really should be intptr_t, but that's a C99ism.)
56915         (_obstack_memcpy): Remove: all uses changed to memcpy.
56916         Include <string.h> unconditionally.
56917         (struct obstack): Assume __STDC__ for types of members
56918         chunkfun, freefun, extra_arg.
56919         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56920         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56921         obstack_begin, obstack_specify_allocation,
56922         obstack_specify_allocation_with_arg, obstack_chunkfun,
56923         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56924         Remove unprototyped decls and the macros that use them.
56925         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56926         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56927         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56928         (defined __STDC__ && __STDC__)]:
56929         Remove nonprototyped code.
56930         Include <stdlib.h> unconditionally.
56931         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56932         _obstack_allocated_p, _obstack_free, obstack_free,
56933         _obstack_memory_used, print_and_abort):
56934         Define using prototypes.
56935         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56936         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56937         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56938         obstack_next_free, obstack_object_size, obstack_room) [0]:
56939         Remove unused, unprototyped code.
56940
56941         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56942
56943         * lib/physmem.c (physmem_total, physmem_available, main): Define
56944         with prototypes.
56945
56946         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56947         (main): Define with a prototype.
56948
56949         * lib/posixver.c (getenv): Remove decl.
56950
56951         * lib/putenv.c (malloc): Returns void *, not char *.
56952         Include <string.h> unconditionally.
56953         (strchr, memcpy, NULL): Do not define.
56954
56955         * lib/readtokens.c: Include readtokens.h first, to test interface.
56956         Include <stdlib.h>, <string.h> unconditionally.
56957         (init_tokenbuffer): Define with a prototype.
56958
56959         * lib/regex.c (PARAMS): Remove.  All uses removed.
56960         All uses of _RE_ARGS removed, too.
56961         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56962         unconditionally.
56963         (bzero): Assume memset exists.
56964         (memcmp, memcpy, NULL): Remove.
56965         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56966         char, or assignments to local vars of type signed char.
56967         (init_syntax_once, PREFIX(extract_number_and_incr),
56968         PREFIX(print_partial_compiled_pattern),
56969         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56970         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56971         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56972         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56973         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56974         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56975         wcs_compile_range, byte_compile_range, truncate_wchar,
56976         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56977         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56978         count_mbs_length, wcs_re_match_2_internal,
56979         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56980         PREFIX(alt_match_null_string_p),
56981         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56982         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56983         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56984         now-unnecessary declaration, if any.
56985         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56986         regcomp, regexec):
56987         Remove now-unnecessary casts among pointer types.
56988         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56989
56990         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56991         (free): Remove decl.
56992
56993         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56994
56995         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56996         (free): Remove decl.
56997
56998         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56999         * lib/xgetcwd.c: Likewise.
57000
57001         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57002         (free): Remove decl.
57003
57004         * lib/strchrnul.c (strchrnul): Define with a prototype.
57005         Fix bug: c_in was not converted to char before searching.
57006
57007         The following changes are not K&R related:
57008
57009         * lib/group-member.h: Include <sys/types.h>, so that this file is
57010         self-contained.
57011         * lib/makepath.h: Likewise.
57012
57013         * lib/getusershell.c (readname, default_index, line_size, readname):
57014         Use size_t, not int, for sizes.
57015         (readname): If the size overflows, report an error instead of
57016         looping forever.
57017
57018 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57019
57020         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57021         libc.
57022
57023 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57024
57025         * README: New section: portability guidelines.
57026
57027 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57028
57029         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57030         C89 spec.
57031
57032 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57033
57034         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57035
57036 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57037
57038         Assume C89 or better; remove K&R cruft.
57039         A few of these changes were first proposed by Derek Robert Price
57040         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57041
57042         * lib/addext.c: Include <string.h> unconditionally.
57043         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57044         Don't declare getenv or malloc.
57045
57046         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57047         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57048         (NULL): Remove.
57049         (find_stack_direction, alloca): Use prototypes.
57050
57051         * lib/atexit.c (atexit): Define using a prototype.
57052
57053         * lib/basename.c, dirname.c, stripslash.c:
57054         Include <string.h> unconditionally.
57055
57056         * lib/bcopy.c: Include <stddef.h>.
57057         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57058
57059         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57060
57061         * lib/error.h (error, error_at_line, error_print_progname)
57062         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57063         * lib/error.c: Include error.h first, to check interface.
57064         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57065         (VA_START): Remove; all uses changeed to va_start.
57066         (exit, strerror): Remove decls.
57067         (error_print_progname): Prototype uncondionally.
57068         Don't include <errno.h>; no longer needed.
57069         (private_strerror): Remove.
57070         (error_tail): Always define.
57071         (error, error_at_line): Assume C89 or better; always use prototypes.
57072         * lib/fatal.c: Include "fatal.h" first, to test interface.
57073         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57074         (VA_START): Remove; all uses changed to va_start.
57075         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57076         this case.
57077         (exit): Remove decl.
57078         (fatal): Prototype unconditionally.  Assume va_start works.
57079         Abort at end, to pacify gcc.
57080
57081         * lib/euidaccess.c (main): Define with a prototype.
57082
57083         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57084
57085         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57086
57087         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57088         prototypes.
57089         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57090         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57091         (getenv): Remove decl.
57092         (fnmatch): Define using a prototype.
57093         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57094         (FCT): Define using a prototype.
57095
57096         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57097
57098         * lib/gethostname.c: Include <stddef.h>.
57099         (gethostname): Define with prototype.  Length is size_t, not int.
57100
57101 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57102
57103         Assume C89 or better; remove K&R cruft.
57104         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57105         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57106         string.h, getenv, malloc.
57107         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57108         headers.
57109         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57110         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57111         do not check for strerror.
57112         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57113         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57114         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57115         do not check for doprnt or vprintf.
57116         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57117         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57118
57119 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57120
57121         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57122         getversion.c should have been removed then, but was accidentally
57123         preserved.
57124
57125         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57126         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57127
57128 2003-09-08  Karl Berry  <karl@gnu.org>
57129
57130         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57131                 config, forget about prep.
57132
57133         * config/depcomp, missing: update from automake.
57134
57135 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57136
57137         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57138         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57139
57140 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57141
57142         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57143         copy_tm_result.  Bug reported by Simon Josefsson in
57144         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57145
57146 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57147
57148         * m4/time_r.m4: New file.
57149         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57150         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57151         is. Check for timegm declaration.
57152         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57153         Do not check for gmtime_r.
57154         Replace mktime if __mktime_internal does not exist and if mktime
57155         hasn't been replaced already.
57156
57157 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57158
57159         * lib/time_r.c, lib/time_r.h: New files.
57160
57161         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57162         __localtime_r.
57163         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57164         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57165
57166         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57167         __gmtime_r.
57168         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57169         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57170         Include <time_r.h>.
57171
57172         * lib/timegm.c: Switch to glibc implementation, with the following
57173         changes:
57174         [defined HAVE_CONFIG_H]: Include <config.h>.
57175         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57176         (__mktime_internal) [!defined _LIBC]: New decl.
57177         (__gmtime_r) [!defined _LIBC]: New macro and function.
57178         (timegm): Use a prototype, since gnulib assumes C89.
57179         Do not bother declaring tmp to be const, as it's not really usefu.
57180         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57181         (timegm): Declare only if HAVE_DECL_TIMEGM.
57182
57183 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57184
57185         * MODULES.html.sh (func_all_modules): Add time_r.
57186         * modules/time_r: New file.
57187         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57188         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57189
57190 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57191
57192         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57193         Bug reported by Lute Kamstra in
57194         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57195
57196         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57197         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57198         course with correspondingly smaller numbers for tomorrow and
57199         yesterday.  From Tadayoshi Funaba.  Originally installed into
57200         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57201         coreutils merge?).
57202
57203 2003-08-31  Simon Josefsson  <jas@extundo.com>
57204
57205         * modules/timegm: New file.
57206         * MODULES.html.sh (func_all_modules): Add timegm.
57207
57208 2003-08-31  Simon Josefsson  <jas@extundo.com>
57209
57210         * m4/timegm.m4: New file.
57211
57212 2003-08-31  Simon Josefsson  <jas@extundo.com>
57213
57214         * lib/timegm.h: New file.
57215         * lib/timegm.c: New file.  Based on
57216         wget-1.8.2/src/http.c:mktime_from_utc.
57217
57218 2003-08-31  Karl Berry  <karl@gnu.org>
57219
57220         * lib/argp.h: update from libc.
57221
57222 2003-08-28  Bruno Haible  <bruno@clisp.org>
57223
57224         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57225         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57226         followed by '#define fnmatch fnmatch_posix' gives an error.
57227
57228 2003-08-28  Bruno Haible  <bruno@clisp.org>
57229
57230         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57231         warning on QNX, which defines O_BINARY to 000000.
57232
57233 2003-08-27  Jim Meyering  <jim@meyering.net>
57234
57235         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57236         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57237         would fail after 32.  Reported by Danny Levinson.  Details here:
57238         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57239
57240 2003-08-24  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57243         MSVC7 <stdio.h> is included later.
57244
57245 2003-08-22  Simon Josefsson  <jas@extundo.com>
57246
57247         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57248
57249 2003-08-20  Karl Berry  <karl@gnu.org>
57250
57251         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57252
57253 2003-08-20  Bruno Haible  <bruno@clisp.org>
57254
57255         * modules/progname: New file.
57256         * MODULES.html.sh (func_all_modules): Add progname.
57257
57258 2003-08-20  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/progname.h: New file, from GNU gettext.
57261         * lib/progname.c: New file, from GNU gettext.
57262         * lib/progreloc.c: New file, from GNU gettext.
57263
57264 2003-08-19  Jim Meyering  <jim@meyering.net>
57265
57266         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57267         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57268
57269 2003-08-19  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57272         more.
57273
57274 2003-08-19  Bruno Haible  <bruno@clisp.org>
57275
57276         * lib/xstrdup.c: Assume <string.h> exists.
57277
57278 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57279
57280         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57281         in makefile rules.
57282
57283 2003-08-18  Jim Meyering  <jim@meyering.net>
57284
57285         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57286         * m4/lib-ld.m4: Likewise.
57287
57288 2003-08-18  Jim Meyering  <jim@meyering.net>
57289
57290         * lib/setenv.h: Indent nested cpp directive.
57291         * lib/vasnprintf.c: Remove trailing blanks.
57292
57293 2003-08-17  Simon Josefsson  <jas@extundo.com>
57294
57295         * modules/xstrndup: New file.
57296         * MODULES.html.sh (func_all_modules): Add xstrndup.
57297
57298 2003-08-17  Simon Josefsson  <jas@extundo.com>
57299
57300         * modules/argp: Fix autoconf macro name. Add more dependencies.
57301
57302 2003-08-17  Simon Josefsson  <jas@extundo.com>
57303
57304         * m4/xstrndup.m4: New file.
57305
57306 2003-08-17  Simon Josefsson  <jas@extundo.com>
57307
57308         * m4/argp.m4: New file.
57309
57310 2003-08-17  Simon Josefsson  <jas@extundo.com>
57311             Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/xstrndup.h: New file.
57314         * lib/xstrndup.c: New file.
57315
57316 2003-08-17  Bruno Haible  <bruno@clisp.org>
57317
57318         * modules/strndup (Files, Include): Add lib/strndup.h.
57319
57320 2003-08-17  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/euidaccess (Files): Add lib/euidaccess.h.
57323
57324 2003-08-17  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/strndup.h: New file.
57327
57328 2003-08-17  Bruno Haible  <bruno@clisp.org>
57329
57330         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57331         like AC_GNU_SOURCE.
57332         * modules/extensions (configure.ac): Comment out the invocation of
57333         gl_USE_SYSTEM_EXTENSIONS.
57334
57335 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57336
57337         Merges from coreutils, etc.
57338         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57339         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57340         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57341         fixing a typo.
57342         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57343         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57344
57345 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57346
57347         Document merge from coreutils.
57348         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57349         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57350         * modules/utime: Add m4/utimes-null.m4.
57351
57352 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57353
57354         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57355         space, undoing this 2003-08-12 change:
57356         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57357
57358 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57359
57360         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57361         strtoul.c from libc, undoing this 2003-08-12 change:
57362         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57363
57364 2003-08-16  Jim Meyering  <jim@meyering.net>
57365
57366         Merges from coreutils.
57367         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57368         prefix.  Adjust cache variables similarly.  Create 500 rather than
57369         just 300 files, to exercise bug on Darwin6.5, too.
57370         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57371         $missing_dir.
57372         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57373         AM_SYS_POSIX_TERMIOS.
57374         Reported by mkc@mathdogs.com.
57375         Also change use of $am_cv_sys_posix_termios
57376         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57377         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57378         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57379         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57380         in /proc/mounts until it finds one with matching device number.  This
57381         is unnecessary when the FILE argument *is* a mount point.  No stat call
57382         is necessary in that case.  So, disable the statvfs-testing code on
57383         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57384         as RedHat bug# 84846.
57385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57386         to 1MB, so as not to render systems with no stack size limit (e.g.,
57387         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57388         Include <unistd.h>.  On some systems,
57389         it is required for the definition of _SC_PAGESIZE.
57390
57391 2003-08-16  Jim Meyering  <jim@meyering.net>
57392
57393         Merge from coreutils.
57394         * lib/xstrtoimax.c: #else #if -> #elif.
57395         * lib/xstrtoumax.c: Likewise.
57396
57397 2003-08-16  Jim Meyering  <jim@meyering.net>
57398
57399         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57400         * m4/utimes.m4: Removed.
57401         * m4/utimes-null.m4: Renamed from utimes.m4.
57402
57403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57404         to 1MB, so as not to render systems with no stack size limit (e.g.,
57405         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57406         Include <unistd.h>.  On some systems,
57407         it is required for the definition of _SC_PAGESIZE.
57408
57409 2003-08-16  Jim Meyering  <jim@meyering.net>
57410         and Paul Eggert  <eggert@cs.ucla.edu>
57411
57412         Merges from coreutils, etc.
57413
57414         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57415         using the latest version from cvs.  This avoids problems with #line
57416         directives using a vendor (Sun) compiler.
57417         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57418         Don't set GETGROUPS_LIB here; now it's
57419         done via getgroups.m4's wrapper function.
57420         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57421         rather than just in sh-util/configure.in, so that the
57422         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57423         same.
57424         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57425         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57426         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57427         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57428         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57429         Remove code that is now done by the newly-required macros.
57430         Append $(EXEEXT) to DF_PROG.
57431         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57432         Do not invoke or require the following here,
57433         since prereq.m4 or some gnulib .m4 now does this for us:
57434         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57435         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57436         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57437         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57438         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57439         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57440         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57441         AC_FUNC_OBSTACK.
57442         Do not replace the following functions, as this is now the job
57443         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57444         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57445         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57446         atexit getpass, strdup, getpagesize.
57447         Replace 'raise'.
57448         Do not check for the following functions, as this is now the job
57449         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57450         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57451         setregid.
57452         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57453         Check for sys/sysctl.h.
57454         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57455         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57456         of checking for ssize_t ourselves.
57457
57458         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57459         Require every macro that gnulib/modules/* suggests for us.
57460         (jm_PREREQ_ADDEXT): New macro.
57461         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57462         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57463
57464         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57465         (gl_PHYSMEM): Use it.
57466         Also check for `table' function.
57467         Check for new headers and functions.
57468         Add check for sys/sysmp.h.
57469         With suggestions from Kaveh Ghazi.
57470         Ignore headers that are present but cannot be compiled.  This
57471         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57472         C 5.4.
57473
57474 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57475
57476         Document merge from coreutils.
57477         * modules/userspec: Depend on posixver.
57478         * modules/strftime: Depend on tzset.
57479
57480 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57481
57482         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57483         rather than tab, after '#' in shell-script copyright notices.
57484         Suggested by Bruno Haible.
57485
57486 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57487
57488         * config/srclist-update: Use three spaces, rather than tab, after '#'
57489         in shell-script copyright notices.  Suggested by Bruno Haible.
57490         Remove unnecessary parenthesization in regular expression.
57491
57492 2003-08-15  Jim Meyering  <jim@meyering.net>
57493
57494         Merge from coreutils.
57495         * lib/xgethostname.c: Include <stdlib.h>.
57496         (xghostname): Don't exit for anything other than memory-related
57497         failure; just return NULL.
57498         * lib/userspec.c: Include "posixver.h".
57499         (parse_user_spec): Accept `.' as a separator only
57500         in pre-POSIX-200112 mode.
57501         * lib/strtoimax.c: Use #elif rather than #else #if.
57502         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57503         Remove function, now that we can rely on a working tzset function.
57504         [!_LIBC]: Ensure that the required autoconf test has been run.
57505         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57506         Use underlying_strftime for %r.
57507         * lib/sha.c: Merge in some clean-up and optimization changes from
57508         glibc.
57509         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57510         Ensure that it is a multiple of 64.
57511         Rearrange loop exit tests so as to avoid performing an
57512         additional fread after encountering an error or EOF.
57513         * lib/realloc.c: Update copyright date.
57514
57515 2003-08-15  Jim Meyering  <jim@meyering.net>
57516         and Paul Eggert  <eggert@twinsun.com>
57517
57518         Merge from coreutils.
57519         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57520         member but strut utmpx does not.  Needed for AIX 4.3.3.
57521         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57522
57523 2003-08-15  Jim Meyering  <jim@meyering.net>
57524         and Paul Eggert  <eggert@cs.ucla.edu>
57525
57526         Merges from coreutils, etc.
57527         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57528         Require gl_FUNC_TZSET_CLOBBER.
57529         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57530         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57531         members.
57532
57533 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57534
57535         Help the merge from coreutils.
57536         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57537         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57538         * m4/tzset.m4: Use it too.
57539
57540 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57541
57542         * modules/tzset: New file.
57543
57544 2003-08-14  Jim Meyering  <jim@meyering.net>
57545
57546         Merges from coreutils.
57547         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57548         variable names, rather than @FNMATCH_H@.
57549         * modules/alloca: Likewise for $(ALLOCA_H).
57550
57551         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57552         the three copies of the literal target, `fnmatch.h'.
57553         * modules/alloca (alloca.h): Likewise.
57554
57555 2003-08-14  Jim Meyering  <jim@meyering.net>
57556
57557         Merge from coreutils.
57558         * m4/tzset.m4: New file.
57559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57560         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57561         otherwise, AIX 5.1 systems would end up using the latter.
57562         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57563         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57564         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57565         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57566
57567 2003-08-14  Jim Meyering  <jim@meyering.net>
57568
57569         Merge from coreutils.
57570         * lib/obstack.h: Whitespace changes.
57571         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57572         and xcalloc return values.
57573         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57574         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57575         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57576         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57577         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57578         error from mntctl.
57579         Use mntctl's return value to drive the entry-processing loop, since
57580         we can't rely on the value of the vmt_length member in the last
57581         entry.  On some systems doing so could result in exhausting
57582         virtual memory.  Based in part on a patch from Mike Jetzer.
57583
57584 2003-08-14  Jim Meyering  <jim@meyering.net>
57585         and Paul Eggert  <eggert@twinsun.com>
57586
57587         Merges from coreutils, plus other fixes.
57588         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57589         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57590         for credits and details.  Thanks to Kaveh Ghazi for helping
57591         to keep these files in sync.
57592         (ARRAY_SIZE): Define it.
57593         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57594         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57595         (memcasecmp): Don't assume size_t fits in unsigned int.
57596         Remove casts and duplicate code.
57597         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57598         (memcpy): Remove definition.
57599         Merge in some clean-up and optimization changes from glibc.
57600         [BLOCKSIZE]: Move definition to top of file.
57601         Ensure that it is a multiple of 64.
57602         Rearrange loop exit tests so as to avoid performing an
57603         additional fread after encountering an error or EOF.
57604         * lib/md5.h (md5_uintptr): Define.
57605         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57606         return to the initial working directory.  Preserve errno
57607         for caller.
57608         * lib/idcache.c: Include "xalloc.h".
57609         (xmalloc, xrealloc): Remove decls.
57610         (getuser): Remove casts no longer required in C89.
57611         * lib/human.c: Include stdio.h, for sprintf.
57612         * lib/group-member.c: Include "xalloc.h".
57613         (xmalloc, xrealloc): Remove decls.
57614         (get_group_info): Remove casts no longer required in C89.
57615         * lib/getusershell.c (readname): Remove casts no longer required in
57616         C89.
57617         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57618         * lib/getline.c: Whitespace fix, from coreutils.
57619
57620 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57621
57622         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57623         Check for isascii.
57624
57625         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57626         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57627         Undo previous (whitespace-only) change.
57628
57629 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57630
57631         * lib/exclude.c: Include <ctype.h>
57632         (IN_CTYPE_DOMAIN): New macro.
57633         (is_space): New fn.
57634         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57635         and empty lines.
57636
57637         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57638         Undo previous (whitespace-only) change.
57639
57640 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57641
57642         * config/srclist-update: Change update back to the old behavior,
57643         leaving whitespace alone.  Use one 'sed' command rather than a
57644         pipeline.
57645         (fixlicense): Now a variable, not a function.
57646         (remove_trailing_blanks): Remove.
57647         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57648         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57649         Undo previous (whitespace-only) change.
57650
57651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57652
57653         Merge from coreutils.
57654         * modules/euidaccess: Add lib_SOURCES, include for new
57655         file euidaccess.h
57656
57657 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57658
57659         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57660         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57661         Normalize leading white space and remove trailing white space.
57662
57663         Merge from coreutils
57664         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57665
57666         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57667         0.12.1.  These files are now being upgraded automatically by
57668         ../config/srclist-update.
57669
57670 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57671
57672         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57673         Normalize leading white space and remove trailing white space.
57674         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57675         notice, as per ../config/srclist-update.
57676
57677         Merge from coreutils.
57678         * lib/euidaccess.h: New file.
57679         * lib/euidaccess.c: Include it.
57680         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57681         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57682         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57683
57684 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57685
57686         * config/srclist-update: Add copyright notice.
57687         (remove_id_lines, remove_trailing_blanks): New constants.
57688         (fixfile): Use them to normalize spacing a bit in copied files.
57689         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57690         Normalize leading white space and remove trailing white space.
57691
57692         * config/texinfo.tex: Sync with texinfo.
57693
57694         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57695         strtoul.c from libc, to merge coreutils whitespace changes.
57696
57697         * config/srclist.txt: Get the following m4 files from gettext:
57698         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57699         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57700         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57701         wint_t.m4.
57702
57703 2003-08-12  Karl Berry  <karl@gnu.org>
57704
57705         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57706         been made.
57707
57708 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57709
57710         * modules/gnu-source, m4/gnu-source.m4:
57711         Remove; we're assuming Autoconf 2.54 or later now.
57712         Suggested by Bruno Haible.
57713         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57714
57715 2003-08-11  Bruno Haible  <bruno@clisp.org>
57716
57717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57718
57719 2003-08-11  Bruno Haible  <bruno@clisp.org>
57720
57721         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57722         (vasnprintf): Use it instead of wcslen.
57723
57724 2003-08-11  Bruno Haible  <bruno@clisp.org>
57725
57726         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57727         value to ensure that _Bool promotes to int. Use #define for _Bool when
57728         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57729
57730 2003-08-10  Karl Berry  <karl@gnu.org>
57731
57732         * lib/regex.h: update from libc (whitespace fix).
57733
57734 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57735
57736         Merge some files from coreutils.  These changes were
57737         originally made by Jim Meyering.
57738         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57739         many older Unixes require this.
57740         * lib/alloca.c (alloca): Remove cast to argument of free;
57741         no longer needed in C89.
57742         * lib/alloca_.h, regex.h: Fix white space to match
57743         what GNU indent does.
57744
57745 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57746
57747         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57748         apparently Emacs's Unicode mode got confused before my 2003-08-05
57749         checkin.
57750
57751 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57752
57753         * m4/extensions.m4: New file.
57754         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57755         Require gl_USE_SYSTEM_EXTENSIONS.
57756         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57757         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57758
57759 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57760
57761         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57762         * modules/extensions, modules/gnu-source: New files.
57763         * modules/timespec, modules/unlocked-io: Depend on extensions.
57764
57765 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57766
57767         * modules/restrict: New file.
57768         * MODULES.html.sh (func_all_modules): Add restrict.
57769         * modules/regex: Depend on restrict.
57770
57771 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57772
57773         * m4/restrict.m4: New file.
57774         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57775
57776 2003-08-07  Bruno Haible  <bruno@clisp.org>
57777
57778         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57779         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57780
57781 2003-08-07  Bruno Haible  <bruno@clisp.org>
57782
57783         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57784         makes the module 'getndelim2' compatible with the module 'getline'.
57785
57786 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57787
57788         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57789         byte with "\201" to avoid glitches when editing that source file
57790         with multi-gnome-terminal.
57791
57792 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57793
57794         * lib/bumpalloc.h: Remove.
57795
57796 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57797
57798         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57799         * modules/bumpalloc: Remove.
57800
57801 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57802
57803         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57804         GNU coding style.
57805
57806         Merge from coreutils.
57807         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57808         1. From glibc.
57809         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57810         from Karl Berry, implemented by Jim Meyering.
57811         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57812         from Dmitry V. Levin.
57813         Remove anachronistic cast of xrealloc.
57814         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57815         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57816         type. Otherwise, it wouldn't compile with at least /bin/cc on
57817         ymp-cray-unicos9.0.2.X.
57818         Combine two mostly-identical uses of alloca into one.
57819         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57820
57821 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57822
57823         [From Emacs.]
57824
57825         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57826         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57827         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57828         obsolete NLIST_NAME_UNION.
57829         [__GNU__]: Undef BSD and FSCALE.
57830         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57831
57832 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57833
57834         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57835         an enum type, so that it's guaranteed to promote to int.  See:
57836         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57837
57838 2003-08-03  Karl Berry  <karl@gnu.org>
57839
57840         * config/depcomp: update from automake.
57841
57842 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57843
57844         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57845         (strerror): Don't assume that a printable int fits in 14 bytes.
57846
57847 2003-07-31  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/getpass-gnu: New file.
57850         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57851
57852 2003-07-31  Bruno Haible  <bruno@clisp.org>
57853
57854         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57855
57856 2003-07-24  Karl Berry  <karl@gnu.org>
57857
57858         * config/missing: update from automake.
57859
57860 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57861             Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57864         * lib/getline.c (getline, getdelim): Likewise.
57865         Remove _GNU_SOURCE define; now it's defined in config.h through
57866         m4/getline.m4.
57867
57868 2003-07-23  Karl Berry  <karl@gnu.org>
57869
57870         * config/config.sub: update from prep.
57871
57872 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57873
57874         * modules/xalloc (Depends-on): Add exitfail.
57875         * modules/xmemcoll: Likewise.
57876
57877 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57878
57879         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57880         over-parenthesization in macros.
57881
57882         Sync with coreutils.
57883
57884         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57885         required by C99.
57886
57887         Use `exit_failure' for xalloc and xmemcoll instead of their own
57888         private exit-failure variables.
57889         * lib/xalloc.h (xalloc_exit_failure): Remove.
57890         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57891         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57892         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57893         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57894         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57895
57896 2003-07-20  Jim Meyering  <jim@meyering.net>
57897
57898         * modules/closeout (Depends-on): Add exitfail.
57899         Suggestion from Bruno Haible.
57900
57901 2003-07-19  Karl Berry  <karl@gnu.org>
57902
57903         * config/config.sub: update from prep.
57904
57905 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57906
57907         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57908         Remove.
57909         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57910         to test that it can stand by itself.  Include "exitfail.h".
57911         Clients should set exit_failure instead.
57912         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57913
57914 2003-07-18  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/getndelim2: New file.
57917         * modules/getline: Share files with module getndelim2.
57918         * modules/getnline: Depend on getndelim2 instead of sharing files with
57919         it. Add getnline.c to lib_SOURCES.
57920         * MODULES.html.sh (func_all_modules): Add getndelim2.
57921
57922 2003-07-18  Bruno Haible  <bruno@clisp.org>
57923
57924         * m4/getndelim2.m4: New file.
57925         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57926         invoke gl_PREREQ_GETNDELIM2.
57927         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57928         gl_PREREQ_GETNDELIM2.
57929         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57930         gl_GETNDELIM2.
57931
57932 2003-07-18  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/getndelim2.h: New file.
57935         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57936         getndelim2.h.
57937         (getndelim2): Make non-static. Change return type to ssize_t.
57938         * lib/getline.h: Change argument names.
57939         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57940         * lib/getnline.c: Include getndelim2.h.
57941
57942 2003-07-18  Andreas Schwab  <schwab@suse.de>
57943
57944         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57945
57946 2003-07-17  Karl Berry  <karl@gnu.org>
57947
57948         * config/config.sub: update from prep.
57949
57950 2003-07-17  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/getnline: New file.
57953         * modules/getline: Add lib/getndelim2.c to source file list.
57954         * MODULES.html.sh (func_all_modules): Add getnline.
57955
57956 2003-07-17  Bruno Haible  <bruno@clisp.org>
57957
57958         * m4/getnline.m4: New file.
57959
57960 2003-07-17  Bruno Haible  <bruno@clisp.org>
57961
57962         * m4/Makefile.am.in: Remove file.
57963         * m4/Makefile.am: Remove file.
57964         * m4/Makefile.in: Remove file.
57965
57966 2003-07-17  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/getnline.h: New file.
57969         * lib/getnline.c: New file.
57970         * lib/getndelim2.c: New file, extracted from getline.c.
57971         (getndelim2): Renamed from getdelim2, with added nmax argument.
57972         * lib/getline.c: Include getndelim2.c.
57973         (getdelim2): Moved out to getndelim2.c.
57974         (getline, getdelim): Update.
57975
57976 2003-07-17  Bruno Haible  <bruno@clisp.org>
57977
57978         * lib/Makefile.am: Remove file.
57979         * lib/Makefile.in: Remove file.
57980
57981 2003-07-17  Bruno Haible  <bruno@clisp.org>
57982
57983         * configure.in: Remove file.
57984         * Makefile.in: Remove file.
57985
57986 2003-07-17  Bruno Haible  <bruno@clisp.org>
57987
57988         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57989
57990 2003-07-16  Karl Berry  <karl@gnu.org>
57991
57992         * config/srclist-update: was running fixlicense twice, which caused
57993                 texinfo.tex to be nullified for some reason.  Simplify,
57994                 $gplsrc is no longer needed as far as I can see?
57995
57996 2003-07-16  Jim Meyering  <jim@meyering.net>
57997
57998         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57999
58000 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58001
58002         * config/srclist.txt: Get the following files from gettext-runtime/intl
58003         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58004         ref-del.sin.  From Bruno Haible.
58005         * config/srclist-update (fixfile): Change grep pattern again, since the
58006         previous fix didn't work (there was another trailing $).  Use
58007         '[$]' to escape the $s.
58008
58009 2003-07-15  Karl Berry  <karl@gnu.org>
58010
58011         * lib/vasnprintf.c: update from gettext.
58012
58013 2003-07-15  Karl Berry  <karl@gnu.org>
58014
58015         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58016         gets expanded when surrounded by '$'.
58017
58018 2003-07-15  Jim Meyering  <jim@meyering.net>
58019
58020         * modules/save-cwd: Don't depend on error.  From Derek Price.
58021
58022 2003-07-15  Jim Meyering  <jim@meyering.net>
58023
58024         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58025
58026 2003-07-14  Simon Josefsson  <jas@extundo.com>
58027
58028         * modules/mempcpy: New file.
58029         * MODULES.html.sh (func_all_modules): Add mempcpy.
58030
58031 2003-07-14  Simon Josefsson  <jas@extundo.com>
58032
58033         * m4/mempcpy.m4: New file.
58034
58035 2003-07-14  Simon Josefsson  <jas@extundo.com>
58036
58037         * lib/mempcpy.h: New file.
58038         * lib/mempcpy.c: New file.
58039
58040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58041
58042         * modules/getdate, modules/posixtm: Depend on mktime.
58043
58044 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58045
58046         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58047         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58048         unicodeio.c, unicodeio.h, unlocked-io.h:
58049         Switch from LGPL to GPL.
58050
58051 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58052
58053         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58054         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58055         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58056         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58057         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58058         updated automatically by ../config/srclist-update.  This changes
58059         their license from LPGL to GPL.
58060
58061 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58062
58063         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58064         assumed to refer to the root of the most recent stable gettext version.
58065         * config/srclistvars.sh: Add defaults for eggert.
58066         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58067         Match "This program" as well as "The program".  This is needed
58068         for gettext.
58069
58070 2003-07-14  Jim Meyering  <jim@meyering.net>
58071
58072         Don't emit diagnostics.  Let callers do that.
58073         * lib/save-cwd.c: Don't include "error.h".
58074         (save_cwd): Don't call error.  Ensure that errno is valid
58075         when returning nonzero.
58076
58077         * lib/save-cwd.h (restore_cwd): Update prototype.
58078         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58079         Simplify.  Don't call error upon failure.  Let callers do that.
58080         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58081         when auditing is enabled.  But don't bother updating the #if.
58082
58083 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58084
58085         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58086         it breaks C++ compilation.
58087         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58088
58089 2003-07-10  Simon Josefsson  <jas@extundo.com>
58090
58091         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58092
58093 2003-07-10  Jim Meyering  <jim@meyering.net>
58094
58095         * m4/clock_time.m4: Remove trailing blank.
58096         * m4/intmax_t.m4: Likewise.
58097
58098 2003-07-10  Jim Meyering  <jim@meyering.net>
58099
58100         * lib/vasnprintf.c: Remove trailing blanks.
58101         Make cpp indentation consistent.
58102
58103 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58104
58105         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58106         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58107         Switch from LGPL to GPL.
58108
58109 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58110
58111         * config/srclist.txt: Sort sublists.  Add
58112         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58113         that differ from gnulib for one reason or another; we'd like this list
58114         to be smaller but for now let's document what we have.
58115
58116 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58117
58118         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58119         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58120         and sweeter "eval x=$x".
58121         * config/srclist.txt: Get lib/argp* from glibc.
58122
58123 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58124
58125         * lib/mktime.c: Fix some boundary cases and remove need for floating
58126         point.
58127
58128         Issue a compile-time diagnostic if time_t is floating point, or if
58129         two's complement arithmetic is not in effect, or if arithmetic
58130         right shift does not propagate the sign.  These assumptions were
58131         all in the original code but they weren't checked.
58132
58133         (TIME_T_MIDPOINT, verify): New macros.
58134         (__isleap): Remove; it has integer overflow problems.
58135         (leapyear): New function, without those problems.
58136         (ydhms_tm_diff): Remove; splitting into two parts.
58137         (ydhms_diff): New function, containing the arithmetic part of
58138         the old ydhms_tm_diff function.  Issue a compile-time
58139         diagnostic if we are not using C99 integer division.
58140         Avoid casts when possible.
58141         (guess_time_tm): New function, containing the checking part of
58142         the old ydhms_tm_diff function.  Return the new value, rather than
58143         the difference between it and the old.  Accept a new argument T
58144         so that *T specifies the old value.  Check for overflow in the result.
58145
58146         (__mktime_internal): Use a time_t offset, not a long int offset.
58147         This undoes the 2003-06-04 change, which is no longer needed now
58148         that we have better overflow checking.
58149         (localtime_offset): Likewise.
58150
58151         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58152         and long are 64-bit but int is only 32-bit.
58153         (ydhms_diff): Use long int to store year1 and yday1.
58154         Issue a compile-time diagnostic if long int is not wide enough.
58155
58156         (__mktime_internal): Use long int to store adjusted year and yday.
58157         Use plain C rather than preprocessor commands, if that doesn't
58158         affect efficiency.
58159         Check for overflow (and try to repair) after each probe
58160         rather than checking only at the very end.  This avoids some bugs
58161         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58162         does not equal GMT offset at maximum time).
58163         Use integer to check for overflow rather than floating point; this
58164         is more portable to non-IEEE hosts, and is a tad faster.
58165         When we detect that we are oscillating between two values,
58166         don't check whether tm_isdst has the requested value, since
58167         we already know the answer.  When tm_isdst has the wrong value,
58168         use a different heuristic to find the right one, based on the
58169         extreme values actually observed in practice in tz2003a,
58170         rather than the (overly optimistic) "previous 3 calendar quarters".
58171
58172         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58173         "T const" to accommodate glibc style.
58174         (check_result): Use less-confusing report format.  "long" -> "long int.
58175         (main): Likewise.
58176         Don't loop if the iteration overflows time_t.
58177         Allow a negative step in the iteration.
58178
58179 2003-07-06  Karl Berry  <karl@gnu.org>
58180
58181         * config/depcomp: update from automake.
58182         * config/config.sub: update from prep.
58183
58184 2003-07-03  Karl Berry  <karl@gnu.org>
58185
58186         * config/config.guess: update from prep.
58187
58188 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58189
58190         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58191         xreadlink.c now includes it unconditionally.
58192
58193 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58194
58195         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58196         having it depend on HAVE_SYS_TYPES_H.
58197
58198 2003-07-01  Bruno Haible  <bruno@clisp.org>
58199
58200         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58201         <sys/types.h> should be sufficient.
58202         Reported by Paul Eggert.
58203
58204 2003-06-26  Karl Berry  <karl@gnu.org>
58205
58206         * config/depcomp: update from automake.
58207
58208 2003-06-26  Bruno Haible  <bruno@clisp.org>
58209
58210         * modules/human: Depend on module stdbool.
58211
58212 2003-06-25  Bruno Haible  <bruno@clisp.org>
58213
58214         * modules/readlink: New file.
58215         * modules/xreadlink: Depend on it.
58216         * MODULES.html.sh (func_all_modules): Add readlink.
58217
58218 2003-06-25  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/readlink.m4: New file.
58221
58222 2003-06-25  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/readlink.c: New file.
58225
58226 2003-06-22  Karl Berry  <karl@gnu.org>
58227
58228         * config/srclist.txt: update mkinstalldirs from automake.
58229         * config/mkinstalldirs: update.
58230
58231 2003-06-22  Bruno Haible  <bruno@clisp.org>
58232
58233         Portability to mingw32.
58234         * m4/ssize_t.m4: New file, from GNU gettext.
58235         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58236         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58237
58238 2003-06-22  Bruno Haible  <bruno@clisp.org>
58239
58240         * modules/safe-read: Add m4/ssize_t.m4.
58241         * modules/xreadlink: Add m4/ssize_t.m4.
58242
58243 2003-06-20  Bruno Haible  <bruno@clisp.org>
58244
58245         Assume C89, so PARAMS isn't needed.
58246         * lib/unicodeio.h (PARAMS): Remove.
58247         * lib/unicodeio.c: Don't use PARAMS.
58248
58249 2003-06-18  Karl Berry  <karl@gnu.org>
58250
58251         * config/config.{guess,sub}: update from prep.
58252
58253 2003-06-18  Jim Meyering  <jim@meyering.net>
58254
58255         Merge changes from coreutils.
58256         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58257         Remove explicit declarations of xmalloc and realloc.
58258         Include xalloc.h.
58259         (read_utmp): Remove anachronistic cast of xmalloc.
58260
58261 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58262
58263         Assume C89, so PARAMS isn't needed.
58264         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58265         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58266         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58267         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58268         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58269         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58270         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58271         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58272         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58273         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58274         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58275         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58276         no longer needed. Anyway, config.h should always be included before any
58277         other file.
58278
58279 2003-06-11  Simon Josefsson  <jas@extundo.com>
58280
58281         * modules/sysexits: New file.
58282         * MODULES.html.sh (func_all_modules): Add sysexits.
58283
58284 2003-06-11  Simon Josefsson  <jas@extundo.com>
58285
58286         * lib/sysexit_.h: New file.
58287
58288 2003-06-11  Derek Price  <derek@ximbiot.com>
58289
58290         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58291         necessary.
58292
58293 2003-06-11  Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/sysexits.m4: New file.
58296
58297 2003-06-10  Simon Josefsson  <jas@extundo.com>
58298
58299         * lib/argp.h: New file, from glibc.
58300         * lib/argp-ba.c: New file, from glibc.
58301         * lib/argp-eexst.c: New file, from glibc.
58302         * lib/argp-fmtstream.c: New file, from glibc.
58303         * lib/argp-fmtstream.h: New file, from glibc.
58304         * lib/argp-fs-xinl.c: New file, from glibc.
58305         * lib/argp-help.c: New file, from glibc.
58306         * lib/argp-namefrob.h: New file, from glibc.
58307         * lib/argp-parse.c: New file, from glibc.
58308         * lib/argp-pv.c: New file, from glibc.
58309         * lib/argp-pvh.c: New file, from glibc.
58310         * lib/argp-xinl.c: New file, from glibc.
58311
58312 2003-06-10  Simon Josefsson  <jas@extundo.com>
58313
58314         * modules/strchrnul: New file.
58315
58316 2003-06-10  Simon Josefsson  <jas@extundo.com>
58317
58318         * modules/argp: New file.
58319
58320 2003-06-10  Simon Josefsson  <jas@extundo.com>
58321
58322         * m4/strchrnul.m4: New file.
58323
58324 2003-06-10  Simon Josefsson  <jas@extundo.com>
58325
58326         * lib/strchrnul.h: New file.
58327         * lib/strchrnul.c: New file.
58328
58329 2003-06-10  Bruno Haible  <bruno@clisp.org>
58330
58331         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58332
58333 2003-06-07  Karl Berry  <karl@gnu.org>
58334
58335         * config/config.{guess,sub}: update from prep.
58336
58337 2003-06-07  Jim Meyering  <jim@meyering.net>
58338
58339         * modules/strtod: Use $(...) notation, not @...@ for
58340         AC_REPLACE'd variables.
58341         * modules/localcharset: Likewise.
58342
58343 2003-06-07  Jim Meyering  <jim@meyering.net>
58344
58345         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58346         in place of my name in the copyright comment.
58347         Remove definition and uses of __P.
58348
58349         From coreutils.
58350         * lib/stat.c: Don't declare xmalloc explicitly.
58351         Instead, include "xalloc.h".
58352         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58353         xrealloc, and xcalloc return values.
58354         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58355         Improve comment.
58356         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58357
58358 2003-06-07  Bruno Haible  <bruno@clisp.org>
58359
58360         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58361         avoid AC_CONFIG_LINKS.
58362         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58363         fnmatch.h, to avoid AC_CONFIG_LINKS.
58364         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58365
58366 2003-06-07  Bruno Haible  <bruno@clisp.org>
58367
58368         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58369         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58370         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58371         directory.
58372         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58373         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58374         directory.
58375
58376 2003-06-06  Jim Meyering  <jim@meyering.net>
58377
58378         Merge from coreutils.
58379         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58380         Consolidate declarations and initializations of *_base* locals.
58381
58382         Merge from coreutils.
58383         This avoids a core dump on systems without GNU putenv,
58384         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58385         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58386         (unsetenv): New static function, from GNU libc.
58387         (rpl_putenv): Use it.
58388
58389         * lib/modechange.c: Remove trailing blanks.
58390
58391         Merge from coreutils.
58392         * lib/fsusage.c: Remove declaration of statfs.
58393         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58394
58395         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58396
58397 2003-06-06  Jim Meyering  <jim@meyering.net>
58398
58399         * lib/stdbool_.h: Renamed from stdbool.h.in.
58400
58401 2003-06-06  Jim Meyering  <jim@meyering.net>
58402             Bruno Haible  <bruno@clisp.org>
58403
58404         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58405         Adjust Makefile.am snippet not to redirect directly to target.
58406         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58407
58408 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58409
58410         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58411         mismatch, look in future quarters as well as past.  This fixes a
58412         bug when processing fall-backwards gaps immediately after a long
58413         period of daylight-saving time.
58414
58415         * lib/mktime.c: Assume freestanding C89 or better.
58416         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58417         (__P): Remove; not used.
58418         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58419         (mktime, not_equal_tm, print_tm, check_result,
58420         main): Use prototypes.  Use const * where appropriate.
58421         (main): Fix typo in testing code that uncovered by above changes.
58422         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58423
58424 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58425
58426         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58427         locale.h, localeconv.  This merges changes from coreutils.
58428
58429         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58430         It can be removed after the next Autoconf is released.
58431         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58432         needed.
58433
58434 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58435
58436         * lib/mktime.c: Fix Debian bug 177940
58437         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58438         (localtime_offset): Now long int, not time_t, because we want it
58439         to be guaranteed to be signed.  All uses changed.
58440         (__mktime_internal): If overflow would occur when adding offset,
58441         don't add it.
58442
58443         Merge 'human' changes from coreutils.  Rewrite to support
58444         locale-specific notations like thousands separators.
58445         * lib/human.c: Simplify authorship notice.
58446         Include human.h immediately after config.h.
58447         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58448         <limits.h>: Do not include, since human.h does.
58449         (SIZE_MAX, UINTMAX_MAX): New macros.
58450         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58451         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58452         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58453         (power_letter): Renamed from suffixes.
58454         (generate_suffix_backwards): Remove.
58455         (adjust_value): Now takes int style (because of human.h changes)
58456         and long double value (for greater precision on some platforms).
58457         (group_number): New function.
58458         (human_readable): Use it.  Use integer options, not enum.
58459         Put the options before the sizes in the arg list.
58460         Support all the new options.
58461         The old human_readable function has been removed;
58462         use inttostr.h instead.
58463         (human_readable, default_block_size, humblock):
58464         Use uintmax_t, not int, for block sizes.
58465         (human_readable_inexact, block_size_types): Remove.
58466         (block_size_opts): New constant.
58467         (human_options): Renamed from human_block_size, with new signature
58468         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58469         * lib/human.h: Add copyright and authorship notice.
58470         Include <limits.h> and <stdbool.h> unconditionally.
58471         (PARAMS): Remove.  All uses removed.
58472         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58473         (enum human_inexact_style): Remove tag; now a nameless enum.
58474         (human_floor, human_ceiling, human_round_to_even): Now have
58475         values 2, 0, 1 rather than -1, 1, 0.
58476         (human_group_digits, human_suppress_point_zero, human_autoscale,
58477         human_base_1024, human_SI, human_B): New constants.
58478         (human_readable_inexact, human_block_size): Remove.
58479         (human_readable): Size args are now uintmax_t, not int.
58480         (human_options): New decl.
58481
58482         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58483         unnecessary now that we assume C89 or better.  This change
58484         imported from coreutils.
58485
58486         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58487         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58488         in the 2003-05-30 sync from glibc.
58489
58490         .h files should stand alone, but we shouldn't include <sys/types.h>
58491         if we can get away with just <stddef.h>.
58492
58493         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58494         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58495         rather than <sys/types.h>, as we merely need size_t.
58496         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58497         to get size_t.
58498         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58499         Include <stdio.h>, to get FILE.
58500         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58501         memcasecmp.h has included <stddef.h> and all we need is size_t.
58502         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58503         our interface, instead of including <sys/types.h>
58504
58505 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58506
58507         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58508         now, as glibc mktime is buggy on non-glibc systems.
58509
58510 2003-06-03  Karl Berry  <karl@gnu.org>
58511
58512         * config/config.sub: update from prep.
58513
58514 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58515
58516         [from coreutils]
58517         Fix some minor time-related bugs with POSIX time arguments.
58518         Some valid time stamps were being rejected (notably -1, and
58519         time stamps before 1900 on 64-bit hosts).  And some invalid
58520         time stamps were being accepted, e.g. September 31.
58521
58522         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58523         that we can return (time_t) -1 successfully.
58524         * lib/posixtm.c: Likewise.
58525         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58526         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58527         (t): Remove static var.
58528         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58529         of static var.  All uses changed.
58530         (year): Do not reject years before 1900; they can occur with
58531         64-bit time_t.
58532         (posix_time_parse): Do not check for out-of-range components;
58533         that is now the caller's responsibility, since our checks were
58534         only approximations.
58535         (posixtime): Use mktime to check for out-of-range components,
58536         since it knows them exactly.
58537         If mktime returns (time_t) -1, check whether an error actually occurred
58538         by invoking localtime on -1.
58539         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58540         posixtime failures better.
58541         Improve the test data (in comments only).
58542
58543 2003-06-02  Karl Berry  <karl@gnu.org>
58544
58545         * config/mkinstalldirs (version): new variable.
58546         (--version): new option.
58547         (usage): improve message.
58548
58549 2003-05-30  Karl Berry  <karl@gnu.org>
58550
58551         * lib/mktime.c: update from libc.
58552
58553 2003-05-30  Bruno Haible  <bruno@clisp.org>
58554
58555         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58556         * config/config.rpath: Upgrade to gettext-0.12.1.
58557
58558 2003-05-30  Bruno Haible  <bruno@clisp.org>
58559
58560         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58561         * m4/nls.m4: New file, from gettext-0.12.1.
58562         * m4/po.m4: New file, from gettext-0.12.1.
58563         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58564
58565 2003-05-30  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58568         * lib/localcharset.h: Likewise.
58569         * lib/localcharset.c: Likewise.
58570
58571 2003-05-29  Karl Berry  <karl@gnu.org>
58572
58573         * config/config.rpath: update from gettext.
58574
58575 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58576
58577         Assume the headers required for C89 freestanding compilers.
58578         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58579         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58580         * m4/human.m4 (gl_HUMAN): Likewise.
58581         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58582         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58583         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58584         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58585         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58586         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58587
58588 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58589
58590         Assume the headers required for C89 freestanding compilers.
58591         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58592         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58593         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58594         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58595         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58596         define, since <limits.h> is guaranteed to do that.
58597         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58598         * lib/exclude.c: Include <stdbool.h> unconditionally.
58599         * lib/tempname.c: Include <stddef.h> unconditionally.
58600         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58601         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58602         <stddef.h> does that.
58603         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58604         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58605         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58606         needed.
58607         * lib/xstrtol.c: Likewise.
58608         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58609         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58610
58611         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58612         warnings on some platforms.
58613
58614         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58615         arbitrarily.
58616
58617 2003-05-26  Jim Meyering  <jim@meyering.net>
58618
58619         Merge in a change from coreutils:
58620         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58621         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58622         that condition, rather than `-1' which is slightly misleading.
58623         Change the name of the cache variable to have the gl_ prefix.
58624         Prompted by a patch from Richard Dawe for DJGPP.
58625
58626 2003-05-24  Karl Berry  <karl@gnu.org>
58627
58628         * config/config.guess: update from prep.
58629
58630 2003-05-22  Karl Berry  <karl@gnu.org>
58631
58632         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58633
58634 2003-05-20  Karl Berry  <karl@gnu.org>
58635
58636         * config/config.guess: update from prep.
58637
58638 2003-05-18  Karl Berry  <karl@gnu.org>
58639
58640         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58641         might actually be set by the user.
58642
58643         * config/depcomp, install-sh, mdate-sh: update from automake.
58644
58645 2003-05-17  Bruno Haible  <bruno@clisp.org>
58646
58647         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58648         invalid expansion for AC_EGREP_CPP.
58649         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58650         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58651         Suggested by Akim Demaille <akim@epita.fr> in
58652         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58653
58654 2003-05-12  Jim Meyering  <jim@meyering.net>
58655
58656         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58657         the space-padded-by-default conversion specifiers, %e, %k, %l.
58658
58659 2003-05-12  Bruno Haible  <bruno@clisp.org>
58660
58661         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58662         the string is longer than 4 KB.
58663
58664 2003-05-11  Karl Berry  <karl@gnu.org>
58665
58666         * config/config.{guess,sub}: update from prep.
58667
58668 2003-05-09  Bruno Haible  <bruno@clisp.org>
58669
58670         * modules/error: Add m4/strerror_r.m4 to file list.
58671
58672 2003-05-03  Bruno Haible  <bruno@clisp.org>
58673
58674         Upgrade to Unicode-4.0.
58675         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58676         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58677         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58678         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58679         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58680         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58681         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58682         Change width of U+E0100..U+E01EF from 1 to 0.
58683
58684 2003-04-25  Jim Meyering  <jim@meyering.net>
58685
58686         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58687         of type size_t, not int.
58688
58689 2003-04-25  Bruno Haible  <bruno@clisp.org>
58690
58691         * lib/copy-file.c: Include <stddef.h>, for size_t.
58692
58693 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58694
58695         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58696         code which expansion is under static control.  Patch imported from
58697         Akim Demaille's patch to Bison; see
58698         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58699
58700 2003-04-14  Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58703
58704 2003-04-11  Jim Meyering  <jim@meyering.net>
58705
58706         Merge changes from Coreutils.
58707
58708         2003-03-22  Jim Meyering  <jim@meyering.net>
58709
58710         * lib/strftime.c (widen): Cast alloca return value to proper type.
58711
58712         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58713
58714         From GNU libc.
58715         * lib/strftime.c (my_strftime): Handle very large width
58716         specifications for numeric values correctly.  Improve checks for
58717         overflow.
58718
58719         2003-01-19  Jim Meyering  <jim@meyering.net>
58720
58721         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58722         definitions.
58723         (nl_get_alt_digit) [! defined my_strftime]: Define.
58724         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58725         _nl_get_alt_digit and _nl_get_walt_digit.
58726
58727         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58728         libc. These changes have no effect outside of _LIBC.
58729
58730 2003-04-10  Bruno Haible  <bruno@clisp.org>
58731
58732         * modules/findprog: New file.
58733         * MODULES.html.sh (func_all_modules): Add it.
58734
58735 2003-04-10  Bruno Haible  <bruno@clisp.org>
58736
58737         * m4/findprog.m4: New file.
58738         * m4/eaccess.m4: New file.
58739
58740 2003-04-10  Bruno Haible  <bruno@clisp.org>
58741
58742         * lib/findprog.h: New file, from GNU gettext.
58743         * lib/findprog.c: New file, from GNU gettext.
58744
58745 2003-04-05  Jim Meyering  <jim@meyering.net>
58746
58747         Merge changes from Coreutils.
58748
58749         * lib/exclude.h (PARAMS): Remove definition and uses.
58750         * lib/exclude.c: Remove uses of `PARAMS'.
58751
58752         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58753         Add test-cases for DOS filenames. Declare program_name.
58754         (main): Set up program_name.  Patch by Rich Dawe.
58755
58756         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58757         error from mntctl.
58758         Use mntctl's return value to drive the entry-processing loop, since
58759         we can't rely on the value of the vmt_length member in the last
58760         entry.  On some systems doing so could result in exhausting
58761         virtual memory.  Based in part on a patch from Mike Jetzer.
58762
58763 2003-04-04  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/linebreak: New file.
58766         * MODULES.html.sh (func_all_modules): Add it.
58767
58768 2003-04-04  Bruno Haible  <bruno@clisp.org>
58769
58770         * m4/linebreak.m4: New file.
58771
58772 2003-04-04  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/linebreak.h: New file, from GNU gettext.
58775         * lib/linebreak.c: New file, from GNU gettext with slight
58776         modifications.
58777         * lib/lbrkprop.h: New file, from GNU gettext.
58778
58779 2003-04-03  Bruno Haible  <bruno@clisp.org>
58780
58781         * modules/utf8-ucs4: New file.
58782         * modules/utf16-ucs4: New file.
58783         * modules/ucs4-utf8: New file.
58784         * modules/ucs4-utf16: New file.
58785         * MODULES.html.sh (func_all_modules): Add them.
58786
58787 2003-04-03  Bruno Haible  <bruno@clisp.org>
58788
58789         * m4/utf-ucs4.m4: New file.
58790         * m4/ucs4-utf.m4: New file.
58791
58792 2003-04-03  Bruno Haible  <bruno@clisp.org>
58793
58794         * lib/utf8-ucs4.h: New file, from GNU gettext.
58795         * lib/utf16-ucs4.h: New file, from GNU gettext.
58796         * lib/ucs4-utf8.h: New file, from GNU gettext.
58797         * lib/ucs4-utf16.h: New file, from GNU gettext.
58798
58799 2003-04-02  Bruno Haible  <bruno@clisp.org>
58800
58801         * modules/binary-io: New file.
58802         * MODULES.html.sh (func_all_modules): Add it.
58803
58804 2003-04-02  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/binary-io.h: New file, from GNU gettext.
58807
58808 2003-04-01  Bruno Haible  <bruno@clisp.org>
58809
58810         * modules/pathname: New file.
58811         * MODULES.html.sh (func_all_modules): Add it.
58812
58813 2003-04-01  Bruno Haible  <bruno@clisp.org>
58814
58815         * lib/pathname.h: New file, from GNU gettext.
58816         * lib/concatpath.c: New file, from GNU gettext.
58817
58818 2003-03-30  Bruno Haible  <bruno@clisp.org>
58819
58820         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58821
58822 2003-03-30  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58825         function chown() doesn't exist.
58826
58827 2003-03-28  Bruno Haible  <bruno@clisp.org>
58828
58829         * modules/copy-file: New file.
58830         * MODULES.html.sh (func_all_modules): Add it.
58831
58832 2003-03-28  Bruno Haible  <bruno@clisp.org>
58833
58834         * m4/copy-file.m4: New file.
58835
58836 2003-03-28  Bruno Haible  <bruno@clisp.org>
58837
58838         * lib/copy-file.h: New file, from GNU gettext.
58839         * lib/copy-file.c: New file, from GNU gettext.
58840
58841 2003-03-18  Jim Meyering  <jim@meyering.net>
58842
58843         * lib/quote.c (quote_n): Fix typo in comment.
58844
58845 2003-03-18  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58848         checking.
58849         * m4/onceonly_2_57.m4: Likewise.
58850
58851 2003-03-17  Bruno Haible  <bruno@clisp.org>
58852
58853         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58854         (m4_quote): Remove macro.
58855         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58856
58857 2003-03-14  Jim Meyering  <jim@meyering.net>
58858
58859         Merge changes from Coreutils.
58860         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58861         to be const, in order to avoid warnings.
58862         (obstack_room): Likewise.
58863         (obstack_empty_p): Likewise.
58864
58865 2003-03-14  Bruno Haible  <bruno@clisp.org>
58866
58867         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58868         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58869
58870 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58871
58872         Merge changes from Bison.
58873         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58874         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58875         when compiling Bison 1.875's `bitset bset = obstack_alloc
58876         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58877         * lib/hash.c: Include <stdbool.h> unconditionally.
58878
58879 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58880
58881         * m4/onceonly.m4 (m4_quote): New macro.
58882         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58883         Quote AC_FOREACH variable-expansions properly.
58884
58885 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58886
58887         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58888
58889 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58890
58891         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58892         Reported by Bruce Becker; see:
58893         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58894
58895 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58896             Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58899         Reported by John Hughes, see
58900         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58901
58902 2003-02-20  Bruno Haible  <bruno@clisp.org>
58903
58904         * MODULES.html.sh (func_all_modules): Add poll.
58905
58906 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58907
58908         * modules/poll: New file.
58909
58910 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58911
58912         * lib/poll_.h: New file.
58913         * lib/poll.c: New file.
58914
58915 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58916
58917         * m4/poll.m4: New file.
58918
58919 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58920
58921         * modules/mathl: New file.
58922
58923 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58924
58925         * lib/mathl.h: New file.
58926         * lib/acosl.c: New file.
58927         * lib/asinl.c: New file.
58928         * lib/atanl.c: New file.
58929         * lib/ceill.c: New file.
58930         * lib/cosl.c: New file.
58931         * lib/expl.c: New file.
58932         * lib/floorl.c: New file.
58933         * lib/frexpl.c: New file.
58934         * lib/ldexpl.c: New file.
58935         * lib/logl.c: New file.
58936         * lib/sincosl.c: New file.
58937         * lib/sinl.c: New file.
58938         * lib/sqrtl.c: New file.
58939         * lib/tanl.c: New file.
58940         * lib/trigl.c: New file.
58941         * lib/trigl.h: New file.
58942
58943 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58944
58945         * m4/mathl.m4: New file.
58946
58947 2003-02-18  Bruno Haible  <bruno@clisp.org>
58948
58949         * MODULES.html.sh (func_all_modules): Add mathl.
58950
58951 2003-02-17  Bruno Haible  <bruno@clisp.org>
58952
58953         * modules/mkdtemp: New module.
58954         * MODULES.html.sh (func_all_modules): Add it.
58955
58956 2003-02-17  Bruno Haible  <bruno@clisp.org>
58957
58958         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58959
58960 2003-02-17  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/mkdtemp.h: New file, from GNU gettext.
58963         * lib/mkdtemp.c: New file, from GNU gettext.
58964
58965 2003-02-02  Jim Meyering  <jim@meyering.net>
58966
58967         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58968         e.g. glibc-2.2.93.
58969
58970 2003-01-31  Bruno Haible  <bruno@clisp.org>
58971
58972         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58973         'rpl_rename'.
58974         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58975         'rpl_strnlen'.
58976         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58977         'rpl_strtod'.
58978         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58979         'rpl_utime'.
58980
58981 2003-01-31  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/rename.c: #undef rename before defining rpl_rename.
58984         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58985
58986 2003-01-30  Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/vasnprintf, modules/vasprintf: New modules.
58989         * MODULES.html.sh (func_all_modules): Add them.
58990
58991 2003-01-30  Bruno Haible  <bruno@clisp.org>
58992
58993         * m4/signed.m4: New file, from GNU gettext.
58994         * m4/longdouble.m4: New file, from GNU gettext.
58995         * m4/wchar_t.m4: New file, from GNU gettext.
58996         * m4/wint_t.m4: New file, from GNU gettext.
58997         * m4/vasnprintf.m4: New file.
58998         * m4/vasprintf.m4: New file.
58999
59000 2003-01-30  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/printf-args.h: New file, from GNU gettext.
59003         * lib/printf-args.c: New file, from GNU gettext.
59004         * lib/printf-parse.h: New file, from GNU gettext.
59005         * lib/printf-parse.c: New file, from GNU gettext.
59006         * lib/vasnprintf.h: New file, from GNU gettext.
59007         * lib/vasnprintf.c: New file, from GNU gettext.
59008         * lib/asnprintf.c: New file, from GNU gettext.
59009         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59010         * lib/vasprintf.c: New file, from GNU gettext.
59011         * lib/asprintf.c: New file, from GNU gettext.
59012
59013 2003-01-29  Bruno Haible  <bruno@clisp.org>
59014
59015         * modules/stpncpy: New module.
59016         * MODULES.html.sh (func_all_modules): Add it.
59017
59018 2003-01-29  Bruno Haible  <bruno@clisp.org>
59019
59020         * m4/stpncpy.m4: New file.
59021
59022 2003-01-29  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59025         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59026
59027 2003-01-28  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/c-ctype: New module.
59030         * MODULES.html.sh (func_all_modules): Add it.
59031
59032 2003-01-28  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59035         Paul Eggert.
59036         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59037         Paul Eggert.
59038
59039 2003-01-27  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/xsetenv: New module.
59042         * MODULES.html.sh (func_all_modules): Add it.
59043
59044 2003-01-27  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/xsetenv.h: New file, from GNU gettext.
59047         * lib/xsetenv.c: New file, from GNU gettext.
59048
59049 2003-01-23  Jim Meyering  <jim@meyering.net>
59050
59051         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59052         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59053
59054 2003-01-23  Bruno Haible  <bruno@clisp.org>
59055
59056         * modules/minmax: New module.
59057         * MODULES.html.sh (func_all_modules): Add it.
59058
59059 2003-01-23  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59062         Eggert.
59063
59064 2003-01-22  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/exit: New module.
59067         * MODULES.html.sh (func_all_modules): Add it.
59068
59069 2003-01-22  Bruno Haible  <bruno@clisp.org>
59070
59071         * lib/exit.h: New file, from GNU gettext.
59072
59073 2003-01-19  Bruno Haible  <bruno@clisp.org>
59074
59075         * gnulib-tool: Recognize option --extract-maintainer.
59076         (func_get_maintainer): New function.
59077         * modules/*: Add Maintainer entry.
59078
59079 2003-01-16  Jim Meyering  <jim@meyering.net>
59080
59081         * m4/regex.m4: The `regex' struct is both input and output.
59082         Initialize it before each use.  Patch by Tim Waugh.
59083
59084 2003-01-16  Bruno Haible  <bruno@clisp.org>
59085
59086         * MODULES.html.sh: Add a table of contents. Add the module name as
59087         leftmost column. Add hyperlinks.
59088
59089 2003-01-15  Bruno Haible  <bruno@clisp.org>
59090
59091         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59092
59093 2003-01-15  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59097         suffix.
59098
59099 2003-01-15  Bruno Haible  <bruno@clisp.org>
59100
59101         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59102
59103 2003-01-15  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59106         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59107
59108 2003-01-14  Jim Meyering  <jim@meyering.net>
59109
59110         * lib/same.c (same_name): Tweak a comment.
59111
59112 2003-01-14  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59115         when a string comparison is sufficient.
59116
59117 2003-01-14  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59120         'unsigned int'.
59121
59122 2003-01-14  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/hash-pjw.c: Add comment about low quality of this function.
59125
59126 2003-01-13  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/stpcpy: Distribute lib/stpcpy.h.
59129         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59130
59131 2003-01-13  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/*: Add a description.
59134         * modules/strpbrk: Fix Makefile.am snippet.
59135         * modules/strtoimax: Fix dependencies.
59136         * modules/strtoumax: Likewise.
59137
59138 2003-01-13  Bruno Haible  <bruno@clisp.org>
59139
59140         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59141         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59142         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59143
59144 2003-01-13  Bruno Haible  <bruno@clisp.org>
59145
59146         * gnulib-tool (func_create_testdir): Store config/* files in the main
59147         directory.
59148         * config.rpath: Move to ...
59149         * config/config.rpath: ... here.
59150         * modules/gettext: Contains config/config.rpath, not config.rpath.
59151         * modules/iconv: Likewise.
59152
59153 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59154
59155         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59156         to avoid collisions with libcurses and libreadline.
59157
59158         * m4/getstr.m4: Remove.
59159         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59160
59161 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59162
59163         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59164         to avoid collisions with libcurses and libreadline.
59165
59166         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59167         * lib/getstr.h, getstr.c: Remove.
59168         * lib/getline.c: Include "getline.h", to check interface.
59169         Move body of old getstr.c here: this defines MIN_CHUNK and
59170         declares getdelim2, which is renamed from getstr.
59171         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59172
59173         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59174         All uses changed.
59175         * lib/linebuffer.h: Likewise.
59176         (readline): Remove backward-compatibility macro.
59177
59178 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59179
59180         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59181         to avoid collisions with libcurses and libreadline.
59182         * getstr: Remove.
59183         * MODULES.html.sh: Remove getstr.
59184         * modules/getline: Depend on unlocked-io, not getstr.
59185
59186 2003-01-12  Jim Meyering  <jim@meyering.net>
59187
59188         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59189
59190 2003-01-10  Bruno Haible  <bruno@clisp.org>
59191
59192         * modules/alloca: Change Makefile.am requirements. Simplify Include
59193         requirements. Add lib/alloca_.h to file list.
59194
59195 2003-01-10  Bruno Haible  <bruno@clisp.org>
59196
59197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59198
59199 2003-01-10  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/alloca_.h: New file.
59202         * lib/getdate.y: Unconditionally include alloca.h.
59203         * lib/makepath.c: Likewise.
59204         * lib/setenv.c: Likewise.
59205         * lib/userspec.c: Likewise.
59206
59207 2003-01-09  Karl Berry  <karl@gnu.org>
59208
59209         * MODULES.html.sh: include `dirname $0` in PATH, to find
59210         gnulib-tool.
59211
59212 2003-01-09  Bruno Haible  <bruno@clisp.org>
59213
59214         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59215         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59216
59217 2003-01-09  Bruno Haible  <bruno@clisp.org>
59218
59219         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59220
59221 2003-01-09  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/stdbool.h.in: New file.
59224
59225 2003-01-09  Bruno Haible  <bruno@clisp.org>
59226
59227         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59228         * MODULES.html.sh: Likewise.
59229
59230 2003-01-08  Jim Meyering  <jim@meyering.net>
59231
59232         * lib/full-write.c: Undefine and define-away `const' after inclusion
59233         of errno.h, not before.  Suggestion from Bruno Haible.
59234
59235 2003-01-08  Bruno Haible  <bruno@clisp.org>
59236
59237         * modules/full-read: Depend on full-write.
59238
59239 2003-01-08  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/safe-read.c: Include specification header first, to ensure its
59242         selfcontainedness.
59243         * lib/full-write.c: Likewise.
59244
59245 2003-01-07  Jim Meyering  <jim@meyering.net>
59246
59247         * lib/full-write.c: Rework so that it may serve to define full_read,
59248         too.
59249         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59250
59251 2003-01-07  Bruno Haible  <bruno@clisp.org>
59252
59253         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59254         <inttypes.h>.
59255         * lib/xstrtol.h: Likewise.
59256         * lib/xstrtoimax.c: Likewise.
59257         * lib/xstrtoumax.c: Likewise.
59258         * lib/human.h: Likewise.
59259
59260         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59261         on systems that have <inttypes.h> but not <stdint.h>.
59262
59263 2003-01-07  Bruno Haible  <bruno@clisp.org>
59264
59265         * MODULES.html.sh: Add copyright notice.
59266         (missed_files): Omit CVS directory entries.
59267         (func_module): Make it work with sed-3.02.
59268         * MODULES.txt: Remove file.
59269
59270 2003-01-06  Jim Meyering  <jim@meyering.net>
59271
59272         * lib/version-etc.c: Update year in translatable copyright string.
59273
59274 2003-01-03  Karl Berry  <karl@gnu.org>
59275
59276         * config/config.{guess,sub}: update from prep.
59277
59278 2003-01-02  Karl Berry  <karl@gnu.org>
59279
59280         * doc/COPYING.DOC: belatedly updated to 1.2.
59281
59282 2003-01-01  Karl Berry  <karl@gnu.org>
59283
59284         * gnulib-tool (func_verify_module): report module name $module in
59285         error message, not $1.
59286         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59287         be created, only if it doesn't exist.
59288         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59289
59290 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59291
59292         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59293
59294 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59295
59296         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59297         memcmp if strcoll doesn't work.
59298
59299 2002-12-31  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59302         nonempty.
59303
59304 2002-12-31  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/memcoll.c (STRCOLL): New macro.
59307         (memcoll): Use it.
59308
59309 2002-12-31  Bruno Haible  <bruno@clisp.org>
59310
59311         * lib/localcharset.h: New file.
59312         * lib/localcharset.c: Include it.
59313         * lib/unicodeio.c: Likewise.
59314
59315 2002-12-31  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59318         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59319
59320 2002-12-31  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/getline.h: Include <stddef.h>, for size_t.
59323
59324         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59325         * lib/unicodeio.c: Don't include <stddef.h>.
59326
59327 2002-12-31  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59330         HAVE_TM_ZONE.
59331
59332 2002-12-24  Karl Berry  <karl@gnu.org>
59333
59334         * config/config.guess: update from prep.
59335
59336 2002-12-24  Bruno Haible  <bruno@clisp.org>
59337
59338         General infrasructure.
59339         * m4/README: Rewritten.
59340         * m4/onceonly.m4: New file.
59341         * m4/onceonly_2_57.m4: New file.
59342
59343         Module atexit.
59344         * m4/atexit.m4: New file.
59345
59346         Module strtod.
59347         * m4/strtod.m4: New file.
59348
59349         Module strtol.
59350         * m4/strtol.m4: New file.
59351
59352         Module strtoul.
59353         * m4/strtoul.m4: New file.
59354
59355         Module memchr.
59356         * m4/memchr.m4: New file.
59357
59358         Module memcmp.
59359         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59360         (jm_FUNC_MEMCMP): Invoke it.
59361
59362         Module memcpy.
59363         * m4/memcpy.m4: New file.
59364
59365         Module memmove.
59366         * m4/memmove.m4: New file.
59367
59368         Module memset.
59369         * m4/memset.m4: New file.
59370
59371         Module strcspn.
59372         * m4/strcspn.m4: New file.
59373
59374         Module strpbrk.
59375         * m4/strpbrk.m4: New file.
59376
59377         Module strstr.
59378         * m4/strstr.m4: New file.
59379
59380         Module strerror.
59381         * m4/strerror.m4: New file.
59382
59383         Module mktime.
59384         * m4/mktime.m4: Renamed from jm-mktime.m4.
59385         (gl_PREREQ_MKTIME): New macro.
59386         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59387
59388         Module malloc.
59389         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59390         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59391         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59392
59393         Module realloc.
59394         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59395         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59396         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59397
59398         Module strftime.
59399         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59401         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59402         gl_TM_GMTOFF.
59403         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59404
59405         Module xalloc.
59406         * m4/xalloc.m4: New file.
59407
59408         Module alloca.
59409         * m4/alloca.m4: New file.
59410
59411         Module putenv.
59412         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59413         (jm_FUNC_PUTENV): Invoke it.
59414
59415         Module setenv.
59416         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59417         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59418         when invoked twice.
59419         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59420         gt_FUNC_SETENV.
59421
59422         Module memrchr.
59423         * m4/memrchr.m4: New file.
59424
59425         Module stpcpy.
59426         * m4/stpcpy.m4: New file.
59427
59428         Module strcase.
59429         * m4/strcase.m4: New file.
59430
59431         Module strdup.
59432         * m4/strdup.m4: New file.
59433
59434         Module strnlen.
59435         * m4/strnlen.m4: New file.
59436
59437         Module strndup.
59438         * m4/strndup.m4: New file.
59439
59440         Module xstrtod.
59441         * m4/xstrtod.m4: New file.
59442
59443         Module xstrtol.
59444         * m4/xstrtol.m4: New file.
59445
59446         Module getdate.
59447         * m4/getdate.m4: New file.
59448
59449         Module unlocked-io.
59450         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59451         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59452         * m4/jm-glibc-io.m4n: Remove file.
59453
59454         Module long-options.
59455         * m4/long-options.m4: New file.
59456
59457         Module md5.
59458         * m4/md5.m4: New file.
59459
59460         Module sha.
59461         * m4/sha.m4: New file.
59462
59463         Module getstr.
59464         * m4/getstr.m4: New file.
59465
59466         Module getline.
59467         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59468         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59469         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59470         simply getline. Infoke gl_PREREQ_GETLINE.
59471
59472         Module obstack.
59473         * m4/obstack.m4: New file.
59474
59475         Module hash.
59476         * m4/hash.m4: New file.
59477
59478         Module readtokens.
59479         * m4/readtokens.m4: New file.
59480
59481         Module strverscmp.
59482         * m4/strverscmp.m4: New file.
59483
59484         Module stdbool.
59485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59486         OSF/1.
59487
59488         Module strtoll.
59489         * m4/strtoll.m4: New file.
59490
59491         Module strtoull.
59492         * m4/strtoull.m4: New file.
59493
59494         Module strtoimax.
59495         * m4/strtoimax.m4: New file.
59496
59497         Module strtoumax.
59498         * m4/strtoumax.m4: New file.
59499
59500         Module xstrtoimax.
59501         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59502         jm_AC_PREREQ_XSTRTOIMAX.
59503         Moved the strtol prerequisites to strtol.m4.
59504         Moved the strtoll prerequisites to strtoll.m4.
59505         Moved the strtoimax prerequisites to strtoimax.m4.
59506
59507         Module xstrtoumax.
59508         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59509         jm_AC_PREREQ_XSTRTOUMAX.
59510         Moved the strtoul prerequisites to strtoul.m4.
59511         Moved the strtoull prerequisites to strtoull.m4.
59512         Moved the strtoumax prerequisites to strtoumax.m4.
59513
59514         Module chown.
59515         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59516         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59517
59518         Module dup2.
59519         * m4/dup2.m4: New file.
59520
59521         Module ftruncate.
59522         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59523         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59524
59525         Module getgroups.
59526         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59527         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59528
59529         Module gettimeofday.
59530         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59531         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59532         gl_PREREQ_GETTIMEOFDAY.
59533
59534         Module mkdir.
59535         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59536         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59537
59538         Module mkstemp.
59539         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59540         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59541         jm_AC_TYPE_UINTMAX_T.
59542         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59543
59544         Module stat.
59545         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59546         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59547
59548         Module lstat.
59549         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59550         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59551
59552         Module timespec.
59553         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59554         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59555         * m4/st_mtim.m4: Indentation.
59556
59557         Module nanosleep.
59558         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59559         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59560         gl_PREREQ_NANOSLEEP.
59561
59562         Module regex.
59563         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59564         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59565         (gl_REGEX): New macro.
59566
59567         Module rename.
59568         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59569         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59570
59571         Module rmdir.
59572         * m4/rmdir.m4: New file.
59573
59574         Module utime.
59575         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59576         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59577         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59578
59579         Module dirname.
59580         * m4/dirname.m4: New file.
59581
59582         Module getopt.
59583         * m4/getopt.m4: New file.
59584
59585         Module unistd-safer.
59586         * m4/unistd-safer.m4: New file.
59587
59588         Module fnmatch.
59589         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59590         declaration.
59591         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59592         (gl_FUNC_FNMATCH_POSIX): New macro.
59593         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59594         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59595         simply fnmatch.
59596
59597         Module exclude.
59598         * m4/exclude.m4: New file.
59599
59600         Module human.
59601         * m4/human.m4: New file.
59602
59603         Module acl.
59604         * m4/acl.m4: Nop.
59605
59606         Module backupfile.
59607         * m4/backupfile.m4: New file.
59608         * m4/d-ino.m4: Indentation.
59609
59610         Module fsusage.
59611         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59612         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59613         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59614
59615         Module dirfd.
59616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59617         requirements.
59618
59619         Module euidaccess.
59620         * m4/euidaccess.m4: New file.
59621
59622         Module file-type.
59623         * m4/file-type.m4: New file.
59624
59625         Module fileblocks.
59626         * m4/fileblocks.m4: New file.
59627
59628         Module filemode.
59629         * m4/filemode.m4: New file.
59630
59631         Module isdir.
59632         * m4/isdir.m4: New file.
59633
59634         Module lchown.
59635         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59636         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59637
59638         Module makepath.
59639         * m4/makepath.m4: New file.
59640
59641         Module modechange.
59642         * m4/modechange.m4: New file.
59643
59644         Module mountlist.
59645         * m4/mountlist.m4: New file.
59646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59647         Indentation.
59648
59649         Module path-concat.
59650         * m4/path-concat.m4: New file.
59651
59652         Module pathmax.
59653         * m4/pathmax.m4: New file.
59654
59655         Module same.
59656         * m4/same.m4: New file.
59657
59658         Module save-cwd.
59659         * m4/save-cwd.m4: New file.
59660
59661         Module savedir.
59662         * m4/savedir.m4: New file.
59663
59664         Module xgetcwd.
59665         * m4/xgetcwd.m4: New file.
59666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59667
59668         Module xreadlink.
59669         * m4/xreadlink.m4: New file.
59670
59671         Module safe-read.
59672         * m4/safe-read.m4: New file.
59673
59674         Module safe-write.
59675         * m4/safe-write.m4: New file.
59676
59677         Module closeout.
59678         * m4/closeout.m4: New file.
59679
59680         Module stdio-safer.
59681         * m4/stdio-safer.m4: New file.
59682
59683         Module getpass.
59684         * m4/getpass.m4: New file.
59685
59686         Module getugroups.
59687         * m4/getugroups.m4: New file.
59688
59689         Module group-member.
59690         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59691         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59692
59693         Module idcache.
59694         * m4/idcache.m4: New file.
59695
59696         Module userspec.
59697         * m4/userspec.m4: New file.
59698
59699         Module gettime.
59700         * m4/clock_time.m4: New file.
59701         * m4/gettime.m4: New file.
59702
59703         Module settime.
59704         * m4/settime.m4: New file.
59705
59706         Module posixtm.
59707         * m4/posixtm.m4: New file.
59708
59709         Module gethostname.
59710         * m4/gethostname.m4: New file.
59711
59712         Module canon-host.
59713         * m4/canon-host.m4: New file.
59714
59715         Module gettext.
59716         * m4/codeset.m4: New file, from gettext-0.11.5.
59717         * m4/gettext.m4: New file, from gettext-0.11.5.
59718         * m4/glibc21.m4: New file, from gettext-0.11.5.
59719         * m4/iconv.m4: New file, from gettext-0.11.5.
59720         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59721         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59722         * m4/inttypes.m4: New file, from gettext-0.11.5.
59723         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59724         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59725         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59726         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59727         * m4/lib-link.m4: New file, from gettext-0.11.5.
59728         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59729         * m4/progtest.m4: New file, from gettext-0.11.5.
59730         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59731         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59732         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59733
59734         Module localcharset.
59735         * m4/localcharset.m4: New file.
59736
59737         Module hard-locale.
59738         * m4/hard-locale.m4: New file.
59739
59740         Module mbswidth.
59741         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59742         onceonly macros.
59743         * m4/mbrtowc.m4: Add comment.
59744
59745         Module memcasecmp.
59746         * m4/memcasecmp.m4: New file.
59747
59748         Module memcoll.
59749         * m4/memcoll.m4: New file.
59750
59751         Module unicodeio.
59752         * m4/unicodeio.m4: New file.
59753
59754         Module rpmatch.
59755         * m4/rpmatch.m4: New file.
59756
59757         Module yesno.
59758         * m4/yesno.m4: New file.
59759
59760         Module exitfail.
59761         * m4/exitfail.m4: New file.
59762
59763         Module c-stack.
59764         * m4/c-stack.m4 (gl_C_STACK): New macro.
59765         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59766
59767         Module error.
59768         * m4/error.m4 (gl_ERROR): New macro.
59769         (jm_PREREQ_ERROR): Use onceonly macros.
59770
59771         Module fatal.
59772         * m4/fatal.m4: New file.
59773
59774         Module getloadavg.
59775         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59776         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59777
59778         Module getpagesize.
59779         * m4/getpagesize.m4: New file.
59780
59781         Module getusershell.
59782         * m4/getusershell.m4: New file.
59783
59784         Module physmem.
59785         * m4/physmem.m4: New file.
59786
59787         Module posixver.
59788         * m4/posixver.m4: New file.
59789
59790         Module quotearg.
59791         * m4/quotearg.m4: New file.
59792
59793         Module quote.
59794         * m4/quote.m4: New file.
59795
59796         Module readutmp.
59797         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59798
59799         Module sig2str.
59800         * m4/sig2str.m4: New file.
59801
59802         Other.
59803         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59804         ulonglong.m4.
59805         * m4/intmax_t.m4: New file.
59806         * m4/d-type.m4: Indentation.
59807         * m4/jm-macros.m4: Update.
59808         * m4/prereq.m4 (jm_PREREQ): Update.
59809         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59810         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59811         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59812         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59813         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59814         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59815         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59816         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59817         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59818         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59819         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59820         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59821         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59822         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59823         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59824         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59825         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59826         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59827         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59828
59829 2002-12-24  Bruno Haible  <bruno@clisp.org>
59830
59831         * MODULES.txt: Update according to m4/ changes.
59832
59833         Module gettext.
59834         * config.rpath: New file, from gettext-0.11.5.
59835
59836         * modules/*: New module descriptions.
59837         * gnulib-tool: New file.
59838         * MODULES.html.sh: New file.
59839
59840 2002-12-21  Karl Berry  <karl@gnu.org>
59841
59842         * doc/fdl.texi: update to version 1.2.
59843
59844 2002-12-19  Karl Berry  <karl@gnu.org>
59845
59846         * config/config.guess: update from prep.
59847
59848 2002-12-18  Bruno Haible  <bruno@clisp.org>
59849
59850         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59851         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59852
59853 2002-12-17  Bruno Haible  <bruno@clisp.org>
59854
59855         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59856         stdlib.h, string.h.
59857
59858 2002-12-17  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/canon-host.c (strdup): Remove unused declaration.
59861
59862         * lib/fsusage.c: Include full_read.h.
59863         (get_fs_usage): Use full_read instead of safe_read.
59864
59865         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59866
59867 2002-12-12  Karl Berry  <karl@gnu.org>
59868
59869         * config/config.guess: update from prep.
59870
59871 2002-12-11  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/setenv.m4: New file, from gettext-0.11.5.
59874
59875 2002-12-11  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59878         not unsetenv().
59879         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59880         modifications:
59881
59882         2002-12-11  Bruno Haible  <bruno@clisp.org>
59883
59884                 * setenv.c (alloca): Fall back to malloc.
59885                 (freea): New macro.
59886                 (setenv): Use freea() to free memory allocated with alloca().
59887
59888         2002-11-13  Bruno Haible  <bruno@clisp.org>
59889
59890                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59891                 function declarations.
59892                 * unsetenv.c (unsetenv): Likewise.
59893
59894         2002-03-04  Bruno Haible  <bruno@clisp.org>
59895
59896                 Portability to AIX 4.3.3.
59897                 * unsetenv.c: New file, extracted from setenv.c.
59898                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59899
59900         2001-12-20  Bruno Haible  <bruno@clisp.org>
59901
59902                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59903                 use malloc instead. For SunOS 4.
59904
59905         2001-12-11  Bruno Haible  <bruno@clisp.org>
59906
59907                 * setenv.c: Declare alloca.
59908                 (compar_fn_t): New typedef.
59909                 (KNOWN_VALUE, STORE_VALUE): Use it.
59910
59911         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59912         setenv.h.
59913
59914 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59915
59916         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59917         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59918         Choose values that are less likely to collide with system fnmatch
59919         options.
59920         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59921         defined (e.g., a pure POSIX system).
59922         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59923         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59924
59925 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59926
59927         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59928         a pain in practice to deal with generated m4 files.  This change
59929         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59930
59931         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59932         and jm-glibc-io.m4, as they are no longer a special case.
59933         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59934         kludge and the auto-generation stuff.  Check only whether the
59935         functions are declared, not whether they exist, since older hosts
59936         that don't declare the functions can't use the optimization anyway.
59937
59938 2002-12-06  Jim Meyering  <jim@meyering.net>
59939
59940         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59941
59942         Merge in changes from libc's misc/error.c, in preparation
59943         for the merge of gnulib's changes back into libc.
59944
59945         * lib/error.c (_): Define only if not already defined.
59946         Move definition to follow all #include directives.
59947         Include unlocked-io.h only if !_LIBC.
59948         [_LIBC]: Include <libio/libioP.h>.
59949         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59950         (fflush): Tweak definition to use INTUSE.
59951         (putc): Define.
59952
59953 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59954
59955         * lib/alloca.c [defined emacs]: Include "lisp.h".
59956         (xalloc_die) [defined emacs]: New macro.
59957         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59958         [! defined emacs]: Include <xalloc.h>.
59959         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59960         (pointer): Typedef to POINTER_TYPE *.
59961         (malloc): Remove decl; we now always use xmalloc.
59962         (alloca): Use old-style definition, since Emacs needs this.
59963         Check for arithmetic overflow when computing combined size.
59964
59965 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59966
59967         Do not generate unlocked-io.h automatically, since it's easier to
59968         maintain it by hand.
59969
59970         * lib/unlocked-io.h: New file, from GNU diffutils,
59971         but with proper copyright notice and attribution.
59972         * lib/gen-uio: Remove.
59973         * lib/Makefile.am: Add copyright notice.
59974         (libfetish_a_SOURCES): Add unlocked-io.h.
59975         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59976         (DISTCLEANFILES, io_functions): Remove macros.
59977         (EXTRA_DIST): Remove gen_uio.
59978         (unlocked-io.h): Remove rule.
59979
59980 2002-12-04  Jim Meyering  <jim@meyering.net>
59981
59982         Reflect the fact that stat.c and lstat.c are no longer generated.
59983         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59984         (DISTCLEANFILES): Likewise.
59985         (EXTRA_DIST): Likewise.
59986         (all_local): Don't depend on stat.c or lstat.c.
59987         (stat.c, lstat.c): Remove rules.
59988         (EXTRA_DIST): Remove xstat.in.
59989
59990         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59991         * lib/stat.c: New file.  Contents mostly from xstat.in.
59992         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59993         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59994
59995         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59996         too.
59997         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59998
59999 2002-12-03  Jim Meyering  <jim@meyering.net>
60000
60001         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60002         but not semantics, to minimize the differences between these two files.
60003         (safe_read): Change comment to mention SAFE_READ_ERROR.
60004
60005         * lib/safe-read.c (IS_EINTR): Define.
60006         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60007
60008 2002-12-02  Jim Meyering  <jim@meyering.net>
60009
60010         * lib/safe-read.c (EINTR): Define.
60011         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60012         (INT_MAX): Provide fallback.
60013         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60014
60015         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60016
60017 2002-12-02  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60020         Define, taken from safe-read.c.
60021         (INT_MAX): Provide fallback.
60022         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60023         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60024
60025         * lib/safe-read.c (EINTR): Remove definition.
60026         (safe_read): Don't use EINTR if it is absent.
60027
60028 2002-12-01  Jim Meyering  <jim@meyering.net>
60029
60030         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60031         zero.
60032         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60033
60034 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60035
60036         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60037         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60038         with `if (! (value < limit)) abort ();', for readability.
60039
60040 2002-11-26  Karl Berry  <karl@gnu.org>
60041
60042         * lib/strdup.c: copy from libc again, with jim's ok.
60043         * lib/.cppi-disable: re-add strdup.c
60044
60045 2002-11-25  Karl Berry  <karl@gnu.org>
60046
60047         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60048         instead of "strtol.c".
60049
60050 2002-11-25  Karl Berry  <karl@gnu.org>
60051
60052         * config/install-sh: update from automake for variable quoting, $0 in
60053         error msgs, etc.
60054
60055         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60056         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60057         entry.
60058
60059 2002-11-25  Jim Meyering  <jim@meyering.net>
60060
60061         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60062
60063 2002-11-24  Karl Berry  <karl@gnu.org>
60064
60065         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60066         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60067
60068 2002-11-24  Jim Meyering  <jim@meyering.net>
60069
60070         Update from coreutils:
60071
60072         * lib/mktime.c: Merge in changes from libc.
60073
60074         Avoid a link-time failure on some Linux systems.
60075         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60076         (otherwise).
60077         (__mon_yday): Declare with the STATIC attribute.
60078         (__mktime_internal): Likewise.
60079         Based on a report from Greg Schafer.
60080
60081 2002-11-23  Jim Meyering  <jim@meyering.net>
60082
60083         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60084         Use `unsigned', not `int', as type of index.
60085
60086         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60087
60088         * lib/fsusage.c: Remove unneeded parentheses around operands of
60089         `defined'.
60090
60091 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60092
60093         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60094         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60095         so that we can be included first.
60096         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60097         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60098         No need to include stddef.h or sys/types.h any more.
60099         Surround local include files with "", not "<>".
60100         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60101         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60102         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60103         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60104         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60105         (ISPRINT): Remove; no longer needed now that we assume C89.
60106
60107         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60108         Preserve errno.
60109
60110         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60111         quotearg_char): Use SIZE_MAX rather than
60112         (size_t) -1 when we are talking about "infinity".
60113
60114         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60115
60116 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60117
60118         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60119         hint that one should use `if (! x) abort ();' rather than `assert
60120         (x);', and anyway it's one less thing to worry about configuring.
60121         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60122         hash_rehash, hash_insert): Use abort rather than assert.
60123
60124 2002-11-22  Bruno Haible  <bruno@clisp.org>
60125
60126         * lib/safe-read.h: Assume C89. Add comments.
60127         (safe_read): Change return type to size_t.
60128         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60129         byte counts > SSIZE_MAX correctly.
60130         * lib/safe-write.h: New file.
60131         * lib/safe-write.c: New file.
60132         * lib/full-read.h: New file.
60133         * lib/full-read.c: New file.
60134         * lib/full-write.h: Assume C89. Add comments.
60135         * lib/full-write.c: Include safe-write.h.
60136         (full_write): Rewritten to use safe_write.
60137         Suggested by Jim Meyering and Paul Eggert.
60138
60139 2002-11-21  Jim Meyering  <jim@meyering.net>
60140
60141         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60142
60143         Merge in changes from the coreutils.
60144
60145         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60146         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60147         <stdint.h>.
60148         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60149         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60150         int.  Work more efficiently if X is the same width as uintmax_t.
60151         Do not compare X to -1, to avoid bogus compiler warning.
60152         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60153         Don't assume that f_frsize and f_bsize are the same type.
60154
60155         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60156         warning on FreeBSD.
60157
60158         * lib/makepath.c (make_path): Restore umask *before* creating the final
60159         component.
60160         (make_path): Minor reformatting.
60161
60162         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60163         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60164         HAVE_MALLOC/HAVE_REALLOC.
60165
60166         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60167         dummy ones.  At least on GNU/Linux systems, `auto' means something
60168         else.
60169         From Michael Stone.
60170
60171 2002-11-21  Bruno Haible  <bruno@clisp.org>
60172
60173         Remove case insensitive option matching.
60174         * lib/argmatch.h (argcasematch): Remove declaration.
60175         (ARGCASEMATCH): Remove macro.
60176         (__xargmatch_internal): Remove case_sensitive argument.
60177         (XARGMATCH): Update.
60178         (XARGCASEMATCH): Remove macro.
60179         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60180         case_sensitive argument.
60181         (argcasematch): Remove function.
60182         (__xargmatch_internal): Remove case_sensitive argument.
60183         (main): Use XARGMATCH instead of XARGCASEMATCH.
60184
60185         * lib/xmalloc.c: Change compile-time error message. Add comment about
60186         required autoconf version.
60187
60188 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60189
60190         Merge argmatch cleanups from Bison.  Assume C89.
60191
60192         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60193         Include stdlib.h, for EXIT_FAILURE.
60194         Always include <string.h>, since we assume C89.
60195         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60196         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60197         Include <stddef.h> instead, since it's all we need for size_t.
60198         (PARAMS): Remove.  All uses removed.
60199         (ARRAY_CARDINALITY): Do not bother to #undef.
60200         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60201         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60202         Remove unnecessary parentheses.
60203         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60204         Insert necessary parentheses.
60205         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60206         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60207
60208 2002-11-19  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60211         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60212
60213         * lib/mbswidth.h (PARAMS): Remove macro.
60214         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60215         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60216
60217         * lib/gcd.h (PARAMS): Remove macro.
60218         (gcd): Use ANSI C function declarations.
60219         * lib/gcd.c (gcd): Likewise.
60220
60221 2002-11-15  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/strcspn.c: Include <stddef.h>.
60224         (strcspn): Use ANSI C function declaration. Change return type to
60225         size_t. Use NULL.
60226         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60227         (strpbrk): Use NULL.
60228         * lib/strpbrk.h (PARAMS): Remove macro.
60229         (strpbrk): Use ANSI C function declaration.
60230         * lib/strstr.c: Don't include <sys/types.h>.
60231         * lib/strstr.h (PARAMS): Remove macro.
60232         (strstr): Use ANSI C function declarations.
60233
60234 2002-11-14  Karl Berry  <karl@gnu.org>
60235
60236         * config/mkinstalldirs: `do' on separate line, instead of
60237         `for var; do'.
60238
60239 2002-11-06  Bruno Haible  <bruno@clisp.org>
60240
60241         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60242         * lib/gcd.c (gcd): Likewise.
60243
60244 2002-11-05  Bruno Haible  <bruno@clisp.org>
60245
60246         * lib/gcd.h: New file, from gettext-0.11.5.
60247         * lib/gcd.c: New file, from gettext-0.11.5.
60248
60249 2002-11-05  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60252         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60253         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60254         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60255
60256         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60257         <libintl.h>.
60258         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60259         <libintl.h>.
60260
60261         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60262         * lib/human.c: Include gettext.h instead of <libintl.h>.
60263         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60264         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60265         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60266         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60267         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60268         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60269         (textdomain): Remove definition.
60270         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60271
60272         * lib/long-options.c: Remove include of <libintl.h> and definition of
60273         _.
60274         * lib/same.c: Remove include of <libintl.h> and definition of _.
60275
60276 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60277
60278         * lib/config.charset: A few additions for Solaris.
60279
60280 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60281
60282         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60283         * lib/localcharset.c (locale_charset): Declare as extern "C".
60284
60285 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60286
60287         * lib/config.charset: msdos in uk_UA uses CP1125.
60288
60289 2002-11-04  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60292         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60293         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60294         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60295         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60296
60297 2002-11-04  Bruno Haible  <bruno@clisp.org>
60298
60299         * lib/localcharset.c (locale_charset): Don't return an empty string.
60300
60301 2002-11-04  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60304         aliases.
60305
60306 2002-11-04  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/config.charset: Update for newest glibc. Add canonical names
60309         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60310
60311 2002-11-04  Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/config.charset: Add support for NetBSD.
60314
60315 2002-11-04  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60318
60319 2002-11-01  Bruno Haible  <bruno@clisp.org>
60320
60321         * configure.in: Add AC_CONFIG_AUX_DIR call.
60322         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60323         test/Makefile.
60324         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60325
60326 2002-09-28  Karl Berry  <karl@gnu.org>
60327
60328         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60329         installed automake until the next release, since changes have been
60330         made.
60331
60332 2002-09-25  Karl Berry  <karl@gnu.org>
60333
60334         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60335         * lib/getopt*: copy from libc/posix.
60336         * lib/gettext.h: copy from gettext.
60337         * lib/.cppi-disable: add strdup.c, gettext.h.
60338
60339 2002-09-25  Karl Berry  <karl@gnu.org>
60340
60341         * config/srclist.txt: enable gettext.h check.
60342         * config/config.{guess,sub}: update from prep.
60343         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60344                 from automake 1.6.3.
60345         See srclist*.
60346
60347 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60348
60349         * regex.c (PATFETCH): Remove the translating fetch.
60350         (PATFETCH_RAW): Rename to PATFETCH.
60351         (set_image_of_range): New fun.
60352         (SET_RANGE_TABLE_WORK_AREA): Use it.
60353         (regex_compile): Don't translate the pattern chars so eagerly.
60354         Only do it when inserting an `exactn' bytecode or when handling
60355         a char-range.
60356         (mutually_exclusive_p): Avoid empty statement.
60357
60358 2002-07-06  Jim Meyering  <meyering@lucent.com>
60359
60360         * m4/README: Don't mention Makefile.am.in.
60361         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60362
60363 2002-07-01  Jim Meyering  <meyering@lucent.com>
60364
60365         * lib/c-stack.c: Include sys/time.h.
60366         From Volker Borchert.
60367
60368 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60369
60370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60371
60372 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60373
60374         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60375         New macro.  Use it uniformly instead of
60376         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60377         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60378         reported by Vin Shelton.
60379
60380 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60381
60382         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60383         Do not assume SA_SIGINFO behavior.
60384         Bug reported by Jim Meyering on NetBSD 1.5.2.
60385
60386 2002-06-22  Jim Meyering  <meyering@lucent.com>
60387
60388         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60389         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60390
60391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60392         now that configure.ac uses AC_GNU_SOURCE.
60393         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60394         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60395
60396         Update to latest tools.  Suggestions from Paul Eggert.
60397         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60398         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60399         * m4/fnmatch.m4: Likewise.
60400         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60401         to AC_HEADER_STDBOOL
60402
60403 2002-06-22  Jim Meyering  <meyering@lucent.com>
60404
60405         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60406         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60407
60408 2002-06-22  Jim Meyering  <meyering@lucent.com>
60409
60410         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60411
60412         * lib/exitfail.c, exitfail.h: Likewise.
60413         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60414
60415         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60416         of fnmatch.h.
60417         (EXTRA_DIST): Add fnmatch_loop.c.
60418         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60419
60420         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60421         * lib/fnmatch.c: Update from diffutils-2.8.2.
60422         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60423         * lib/fnmatch.h: Remove file.
60424
60425 2002-06-21  Jim Meyering  <meyering@lucent.com>
60426
60427         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60428         * m4/mbrtowc.m4: Likewise.
60429
60430         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60431         * m4/mbswidth.m4: Reflect name change:
60432         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60434
60435         * m4/lib-link.m4: Update from gettext-0.11.2.
60436         * m4/gettext.m4: Likewise.
60437
60438         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60439         From Alfred M. Szmidt.
60440
60441 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60442
60443         * lib/file-type.h: Report an error if neither S_ISREG nor
60444         S_IFREG is defined, instead of using a test specific to glibc
60445         2.2.  This should be safe, since POSIX requires S_ISREG and
60446         Unix Version 7 had S_IFREG.  We don't need to check for
60447         <sys/types.h> since we don't use any symbols that it defines.
60448
60449 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60450
60451         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60452         $@-t, so that each temporary file name is unique and valid in the first
60453         8 characters, for operation under DOS.
60454
60455 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60456
60457         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60458
60459 2002-06-15  Jim Meyering  <meyering@lucent.com>
60460
60461         Work even with DJGPP 2.03, which lacks support for symlinks.
60462         From Richard Dawe.
60463         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60464         is defined.
60465         * lib/lchown.c (S_ISLNK): Likewise.
60466
60467 2002-06-15  Jim Meyering  <meyering@lucent.com>
60468
60469         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60470         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60471         have been included before this file.
60472
60473 2002-06-14  Jim Meyering  <meyering@lucent.com>
60474
60475         * lib/file-type.h: Use the version from diffutils-2.8.2.
60476         * lib/file-type.c: Likewise.
60477
60478 2002-06-07  Jim Meyering  <meyering@lucent.com>
60479
60480         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60481         They're needed at least for NetBSD 1.5.2.
60482         ($statxfs_includes): Include those same headers.
60483         ($statxfs_includes): Include sys/vfs.h if available.
60484         ($statxfs_includes): Likewise for sys/statvfs.h.
60485         Check for the following members in both structs statfs and statvfs:
60486         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60487
60488 2002-06-01  Jim Meyering  <meyering@lucent.com>
60489
60490         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60491         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60492
60493 2002-05-28  Jim Meyering  <meyering@lucent.com>
60494
60495         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60496         Reported by Volker Borchert.
60497
60498 2002-05-27  Jim Meyering  <meyering@lucent.com>
60499
60500         Fix a problem seen only on nonconforming systems whereby ls.c's
60501         use of localtime, and then of gettimeofday would cause trouble:
60502         the localtime call used to initialize rpl_gettimeofday's save
60503         mechanism would clobber ls's current local time information so
60504         that in any long listing the first file would always be listed
60505         with date 1970-01-01.  Analysis by Volker Borchert.
60506
60507         * lib/gettimeofday.c (localtime): Undefine.
60508         (rpl_localtime): New function.
60509
60510 2002-05-27  Jim Meyering  <meyering@lucent.com>
60511
60512         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60513         localtime.
60514
60515         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60516         use the replacement function; it wouldn't resolve at link time.
60517         Reported by Volker Borchert.
60518
60519 2002-05-22  Jim Meyering  <meyering@lucent.com>
60520
60521         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60522         file-type.h.
60523         * lib/file-type.h: New file.
60524         * lib/file-type.c (file_type): New file/function.  Extracted from
60525         diffutils.
60526
60527 2002-04-30  Jim Meyering  <meyering@lucent.com>
60528
60529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60530
60531 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60532
60533         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60534
60535 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60536
60537         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60538         Do not check for alloca.h (no longer used) or stdbool.h (was never
60539         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60540
60541 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60542
60543         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60544
60545 2002-04-29  Jim Meyering  <meyering@lucent.com>
60546
60547         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60548         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60549         Use AC_FUNC_STRNLEN here instead.
60550
60551         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60552         With autoconf-2.53a, it's part of AC_PROG_CC.
60553
60554 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60555
60556         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60558
60559 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60560
60561         * lib/sig2str.h, lib/sig2str.c: New files.
60562         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60563
60564 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60565
60566         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60567         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60568         of 127, since 64 is the largest conceivable number for ancient
60569         nonstandard hosts.
60570         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60571
60572 2002-04-28  Jim Meyering  <meyering@lucent.com>
60573
60574         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60575
60576 2002-04-24  Jim Meyering  <meyering@lucent.com>
60577
60578         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60579         (jm_PREREQ): Use it.
60580
60581         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60582         mach/mach.h fcntl.h.
60583         Check for this function: setlocale.
60584
60585 2002-04-24  Jim Meyering  <meyering@lucent.com>
60586
60587         * lib/gettext.h: New file, from Gettext.
60588         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60589         (libfetish_a_SOURCES): Add gettext.h.
60590
60591 2002-04-16  Jim Meyering  <meyering@lucent.com>
60592
60593         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60594         ut_pid, ut_id, ut_exit.
60595
60596 2002-04-16  Jim Meyering  <meyering@lucent.com>
60597
60598         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60599         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60600         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60601
60602 2002-04-12  Jim Meyering  <meyering@lucent.com>
60603
60604         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60605         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60606         existence of the getmntinfo function.  Needed for Darwin 5.3.
60607
60608         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60609         This is necessary at least on Darwin 5.3.
60610
60611         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60612         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60613         strnlen.o in the library, and that makes some versions of ranlib
60614         object.
60615
60616 2002-04-12  Jim Meyering  <meyering@lucent.com>
60617
60618         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60619
60620 2002-04-09  Jim Meyering  <meyering@lucent.com>
60621
60622         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60623         to be more precise.  Rather than saying we're checking whether the
60624         function `works', say what we're testing.
60625         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60626         Reported by Bruno Haible.
60627
60628 2002-03-10  Jim Meyering  <meyering@lucent.com>
60629
60630         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60631         Suggestion from Santiago Vila.
60632
60633 2002-03-08  Jim Meyering  <meyering@lucent.com>
60634
60635         * lib/rename.c: Mention that this wrapper is needed also on
60636         mips-dec-ultrix4.4 systems.
60637
60638 2002-03-02  Jim Meyering  <meyering@lucent.com>
60639
60640         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60641         not HAVE_CLOCK_SETTIME.
60642
60643 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60644
60645         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60646         Check for clock_settime.
60647
60648 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60649
60650         * lib/nanosleep.h: Rename to....
60651         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60652
60653         * lib/gettime.c: New file.
60654         * lib/settime.c: New file.
60655         * lib/stime.c: Remove.
60656
60657         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60658         timespec.h.  Remove nanosleep.h.
60659
60660 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60661
60662         * m4/acl.m4: New file.
60663         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60664         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60665
60666 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60667
60668         * lib/acl.c, lib/acl.h: New files.
60669         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60670
60671 2002-02-24  Jim Meyering  <meyering@lucent.com>
60672
60673         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60674         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60675         cause trouble.  Reported by Nelson Beebe.
60676
60677 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60678
60679         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60680         compilers that don't know that xalloc_die never returns.
60681
60682 2002-02-20  Jim Meyering  <meyering@lucent.com>
60683
60684         * lib/getdate.c: Regenerate using bison-1.33.
60685
60686 2002-02-17  Jim Meyering  <meyering@lucent.com>
60687
60688         * config/config.guess (main): Don't use `head -1'; it's no longer
60689         portable. Use `sed 1q' instead.
60690
60691 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60692
60693         * m4/codeset.m4: Upgrade to gettext-0.11.
60694         * m4/gettext.m4: Upgrade to gettext-0.11.
60695         * m4/glibc21.m4: Upgrade to gettext-0.11.
60696         * m4/iconv.m4: Upgrade to gettext-0.11.
60697         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60698         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60699         * m4/lib-ld.m4: New file, from gettext-0.11.
60700         * m4/lib-link.m4: New file, from gettext-0.11.
60701         * m4/lib-prefix.m4: New file, from gettext-0.11.
60702         * m4/progtest.m4: Upgrade to gettext-0.11.
60703
60704 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60705
60706         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60707         (jm_PREREQ): Use it.
60708
60709 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60710
60711         * lib/posixver.c, lib/posixver.h: New files.
60712         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60713
60714 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60715             Bruno Haible  <bruno@clisp.org>
60716
60717         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60718         (fwrite_success_callback): New declaration.
60719         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60720         print_unicode_char. Call failure callback instead of error.
60721         (fwrite_success_callback): New function.
60722         (exit_failure_callback): New function.
60723         (fallback_failure_callback): New function.
60724         (print_unicode_char): Call unicode_to_mb.
60725
60726 2002-01-26  Jim Meyering  <meyering@lucent.com>
60727
60728         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60729         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60730
60731 2002-01-26  Jim Meyering  <meyering@lucent.com>
60732
60733         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60734
60735 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60736
60737         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60738
60739 2002-01-22  Jim Meyering  <meyering@lucent.com>
60740
60741         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60742         Otherwise, some versions of automake would omit the rule that makes
60743         Makefile from Makefile.in.
60744
60745 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60746
60747         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60748         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60749         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60750         (memcoll): Set errno to zero if there is no error.
60751
60752         * lib/quotearg.c (quotearg_buffer_restyled):
60753         Fix bug with quoting buffers containing NUL when backslashing escapes.
60754         This bug was exposed by the other changes in this patch.
60755         (quotearg_n_options): New arg ARGSIZE.
60756         All callers changed.
60757         (quoting_options_from_style): New function.
60758         (quotearg_n_style): Use it.
60759         (quotearg_n_style_mem): New function.
60760
60761         * lib/quotearg.h (quotearg_n_style_mem): New function.
60762
60763 2002-01-19  Jim Meyering  <meyering@lucent.com>
60764
60765         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60766         Remove useless quotes: DF_PROG="df".
60767         * m4/strnlen.m4: New file.
60768
60769 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60770
60771         * lib/backupfile.c (ISDIGIT): Comment fix.
60772         * lib/getdate.y (ISDIGIT): Likewise.
60773         * lib/posixtm.c (ISDIGIT, year): Likewise.
60774         * lib/strverscmp.c (ISDIGIT): Likewise.
60775         * lib/userspec.c (ISDIGIT): Likewise.
60776
60777 2002-01-16  Jim Meyering  <meyering@lucent.com>
60778
60779         * lib/getdate.y: Add three semicolons, each just before a closing
60780         brace. Bison (as of version 1.31) no longer papers over that mistake.
60781
60782 2002-01-05  Jim Meyering  <meyering@lucent.com>
60783
60784         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60785
60786 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60787
60788         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60789         not silently exit merely because the output buffer happens to
60790         have nothing pending.
60791
60792 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60793
60794         See the big note in ../ChangeLog.
60795         * lib/human.c (suffixes): Prefer K to k for 1024.
60796         (generate_suffix_backwards): New function.
60797         (human_readable_inexact): Use it.
60798         * lib/xstrtol.c (__xstrtol): If there is no number but there
60799         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60800         Accept 'K' as well as 'k'.
60801
60802 2001-12-15  Jim Meyering  <meyering@lucent.com>
60803
60804         * lib/regex.h (__restrict_arr): Update from libc.
60805
60806         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60807         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60808         (STREQ): Define.
60809
60810 2001-12-14  Jim Meyering  <meyering@lucent.com>
60811
60812         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60813         Suggestion from Bruno Haible.
60814
60815 2001-12-10  Jim Meyering  <meyering@lucent.com>
60816
60817         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60818         xrealloc, Instead, include "xalloc.h".
60819         (initbuffer): Don't cast xmalloc return value to char*.
60820         (readline): Reword comment.
60821         Don't cast xrealloc return value to char*
60822         Return NULL, not 0.
60823
60824 2001-12-09  Jim Meyering  <meyering@lucent.com>
60825
60826         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60827         about `signed and unsigned type in conditional expression'.
60828         * lib/posixtm.c (posix_time_parse): Likewise.
60829
60830         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60831
60832         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60833         to avoid a pedantic warning.
60834
60835         * lib/getstr.c: Don't include assert.h.
60836         (getstr): Remove warning-evoking assertions.
60837         Return -1 if offset parameter is out of bounds.
60838         Change the type of a local from int to size_t.
60839
60840         * lib/strftime.c (my_strftime_localtime_r): Include this function
60841         definition in the `#if ! HAVE_TM_GMTOFF' block.
60842
60843         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60844         Include xalloc.h instead.
60845
60846 2001-12-02  Jim Meyering  <meyering@lucent.com>
60847
60848         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60849         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60850         included.
60851
60852         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60853         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60854
60855 2001-11-30  Akim Demaille  <akim@epita.fr>
60856
60857         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60858         before being defined.
60859
60860 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60861
60862         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60863         First arg is int, not unsigned.
60864         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60865         (SIZE_MAX, UINT_MAX): New macros.
60866         (quotearg_n_options): Abort if N is negative.
60867         Avoid overflow check on hosts where size_t is 64 bits and int
60868         is 32 bits, as overflow is impossible there.
60869         Fix off-by-one typo that caused unnecessary reallocation.
60870
60871 2001-11-27  Jim Meyering  <meyering@lucent.com>
60872
60873         * lib/tempname.c: Merge with version from libc.
60874         * lib/regex.c: Likewise.
60875
60876         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60877         systems for which STDC_HEADERS is 0, it was not included, resulting in
60878         a warning about an integer-to-pointer conversion problem with getenv.
60879         Reported by Volker Borchert.
60880
60881 2001-11-26  Jim Meyering  <meyering@lucent.com>
60882
60883         * lib/gtod.h: Remove file.
60884         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60885         * lib/gettimeofday.c: Don't include gtod.h.
60886         (GTOD_init): Remove function.
60887         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60888         Suggestion from Volker Borchert.
60889
60890 2001-11-23  Jim Meyering  <meyering@lucent.com>
60891
60892         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60893         it.
60894         * lib/hash.c (struct hash_table): Define it here instead.
60895
60896 2001-11-22  Jim Meyering  <meyering@lucent.com>
60897
60898         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60899
60900 2001-11-20  Jim Meyering  <meyering@lucent.com>
60901
60902         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60903         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60904
60905 2001-11-19  Jim Meyering  <meyering@lucent.com>
60906
60907         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60908         directory.  Use "conftestXXXXXX" as the template.
60909         Suggestion from Paul Eggert.
60910
60911         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60912         immediately, so the test doesn't mistakenly hit the max-open-files
60913         limit.
60914
60915 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60916
60917         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60918         (TEMPORARIES): New macro.
60919         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60920         removes an artificial limitation (e.g. HP-UX 10.20, where
60921         TMP_MAX is 17576).
60922
60923 2001-11-18  Jim Meyering  <meyering@lucent.com>
60924
60925         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60926
60927 2001-11-18  Jim Meyering  <meyering@lucent.com>
60928
60929         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60930         on SunOS 4.
60931
60932         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60933         files will be created before anything else.
60934
60935 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60936
60937         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60938         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60939
60940 2001-11-17  Jim Meyering  <meyering@lucent.com>
60941
60942         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60943         Prompted by a report from Bob Proulx.
60944
60945         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60946         Instead, require UTILS_FUNC_MKSTEMP.
60947
60948 2001-11-17  Jim Meyering  <meyering@lucent.com>
60949
60950         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60951         Now, that's done as part of AC_FUNC_STRTOD.
60952
60953 2001-11-17  Jim Meyering  <meyering@lucent.com>
60954
60955         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60956         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60957         rather than group writable.  Patch by Juan F. Codagnone.
60958
60959         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60960         xrealloc, Instead, include "xalloc.h".
60961
60962         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60963         Remove explicit declarations of xmalloc, xrealloc,
60964         and xstrdup.  Instead, include "xalloc.h".
60965
60966         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60967         unlocked-io.h.
60968         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60969         Likewise.
60970         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60971
60972         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60973         Reported by Padraig Brady.
60974
60975         * lib/mkstemp.c: #undef mkstemp.
60976         Include config.h.
60977         (rpl_mkstemp): Rename from mkstemp.
60978         Protoize.
60979
60980 2001-11-16  Jim Meyering  <meyering@lucent.com>
60981
60982         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60983         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60984         determine the amount of total physical memory, use pstat_getstatic.
60985         HPUX-11 doesn't define _SC_PHYS_PAGES.
60986         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60987         If sysconf couldn't be used to determine the amount of available
60988         physical memory, use both pstat_getstatic and pstat_getdynamic.
60989         Based on a patch from Bob Proulx.
60990
60991 2001-11-10  Jim Meyering  <meyering@lucent.com>
60992
60993         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60994         (jm_PREREQ): Use it.
60995
60996 2001-11-09  Jim Meyering  <meyering@lucent.com>
60997
60998         * m4/jm-macros.m4: Require autoconf-2.52f.
60999         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61000         Use these AC_-prefixed names, not the AM_-prefixed ones.
61001
61002         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61003
61004 2001-11-05  Jim Meyering  <meyering@lucent.com>
61005
61006         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61007
61008 2001-11-04  Jim Meyering  <meyering@lucent.com>
61009
61010         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61011         $DEFS.
61012
61013 2001-11-03  Jim Meyering  <meyering@lucent.com>
61014
61015         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61016         of AC_DEFUN.
61017
61018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61019         know the name of the variable in the macro definition.
61020
61021 2001-11-03  Jim Meyering  <meyering@lucent.com>
61022
61023         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61024         in argmatch_to_argument call.
61025
61026         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61027         argument.
61028
61029         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61030         e.g., a fault due to an attempt to free a NULL pointer.
61031
61032 2001-11-01  Jim Meyering  <meyering@lucent.com>
61033
61034         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61035         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61036
61037 2001-11-01  Jim Meyering  <meyering@lucent.com>
61038
61039         * lib/dirfd.c, lib/dirfd.h: New files.
61040         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61041
61042         * lib/hash.c (hash_print) [TESTING]: Clean up.
61043
61044 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61045
61046         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61047         to avoid a warning if -Wall.
61048
61049 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61050
61051         * README: New file
61052         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61053         (per RMS's instructions, this is now the canonical source)
61054         * lgpl/, gpl/: New directories.
61055
61056 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61057
61058         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61059
61060 2001-10-21  Jim Meyering  <meyering@lucent.com>
61061
61062         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61063         this code would end up calling gettext even in packages built
61064         with --disable-nls.
61065         * lib/getopt.c (_): Likewise.
61066         * lib/regex.c (_): Likewise.
61067
61068 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61069
61070         * m4/error.m4 (jm_PREREQ_ERROR):
61071         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61072         AC_FUNC_STRERROR_R does that.
61073         Check for strerror declaration.
61074
61075         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61076         are supposed to have them these days.
61077         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61078         Merge changes from latest Autoconf CVS.
61079         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61080         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61081         POSIX decided to standardize on the int flavor of strerror_r.
61082
61083 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61084
61085         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61086         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61087         Use strerror_r that is only a macro, even if it is not a function.
61088         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61089         (private_strerror): Use prototypes, not old-style function definition.
61090         (print_errno_message): New function.
61091         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61092         char*-flavored one.
61093         (error_tail, error, error_at_line): Use it.
61094
61095 2001-10-11  Jim Meyering  <meyering@lucent.com>
61096
61097         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61098         and quote_n (1, ... to avoid clobbering a buffer.
61099
61100 2001-10-05  Jim Meyering  <meyering@lucent.com>
61101
61102         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61103         hash-pjw.h.
61104         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61105         * lib/hash-pjw.h: New file.
61106
61107 2001-09-30  Jim Meyering  <meyering@lucent.com>
61108
61109         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61110         `struct fsstat' has the `f_fstypename' member.
61111         Use that to define FS_TYPE, which is now used to make
61112         the getfsstat link test tighter.
61113
61114 2001-09-30  Jim Meyering  <meyering@lucent.com>
61115
61116         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61117         Include <sys/ucred.h>, for Apple Darwin.
61118         Include sys/mount.h and sys/fs_types.h only if available.
61119         (FS_TYPE): Define.
61120         (read_filesystem_list): Use FS_TYPE.
61121
61122 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61123
61124         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61125         a boolean context.
61126
61127 2001-09-29  Jim Meyering  <meyering@lucent.com>
61128
61129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61130         [one-argument getmntent function]): Include stdio.h before mntent.h.
61131         SunOS 4.1.x needs it for the declaration of `FILE'.
61132         Patch by Volker Borchert.
61133
61134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61135         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61136         sys/fs_types.h, and make the link-test for getfsstat guard #include
61137         directives with appropriate #if HAVE_*_H tests so that we can
61138         detect getfsstat on Apple Darwin1.3.7 systems.
61139         Reported by Nelson Beebe.
61140         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61141
61142 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61143
61144         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61145         #defines strtoimax.  Also treat the other strto* functions
61146         like strtoimax.
61147
61148         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61149         Check for strtoul and strtoumax,
61150         as those declarations are made even in the signed case.
61151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61152         Likewise, for strtol and strtoimax.
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         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61161         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61162         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61163
61164 2001-09-26  Jim Meyering  <meyering@lucent.com>
61165
61166         Most macros in unlocked-io.h had the wrong number of arguments.
61167         * lib/gen-uio: New script.
61168         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61169         * lib/unlocked-io.hin: Remove file.
61170         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61171         rather than trying to embed it here.
61172         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61173         Reported by Padraig Brady.
61174
61175 2001-09-25  Volker Borchert  <bt@teknon.de>
61176
61177         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61178         `result'.
61179
61180 2001-09-24  Jim Meyering  <meyering@lucent.com>
61181
61182         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61183
61184 2001-09-23  Jim Meyering  <meyering@lucent.com>
61185
61186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61187         instead of the mere test for existence of mntent.h.  The latter
61188         would get a false-positive on AIX 3.4 systems.
61189         In the outer getmntent if-block, don't die if neither of the getmntent
61190         tests succeeds.  Instead, just fall through and continue with the
61191         remaining tests.
61192
61193 2001-09-23  Jim Meyering  <meyering@lucent.com>
61194
61195         * lib/mountlist.c: Remove useless parentheses in #if directives.
61196         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61197         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61198
61199 2001-09-22  Jim Meyering  <meyering@lucent.com>
61200
61201         * m4/gettext.m4: New file.  From gettext.
61202         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61203         * m4/progtest.m4: Likewise
61204         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61205         * m4/glibc21.m4: Likewise.
61206
61207         * m4/libintl.m4: Remove.  No longer used.
61208
61209 2001-09-22  Jim Meyering  <meyering@lucent.com>
61210
61211         * lib/localcharset.c: Update from latest gettext.
61212         * lib/config.charset: Likewise.
61213
61214 2001-09-20  Jim Meyering  <meyering@lucent.com>
61215
61216         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61217         strtoimax.
61218         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61219         strtoumax.
61220
61221 2001-09-20  Jim Meyering  <meyering@lucent.com>
61222
61223         * lib/xstrtol.c (strtoimax): Guard declaration with
61224         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61225         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61226         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61227         (strtoumax): Likewise, for completeness (it wasn't necessary).
61228
61229 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61230
61231         * lib/strtoimax.c (HAVE_LONG_LONG):
61232         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61233         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61234         to work around bug in IBM C compiler.
61235
61236 2001-09-17  Jim Meyering  <meyering@lucent.com>
61237
61238         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61239         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61240         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61241         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61242         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61243         whenever the right hand side need not be expanded by the shell.
61244
61245 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61246
61247         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61248         library.  It's not correct, as some older glibcs are buggy.
61249         fnmatch wasn't fixed until glibc 2.2.
61250
61251         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61252         special shell magic here.
61253
61254 2001-09-16  Jim Meyering  <meyering@lucent.com>
61255
61256         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61257         * m4/jm-macros.m4: Require it.
61258
61259 2001-09-16  Jim Meyering  <meyering@lucent.com>
61260
61261         * lib/mkdir.c: New file.
61262
61263 2001-09-15  Jim Meyering  <meyering@lucent.com>
61264
61265         * m4/jm-macros.m4: Check for help2man.
61266
61267 2001-09-11  Jim Meyering  <meyering@lucent.com>
61268
61269         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61270         The body, by Paul Eggert, was moved here from configure.in.
61271         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61272
61273 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61274
61275         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61276         (jm_PREREQ): Use it.
61277
61278 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61279
61280         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61281         Use ssize_t, not int, to store result of readlink.
61282         Check for ssize_t overflow as well as size_t overflow,
61283         as POSIX says the result of readlink is implementation-defined
61284         when ssize_t overflows.
61285         Remove unnecessary cast to char*.
61286         Use free+malloc instead of realloc, as the storage doesn't need
61287         to be preserved and it's clearer and can be more efficient that way.
61288         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61289         * lib/xreadlink.h (xreadlink): Update prototype.
61290
61291 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61292
61293         * lib/xgetcwd.c: Revert some of the previous change; intead,
61294         fix the HAVE_GETCWD_NULL code to behave more like the
61295         !HAVE_GETCWD_NULL code used to.
61296
61297         Include "xalloc.h".
61298         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61299         invoke xalloc_die.
61300
61301 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61302
61303         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61304         sys/param.h, as pathmax.h includes them.
61305
61306 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61307
61308         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61309         (jm_PREREQ_XGETCWD): New macro.
61310
61311         * m4/getcwd.m4: New file.
61312
61313 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61314
61315         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61316         like the HAVE_GETCWD_NULL code.
61317         Include pathmax.h if not HAVE_GETCWD.
61318         Do not include xalloc.h.
61319         (INITIAL_BUFFER_SIZE): New symbol.
61320         Do not use xmalloc / xrealloc, since the caller is responsible for
61321         handling errors.  Preserve errno around `free' during failure.
61322         Do not overrun buffer when using getwd.
61323
61324 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61325
61326         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61327         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61328         getcwd (NULL, 0).
61329
61330 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61331
61332         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61333         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61334         spotted by Jim Meyering.
61335
61336 2001-09-03  Jim Meyering  <meyering@lucent.com>
61337
61338         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61339         failure.
61340
61341 2001-09-02  Jim Meyering  <meyering@lucent.com>
61342
61343         * lib/error.c: Update from GNU libc.
61344
61345 2001-09-01  Jim Meyering  <meyering@lucent.com>
61346
61347         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61348         Used by df.
61349
61350 2001-09-01  Jim Meyering  <meyering@lucent.com>
61351
61352         * lib/xreadlink.c: New file.
61353         * lib/xreadlink.h: New file.
61354         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61355         xreadlink.h.
61356
61357         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61358         doesn't conflict with sparc Solaris 7's definition in
61359         /usr/include/sys/int_types.h.
61360
61361         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61362         files.
61363         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61364         and strncasecmp as r-values.  Unixware didn't have declarations.
61365
61366 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61367
61368         * lib/xstrtol.h: Add copyright notice.
61369         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61370         LONGINT_INVALID_SUFFIX_CHAR.
61371
61372 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61373
61374         * lib/xstrtol.c (strtoimax): New decl.
61375
61376 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61377
61378         * lib/xgetcwd.c: Don't include pathmax.h.
61379         Include stdlib.h and unistd.h if available.
61380         Include xalloc.h.
61381         (xmalloc, xstrdup, free): Remove decls.
61382         (xgetcwd): Don't assume sizes fit in unsigned.
61383         Check for overflow when computing sizes.
61384         Simplify reallocation code.
61385
61386 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61387
61388         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61389         a directory's st_size can have an arbitrary value, so the old
61390         usage could waste an arbitrary amount of memory.  All uses
61391         changed.
61392         * lib/savedir.h: Update prototype.
61393
61394 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61395
61396         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61397
61398         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61399         old strtoimax.c.
61400
61401         Also, make the following further changes to make this file's
61402         configuration more similar to that of strtol.c:
61403         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61404         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61405         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61406         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61407         changed to signed values.
61408
61409         And make the following changes as well:
61410         Fix copyright notice, as 1999 was missing.
61411         (verify): New macro.
61412         (strtoimax): Check sizes at compile-time, not run-time.
61413         Prefer strtol to strtoll if both work.
61414         (main): Remove; it was not that useful and was a pain to maintain.
61415
61416         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61417
61418 2001-08-31  Jim Meyering  <meyering@lucent.com>
61419
61420         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61421         Use an initial, malloc'd, buffer of length 128 rather than
61422         a statically allocated one of length 1024.
61423
61424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61425
61426         Simplify code, partly by assuming autoconf 2.52 semantics.
61427
61428         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61429
61430         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61431         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61432         All uses removed.
61433         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61434         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61435         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61436         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61437         jm_AC_HEADER_INTTYPES_H.
61438         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61439
61440         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61441
61442         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61443         Quote first arg of AC_DEFUN.
61444         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61445         since they are needed to parse the include file even if we need
61446         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61447         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61448         but with opposite signedness.
61449
61450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61451
61452         Merge 'exclude' changes from tar 1.13.22.
61453         This fixes one or two unlikely storage allocation overflow bugs,
61454         but doesn't change user-visible behavior otherwise.
61455
61456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61457
61458         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61459         (jm_PREREQ_EXCLUDE): New macro.
61460
61461 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61462
61463         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61464         tm to be declared.
61465
61466 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61467
61468         * lib/hash.c: Remove '2001' from copyright notice.
61469
61470 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61471
61472         * lib/full-write.h: New file.
61473         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61474         * lib/full-write.c: Correct credits, as cccp.c no longer
61475         exists and anyway it was so heavily changed from the old cccp
61476         code as to be unrecognizable.  Include full-write.h.
61477         (full_write) Return size_t, with short writes meaning failure.
61478         All callers changed.  This fixes a bug with large buffers
61479         on 64-bit hosts.
61480         * lib/utime.c: Include full-write.h.
61481
61482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61483
61484         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61485         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61486         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61487         Include if available.
61488         (<xalloc.h>): Include
61489         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61490         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61491         collide with FNM macros.
61492         (struct patopts): New struct.
61493         (struct exclude): Use it, as exclude patterns now come with options.
61494         (new_exclude): Support above changes.
61495         (new_exclude, add_exclude_file):
61496         Initial size must now be a power of two to simplify overflow checking.
61497         (free_exclude, fnmatch_no_wildcards): New function.
61498         (excluded_filename): No longer requires options arg, as the options
61499         are determined by add_exclude.  Now returns bool, not int.
61500         (excluded_filename, add_exclude):
61501         Add support for the fancy new exclusion options.
61502         (add_exclude, add_exclude_file): Now takes int options arg.
61503         Check for arithmetic overflow when computing sizes.
61504         (add_exclude_file): xrealloc might modify errno, so don't
61505         realloc until after errno might be used.
61506
61507         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61508         New macros.
61509         (free_exclude): New decl.
61510         (add_exclude, add_exclude_file): Now takes int options arg.
61511         (excluded_filename): No longer requires options arg, as the options
61512         are determined by add_exclude.  Now returns bool, not int.
61513
61514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61515
61516         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61517
61518 2001-08-27  Jim Meyering  <meyering@lucent.com>
61519
61520         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61521
61522         * lib/version-etc.c (N_): Remove definition.
61523         Revert most of last change.
61524         Instead, simply don't mark the `Copyright...' string for translation.
61525         Based on advice from Paul Eggert.
61526
61527         * lib/strtoxmax.c: Tweak comment.
61528
61529 2001-08-26  Jim Meyering  <meyering@lucent.com>
61530
61531         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61532
61533         * m4/xstrtoimax.m4: New file.
61534         * m4/xstrtoumax.m4: Add comments explaining why we
61535         AC_REPLACE_FUNCS(strtol).
61536
61537 2001-08-26  Jim Meyering  <meyering@lucent.com>
61538
61539         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61540         of copyright with `%s' so translators don't get an untranslated
61541         message in 2002.
61542         (COPYRIGHT_YEAR): Define.
61543         (version_etc): Use fprintf rather than fputs.
61544         Suggestion from Ulrich Drepper.
61545
61546         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61547
61548         * lib/strtoll.c: New file, from GNU libc.
61549         * lib/xstrtoimax.c: New file.
61550
61551         * lib/xstrtol.h: Add xstrtoimax.
61552         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61553         * lib/strtoimax.c: New file.  Likewise, but first define
61554         STRTOUXMAX_SIGNED.
61555
61556         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61557         ...
61558         * lib/strtoxmax.c: ... then renamed to this.
61559
61560 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61561
61562         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61563         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61564         (jm_AC_TYPE_INTMAX_T): New macro.
61565         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61566
61567         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61568
61569         * m4/longlong.m4: Renamed from ulonglong.m4.
61570         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61571         * m4/uintmax_t.m4: Removed.
61572
61573 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61574
61575         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61576         Port to Solaris 8, where 'sed' requires a space after the 'r'
61577         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61578         Redirect output to $tmp just once.
61579
61580 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61581
61582         * lib/addext.c (<errno.h>): Include.
61583         (errno): Declare if not defined.
61584         (addext): Work correctly when pathconf returns -1 and leaves
61585         errno alone because there is no limit.  Also, work even if
61586         pathconf returns a value greater than SIZE_MAX.
61587
61588 2001-08-12  Jim Meyering  <meyering@lucent.com>
61589
61590         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61591         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61592         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61593         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61594         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61595         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61596         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61597         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61598         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61599         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61600         utime.m4, utimes.m4, xstrtoumax.m4:
61601         Quote the first argument in each use of AC_DEFUN.
61602
61603 2001-08-12  Jim Meyering  <meyering@lucent.com>
61604
61605         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61606         Simply `return getcwd (NULL, 0);'.
61607         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61608         Use 1300 as initial value for length, not PATH_MAX.
61609
61610         * lib/pathmax.h: Clean up cpp syntax.
61611
61612 2001-08-12  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/gettimeofday.c: New file.
61615         * lib/gtod.h: New file.
61616         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61617
61618 2001-08-05  Jim Meyering  <meyering@lucent.com>
61619
61620         * m4/jm-macros.m4: Require autoconf-2.52.
61621
61622 2001-08-04  Jim Meyering  <meyering@lucent.com>
61623
61624         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61625         stmt, to get in sync with glibc.
61626
61627 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61628
61629         The following changes are from gettext 0.10.39 as maintained by
61630         Bruno Haible.
61631
61632         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61633         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61634         with inverted sense.  All uses changed.
61635
61636         * lib/mbswidth.c: Don't include <limits.h>.
61637         Include <stdlib.h> and <string.h> unconditionally.
61638         (iswcntrl, mbsinit, ISCNTRL): New macros.
61639         (mbsnwidth): Use K&R style function declarations.
61640         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61641         can optimize it when MB_CUR_MAX == 1.
61642         The width of control characters is zero, not 1.
61643
61644 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61645
61646         The following changes are from gettext 0.10.39 as maintained by
61647         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61648
61649         * m4/codeset.m4: Upgrade to serial AM1.
61650         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61651         all uses changed.  Quote first arg of AC_DEFUN.
61652         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61653
61654         * m4/iconv.m4: Upgrade to serial AM2.
61655         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61656         Add --with-libconv-prefix.
61657         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61658         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61659         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61660         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61661         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61662
61663         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61664         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61665         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61666         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61667         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61668         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61669         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61670         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61671         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61672
61673         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61674         string.h any more.
61675
61676         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61677         not the default value.
61678
61679         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61680         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61681         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61682         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61683         Also check for iswcntrl, used for wcwidth fallback.
61684         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61685         to Autoconf 2.13.
61686
61687 2001-08-03  Jim Meyering  <meyering@lucent.com>
61688
61689         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61690         as it was in the original.  Reported by Paul Eggert.
61691
61692 2001-07-16  Jim Meyering  <meyering@lucent.com>
61693
61694         * m4/gettimeofday.m4: New file.
61695         Prompted by a report from Bernhard Baehr.
61696
61697 2001-07-15  Jim Meyering  <meyering@lucent.com>
61698
61699         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61700         stuff. Now it's in ../Makefile.cfg.
61701
61702 2001-07-15  Jim Meyering  <meyering@lucent.com>
61703
61704         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61705         (BUILT_SOURCES): Add unlocked-io.h.
61706         (io_functions): Define.
61707         (unlocked-io.h): New rule.
61708         (DISTCLEANFILES): Add unlocked-io.h.
61709         (all-local): Depend on unlocked-io.h, to ensure it is created.
61710
61711         * lib/unlocked-io.hin: New file
61712
61713         * lib/regex.c: Update from glibc.
61714
61715 2001-07-05  Jim Meyering  <meyering@lucent.com>
61716
61717         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61718         recommendation.
61719         (libfetish_a_SOURCES): Put all .h files here instead.
61720         Remove a thus-exposed (better checks in automake) duplicate and
61721         two unnecessary .h files.
61722
61723 2001-07-04  Jim Meyering  <meyering@lucent.com>
61724
61725         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61726         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61727         distcheck failure.
61728
61729 2001-07-02  Jim Meyering  <meyering@lucent.com>
61730
61731         The following changes were prompted by suggestions from Bruno Haible.
61732
61733         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61734         is now generated.
61735         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61736         definition of EXTRA_DIST.
61737         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61738         ensure that the generated file is created/updated whenever the list
61739         of $(unlocked_functions) is changed.
61740         (jm-glibc-io.m4): New rule.
61741         (unlocked-io.h): New rule -- currently unused.
61742
61743 2001-06-24  Jim Meyering  <meyering@lucent.com>
61744
61745         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61746         unmatched right bracket, rather than kludging it with an extra,
61747         falsely-matching quote in a comment.  Patch by Akim Demaille.
61748
61749 2001-06-11  Jim Meyering  <meyering@lucent.com>
61750
61751         * lib/regex.c: Update from GNU libc.
61752
61753 2001-05-27  Jim Meyering  <meyering@lucent.com>
61754
61755         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61756         Check for ut_type in struct utmp.
61757
61758 2001-05-27  Jim Meyering  <meyering@lucent.com>
61759
61760         * lib/readutmp.h (UT_TYPE): Define.
61761
61762 2001-05-24  Jim Meyering  <meyering@lucent.com>
61763
61764         * lib/argmatch.c: Include "quote.h".
61765         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61766         quote function.  Reported by Göran Uddeborg.
61767
61768 2001-05-22  Jim Meyering  <meyering@lucent.com>
61769
61770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61771         now that we use the package-supplied version unconditionally.
61772         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61773
61774 2001-05-21  Jim Meyering  <meyering@lucent.com>
61775
61776         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61777         shell syntax errors.
61778
61779 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61780
61781         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61782
61783 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61784
61785         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61786         Don't bother to check library strftime, since
61787         we'll be using our own my_strftime function anyway.
61788         Define my_strftime instead of strftime.
61789
61790 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61791
61792         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61793         which is not yet declared.
61794
61795 2001-05-15  Jim Meyering  <meyering@lucent.com>
61796
61797         * m4/regex.m4: Use proper quoting so brackets appear in the test
61798         program.
61799         Reported by, and with help from, Bruno Haible.
61800
61801 2001-05-13  Jim Meyering  <meyering@lucent.com>
61802
61803         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61804         undefined.
61805
61806 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61807
61808         dirname code cleanup.  base_name now behaves more compatibly
61809         with POSIX basename when given file names that have trailing
61810         slashes, and similarly for dir_name.  Add new primitives
61811         base_len and dir_len.  Put the directory-name-related decls
61812         into dirname.h.
61813
61814         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61815         * lib/backupfile.c (base_name): Likewise.
61816         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61817         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61818         * lib/makepath.c (strip_trailing_slashes): Likewise.
61819         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61820         ISSLASH): Likewise.
61821         * lib/rename.c (strip_trailing_slashes): Likewise.
61822         * lib/same.c (base_name): Likewise.
61823         * lib/stripslash.c (ISSLASH): Likewise.
61824
61825         * lib/addext.c: Include <dirname.h> after size_t is defined.
61826         * lib/backupfile.c: Likewise.
61827
61828         * lib/addext.c (addext): Use base_len to trim redundant
61829         trailing slashes instead of doing it ourselves.
61830         But do not trim the last slash if it is not redundant.
61831
61832         * lib/backupfile.c (find_backup_file_name,
61833         max_backup_version): Use base_len instead of rolling it ourselves.
61834         Handle the case of "" and (on DOS) "C:" correctly.
61835
61836         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61837         needed. Include <string.h>, <dirname.h>.
61838         (base_name): Allow file names ending in slashes, other than names
61839         that are all slashes.  In this case, return the basename followed
61840         by the slashes.  This is more general, and can be used in places
61841         where the original base_name purposely had an assertion failure.
61842         (base_len): New function.
61843
61844         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61845         Do not include <assert.h>; no longer needed.
61846         Include xalloc.h.
61847         (memrchr): Remove decl.
61848         (dir_name_r): Remove.
61849         (dir_len): Renamed from dirlen.  All callers changed.
61850         Rewrite in terms of base_name, for simplicity and consistency.
61851         (dir_name): Never return NULL.  All callers changed.
61852         Do not include <stdlib.h> in test program; no longer needed.
61853         return 0; is fine for test program.
61854
61855         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61856         New macros.
61857         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61858
61859         * lib/path-concat.c (path_concat): Use base_len to compute
61860         base length, not strlen; this means we cannot rely on memcpy
61861         to null-terminate.
61862
61863         * lib/same.c (STREQ): Remove.
61864         (same_name): Handle the case where the basename ends in trailing '/'.
61865
61866         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61867         a slash was stripped.  Do not strip the last slash after a
61868         file system prefix.
61869
61870 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61871
61872         * lib/Makefile.am (libfetish_a_SOURCES):
61873         Add strftime.c, since we now compile it on all hosts.
61874
61875         * lib/strftime.c (my_strftime):
61876         Define to nstrftime if emacs, but only if my_strftime is not defined.
61877         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61878         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61879         Add one more extra argument: a nanoseconds value.
61880         All uses changed.
61881         (ns): New macro.
61882         (my_strftime function): Add %N format.
61883         (emacs_strftimeu): Renamed from emacs_strftime,
61884         with extra ut argument.
61885
61886 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61887
61888         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61889
61890 2001-04-21  Jim Meyering  <meyering@lucent.com>
61891
61892         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61893         doesn't interfere.
61894
61895 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61896
61897         * m4/ftruncate.m4: Check for chsize.
61898         Link with ftruncate.o unconditionally if ftruncate is missing.
61899         This was required when cross-compiling to i586-mingw32msvc.
61900
61901 2001-04-08  Jim Meyering  <meyering@lucent.com>
61902
61903         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61904         recomputed; that's necessary when the offset spans a DST transition.
61905         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61906
61907 2001-04-02  Jim Meyering  <meyering@lucent.com>
61908
61909         * lib/regex.h, regex.c: Update from GNU libc.
61910
61911 2001-03-24  Jim Meyering  <meyering@lucent.com>
61912
61913         * m4/jm-macros.m4: Require autoconf-2.49d.
61914
61915 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61916
61917         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61918
61919 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61920
61921         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61922
61923 2001-03-17  Jim Meyering  <meyering@lucent.com>
61924
61925         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61926         now that the version in autoconf is equivalent.
61927         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61928
61929         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61930         Suggestion from Akim Demaille.
61931
61932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61933         (jm_PREREQ_TEMPNAME): New function.
61934
61935 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61936
61937         * lib/tempname.c (uint64_t): Define to uintmax_t if
61938         not defined, and if UINT64_MAX is not defined.
61939         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61940         Reported by John David Anglin.
61941
61942 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61943
61944         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61945         resolve alias if codeset is empty.
61946         * lib/config.charset (BeOS): Use wildcard syntax.
61947
61948 2001-03-13  Jim Meyering  <meyering@lucent.com>
61949
61950         * lib/path-concat.c (path_concat)
61951         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61952         concatenating e.g., `C:' and `foo'.
61953         From Bruno Haible.
61954
61955 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61956
61957         * lib/localcharset.c (locale_charset): Don't use
61958         setlocale(LC_CTYPE,NULL). Don't return NULL.
61959         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61960
61961 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61962
61963         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61964         support for DOS/DJGPP.
61965
61966 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61967
61968         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61969         lacks mkstemp.  Compile our own tempname.c if we compile our own
61970         mkstemp.c, as mkstemp relies on tempname.
61971
61972 2001-03-01  Jim Meyering  <meyering@lucent.com>
61973
61974         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61975         AH_VERBATIM really does output its argument verbatim.
61976
61977 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61978
61979         * lib/Makefile.am (libfetish_a_SOURCES):
61980         Add dup-safer.c, fopen-safer.c.
61981         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61982
61983         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61984         * lib/unistd-safer.h: New files.
61985
61986 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61987
61988         The mkstemp replacement is taken from glibc 2.2.2, with some
61989         portability fixes for use outside glibc, as follows:
61990
61991         * lib/tempname.c (struct_stat64): New macro.
61992         (direxists, __gen_tempname): Use it.
61993         This avoids a portability problem with Solaris 8.
61994
61995         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61996         (<stddef.h>, <stdint.h>, <string.h>):
61997         Include only if STDC_HEADERS || _LIBC.
61998         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61999         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62000         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62001         (__set_errno): Define this macro if <errno.h> doesn't.
62002         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62003         Define these macros if <stdio.h> doesn't.
62004         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62005         Define these macros if <sys/stat.h>
62006         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62007         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62008         __xstat64): Define if not _LIBC.
62009         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62010         (__gen_tempname): Invoke gettimeofday only if
62011         HAVE_GETTIMEOFDAY || _LIBC;
62012         otherwise, fall back on plain "time".
62013         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62014
62015         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62016
62017         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62018
62019 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62020
62021         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62022
62023 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62024
62025         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62026         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62027         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62028         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62029
62030 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62031
62032         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62033         Remove workaround macros for hosts that have mbrtowc but not
62034         mbstate_t, as we now insist on proper declarations for both
62035         before using mbrtowc.
62036
62037 2001-02-17  Jim Meyering  <meyering@lucent.com>
62038
62039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62040         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62041         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62042         UnixWare 7.1.1.
62043
62044         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62045         rather than AC_CACHE_VAL.
62046
62047 2001-02-17  Jim Meyering  <meyering@lucent.com>
62048
62049         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62050         around included file name.
62051
62052         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62053
62054         * lib/strftime.c: Update from GNU libc (the only changes were to
62055         comments).
62056
62057 2001-02-17  Jim Meyering  <meyering@lucent.com>
62058
62059         * lib/regex.c: Update from libc.
62060
62061 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62062
62063         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62064         clash.
62065
62066 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62067
62068         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62069         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62070         Reported by Mark Hounschell via Paul Eggert.
62071
62072 2001-02-07  Jim Meyering  <meyering@lucent.com>
62073
62074         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62075
62076 2001-02-05  Jim Meyering  <meyering@lucent.com>
62077
62078         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62079         it includes the patch required for `large file' support with at least
62080         HP-UX's 10.20 /bin/cc.
62081
62082 2001-02-03  Jim Meyering  <meyering@lucent.com>
62083
62084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62085         AS_IF, now that it works once again (mysteriously).
62086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62087
62088 2001-01-30  Jim Meyering  <meyering@lucent.com>
62089
62090         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62091         * m4/chown.m4: Rename conftestchown to conftest.chown.
62092         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62093         s/conftestdir2/conftest.d2/.
62094         * m4/utimes.m4: s/conftestdata/conftest.data/
62095         Inspired by Pavel Roskin's change in autoconf.
62096
62097 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62098
62099         * lib/config.charset: Update for FreeBSD 4.2.
62100
62101 2001-01-27  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62104         a use of AS_IF.
62105         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62106
62107 2001-01-26  Jim Meyering  <meyering@lucent.com>
62108
62109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62110         quotearg.c includes it.
62111
62112 2001-01-26  Jim Meyering  <meyering@lucent.com>
62113
62114         * lib/quotearg.c: Include stddef.h.
62115         * lib/quote.c: Include stddef.h.
62116         Reported by Axel Kittenberger.
62117
62118         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62119         line in double quotes so that it evokes a better diagnostic.
62120         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62121         Reported by Axel Kittenberger.
62122
62123 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62124
62125         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62126         as if it was a `charset'.
62127
62128 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62129
62130         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62131         has const.
62132
62133 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62134
62135         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62136         to avoid a warning.  Add back 'const' to inptr.
62137
62138 2001-01-20  Jim Meyering  <meyering@lucent.com>
62139
62140         Be sure that headers are checked before used in code compiled
62141         for the type checks.
62142         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62143         In place of that, invoke jm_CHECK_ALL_TYPES.
62144         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62145         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62146         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62147         The check for ssize_t was mistakenly run before the test for unistd.h.
62148
62149         The configure-time check for stdbool.h was missing.
62150         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62151         (jm_PREREQ_HASH): New function.
62152
62153 2001-01-17  Jim Meyering  <meyering@lucent.com>
62154
62155         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62156         for autoconf-2.49c.
62157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62158
62159 2001-01-16  Jim Meyering  <meyering@lucent.com>
62160
62161         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62162         From Bruno Haible.
62163
62164 2001-01-14  Jim Meyering  <meyering@lucent.com>
62165
62166         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62167         foo and bar.  Create conftestdir/ in the script, not in the C code.
62168         Remove directories in the script, not in the C code.
62169         Remove conftestdir{,2} before trying to create the directory.
62170         Make the entire configure script fail if the mkdir fails.
62171
62172 2001-01-14  Jim Meyering  <meyering@lucent.com>
62173
62174         * lib/rename.c: New file.  From Volker Borchert.
62175         Include stdlib.h, string.h or strings.h, and xalloc.h.
62176         Use strip_trailing_slashes rather than open-coding it.
62177
62178 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62179
62180         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62181
62182 2001-01-03  Jim Meyering  <meyering@lucent.com>
62183
62184         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62185         of local `inptr' to avoid warning with some system declarations of
62186         iconv.
62187
62188 2001-01-02  Volker Borchert  <bt@teknon.de>
62189
62190         * m4/rename.m4: New file.
62191         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62192
62193 2001-01-01  Jim Meyering  <meyering@lucent.com>
62194
62195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62196         even on systems with utmpx.h.  It's necessary for the declaration of
62197         utmp's ut_user member.  Reported by Andreas Jaeger.
62198
62199         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62200         available. They are required for the declarations of getgrgid and
62201         getpwuid resp.
62202         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62203         Reported by Andreas Jaeger.
62204
62205 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62206
62207         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62208         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62209         so `make install' also works in VPATH builds.
62210
62211 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62212
62213         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62214         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62215         can be used in subdirectories.
62216
62217 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62218
62219         * lib/modechange.c: Do not assume that mode_t uses the
62220         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62221         the other-execute bit of FOO even if S_IXOTH != 1.
62222
62223         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62224         WOTH, XOTH, ALLM): New macros.
62225         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62226          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62227         Use them.
62228         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62229         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62230         (mode_compile):
62231         No need to use uintmax_t; unsigned long is long enough.
62232         Don't bother to get suffix since we don't use it.
62233
62234 2000-12-26  Jim Meyering  <meyering@lucent.com>
62235
62236         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62237         better with autoheader.
62238
62239 2000-12-24  Jim Meyering  <meyering@lucent.com>
62240
62241         * lib/hash.c (is_prime): Return explicit boolean values.
62242         (hash_get_first): Return NULL to appease Irix5.6's 89.
62243         Reported by Nelson Beebe.
62244
62245 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62246
62247         * lib/localcharset.c (locale_charset): Add support for Win32.
62248
62249 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62250
62251         * lib/physmem.h, lib/physmem.c: New files.
62252
62253         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62254         (noinst_HEADERS): Add physmem.h.
62255
62256         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62257         't' for compatibility with Solaris 8 sort.
62258
62259 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62260
62261         * lib/config.charset: Add support for BeOS.
62262
62263 2000-12-17  Jim Meyering  <meyering@lucent.com>
62264
62265         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62266         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62267
62268 2000-12-16  Jim Meyering  <meyering@lucent.com>
62269
62270         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62271         N and M) would have treated it like `chown N:N FILE'.
62272
62273         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62274
62275 2000-12-16  Jim Meyering  <meyering@lucent.com>
62276
62277         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62278         SHELLS_FILE to a file name that's useful on djgpp systems.
62279         Include stdlib.h.
62280         (ADDITIONAL_DEFAULT_SHELLS): Define.
62281         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62282         Based mostly on a patch from Prashant TR.
62283
62284 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62285
62286         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62287         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62288         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62289
62290 2000-12-08  Andreas Schwab  <schwab@suse.de>
62291
62292         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62293         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62294
62295 2000-12-07  Jim Meyering  <meyering@lucent.com>
62296
62297         * lib/stripslash.c (ISSLASH): Define.
62298         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62299         `/'.
62300         From Prashant TR.
62301
62302         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62303         (dir_name_r): Declare this function as static.
62304         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62305         manifest itself on a name containing a mix of slashes and
62306         backslashes.
62307         Make this function work with names starting with a DOS-style
62308         drive letter and colon prefix.
62309         (dir_name): Append `.' if necessary.
62310         Based mostly on patches from Prashant TR and Eli Zaretskii.
62311
62312         * lib/dirname.h (dir_name_r): Remove prototype.
62313
62314 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62315
62316         * m4/off_t-format.m4: Remove this file.
62317         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62318
62319 2000-12-06  Jim Meyering  <meyering@lucent.com>
62320
62321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62322         replacement strtoull, we may well need the replacement strtoul, too.
62323         Check for declarations of strtoul and strtoull.
62324         Check for strtol.  Mainly as a cue to cause automake to include
62325         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62326         Check for limits.h -- strtol.c needs it.
62327
62328 2000-12-05  Jim Meyering  <meyering@lucent.com>
62329
62330         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62331
62332 2000-12-04  Jim Meyering  <meyering@lucent.com>
62333
62334         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62335         Also include memory.h, stdlib.h, unistd.h if appropriate.
62336         Reported by Andreas Jaeger (conflicting declaration of malloc).
62337
62338 2000-12-02  Jim Meyering  <meyering@lucent.com>
62339
62340         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62341         * m4/jm-macros.m4 (jm_MACROS): require it.
62342
62343 2000-12-02  Jim Meyering  <meyering@lucent.com>
62344
62345         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62346
62347 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62348
62349         * lib/memrchr.c: Include <config.h> before any system include file.
62350
62351 2000-11-30  Jim Meyering  <meyering@lucent.com>
62352
62353         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62354
62355 2000-11-30  Jim Meyering  <meyering@lucent.com>
62356
62357         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62358
62359 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62360
62361         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62362
62363 2000-11-26  Jim Meyering  <meyering@lucent.com>
62364
62365         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62366
62367 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62368
62369         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62370         size of (size_t) -1; it's not portable.
62371
62372 2000-11-17  Jim Meyering  <meyering@lucent.com>
62373
62374         * lib/strstr.c: Update from GNU libc.
62375
62376 2000-11-17  Akim Demaille  <akim@epita.fr>
62377
62378         * lib/obstack.h: Formatting changes.
62379         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62380         prevent type checking.
62381         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62382         cast the value to (void *): assigning a `foo *' to a `void *'
62383         variable is valid.
62384         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62385
62386 2000-11-16  Jim Meyering  <meyering@lucent.com>
62387
62388         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62389
62390 2000-11-11  Jim Meyering  <meyering@lucent.com>
62391
62392         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62393
62394 2000-11-10  Jim Meyering  <meyering@lucent.com>
62395
62396         * lib/obstack.h: Update from GNU libc.
62397         * lib/obstack.c: Likewise.
62398
62399 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62400
62401         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62402
62403 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62404
62405         * lib/getusershell.c (setusershell): Use rewind rather than
62406         fseek/fseeko, to avoid configuration hassles with fseeko.
62407         Don't bother opening SHELLS_FILE if shellstream is NULL;
62408         it's not necessary.
62409
62410 2000-11-05  Jim Meyering  <meyering@lucent.com>
62411
62412         * lib/makepath.h (make_dir): Declare.
62413         * lib/makepath.c (make_dir): Remove `static' attribute.
62414         Tweak a comment.
62415
62416 2000-11-04  Jim Meyering  <meyering@lucent.com>
62417
62418         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62419
62420 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62421
62422         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62423         last one in a bucket, advance to the next bucket.
62424
62425 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62426
62427         * lib/fnmatch.c: Do not comment out all the code if we are using
62428         the GNU C library, because in some cases we are replacing buggy
62429         code in the GNU C library itself.
62430
62431 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62432
62433         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62434         (regex_compile): Catch bogus \(\1\).
62435
62436 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62437
62438         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62439         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62440         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62441
62442 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62443
62444         * lib/error.h, getline.h, modechange.h:
62445         Remove "2000" from Copyright line, as the file hasn't been
62446         changed this year other than in the copyright notice.
62447
62448         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62449         was changed this year.
62450
62451 2000-10-29  Jim Meyering  <meyering@lucent.com>
62452
62453         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62454         renaming.
62455         * m4/ls-mntd-fs.m4: Likewise
62456
62457 2000-10-29  Jim Meyering  <meyering@lucent.com>
62458
62459         * lib/xstat.in: Fix grammar in comment.
62460
62461 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62462
62463         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62464         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62465         doesn't define __restrict_arr.
62466
62467 2000-10-28  Jim Meyering  <meyering@lucent.com>
62468
62469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62470         (jm_PREREQ_MEMCHR): New function.
62471
62472 2000-10-28  Jim Meyering  <meyering@lucent.com>
62473
62474         * lib/memchr.c: Update from libc.
62475         Adjust for portability:
62476         [HAVE_STDLIB_H]: Include stdlib.h.
62477         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62478         Undef __memchr, too.
62479         [!weak_alias]: Define __memchr to memchr.
62480
62481         * lib/regex.c: Update from libc.
62482         * lib/regex.h: Likewise.
62483         * lib/getopt1.c: Likewise.
62484         * lib/memcmp.c: Likewise.
62485
62486         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62487         Avoid using fseek, when possible -- it's broken by design.
62488         Patch by Ulrich Drepper.
62489
62490 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62491
62492         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62493         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62494         Giving in to popular pressure to shut up the compiler with casts.
62495
62496 2000-10-26  Jim Meyering  <meyering@lucent.com>
62497
62498         * lib/strftime.c: Update from libc.
62499
62500 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62501
62502         * regex.c: More `unsigned char' -> `re_char' changes.
62503         Also change several `int' into `re_wchar_t'.
62504         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62505         (PUSH_FAILURE_POINTER): Don't cast any more.
62506         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62507         We want GCC to complain, since this piece of code makes
62508         re_match non-reentrant, which *should* be fixed.
62509         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62510         (EXTEND_BUFFER): Use RETALLOC.
62511         (SET_LIST_BIT): Don't cast.
62512         (re_wchar_t): New type.
62513         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62514         that those two functions will always properly return.
62515         (IMMEDIATE_QUIT_CHECK): Cast to void.
62516         (analyse_first): Use recursion rather than an explicit stack.
62517         (re_compile_fastmap): Can't fail anymore.
62518         (re_search_2): Don't check re_compile_fastmap for failure.
62519         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62520         Now also sets the new value (passed in a new argument).
62521         (re_match_2_internal): Use it.
62522         Also, use a new var `reg' of type size_t when looping through regs
62523         rather than reuse the inappropriate `mcnt'.
62524
62525 2000-10-25  Jim Meyering  <meyering@lucent.com>
62526
62527         * lib/obstack.c: Update from libc.
62528
62529 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62530
62531         * regex.c (regex_compile): Change the way of handling a range from
62532         a char less than 256 to a char not less than 256.
62533
62534 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62535
62536         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62537         NT-Emacs only.
62538         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62539         so that re_search functions only quit when callers expect them to.
62540
62541 2000-10-23  Jim Meyering  <meyering@lucent.com>
62542
62543         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62544         wrong.  That set_locale call must not have any side effects.
62545         From Paul Eggert.
62546
62547 2000-10-22  Jim Meyering  <meyering@lucent.com>
62548
62549         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62550         [CYCLIC]: Remove now-unused definition.
62551
62552         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62553         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62554         Suggestion from Ulrich Drepper.
62555
62556 2000-10-21  Jim Meyering  <meyering@lucent.com>
62557
62558         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62559         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62560         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62561
62562 2000-10-21  Jim Meyering  <meyering@lucent.com>
62563
62564         * lib/dirname.c (memrchr): Declare if necessary.
62565         (dir_name): Remove the restriction that there be no
62566         trailing slashes.  Now, this code skips past them, effectively
62567         ignoring them.
62568         [TEST_DIRNAME] (main): New unit tests.
62569
62570         * lib/memrchr.c: New file from GNU libc.
62571         Undef __memrchr, too.
62572         [!weak_alias]: Define __memrchr to memrchr.
62573         Guard weak_alias use with `#ifdef weak_alias'.
62574
62575 2000-10-21  Jim Meyering  <meyering@lucent.com>
62576
62577         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62578         (dir_name): Use dir_name_r.
62579         * lib/dirname.h (dir_name_r): Declare it.
62580
62581 2000-10-17  Jim Meyering  <meyering@lucent.com>
62582
62583         * lib/quote.h (PARAMS): Define and use.
62584         Reported by Akim Demaille.
62585
62586         * lib/getopt.c: Update from libc.
62587
62588 2000-10-16  Jim Meyering  <meyering@lucent.com>
62589
62590         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62591         setlocale.
62592         From Jan Fedak.
62593
62594 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62595
62596         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62597
62598 2000-09-25  Jim Meyering  <meyering@lucent.com>
62599
62600         * lib/md5.h (rol): Define (from GnuPG).
62601
62602         * lib/sha.c: Give credit (GnuPG) where due.
62603         (M): Use rol rather than open-coding it.
62604         Add a FIXME comment.
62605
62606 2000-09-21  Jim Meyering  <meyering@lucent.com>
62607
62608         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62609         Reported by Michael Stone.
62610
62611 2000-09-20  Jim Meyering  <meyering@lucent.com>
62612
62613         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62614         (noinst_HEADERS): Add sha.h.
62615         Based on code from Scott G. Miller and from GnuPG.
62616
62617 2000-09-18  Jim Meyering  <meyering@lucent.com>
62618
62619         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62620         LIBS. Otherwise, everyone ends up linking with -lelf for some
62621         configurations.
62622         Reported by Mike Stone.
62623
62624 2000-09-15  Jim Meyering  <meyering@lucent.com>
62625
62626         * lib/regex.c: Update from libc.
62627
62628 2000-09-10  Jim Meyering  <meyering@lucent.com>
62629
62630         * lib/getopt.c (_getopt_internal): Update from glibc.
62631
62632 2000-09-09  Jim Meyering  <meyering@lucent.com>
62633
62634         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62635         think it should be used as a general replacement for isascii.
62636         * lib/fnmatch.c: Likewise.
62637         * lib/mbswidth.c: Likewise
62638         * lib/regex.c: Likewise.
62639
62640         Don't use atoi.
62641         * lib/userspec.c: Include sys/param.h and limits.h.
62642         Include xstrtol.h.
62643         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62644         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62645         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62646         UID, GID.  Check range.
62647
62648 2000-09-06  Jim Meyering  <meyering@lucent.com>
62649
62650         * lib/getopt.c (_getopt_internal): Update from glibc.
62651
62652 2000-08-30  Jim Meyering  <meyering@lucent.com>
62653
62654         * lib/strftime.c: Merge in changes from GNU libc.
62655
62656 2000-08-26  Jim Meyering  <meyering@lucent.com>
62657
62658         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62659         * m4/fpending.m4: New file.
62660
62661 2000-08-26  Jim Meyering  <meyering@lucent.com>
62662
62663         * lib/closeout.c: Include "__fpending.h".
62664         (close_stdout_status): Return right away if there's nothing to flush.
62665
62666         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62667         * lib/__fpending.c: New file.
62668         * lib/__fpending.h: New file.
62669
62670 2000-08-20  Jim Meyering  <meyering@lucent.com>
62671
62672         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62673         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62674         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62675
62676 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62677
62678         Improve fileutils installation on systems where running
62679         programs (like install) can't be unlinked.
62680         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62681         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62682
62683 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62684
62685         Standardize on "memory exhausted" instead of "Memory exhausted"
62686         or "virtual memory exhausted".
62687         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62688         "virtual memory exhausted".
62689         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62690         our own message.
62691         * lib/userspec.c (parse_user_spec): Likewise.
62692         * lib/bumpalloc.h: comment fix
62693         * lib/same.c, userspec.c: Include xalloc.h.
62694
62695         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62696         not char *const and pointing to a constant array.
62697         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62698         (xrealloc): Comment fix.
62699
62700         * lib/userspec.c (parse_user_spec):
62701         Don't translate a message until just before returning,
62702         to avoid unnecessary translation.
62703
62704 2000-08-07  Jim Meyering  <meyering@lucent.com>
62705
62706         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62707         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62708         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62709         getgroups.c, gethostname.c, getopt.h, group-member.c,
62710         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62711         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62712         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62713         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62714         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62715         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62716         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62717         yesno.c: Back out Copyright date changes for each file with no change
62718         this year.  This eases coordination with other programs using the same
62719         source code modules.  From Paul Eggert.
62720
62721 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62722
62723         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62724         not char, for compatibility with glibc 2.1.3 strftime.c.
62725
62726 2000-08-03  Greg McGary  <greg@mcgary.org>
62727
62728         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62729         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62730         (EXTEND_BUFFER): Use them.
62731
62732 2000-08-01  Jim Meyering  <meyering@lucent.com>
62733
62734         * lib/dirname.c (ISSLASH): Define.
62735         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62736         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62737         both `\' and `/' may be use as path separators.
62738         Based on a patch from Prashant TR.
62739
62740 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62741
62742         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62743         slot vector a constant, since it might get modified.
62744
62745 2000-07-31  Jim Meyering  <meyering@lucent.com>
62746
62747         * lib/xmalloc.c: Use `virtual memory exhausted', not
62748         `Memory exhausted'.
62749         * lib/obstack.c (print_and_abort): Likewise.
62750
62751 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62752
62753         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62754         buffer, so that the caller can always quote one small
62755         component of a "memory exhausted" message in slot 0.
62756         From a suggestion by Jim Meyering.
62757
62758 2000-07-30  Jim Meyering  <meyering@lucent.com>
62759
62760         * lib/makepath.c (make_path): Quote the other instance, too.
62761
62762         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62763         (STATIC_BUF_SIZE): Define.
62764         (quotearg_n_options): Use only statically allocated storage when
62765         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62766         than STATIC_BUF_SIZE.
62767
62768 2000-07-29  Jim Meyering  <meyering@lucent.com>
62769
62770         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62771         * lib/dirname.c (dir_name): Likewise.
62772
62773         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62774         `/'.
62775
62776         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62777         (dir_name): Assert that there are no trailing slashes.
62778
62779 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62780
62781         * lib/mbswidth.h (mbswidth): Add a flags argument.
62782         (mbswidth): New declaration.
62783         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62784         * lib/mbswidth.c (mbswidth): Add a flags argument.
62785         (mbsnwidth): New function.
62786
62787 2000-07-24  Jim Meyering  <meyering@lucent.com>
62788
62789         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62790
62791 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62792
62793         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62794
62795 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62796
62797         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62798         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62799         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62800         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62801         invoke multibyte primitives.
62802
62803 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62804
62805         * lib/quotearg.c:
62806         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62807         so that mbstate_t is always defined.
62808
62809         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62810         be 1 in at least one GCC installation, and this configuration
62811         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62812         performance on hosts that have mbrtowc but have only unibyte
62813         locales, but I assume these hosts are rare.
62814
62815 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62816
62817         * lib/mbswidth.c (_XOPEN_SOURCE):
62818         Don't define; this causes problems on Solaris 7.
62819         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62820
62821 2000-07-23  Jim Meyering  <meyering@lucent.com>
62822
62823         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62824         too: getgrgid, getpwuid, getuid.
62825
62826 2000-07-23  Jim Meyering  <meyering@lucent.com>
62827
62828         * lib/basename.c (base_name): Add an assertion.
62829
62830 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62831
62832         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62833         shadow its mbsinit function.
62834
62835 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62836
62837         * lib/mbswidth.h: New file.
62838         * lib/mbswidth.c: New file.
62839         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62840         (noinst_HEADERS): Add mbswidth.h.
62841
62842 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62843
62844         * lib/config.charset: Add support for FreeBSD. Improve support for
62845         HP-UX and IRIX 6.
62846
62847 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62848
62849         * m4/mbswidth.m4: New file.
62850         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62851
62852 2000-07-15  Jim Meyering  <meyering@lucent.com>
62853
62854         * lib/makepath.c: Include quote.h.
62855         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62856         corresponding argument in a `quote (...)' call.
62857         Give better diagnostics.
62858
62859         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62860         (noinst_HEADERS): Add quote.h.
62861
62862         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62863         from tar's src/misc.c.
62864         * lib/quote.h: New file.  Prototypes for same.
62865
62866 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62867
62868         From a suggestion by Bruno Haible.
62869         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62870         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62871         to decide whether to define the BeOS workaround macro;
62872         this adjusts to the change to AC_MBSTATE_T.
62873
62874 2000-07-14  Jim Meyering  <meyering@lucent.com>
62875
62876         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62877         jm_AC_TYPE_UINTMAX_T.
62878
62879 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62880
62881         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62882
62883         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62884         quotearg_buffer_restyled): Add support for
62885         clocale_quoting_style.  Undo previous change to
62886         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62887         and "{RIGHT QUOTATION MARK}" msgids.
62888
62889 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62890
62891         From a suggestion by Bruno Haible.
62892         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62893         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62894         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62895         and mbstate_t, to a single-part test that simply defines mbstate_t.
62896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62897         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62898
62899 2000-07-10  Jim Meyering  <meyering@lucent.com>
62900
62901         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62902
62903         * m4/gnu-source.m4: Output to confdefs.h directly.
62904         Suggestion from Akim Demaille.
62905
62906 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62907
62908         The old behavior of quoting `like this' doesn't look good with
62909         newer, ISO-style fonts.  See:
62910         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62911
62912         Instead, quote "like this" by default.  Let the translator
62913         tailor the locale-specific quoting behavior by providing
62914         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62915
62916         * lib/quotearg.c (N_): New macro.
62917         (gettext_default): New function.
62918         (quotearg_buffer_restyled): Use
62919         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62920         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62921
62922 2000-07-09  Jim Meyering  <meyering@lucent.com>
62923
62924         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62925         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62926
62927         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62929
62930 2000-07-09  Jim Meyering  <meyering@lucent.com>
62931
62932         * lib/Most files: Update copyright dates to include 2000.
62933
62934 2000-07-08  Jim Meyering  <meyering@lucent.com>
62935
62936         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62937         if not defined.
62938         (xgethostname): Remove now-unnecessary #ifdef.
62939         Move declaration of `err' into loop where it's used.
62940
62941 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62942         and Bruno Haible  <haible@clisp.cons.org>
62943
62944         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62945         only if the test for an object-type mbstate_t fails.  This
62946         prevents us from mistakenly reporting that mbstate_t is a
62947         system object type after we "#define mbstate_t int" to work
62948         around its lack.
62949
62950 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62951         and Bruno Haible  <haible@clisp.cons.org>
62952
62953         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62954
62955 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62956
62957         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62958         to strerror_r.
62959         Include <ctype.h> for use of isalpha.
62960
62961 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62962
62963         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62964         by allocating a larger buffer. Test the gethostname return value for
62965         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62966         returns an error and ENAMETOOLONG isn't defined.
62967
62968 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62969
62970         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62971         dimension.
62972
62973 2000-07-04  Jim Meyering  <meyering@lucent.com>
62974
62975         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62976         of the deprecated AC_CHECKING.
62977
62978 2000-07-04  Jim Meyering  <meyering@lucent.com>
62979
62980         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62981         Reported by Bruno Haible.
62982
62983 2000-07-04  Jim Meyering  <meyering@lucent.com>
62984
62985         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62986         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62987         lacks mbrtowc.
62988
62989 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62990
62991         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62992         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62993
62994 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62995         and Bruno Haible  <haible@clisp.cons.org>
62996
62997         * lib/quotearg.c (mbrtowc):
62998         Assign to *pwc, and return 1 only if result is nonzero.
62999         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63000
63001 2000-07-03  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63004
63005 2000-07-03  Jim Meyering  <meyering@lucent.com>
63006
63007         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63008         This is necessary to get a definition of e.g., UTMP_FILE on
63009         HP-UX 10.20.
63010         From Bob Proulx.
63011
63012 2000-07-02  Jim Meyering  <meyering@lucent.com>
63013
63014         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63015
63016         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63017         AC_LIBOBJ(function_name).
63018         * m4/chown.m4: Likewise.
63019         * m4/fnmatch.m4: Likewise.
63020         * m4/ftruncate.m4: Likewise.
63021         * m4/getgroups.m4: Likewise.
63022         * m4/getline.m4: Likewise.
63023         * m4/group-member.m4: Likewise.
63024         * m4/jm-macros.m4: Likewise.
63025         * m4/lstat.m4: Likewise.
63026         * m4/malloc.m4: Likewise.
63027         * m4/memcmp.m4: Likewise.
63028         * m4/nanosleep.m4: Likewise.
63029         * m4/putenv.m4: Likewise.
63030         * m4/realloc.m4: Likewise.
63031         * m4/regex.m4: Likewise.
63032         * m4/stat.m4: Likewise.
63033         * m4/strftime.m4: Likewise.
63034
63035 2000-07-02  Jim Meyering  <meyering@lucent.com>
63036
63037         * lib/quotearg.c (mbstate_t): Don't define here.
63038
63039 2000-07-02  Jim Meyering  <meyering@lucent.com>
63040
63041         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63042
63043 2000-07-01  Jim Meyering  <meyering@lucent.com>
63044
63045         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63046
63047 2000-07-01  Jim Meyering  <meyering@lucent.com>
63048
63049         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63050         problem.
63051
63052 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63053
63054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63055         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63056
63057 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63058
63059         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63060         per change in ../m4/ls-mntd-fs.m4.
63061         (read_filesystem_list): Ignore symbolic links.
63062
63063 2000-06-29  Jim Meyering  <meyering@lucent.com>
63064
63065         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63066         for declaration of strcmp.
63067
63068         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63069
63070         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63071         Avoid warning by casting result to `char *' to remove `const'.
63072
63073 2000-06-28  Jim Meyering  <meyering@lucent.com>
63074
63075         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63076         included by quotearg.c, for which we perform this test.  From
63077         Bruno Haible.
63078
63079 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63080
63081         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63082         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63083         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63084
63085 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63086
63087         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63088
63089 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63090
63091         savedir now sets errno on failure and invokes xmalloc to get memory.
63092         Fix a couple of other minor bugs while we're at it.
63093
63094         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63095         (NAMLEN): Remove macro.
63096         (malloc, realloc): Remove decls.
63097         (stpcpy): Likewise.
63098         ("xalloc.h"): Include.
63099         (NAME_SIZE_DEFAULT): New macro.
63100         (savedir): Use xmalloc / xrealloc to allocate memory.
63101         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63102         Skip "" directory entries.
63103         Use strlen to calculate directory entry length, since the old method
63104         is rarely used these days and isn't worth supporting.
63105         Don't use a pointer after freeing it.
63106         Check for integer overflow when calculating allocation size.
63107         Use memcpy to copy entries, instead of stpcpy.
63108         Set errno properly when returning NULL.
63109         Check for readdir error.
63110
63111 2000-06-26  Jim Meyering  <meyering@lucent.com>
63112
63113         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63114
63115 2000-06-25  Jim Meyering  <meyering@lucent.com>
63116
63117         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63118         Linux header bug when _XOPEN_SOURCE is defined to 500.
63119
63120 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63121
63122         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63123         deficiency.
63124
63125 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63126
63127         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63128         Include xalloc.h.
63129         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63130
63131 2000-06-24  Jim Meyering  <meyering@lucent.com>
63132
63133         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63134         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63135         for which strerror does return char*, but which lacks a conveniently
63136         accessible declaration of the function.  If the compile-test says
63137         strerror_r doesn't work, then resort to a `run'-test that works on
63138         BeOS and segfaults on DEC Unix.
63139
63140 2000-06-24  Jim Meyering  <meyering@lucent.com>
63141
63142         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63143
63144 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63145
63146         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63148
63149 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63150
63151         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63152         (mbrtowc, mbstate_t): Define substitutes if
63153         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63154         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63155         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63156
63157 2000-06-23  Jim Meyering  <meyering@lucent.com>
63158
63159         * m4/afs.m4: Add missing AC_MSG_RESULT.
63160         Reported by Bruno Haible.
63161
63162         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63163         Suggestion from Bruno Haible.
63164
63165 2000-06-23  Jim Meyering  <meyering@lucent.com>
63166
63167         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63168
63169 2000-06-21  Jim Meyering  <meyering@lucent.com>
63170
63171         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63172
63173 2000-06-21  Jim Meyering  <meyering@lucent.com>
63174
63175         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63176         (noinst_HEADERS): Add getstr.h.
63177
63178         * lib/getline.c (getstr): Move into a separate file.
63179         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63180         the following changes: new parameter, delim2; both delim[12]
63181         parameters have type `int', not `char'.  The latter would lose
63182         with 8-bit delimiters.
63183         * lib/getstr.h: New file.
63184
63185 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63186
63187         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63188         than 1024, return a memory chunk of least possible size, instead
63189         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63190         Use free/xmalloc instead of xrealloc to avoid copying for very long
63191         paths.
63192
63193 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63194
63195         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63196         the empty string.
63197
63198 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63199
63200         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63201         address, not strdup.  Include <stdlib.h> and don't declare free().
63202
63203 2000-06-19  Jim Meyering  <meyering@lucent.com>
63204
63205         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63206
63207 2000-06-18  Jim Meyering  <meyering@lucent.com>
63208
63209         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63210
63211         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63212         `checking whether...' message to be consistent with that of the
63213         lstat test.
63214
63215 2000-06-18  Jim Meyering  <meyering@lucent.com>
63216
63217         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63218         Besides, these days every porting target provides a mkdir function.
63219
63220         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63221         needed. (this snippet comes from src/system.h).
63222
63223 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63224
63225         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63226
63227 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63228
63229         * lib/human.c (adjust_value): New function.
63230         (human_readable_inexact): Apply rounding style even when
63231         printing approximate values.
63232
63233 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63234
63235         * lib/human.c (human_readable_inexact): Allow an input block
63236         size that is not a multiple of the output block size, and vice versa.
63237         Reported by Piergiorgio Sartor.
63238
63239 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63240
63241         * lib/getdate.y (get_date): Apply relative times after time
63242         zone indicator, not before.  Reported by Todd A. Jacobs.
63243
63244 2000-06-13  Jim Meyering  <meyering@lucent.com>
63245
63246         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63247
63248         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63249
63250 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63251
63252         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63253
63254 2000-06-12  Jim Meyering  <meyering@lucent.com>
63255
63256         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63257         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63258         optional argument.
63259         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63260         the optional argument, `lib'.
63261
63262 2000-06-08  Jim Meyering  <meyering@lucent.com>
63263
63264         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63265
63266 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63267
63268         Rewrite largefile configuration so that we don't need to run
63269         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63270         AC_CANONICAL_HOST in configure.in -- jmm]
63271
63272         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63273         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63274         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63275         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63276         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63277         All uses changed.
63278         Instead of inspecting the output of getconf, try to compile the
63279         test program without and with the macro definition.
63280         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63281         for getconf.  Instead, check for the needed flags by compiling
63282         test programs.
63283
63284 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63285
63286         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63287
63288 2000-06-04  Jim Meyering  <meyering@lucent.com>
63289
63290         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63291         SunOS 4.1.4 for which gid_t is an unsigned type.
63292
63293 2000-06-03  Jim Meyering  <meyering@lucent.com>
63294
63295         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63296         now that autoconf requires that.
63297
63298         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63299         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63300         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63301
63302 2000-06-03  Jim Meyering  <meyering@lucent.com>
63303
63304         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63305
63306 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63307
63308         * m4/glibc21.m4: New file.
63309         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63310
63311 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63312
63313         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63314         newer, don't install charset.alias.
63315         * lib/config.charset: Change the Linux/glibc rules so they become empty
63316         on glibc-2.1 or newer.
63317
63318 2000-06-02  Jim Meyering  <meyering@lucent.com>
63319
63320         * lib/mountlist.c: Back out last change.  Instead, do this...
63321         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63322         me_dummy member using the same `ignore'-testing code.
63323         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63324         fs_type strings.
63325         From Mark D. Roth.
63326
63327 2000-05-29  Jim Meyering  <meyering@lucent.com>
63328
63329         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63330         mounts with the `ignore' attribute.  Based on a patch from
63331         Mark D. Roth.
63332
63333 2000-05-28  Jim Meyering  <meyering@lucent.com>
63334
63335         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63336         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63337         * m4/stat.m4: Likewise.
63338         * m4/lstat.m4: Likewise.
63339         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63340
63341         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63342         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63343
63344 2000-05-26  Jim Meyering  <meyering@lucent.com>
63345
63346         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63347
63348 2000-05-24  Jim Meyering  <meyering@lucent.com>
63349
63350         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63351         autoconf requires that.
63352         * m4/lib-check.m4: Likewise.
63353         * m4/jm-macros.m4: Likewise.
63354         * m4/strftime.m4: Likewise.
63355
63356         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63357         AC_CHECK_DECLS, now that autoconf requires that.
63358
63359 2000-05-22  Jim Meyering  <meyering@lucent.com>
63360
63361         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63362         * m4/lstat.m4: Likewise.
63363
63364 2000-05-22  Jim Meyering  <meyering@lucent.com>
63365
63366         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63367
63368 2000-05-20  Jim Meyering  <meyering@lucent.com>
63369
63370         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63371         (jm_PREREQ): Use it.
63372
63373 2000-05-18  Jim Meyering  <meyering@lucent.com>
63374
63375         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63376         back, too, since it may have been modified by allocate_entry.
63377         (hash_delete): Rewrite to use neither the assignment operator
63378         nor the comma operator in an if-expression.
63379
63380 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63381
63382         * lib/closeout.c:
63383         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63384         Remove; no longer needed.
63385         "quotearg.h": Add include.
63386         (file_name): Do not bother to explicitly initialize to NULL; it's less
63387         efficient on some hosts.
63388         (close_stdout_status): Remove test as to whether stdout was already
63389         closed; it breaks for the case "echo x | sort >&-".
63390         Quote file name colons.
63391         Do not assume that _("write error") lacks format strings.
63392
63393 2000-05-15  Jim Meyering  <meyering@lucent.com>
63394
63395         * lib/version-etc.c (version_etc_copyright): Update the copyright
63396         string used in all --version output.
63397
63398 2000-05-14  Jim Meyering  <meyering@lucent.com>
63399
63400         * lib/closeout.c (close_stdout_set_file_name): New function.
63401         (close_stdout_status): Use new file-scoped global.
63402         Return right away if fstat says the stdout file descriptor is invalid.
63403         * lib/closeout.h (close_stdout_set_file_name): Declare.
63404
63405 2000-05-10  Jim Meyering  <meyering@lucent.com>
63406
63407         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63408         (close_stdout_set_status): New function.
63409         * lib/closeout.h (close_stdout_set_status): Declare.
63410
63411 2000-05-09  Jim Meyering  <meyering@lucent.com>
63412
63413         * m4/gettext.m4: Rename this...
63414         * m4/libintl.m4: ...to this.
63415
63416 2000-05-08  Jim Meyering  <meyering@lucent.com>
63417
63418         * lib/long-options.c: Don't include closeout.h.
63419         (parse_long_options): Don't call close_stdout for --version.
63420
63421 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63422
63423         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63424         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63425         2.1.3 bug.  This avoids a clash when files like regex.c define
63426         _GNU_SOURCE.
63427
63428 2000-05-06  Jim Meyering  <meyering@lucent.com>
63429
63430         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63431         (AC_REPLACE_FUNCS): Add strnlen.
63432
63433         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63434         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63435
63436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63437         AC_SEARCH_LIBS call for nanosleep.
63438         (LIB_NANOSLEEP): Set and AC_SUBST.
63439
63440 2000-05-06  Jim Meyering  <meyering@lucent.com>
63441
63442         * lib/strnlen.c: Undefine __strnlen and strnlen.
63443         [!weak_alias]: Define __strnlen to strnlen.
63444
63445         * lib/atexit.c: New file, from libiberty.
63446
63447 2000-05-06  Jim Meyering  <meyering@lucent.com>
63448
63449         * lib/closeout.c (close_stdout_status): Also check for errors on the
63450         stderr stream.
63451
63452 2000-05-05  Jim Meyering  <meyering@lucent.com>
63453
63454         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63455         AC_SEARCH_LIBS call for clock_gettime.
63456         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63457
63458         * m4/search-libs.m4: Update from autoconf.
63459
63460         su doesn't work on Solaris 2.6.
63461         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63462         <shadow.h>.  Reported by Dragos Harabor.
63463
63464 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63465
63466         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63467         memcpy instead of xmalloc, xrealloc, path_concat.
63468         (locale_charset): Treat empty environment variables as absent.
63469         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63470
63471 2000-05-04  Jim Meyering  <meyering@lucent.com>
63472
63473         * lib/getopt.c: Update from glibc.
63474         * lib/obstack.c: Likewise.
63475         * lib/obstack.h: Likewise.
63476         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63477         file
63478
63479         * lib/regex.h: Likewise.
63480         * lib/strndup.c: Likewise.
63481         * lib/strnlen.c: New file, from glibc.
63482
63483 2000-05-03  Jim Meyering  <meyering@lucent.com>
63484
63485         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63486
63487 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63488
63489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63490         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63491         compile-time test, rather than inspecting host and OS, to
63492         decide whether to define _LARGEFILE_SOURCE.
63493
63494 2000-05-01  Jim Meyering  <meyering@lucent.com>
63495
63496         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63497
63498         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63499         Based on a patch from Bruno Haible.
63500
63501 2000-05-01  Jim Meyering  <meyering@lucent.com>
63502
63503         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63504
63505 2000-04-29  Jim Meyering  <meyering@lucent.com>
63506
63507         * lib/path-concat.c: Declare strdup only if it's not defined.
63508         * lib/canon-host.c: Likewise.
63509
63510 2000-04-28  Jim Meyering  <meyering@lucent.com>
63511
63512         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63513         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63514         is included first, then limits.h is included by locale.h by libintl.h.
63515         From John David Anglin.
63516
63517 2000-04-25  Jim Meyering  <meyering@lucent.com>
63518
63519         * lib/makepath.c (S_IRWXUGO): Define.
63520         (make_path): Always perform explicit chmod if MODE specifies any
63521         of the `special' permission bits.  Prompted by a bug report against
63522         install from Mate Wierdl and Joost van Baal.
63523
63524 2000-04-18  Jim Meyering  <meyering@lucent.com>
63525
63526         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63527         (jm_PREREQ): Use it.
63528
63529 2000-04-18  Jim Meyering  <meyering@lucent.com>
63530
63531         * lib/README: New file.
63532
63533         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63534         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63535
63536 2000-04-17  Jim Meyering  <meyering@lucent.com>
63537
63538         Get it right :-)
63539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63540         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63541         Suggestion from Akim Demaille.
63542
63543 2000-04-17  Jim Meyering  <meyering@lucent.com>
63544
63545         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63546         the definition of it to rpl_strftime also defined-away the system's
63547         declaration.
63548
63549 2000-04-15  Jim Meyering  <meyering@lucent.com>
63550
63551         Use `C' to denote so-called `contiguous' files, the same way
63552         that tar does.
63553         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63554         (ftypelet): Use S_ISCTG.
63555         From Michael Deutschmann.
63556
63557 2000-04-14  Jim Meyering  <meyering@lucent.com>
63558
63559         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63560         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63561         clobbered.
63562
63563 2000-04-14  Jim Meyering  <meyering@lucent.com>
63564
63565         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63566
63567 2000-04-13  Jim Meyering  <meyering@lucent.com>
63568
63569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63570         AH_VERBATIM to insert required #ifndef into config.h.in.
63571         Suggestion from Akim Demaille.
63572
63573 2000-04-12  Jim Meyering  <meyering@lucent.com>
63574
63575         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63576         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63577         Christian Krackowizer.
63578
63579         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63580         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63581         (AC_SYS_LARGEFILE): Require.
63582         (AM_C_PROTOTYPES): Require.
63583
63584 2000-04-08  Jim Meyering  <meyering@lucent.com>
63585
63586         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63587         names don't conflict.  Reported by Eli Zaretskii.
63588
63589 2000-04-07  Jim Meyering  <meyering@lucent.com>
63590
63591         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63592         sys/types.h, to work around system header problems on AIX 3.2.5.
63593         From Bruno Haible.
63594
63595 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63596
63597         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63598         bug.  Deal with the different error behavior of Irix iconv.
63599
63600 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63601
63602         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63603         IRIX if the installer said otherwise.
63604
63605 2000-04-05  Jim Meyering  <meyering@lucent.com>
63606
63607         Portability tweaks required for ultrix4.3.
63608         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63609         (jm_CHECK_DECLS): Add getutent to the list of functions.
63610         (_jm_DECL_HEADERS): Add utmpx.h.
63611         From John David Anglin.
63612
63613         * m4/strftime.m4: Back out the 2000-04-02 change.
63614         Instead of that change, simply undefine putenv in the test program.
63615
63616 2000-04-05  Jim Meyering  <meyering@lucent.com>
63617
63618         Portability tweaks required for ultrix4.3.
63619         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63620         getutent.
63621         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63622         * lib/canon-host.c: Declare strdup.
63623         * lib/path-concat.c: Likewise.
63624         From John David Anglin.
63625
63626 2000-04-04  Jim Meyering  <meyering@lucent.com>
63627
63628         Be more DOS 8.3-friendly.
63629         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63630         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63631         * lib/Makefile.am: Reflect renaming.
63632         Reported by Eli Zaretskii.
63633
63634         Use a temporary file name that won't clash with `charset.alias'
63635         in the DOS 8.3 name space.
63636         * lib/Makefile.am (charset_tmp): Define.
63637         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63638         (uninstall-local): Likewise.
63639         Reported by Eli Zaretskii.
63640
63641 2000-04-03  Jim Meyering  <meyering@lucent.com>
63642
63643         * m4/gettext.m4: Fix typo in comment.
63644
63645         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63646         textutils/configure.in).  Suggestion from Paul Eggert.
63647         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63648
63649 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63650
63651         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63652         variable in the shell rather than using putenv, which isn't
63653         portable.  This avoids the configure-time inter-test dependency
63654         on the potentially-renamed putenv function.
63655
63656 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63657
63658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63659         before checking struct stat.st_blksize, so that
63660         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63661
63662 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63663
63664         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63665         since strftime.c uses HAVE_STRFTIME to decide whether to use
63666         the underlying strftime.
63667
63668 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63669
63670         * lib/time/strftime.c (my_strftime): Make sure we call the system
63671         strftime, not ourselves, when invoking the underlying strftime.
63672
63673 2000-03-24  Jim Meyering  <meyering@lucent.com>
63674
63675         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63676         (charset_alias): Define.
63677         (install-exec-local): Factor out common code.
63678         (uninstall-local): Split lines longer than 80.
63679         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63680         (SUFFIXES): Define.
63681         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63682         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63683
63684 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63685
63686         * lib/config.charset: Output a line containing "Packages using this
63687         file".
63688         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63689         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63690         ref-del.sed): New rules.
63691
63692 2000-03-17  Jim Meyering  <meyering@lucent.com>
63693
63694         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63695         Otherwise, include <strings.h>
63696
63697 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63698
63699         * lib/unicodeio.c (utf8_wctomb): New function.
63700         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63701         format instead of in UCS-4 with platform dependent endianness.
63702
63703 2000-03-10  Jim Meyering  <meyering@lucent.com>
63704
63705         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63706         From Marco Franzen.
63707
63708 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63709
63710         * lib/savedir.c (savedir): Work even if directory size is
63711         negative; this can happen with some screwy NFS configurations.
63712
63713 2000-03-06  Jim Meyering  <meyering@lucent.com>
63714
63715         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63716         if it's NULL (because we ran out of memory).  From Bruno Haible.
63717
63718 2000-03-05  Jim Meyering  <meyering@lucent.com>
63719
63720         * lib/localcharset.c ("path-concat.h"): Include.
63721         (get_charset_aliases): Use path_concat instead of ANSI string
63722         concatenation.
63723
63724         * lib/unicodeio.h (PARAMS): Define.
63725         Use it to guard prototype.
63726
63727 2000-03-04  Jim Meyering  <meyering@lucent.com>
63728
63729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63730         for lib/localcharset.c.
63731
63732 2000-03-04  Jim Meyering  <meyering@lucent.com>
63733
63734         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63735         installing into it.
63736         (uninstall-local): Uncomment this rule so `make distcheck' works
63737         once again.
63738
63739         * lib/unicodeio.c (<errno.h>): Include it.
63740         (errno): Declare if not defined.
63741
63742         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63743
63744         * lib/config.charset: New version, incorporating remarks from a linux
63745         i18n mailing list.  From Bruno Haible.
63746
63747 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63748
63749         * m4/codeset.m4: New file.
63750         * m4/iconv.m4: New file.
63751         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63752
63753 2000-03-03  Jim Meyering  <meyering@lucent.com>
63754
63755         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63756
63757 2000-03-02  Jim Meyering  <meyering@lucent.com>
63758
63759         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63760         the messages come out on separate lines.
63761
63762         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63763         rather than jm_CHECK_DECLARATIONS.
63764         * m4/decl.m4: Remove now-unused file.
63765
63766         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63767         geteuid.
63768
63769 2000-03-02  Jim Meyering  <meyering@lucent.com>
63770
63771         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63772
63773 2000-03-01  Jim Meyering  <meyering@lucent.com>
63774
63775         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63776         * lib/unicodeio.c: Likewise.
63777
63778 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63779
63780         * lib/config.charset: New file.
63781         * lib/localcharset.c: New file.
63782         * lib/unicodeio.h, lib/unicodeio.c: New files.
63783         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63784         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63785         (noinst_HEADERS): Add unicodeio.h.
63786         (all-local, install-exec-local, charset.alias): New targets.
63787
63788 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63789
63790         * lib/quotearg.c (ALERT_CHAR): New macro.
63791         (quotearg_buffer_restyled): Use it.
63792
63793 2000-02-27  Jim Meyering  <meyering@lucent.com>
63794
63795         * m4/check-decl.m4: Add getenv to the list.
63796
63797 2000-02-27  Jim Meyering  <meyering@lucent.com>
63798
63799         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63800         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63801
63802         * lib/backupfile.c: Guard inclusion of stdlib.h with
63803         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63804         Declare malloc if needed.
63805
63806         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63807         `#ifndef HAVE_DECL..'
63808         now that autoconf always defines the HAVE_DECL_ symbols.
63809         * lib/human.c: Likewise.
63810         * lib/same.c: Likewise.
63811         * lib/strtoumax.c: Likewise.
63812
63813         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63814         declaration check was not run.
63815         * lib/hash.c: Likewise.
63816         * lib/human.c: Likewise.
63817         * lib/same.c: Likewise.
63818         * lib/strtoumax.c: Likewise.
63819
63820         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63821         `.', then first look up the entire `.'-containing string as a login
63822         name.
63823
63824 2000-02-23  Jim Meyering  <meyering@lucent.com>
63825
63826         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63827         in place of my hack.
63828
63829 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63830
63831         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63832         (textint): New typedef.
63833         (parser_control): Member year changed from int to textint.
63834         All uses changed.
63835         (YYSTYPE): Removed; replaced by %union with int and textint members.
63836         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63837         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63838         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63839         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63840         (date, number, to_year): Use width of number in digits, not its value,
63841         to determine whether it's a 2-digit year, or a 2-digit time.
63842         (yylex): Store number of digits of numeric tokens.
63843         Reported by John Kendall.
63844
63845         (parser_control): Changed from struct parser_control to typedef (for
63846         consistency).  All uses changed.
63847
63848         (tID): Removed; not used.
63849         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63850
63851 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63852
63853         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63854         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63855
63856 2000-02-12  Jim Meyering  <meyering@lucent.com>
63857
63858         * lib/userspec.c (ISDIGIT): Define it.
63859         (isdigit): Remove definition.
63860         (is_number): Use ISDIGIT, not isdigit.
63861         <libintl.h>: Include.
63862         (_ and N_): Define.
63863         (parse_user_spec): Mark translatable strings.
63864
63865 2000-02-10  Jim Meyering  <meyering@lucent.com>
63866
63867         With these changes, nanosleep.[ch] are finally enough like the other
63868         lib/* replacement files to compile on a few more losing systems.
63869
63870         * lib/nanosleep.h: Don't include config.h.
63871         Remove prototype from declaration of nanosleep.
63872         (PARAMS): Remove now-unneeded definition.
63873         * lib/nanosleep.c: #undef nanosleep.
63874         (rpl_nanosleep): Rename from nanosleep.
63875
63876 2000-02-10  Jim Meyering  <meyering@lucent.com>
63877
63878         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63879         gnu_nanosleep to rpl_nanosleep.
63880
63881 2000-02-09  Jim Meyering  <meyering@lucent.com>
63882
63883         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63884         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63885
63886 2000-02-08  Akim Demaille  <akim@epita.fr>
63887
63888         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63889         `[' and `]' and remove uses of `changequote'.
63890         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63891         (AC_SYS_LARGEFILE): Likewise.
63892         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63893         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63894         of changequote.
63895         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63896         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63897         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63898         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63899
63900 2000-02-05  Jim Meyering  <meyering@lucent.com>
63901
63902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63903         Remove explicit use of AC_HEADER_TIME.  It is required by
63904         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63905         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63906         in autoconf whereby the expansion of the latter ended up preceding
63907         the expansion of its prerequisite, AC_HEADER_TIME.
63908         Reported by Volker Borchert.
63909
63910 2000-02-03  Jim Meyering  <meyering@lucent.com>
63911
63912         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63913
63914 2000-02-03  Jim Meyering  <meyering@lucent.com>
63915
63916         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63917         rather than with `#if HAVE_UTMPNAME'.
63918
63919 2000-02-02  Jim Meyering  <meyering@lucent.com>
63920
63921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63922         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63923         Reported by Eli Zaretskii.
63924
63925 2000-02-01  Jim Meyering  <meyering@lucent.com>
63926
63927         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63928
63929 2000-01-31  Jim Meyering  <meyering@lucent.com>
63930
63931         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63932         functions.  Add the time.h and sys/time.h headers along with the
63933         AC_REQUIRE'ment of AC_HEADER_TIME.
63934
63935 2000-01-31  Jim Meyering  <meyering@lucent.com>
63936
63937         * lib/nanosleep.h (nanosleep): Guard declaration with
63938         `#if ! HAVE_DECL_NANOSLEEP'.
63939         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63940         the declaration in that vendor's sys/timers.h.
63941         Reported by Christian Krackowizer.
63942
63943         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63944         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63945         (ISPRINT): Likewise.
63946         Reported by Tom Tromey.
63947
63948 2000-01-30  Jim Meyering  <meyering@lucent.com>
63949
63950         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63951
63952         * m4/prereq.m4 (utmp_includes): Define.
63953         Check for ut_user and ut_name members in both struct utmpx
63954         and struct utmp.
63955
63956 2000-01-30  Jim Meyering  <meyering@lucent.com>
63957
63958         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63959         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63960         header files where only utmpx.ut_user is declared.
63961
63962         * lib/readutmp.h (UT_USER): Define.
63963
63964 2000-01-29  Jim Meyering  <meyering@lucent.com>
63965
63966         * m4/lib-check.m4: New file containing library-related checks from
63967         fileutils and sh-utils (textutils had none).
63968
63969 2000-01-28  Jim Meyering  <meyering@lucent.com>
63970
63971         * m4/perl.m4: Change format of warning message to look more like that
63972         from the missing script.  Suggestion from François Pinard.
63973
63974 2000-01-25  Jim Meyering  <meyering@lucent.com>
63975
63976         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63977         well as time.h in the compile check.
63978         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63979         Fix typo in cross-compiling case: s/yes/no/.
63980
63981 2000-01-23  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/jm-macros.m4: Move df-related tests here from
63984         fileutils/configure.in
63985
63986         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63987         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63988
63989         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63990         s/space/ac_fsusage_space/.
63991         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63992
63993         * m4/ftruncate.m4: New file (derived from part of
63994         fileutils/configure.in).
63995         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63996         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63997
63998         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63999         AC_SUBST these here, rather than just in sh-util/configure.in, so
64000         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64001         all the same.
64002         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64003         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64004         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64005         (AC_SUBST(POW_LIBM)): Likewise.
64006         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64007
64008 2000-01-23  Jim Meyering  <meyering@lucent.com>
64009
64010         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64011         obstack.c.
64012
64013 2000-01-22  Jim Meyering  <meyering@lucent.com>
64014
64015         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64016
64017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64018
64019         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64020         configure.in
64021         (AC_CHECK_HEADERS): Likewise for sh-utils.
64022         (AC_CHECK_HEADERS): Likewise for textutils.
64023         Merge the three lists of headers.
64024
64025         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64026         from fileutils' configure.in.
64027
64028         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64029         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64030         check-decl.m4.
64031
64032         * m4/check-decl.m4: Use #if rather than #ifdef.
64033         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64034         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64035         (_jm_DECL_HEADERS): Define new function.
64036         (jm_CHECK_DECLARATIONS): Require it.
64037
64038 2000-01-22  Jim Meyering  <meyering@lucent.com>
64039
64040         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64041         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64042         Required for some AIX systems.  Reported by Christian Krackowizer.
64043         [TESTING] (main): New function.
64044
64045         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64046         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64047         letters.
64048
64049         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64050         iswprint.
64051
64052         * lib/strverscmp.c (ISDIGIT): Define.
64053         (strverscmp): Use ISDIGIT, not isdigit.
64054
64055 2000-01-19  Jim Meyering  <meyering@lucent.com>
64056
64057         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64058         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64059         defines `struct timespec' in <sys/time.h>
64060
64061         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64062         Thanks to Akim for explaining.
64063
64064 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64065
64066         * lib/nanosleep.c (nanosleep):
64067         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64068         POSIX.1 doesn't require SA_INTERRUPT and some systems
64069         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64070         it's been part of POSIX.1 since day 1 (in 1988).
64071
64072 2000-01-17  Jim Meyering  <meyering@lucent.com>
64073
64074         * lib/interlock: Remove unused file.  Reported by François Pinard.
64075
64076 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64077
64078         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64079         alert, backslash, formfeed, and vertical tab unnecessarily in
64080         shell quoting style.
64081
64082 2000-01-16  Jim Meyering  <meyering@lucent.com>
64083
64084         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64085         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64086         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64087         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64088
64089 2000-01-16  Jim Meyering  <meyering@lucent.com>
64090
64091         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64092         because the latter didn't work.
64093
64094 2000-01-15  Jim Meyering  <meyering@lucent.com>
64095
64096         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64097         (AC_REPLACE_FUNCS): Add memcpy and memset.
64098         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64099         Add strpbrk.
64100         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64101
64102 2000-01-12  Jim Meyering  <meyering@lucent.com>
64103
64104         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64105         (jm_PREREQ): Use it.
64106         (jm_PREREQ_READUTMP): New macro.
64107         (jm_PREREQ): Use it.
64108
64109 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64110
64111         Quote multibyte characters correctly.
64112         * m4/c-bs-a.m4: New file.
64113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64114         (jm_PREREQ): Use it.
64115
64116 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64117
64118         * m4/uintmax_t.m4: Port to autoconf 2.13.
64119
64120 2000-01-08  Jim Meyering  <meyering@ascend.com>
64121
64122         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64123         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64124
64125 2000-01-04  Jim Meyering  <meyering@ascend.com>
64126
64127         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64128         jm_STRUCT_DIRENT_D_TYPE.
64129         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64130         jm_STRUCT_DIRENT_D_INO.
64131         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64132         jm_STRUCT_UTIMBUF.
64133         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64134         renamings.
64135         * m4/utime.m4: Likewise.
64136
64137         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64138         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64139
64140 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64141
64142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64143         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64144
64145 2000-01-02  Jim Meyering  <meyering@ascend.com>
64146
64147         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64148         remember if this is necessary.
64149
64150 1999-12-26  Jim Meyering  <meyering@ascend.com>
64151
64152         * m4/jm-macros.m4: Use it here.
64153         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64154
64155 1999-12-23  Jim Meyering  <meyering@ascend.com>
64156
64157         * m4/jm-macros.m4: Check for clock_gettime (moved from
64158         fileutils/configure.in)
64159         Check for gettimeofday.
64160
64161 1999-12-20  Jim Meyering  <meyering@ascend.com>
64162
64163         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64164         autoconf-2.14a-1999-12-20.
64165
64166 1999-12-19  Jim Meyering  <meyering@ascend.com>
64167
64168         * m4/lstat-slash.m4: New file.
64169         * m4/jm-macros.m4: Use the new macro:
64170         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64171
64172 1999-12-07  Jim Meyering  <meyering@ascend.com>
64173
64174         * m4/perl.m4: Require that File::Compare be available, too.
64175         Too many systems seem to lack it.
64176
64177         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64178         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64179
64180 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64181
64182         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64183         problem with the QNX 4.25 shell, which doesn't propagate exit
64184         status of failed commands inside shell assignments.
64185
64186 1999-11-17  Jim Meyering  <meyering@ascend.com>
64187
64188         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64189
64190 1999-11-07  Jim Meyering  <meyering@ascend.com>
64191
64192         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64193
64194 1999-11-06  Jim Meyering  <meyering@ascend.com>
64195
64196         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64197         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64198
64199 1999-11-05  Jim Meyering  <meyering@ascend.com>
64200
64201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64202         configure.in of textutils, fileutils, and sh-utils into this one
64203         (shared between those packages) file.
64204         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64205         AC_STRUCT_ST_BLKSIZE.
64206
64207 1999-11-03  Jim Meyering  <meyering@ascend.com>
64208
64209         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64210         of AC_CHECK_TYPE checks includes unistd.h.
64211         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64212         Suggestion from Akim Demaille.
64213
64214 1999-10-30  Jim Meyering  <meyering@ascend.com>
64215
64216         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64217         m4-quoted string.
64218         * m4/ls-mntd-fs.m4: Likewise.
64219         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64220         * m4/jm-winsz1.m4: Likewise.
64221
64222         * m4/const.m4: Remove file, since the fix made it into the experimental
64223         version of autoconf.
64224         * m4/mktime.m4: Likewise.
64225
64226         * m4/check-type.m4: Remove file, now that the latest version of
64227         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64228
64229         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64230         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64231         AC_CHECK_TYPE.
64232
64233 1999-10-04  Jim Meyering  <meyering@ascend.com>
64234
64235         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64236
64237 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64238
64239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64240         2.95.1 bug with HP-UX 10.20.
64241
64242 1999-09-17  Jim Meyering  <meyering@ascend.com>
64243
64244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64245         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64246         due to missing strdup (against sh-utils-2.0).
64247
64248 1999-08-29  Jim Meyering  <meyering@ascend.com>
64249
64250         * m4/jm-macros.m4: Require jm_BISON.
64251         * m4/bison.m4: New file.
64252
64253 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64254
64255         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64256         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64257
64258 1999-08-05  Jim Meyering  <meyering@ascend.com>
64259
64260         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64261         to avoid conflicts with `conftest' on 8+3 filesystems.
64262         Suggestion from Eli Zaretskii.
64263
64264 1999-08-04  Jim Meyering  <meyering@ascend.com>
64265
64266         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64267         fileutils and sh-utils (textutils's getline test was inadequate).
64268         (AM_FUNC_GETLINE): Run this test.
64269         (AC_CHECK_FUNCS): Check for getdelim.
64270         Reported by Bob Proulx.
64271
64272 1999-08-02  Jim Meyering  <meyering@ascend.com>
64273
64274         * m4/jm-macros.m4: Add a comment.
64275
64276 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64277
64278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64279         <inttypes.h> defines strtoumax as a macro (and not as a
64280         function).
64281
64282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64283
64284         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64285         that we can shift, multiply and divide unsigned long long
64286         values; Ultrix cc can't do it.
64287
64288 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64289
64290         * m4/mktime.m4: New file, which is a preview of what should appear
64291         in the next public autoconf release.
64292
64293 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64294
64295         * m4/lfs.m4: Remove this file.
64296         * m4/largefile.m4: New file.  It contains the old contents of
64297         lfs.m4, except that all names with prefix AC_LFS have been
64298         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64299         compatible with future autoconf versions.  Also, some minor m4
64300         quoting problems have been fixed.
64301
64302 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64303
64304         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64305         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64306         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64307         and simplify the shell code.
64308
64309 1999-08-01  Jim Meyering  <meyering@ascend.com>
64310
64311         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64312         m4.
64313
64314 1999-07-20  Jim Meyering  <meyering@ascend.com>
64315
64316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64317
64318 1999-07-15  Jim Meyering  <meyering@ascend.com>
64319
64320         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64321
64322 1999-05-22  Jim Meyering  <meyering@ascend.com>
64323
64324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64325
64326 1999-05-20  Jim Meyering  <meyering@ascend.com>
64327
64328         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64329         Add a colon after each `then' in case $4 is empty.
64330
64331 1999-05-16  Jim Meyering  <meyering@ascend.com>
64332
64333         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64334
64335 1999-05-10  Jim Meyering  <meyering@ascend.com>
64336
64337         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64338
64339         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64340         AC_FUNC_MKTIME.
64341
64342 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64343
64344         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64345
64346 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64347
64348         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64349         not CPPFLAGS, so that linking works correctly in IRIX.
64350
64351 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64352
64353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64354
64355 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64356
64357         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64358         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64360         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64361         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64362
64363         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64364
64365 1999-04-20  Jim Meyering  <meyering@ascend.com>
64366
64367         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64368         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64369         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64370
64371 1999-04-18  Jim Meyering  <meyering@ascend.com>
64372
64373         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64374         * m4/jm-macros.m4: Use it.
64375
64376 1999-04-06  Jim Meyering  <meyering@ascend.com>
64377
64378         * m4/strftime.m4: Remove test for %f.
64379
64380 1999-03-29  Jim Meyering  <meyering@ascend.com>
64381
64382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64383         superset of the AC_TYPE_* checks in the textutils, fileutils,
64384         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64385         AC_TYPE_PID_T.
64386
64387 1999-03-28  Jim Meyering  <meyering@ascend.com>
64388
64389         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64390         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64391         replaced e.g., in the *.sh files of the sh-utils.
64392
64393 1999-03-20  Jim Meyering  <meyering@ascend.com>
64394
64395         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64396         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64397         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64398
64399 1999-03-19  Jim Meyering  <meyering@ascend.com>
64400
64401         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64402
64403 1999-03-12  Jim Meyering  <meyering@ascend.com>
64404
64405         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64406
64407 1999-03-07  Jim Meyering  <meyering@ascend.com>
64408
64409         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64410         declared.
64411
64412 1999-02-17  Jim Meyering  <meyering@ascend.com>
64413
64414         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64415         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64416
64417 1999-02-07  Jim Meyering  <meyering@ascend.com>
64418
64419         * m4/group-member.m4: New file -- extracted from sh-utils'
64420         configure.in.
64421
64422         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64423         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64424
64425 1999-02-06  Jim Meyering  <meyering@ascend.com>
64426
64427         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64428         * m4/fnmatch.m4: Likewise.
64429         * m4/getgroups.m4: Likewise.
64430         * m4/lstat.m4: Likewise.
64431         * m4/malloc.m4: Likewise.
64432         * m4/putenv.m4: Likewise.
64433         * m4/realloc.m4: Likewise.
64434         * m4/regex.m4: Likewise.
64435         * m4/stat.m4: Likewise.
64436         * m4/strftime.m4: Likewise.
64437         Suggestion from Alain Magloire.
64438
64439         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64440         * m4/fnmatch.m4: Likewise.
64441         * m4/getgroups.m4: Likewise.
64442         * m4/getline.m4: Likewise.
64443         * m4/lstat.m4: Likewise.
64444         * m4/malloc.m4: Likewise.
64445         * m4/memcmp.m4: Likewise.
64446         * m4/putenv.m4: Likewise.
64447         * m4/realloc.m4: Likewise.
64448         * m4/regex.m4: Likewise.
64449         * m4/stat.m4: Likewise.
64450         * m4/strftime.m4: Likewise.
64451         Suggestion from Alain Magloire.
64452
64453         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64454         an argument.
64455
64456         * m4/regex.m4: Add a run-time Test for proper operation of
64457         re_compile_pattern.
64458
64459 1999-01-31  Jim Meyering  <meyering@ascend.com>
64460
64461         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64462
64463 1999-01-30  Jim Meyering  <meyering@ascend.com>
64464
64465         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64466
64467         * m4/jm-mktime.m4: Make this a wrapper around the official
64468         AM_FUNC_MKTIME rather than my private copy, now that the official one
64469         is up to date.
64470         * m4/mktime.m4: Remove file.
64471
64472         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64473         * m4/uptime.m4: Likewise.
64474         * m4/uintmax_t.m4: Likewise.
64475
64476 1999-01-28  Jim Meyering  <meyering@ascend.com>
64477
64478         * m4/jm-macros.m4: Use jm_AFS.
64479         * m4/afs.m4: New file (from fileutils' configure.in).
64480
64481         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64482         * m4/chown.m4: Likewise.
64483         * m4/d-ino.m4: Likewise.
64484         * m4/d-type.m4: Likewise.
64485         * m4/fnmatch.m4: Likewise.
64486         * m4/getgroups.m4: Likewise.
64487         * m4/gettext.m4: Likewise.
64488         * m4/jm-mktime.m4: Likewise.
64489         * m4/jm-winsz2.m4: Likewise.
64490         * m4/lcmessage.m4: Likewise.
64491         * m4/ls-mntd-fs.m4: Likewise.
64492         * m4/malloc.m4: Likewise.
64493         * m4/memcmp.m4: Likewise.
64494         * m4/putenv.m4: Likewise.
64495         * m4/realloc.m4: Likewise.
64496         * m4/st_mtim.m4: Likewise.
64497         * m4/strftime.m4: Likewise.
64498
64499 1999-01-16  Jim Meyering  <meyering@ascend.com>
64500
64501         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64502         (ARGMATCH_DIE_DECL): Define.
64503
64504 1999-01-12  Jim Meyering  <meyering@ascend.com>
64505
64506         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64507         Reported by Lars Hecking.
64508
64509 1999-01-10  Jim Meyering  <meyering@ascend.com>
64510
64511         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64512         gross kludge.
64513         * m4/inttypes_h.m4: Likewise.
64514         * m4/lstat.m4: Likewise.
64515         * m4/malloc.m4: Likewise.
64516         * m4/readdir.m4: Likewise.
64517         * m4/realloc.m4: Likewise.
64518         * m4/st_dm_mode.m4: Likewise.
64519         * m4/stat.m4: Likewise.
64520         * m4/utimbuf.m4: Likewise.
64521         * m4/utimes.m4: Likewise.
64522
64523         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64524         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64525         comments in config.h.in are meaningful.
64526
64527         * m4/jm-macros.m4: Require autoconf-2.13 here.
64528
64529         * m4/regex.m4: By default, don't use the included regex.c on systems
64530         with glibc 2.  Suggestion from Uli Drepper.
64531
64532 1999-01-02  Jim Meyering  <meyering@ascend.com>
64533
64534         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64535
64536 1998-12-18  Jim Meyering  <meyering@ascend.com>
64537
64538         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64539         Based on a suggestion from Lars Hecking.
64540
64541 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64542
64543         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64544
64545 1998-11-16  Jim Meyering  <meyering@ascend.com>
64546
64547         * m4/lfs.m4: Double-quote the `uname...` expression.
64548
64549 1998-11-14  Jim Meyering  <meyering@ascend.com>
64550
64551         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64552         * m4/stat.m4: Likewise.
64553
64554 1998-11-03  Jim Meyering  <meyering@ascend.com>
64555
64556         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64557         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64558
64559 1998-10-18  Jim Meyering  <meyering@ascend.com>
64560
64561         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64562
64563 1998-10-17  Jim Meyering  <meyering@ascend.com>
64564
64565         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64566         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64567         calls for those previously hard-coded headers.  Instead, take a new
64568         parameter.
64569         (jm_CHECK_DECLARATIONS): Reflect interface change.
64570         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64571         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64572
64573         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64574
64575 1998-10-14  Jim Meyering  <meyering@ascend.com>
64576
64577         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64578         instead of "TZ=America/Vancouver".  From Paul Eggert.
64579
64580 1998-10-11  Jim Meyering  <meyering@ascend.com>
64581
64582         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64583         This adds a test for a recently added compatibility fix for mktime.c.
64584         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64585
64586 1998-09-27  Jim Meyering  <meyering@ascend.com>
64587
64588         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64589
64590         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64591         ../configure.in, including a change from Gordon Matzigkeit to allow
64592         cross-compiling for the Hurd.
64593
64594         * m4/glibc.m4: New file/macro to test for the GNU C Library
64595         versions 1 and 2.  From Gordon Matzigkeit.
64596         Indent.
64597
64598 1998-09-21  Jim Meyering  <meyering@ascend.com>
64599
64600         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64601
64602 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64603
64604         Port nanosecond-resolution times to UnixWare 2.1.2 and
64605         pedantic Solaris 2.6.
64606
64607         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64608         AC_STRUCT_ST_MTIM.
64609         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64610         Generate name of ns member, instead of just 1 or undef.
64611         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64612
64613 1998-08-15  Jim Meyering  <meyering@ascend.com>
64614
64615         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64616         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64617         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64618         instead of jm_TYPE_SSIZE_T.
64619
64620 1998-08-12  Jim Meyering  <meyering@ascend.com>
64621
64622         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64623
64624 1998-08-02  Jim Meyering  <meyering@ascend.com>
64625
64626         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64627         in acconfig.h manually.
64628
64629 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64630
64631         * m4/st_mtim.m4: New file.
64632
64633 1998-07-28  Jim Meyering  <meyering@ascend.com>
64634
64635         * m4/utimes.m4: Undef stat.
64636
64637 1998-07-25  Jim Meyering  <meyering@ascend.com>
64638
64639         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64640         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64641
64642 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64643
64644         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64645         uid and gid actually remain unchanged.
64646
64647 1998-07-07  Jim Meyering  <meyering@ascend.com>
64648
64649         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64650
64651 1998-07-04  Jim Meyering  <meyering@ascend.com>
64652
64653         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64654         to prove that this macro can be used in packages without regex.c.
64655
64656 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64657
64658         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64659         is to be used.
64660
64661 1998-07-03  Jim Meyering  <meyering@ascend.com>
64662
64663         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64664
64665         * m4/gettext.m4: New file -- from gettext-0.10.35.
64666         * m4/lcmessage.m4: Likewise.
64667         * m4/progtest.m4: Likewise.
64668
64669         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64670         * m4/jm-macros.m4: Require the new macro.
64671
64672 1998-06-29  Jim Meyering  <meyering@ascend.com>
64673
64674         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64675         for the definition of NGROUPS (used in a system header included
64676         by sys/mount.h).
64677
64678 1998-06-28  Jim Meyering  <meyering@ascend.com>
64679
64680         * m4/ls-mntd-fs.m4: New file.
64681         * m4/fstypename.m4: New file.
64682
64683         * m4/jm-macros.m4: Require the new macro.
64684         * m4/jm-glibc-io.m4: New file.
64685
64686 1998-05-19  Jim Meyering  <meyering@ascend.com>
64687
64688         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64689         * m4/lchown.m4: New file.
64690
64691         * m4/Makefile.am.in: New file.
64692         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64693
64694 1998-05-14  Jim Meyering  <meyering@ascend.com>
64695
64696         * m4/Makefile.am (EXTRA_DIST): Add them.
64697         * m4/jm-macros.m4: New file.
64698         * m4/utimbuf.m4: New file.
64699
64700 1998-05-12  Jim Meyering  <meyering@ascend.com>
64701
64702         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64703
64704 1998-05-11  Jim Meyering  <meyering@ascend.com>
64705
64706         * m4/isc-posix.m4: New file.
64707
64708 1998-05-10  Jim Meyering  <meyering@ascend.com>
64709
64710         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64711
64712 1998-05-09  Jim Meyering  <meyering@ascend.com>
64713
64714         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64715         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64716         with automake.
64717
64718         * m4/ssize_t.m4: New file.
64719         * m4/mktime.m4: Remove file -- the new automake has this now.
64720
64721 1998-04-26  Jim Meyering  <meyering@ascend.com>
64722
64723         * m4/assert.m4: New file.
64724         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64725
64726 1998-04-05  Jim Meyering  <meyering@ascend.com>
64727
64728         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64729         (jm_PREREQ): Use it here.
64730
64731 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64732
64733         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64734         in acconfig.h.
64735
64736 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64737
64738         * m4/prereq.m4: New file.
64739         * m4/error.m4: New file.
64740         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64741
64742 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64743
64744         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64745         cache-check for the same variable -- that defeated the purpose of
64746         the test; the test program was never run.  This was a problem only
64747         on systems with losing getline functions -- HP-UX 10.20 is one.
64748         Reported by Bjorn Helgaas.
64749
64750 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64751
64752         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64753
64754 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64755
64756         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64757
64758         * m4/const.m4: New file.  Use an initializer in this declaration
64759         typedef int charset[2]; const charset x;
64760         Reported by Bob Glickstein.
64761
64762 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64763
64764         * m4/chown.m4: Fix reversed types on -1 args to chown.
64765         From Kaveh Ghazi.
64766
64767 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64768
64769         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64770         Add lseek and memchr.
64771
64772         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64773         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64774         have a 20-character limit on names.
64775
64776 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64777
64778         * m4/inttypes_h.m4: New file.
64779         * m4/uintmax_t.m4: New file.
64780         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64781
64782
64783         -----
64784
64785         Local Variables:
64786         coding: utf-8
64787         End:
64788
64789         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64790
64791         Copying and distribution of this file, with or without
64792         modification, are permitted provided the copyright notice
64793         and this notice are preserved.